Payments by ID
api reference retrieve payment details by payment id { "name" "endpoint /v1/payments/{id}", "method" "get", "url" "https //sandbox crbcos com/cardpayments/v1/payments/{id}", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "veegmwka clezxjzmmbuk", "language" "nodejs", "code" "var https = require('follow redirects') https;\nvar fs = require('fs');\n\nvar options = {\n 'method' 'get',\n 'hostname' '{{baseurl}}',\n 'path' '/cardpayments/v1/payments/5124e2c1 4660 4cc2 a38f b42501346965',\n 'headers' {\n 'accept' 'application/json'\n },\n 'maxredirects' 20\n};\n\nvar req = https request(options, function (res) {\n var chunks = \[];\n\n res on(\\"data\\", function (chunk) {\n chunks push(chunk);\n });\n\n res on(\\"end\\", function (chunk) {\n var body = buffer concat(chunks);\n console log(body tostring());\n });\n\n res on(\\"error\\", function (error) {\n console error(error);\n });\n});\n\nreq end();", "customlabel" "" }, { "id" "axhf85 k4fcic0doiejle", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"{{baseurl}}/cardpayments/v1/payments/5124e2c1 4660 4cc2 a38f b42501346965\\")\n\nhttp = net http new(url host, url port);\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\n\nresponse = http request(request)\nputs response read body\n" }, { "id" "s1rsmlrok51ewfatxcguw", "language" "go", "code" "package main\n\nimport (\n \\"fmt\\"\n \\"net/http\"\n \\"io\\"\n)\n\nfunc main() {\n\n url = \\"{{baseurl}}/cardpayments/v1/payments/5124e2c1 4660 4cc2 a38f b42501346965\\"\n method = \\"get\\"\n\n client = \&http client {\n }\n req, err = http newrequest(method, url, nil)\n\n if err != nil {\n fmt println(err)\n return\n }\n req header add(\\"accept\\", \\"application/json\\")\n\n res, err = client do(req)\n if err != nil {\n fmt println(err)\n return\n }\n defer res body close()\n\n body, err = io readall(res body)\n if err != nil {\n fmt println(err)\n return\n }\n fmt println(string(body))\n}" }, { "id" "33awpaszuboxhnxsxfyh0", "language" "curl", "code" "curl location globoff '{{baseurl}}/cardpayments/v1/payments/5124e2c1 4660 4cc2 a38f b42501346965' \\\\\n header 'accept application/json'" }, { "id" "fmio89enx crr5ngaqpza", "language" "python", "code" "import http client\n\nconn = http client httpsconnection(\\"{{baseurl}}\\")\npayload = ''\nheaders = {\n 'accept' 'application/json'\n}\nconn request(\\"get\\", \\"/cardpayments/v1/payments/5124e2c1 4660 4cc2 a38f b42501346965\\", payload, headers)\nres = conn getresponse()\ndata = res read()\nprint(data decode(\\"utf 8\\"))" } ], "selectedlanguageid" "fmio89enx crr5ngaqpza" }, "results" { "languages" \[ { "id" "qalrhbp njcq9nhtl7r3x", "language" "200", "code" "{\n \\"id\\" \\"5124e2c1 4660 4cc2 a38f b42501346965\\",\n \\"clientidentifier\\" \\"395673a4 d91d 5f82 993d 9e1a9e5ef2a3\\",\n \\"amount\\" 100,\n \\"paymenttype\\" \\"pull\\",\n \\"status\\" \\"failed\\",\n \\"source\\" \\"api\\",\n \\"productid\\" \\"31cae717 408e 4813 a6b1 ad6600e48632\\",\n \\"partnerid\\" \\"82a1cfb9 de92 4cc2 8a74 ad6600e36d7a\\",\n \\"cardid\\" \\"febe40ae cbe7 4428 9aab b41b004159eb\\",\n \\"cardtoken\\" \\"7d30206f4d3848d387564f4ffdc3d151000000\\",\n \\"cardbrand\\" \\"visa\\",\n \\"panlastfour\\" \\"1111\\",\n \\"issuercountrycode\\" \\"us\\",\n \\"reasoncode\\" \\"9999\\",\n \\"reasondescription\\" \\"cvv not found\\",\n \\"correspondingentity\\" {\n \\"firstname\\" \\"randy\\",\n \\"lastname\\" \\"marsh\\",\n \\"externalaccountidentifier\\" \\"411111 1111\\",\n \\"address\\" {\n \\"street1\\" \\"260 avenue de los mexicanos\\",\n \\"city\\" \\"south park\\",\n \\"state\\" \\"co\\",\n \\"postalcode\\" \\"81241\\",\n \\"countrycode\\" \\"us\\"\n }\n },\n \\"merchantverificationvalue\\" \\"123456\\",\n \\"accountnumber\\" \\"2287979807\\",\n \\"businesstype\\" \\"aa\\",\n \\"wasrefunded\\" false,\n \\"createdat\\" \\"2026 04 07t14 42 53 557 04 00\\",\n \\"authorizedon\\" \\"2026 04 07t14 45 09 44 04 00\\",\n \\"submittedon\\" \\"2026 04 07t14 45 10 397 04 00\\",\n \\"failedat\\" \\"2026 04 07t14 45 10 397 04 00\\",\n \\"lastmodifiedat\\" \\"2026 04 07t14 47 22 3277117 04 00\\"\n}", "customlabel" "" } ], "selectedlanguageid" "qalrhbp njcq9nhtl7r3x" }, "request" { "pathparameters" \[ { "name" "id", "kind" "required", "type" "string", "description" "the guid of the payment you want to retrieve", "" "the guid of the payment you want to retrieve" } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "the guid of the payment you want to retrieve", "children" \[] }, { "name" "originalpaymentid", "kind" "optional", "type" "string", "description" " a uuid that is the primary identifier for the payment ", "children" \[] }, { "name" "clientidentifier", "kind" "optional", "type" "string", "description" " ", "children" \[] }, { "name" "amount", "kind" "optional", "type" "string", "description" "the amount to be transferred, in cents for example, 10001 = $100 01 ", "children" \[] }, { "name" "paymenttype", "kind" "optional", "type" "string", "description" "indicates the direction of the payment \npush money sent out (e g disbursement to a customer)\npull money received (e g a charge to a customer's card)", "children" \[] }, { "name" "status", "kind" "optional", "type" "string", "description" "one of \\"created\\",\n \\"pending\\",\n \\"authorized\\",\n \\"submitted\\",\n \\"processing\\",\n \\"completed\\",\n \\"rejected\\",\n \\"failed\\"", "children" \[] }, { "name" "source", "kind" "optional", "type" "string", "description" "how the payment was initiated e g api ", "children" \[] }, { "name" "productid", "kind" "optional", "type" "string", "description" " a uuid that identifies the product, as defined in cos ", "children" \[] }, { "name" "partnerid", "kind" "optional", "type" "string", "description" " a uuid that identifies the partner, as defined in cos ", "children" \[] }, { "name" "cardid", "kind" "optional", "type" "string", "description" " a uuid that identifies the card used ", "children" \[] }, { "name" "cardtoken", "kind" "optional", "type" "string", "description" "a randomly generated string of characters that relates to the consumer's payment card (15 38 alphanumeric characters) ", "children" \[] }, { "name" "network", "kind" "optional", "type" "string", "description" "the network through which the payment is processed (e g visa, mastercard) ", "children" \[] }, { "name" "cardbrand", "kind" "optional", "type" "string", "description" "one of \\"americanexpress\\",\n \\"chinaunionpay\\",\n \\"dankort\\",\n \\"dinersclub\\",\n \\"discover\\",\n \\"hipercard\\",\n \\"jcb\\",\n \\"laser\\",\n \\"maestro\\",\n \\"mastercard\\",\n \\"rupay\\",\n \\"solo\\",\n \\"switch\\",\n \\"visa\\",\n \\"unknown\\"", "children" \[] }, { "name" "panlastfour", "kind" "optional", "type" "string", "description" "the last four digits of the primary account number (card number) ", "children" \[] }, { "name" "issuercountrycode", "kind" "optional", "type" "string", "description" "a string representing the country code of the card issuer ", "children" \[] }, { "name" "retrievalreferenceid", "kind" "optional", "type" "string", "description" "a unique identifier used for retrieving transaction details, often used in disputes or reconciliation ", "children" \[] }, { "name" "reasoncode", "kind" "optional", "type" "string", "description" "a 2 digit code signifying the transaction result (approved or decline) for example, 00 means successful ", "children" \[] }, { "name" "reasondescription", "kind" "optional", "type" "string", "description" "a string describing the transaction result for example, approved ", "children" \[] }, { "name" "tracenumber", "kind" "optional", "type" "string", "description" "a unique number assigned to a transaction from the time it leaves the merchant bank until it arrives at the cardholder bank", "children" \[] }, { "name" "correspondingentity", "kind" "optional", "type" "object", "description" "references information about the corresponding entity for the transaction", "children" \[ { "name" "firstname", "kind" "optional", "type" "string", "description" "first name min 1 character, max 35 characters" }, { "name" "lastname", "kind" "optional", "type" "string", "description" "last name min 1 character, max 35 characters" }, { "name" "externalaccountidentifier", "kind" "optional", "type" "string", "description" "account number to ensure the money movement is routed to the correct destination " }, { "name" "address", "kind" "optional", "type" "object", "description" "address of card holder", "children" \[ { "name" "street1", "kind" "optional", "type" "string", "description" "street address line 1 max length 60" }, { "name" "street2", "kind" "optional", "type" "string", "description" "street address line 2 max length 60" }, { "name" "city", "kind" "optional", "type" "string", "description" "name of the city max length 60" }, { "name" "state", "kind" "optional", "type" "string", "description" "state code 2 characters" }, { "name" "postalcode", "kind" "optional", "type" "string", "description" "max 10 characters" }, { "name" "countrycode", "kind" "optional", "type" "string", "description" "2 letter iso country code" } ] } ] }, { "name" "mcc", "kind" "optional", "type" "string", "description" "merchant category code (mcc) 4 digits that a credit card issuer uses to categorize consumer transactions for their card ", "children" \[] }, { "name" "merchantverificationvalue", "kind" "optional", "type" "string", "description" "a value used to verify the merchant's identity ", "children" \[] }, { "name" "accountnumber", "kind" "optional", "type" "string", "description" "the account number associated with the payment ", "children" \[] }, { "name" "businesstype", "kind" "optional", "type" "string", "description" "business application indicator (bai) a standardized category used to classify the nature of a business \none of \nbb 'business2business', \nfd 'funds disbursement ', \naa 'account2account', \npp 'person2person', \nmt 'money transfer', \ncd 'cash deposit', \nft 'funds transfer', \nwt 'wallet transfer', \ncp 'card bill payment'\nmd 'merchant disbursement'", "children" \[] }, { "name" "purposeofpayment", "kind" "optional", "type" "string", "description" "the reason for the transaction e g payroll needed for international ", "children" \[] }, { "name" "coretransactionid", "kind" "optional", "type" "string", "description" "a uuid that links the payment to the core banking system ", "children" \[] }, { "name" "memopostid", "kind" "optional", "type" "string", "description" "a uuid that identifies the corresponding memo post (a temporary transaction posting) ", "children" \[] }, { "name" "memopostremovedat", "kind" "optional", "type" "string", "description" "when the memo post was removed i e when the temporary hold was released ", "children" \[] }, { "name" "wasrefunded", "kind" "optional", "type" "boolean", "description" "boolean value indicating whether the payment has been refunded ", "children" \[] }, { "name" "refundpaymentid", "kind" "optional", "type" "string", "description" "a uuid that identifies the refund transaction associated with the payment ", "children" \[] }, { "name" "createdat", "kind" "optional", "type" "string", "description" "when the payment was created", "children" \[] }, { "name" "authorizedon", "kind" "optional", "type" "string", "description" "when the payment was authorized by the issuing bank ", "children" \[] }, { "name" "submittedon", "kind" "optional", "type" "string", "description" "when the payment was submitted to the network ", "children" \[] }, { "name" "rejectedat", "kind" "optional", "type" "string", "description" "when the payment was rejected ", "children" \[] }, { "name" "completedat", "kind" "optional", "type" "string", "description" "when the payment was successfully completed ", "children" \[] }, { "name" "failedat", "kind" "optional", "type" "string", "description" "when the payment failed to process ", "children" \[] }, { "name" "limitseligibleon", "kind" "optional", "type" "string", "description" "when the transaction becomes eligible for limit calculations ", "children" \[] }, { "name" "lastmodifiedat", "kind" "optional", "type" "string", "description" "when the payment record was last modified ", "children" \[] } ], "hastryitout" false, "autogeneratedanchorslug" "endpoint v1paymentsid", "legacyhash" "udahehdpcgmtemb uuxwk" }