Sync Payment
api reference send a push or pull sync payment { "name" "endpoint /v1/syncpayments", "method" "post", "url" "https //sandbox crbcos com/cardpayments/v1/syncpayments", "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" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[ { "name" "paymentid", "kind" "optional", "type" "string", "description" "", "" "paymentid" }, { "name" "cardid", "kind" "optional", "type" "string", "description" " a uuid that identifies the card used", "" " a uuid that identifies the card used" }, { "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)", "" "a randomly generated string of characters that relates to the consumer's payment card (15 38 alphanumeric characters)" }, { "name" "accountnumber", "kind" "required", "type" "string", "description" "the account number associated with the payment", "" "the account number associated with the payment" }, { "name" "amount", "kind" "required", "type" "integer", "description" "the amount to be transferred, in cents for example, 10001 = $100 01 ", "children" \[] }, { "name" "paymenttype", "kind" "required", "type" "string", "description" "the type of payment value is either \\"push\\" or \\"pull\\"", "" "required" }, { "name" "correspondingentity", "kind" "required", "type" "object", "description" "", "" "correspondingentity", "children" \[ { "name" "firstname", "kind" "optional", "type" "string", "description" "first name min 1 character, max 35 characters" }, { "name" "lastname", "kind" "required", "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" "required", "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" } ] } ], "schema" \[ { "name" "firstname", "kind" "optional", "type" "string", "description" "first name min 1 character, max 35 characters" }, { "name" "lastname", "kind" "required", "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" "required", "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 ", "" "mcc" }, { "name" "cvv", "kind" "optional", "type" "string", "description" "card verification value, a 3 or 4 digit security code printed on your debit card ", "" "card verification value, a 3 or 4 digit security code printed on your debit card " }, { "name" "clientidentifier", "kind" "optional", "type" "string", "description" "a string that identifies the client associated with the payment max 50 characters", "" "a string that identifies the client associated with the payment max 50 characters" }, { "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'", "" "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'" }, { "name" "purposeofpayment", "kind" "optional", "type" "string", "description" "the reason for the transaction e g payroll needed for international ", "" "the reason for the transaction e g payroll needed for international " } ], "formdataparameters" \[] }, "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" }, "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" " 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" "source", "kind" "optional", "type" "string", "description" "how the payment was initiated e g api ", "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" "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 who initiated the transaction, linking to an originatorinfo object ", "children" \[ { "name" "firstname", "kind" "optional", "type" "string", "description" "" }, { "name" "lastname", "kind" "optional", "type" "string", "description" "" }, { "name" "externalaccountidentifier", "kind" "optional", "type" "string", "description" "" }, { "name" "address", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "street1", "kind" "optional", "type" "string", "description" "street1" }, { "name" "street2", "kind" "optional", "type" "string", "description" "" }, { "name" "city", "kind" "optional", "type" "string", "description" "" }, { "name" "state", "kind" "optional", "type" "string", "description" "" }, { "name" "postalcode", "kind" "optional", "type" "string", "description" "" }, { "name" "countrycode", "kind" "optional", "type" "string", "description" "" } ] } ] }, { "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" "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 v1syncpayments", "legacyhash" "ahhh 9zymt u1g3bs7rdj" }