Payments
...
Payments APIs
Payments by ID
{ "name" "endpoint /v1/payments/{id}", "method" "get", "url" "https //sandbox crbcos com/cardpayments/v1/payments/{id}", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "m2ue7qz6dvwcdz36gkppo", "language" "curl", "code" "", "customlabel" "" }, { "id" "veegmwka clezxjzmmbuk", "language" "nodejs", "code" "", "customlabel" "" }, { "id" "bp ijxqk 9xj ycwnygnx", "language" "python", "code" "i", "customlabel" "" }, { "id" "xu3xbbwt a y7mcgl0s3", "language" "ruby", "code" "", "customlabel" "" }, { "id" "yes xnvear36pmlaxlh p", "language" "go", "code" "package main\n\nimport (\n \\"fmt\\"\n \\"strings\\"\n \\"net/http\"\n \\"io\\"\n)\n\nfunc main() {\n\n url = \\"https //pushtopaystaging crbnj net/api/transaction\\"\n method = \\"post\\"\n\n payload = strings newreader(`{`+\\"\n\\"+`\n \\"requestid\\" \\"e8706349 a373 44c7 8dfc 8c4e4f13a001\\",`+\\"\n\\"+`\n \\"cardtoken\\" \\"a5d4b6aa33a64f718a49b18fe0cdc6af000000\\",`+\\"\n\\"+`\n \\"amount\\" 200,`+\\"\n\\"+`\n \\"sourcesendername\\" \\"my company\\"`+\\"\n\\"+`\n`+\\"\n\\"+`\n}`)\n\n client = \&http client {\n }\n req, err = http newrequest(method, url, payload)\n\n if err != nil {\n fmt println(err)\n return\n }\n req header add(\\"content type\\", \\"application/json\\")\n req header add(\\"authorization\\", \\"bearer token\\")\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}", "customlabel" "" } ], "selectedlanguageid" "m2ue7qz6dvwcdz36gkppo" }, "results" { "languages" \[ { "id" "qalrhbp njcq9nhtl7r3x", "language" "200", "code" "", "customlabel" "" } ], "selectedlanguageid" "qalrhbp njcq9nhtl7r3x" }, "request" { "pathparameters" \[ { "name" "id", "kind" "required", "type" "string", "description" "", "" "required" } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "response" \[ { "name" "id", "kind" "optional", "type" "string", "description" "", "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" " a string that identifies the client associated with the payment ", "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" "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" "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" "resondescription", "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" "originator", "kind" "optional", "type" "object", "description" "references information about who initiated the transaction, linking to an originatorinfo object ", "children" \[] }, { "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" "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" \[] } ] }