REST API | Visa Platform Connect

REST Example: Authorizing a JPO Bonus Payment

This example shows an authorization request for a card-not-present bonus payment that uses Japanese payment options (JPO). The request specifies a JPO one-time bonus payment in order to differentiate the transaction from a JPO single payment.
Endpoint:
  • Production:
    POST
    https://api.cybersource.com
    /pts/v2/payments
  • Test:
    POST
    https://apitest.cybersource.com
    /pts/v2/payments
Request
{ "orderInformation": { "billTo": { "country": "US", "lastName": "Kim", "address1": "201 S. Division St.", "postalCode": "48104-2201", "locality": "Ann Arbor", "administrativeArea": "MI", "firstName": "Kyong-Jin", "email": "
test@cybs.com
" }, "amountDetails": { "totalAmount": "100.00", "currency": "jpy" } }, "paymentInformation": { "card": { "expirationYear": "2031", "number": "4111111111111111", "expirationMonth": "12", "type": "001" } }, "processingInformation": { "japanPaymentOptions": { "businessName": "我社", "businessNameAlphaNumeric": "OurStore", "businessNameKatakana": "わが社の場合", "paymentMethod": "21" } } }
Response to a Successful Request
{ "_links" : { "authReversal" : { "method" : "POST", "href" : "/pts/v2/payments/6843556498736135003059/reversals" }, "self" : { "method" : "GET", "href" : "/pts/v2/payments/6843556498736135003059" }, "capture" : { "method" : "POST", "href" : "/pts/v2/payments/6843556498736135003059/captures" } }, "clientReferenceInformation" : { "code" : "RTS-Auth" }, "id" : "6843556498736135003059", "orderInformation" : { "invoiceDetails" : { "salesSlipNumber" : "56307" }, "amountDetails" : { "authorizedAmount" : "100", "currency" : "jpy" } }, "paymentAccountInformation" : { "card" : { "type" : "001" } }, "paymentInformation" : { "tokenizedCard" : { "type" : "001" }, "card" : { "type" : "001" } }, "processorInformation" : { "salesSlipNumber" : "56307", "approvalCode" : "123456", "cardVerification" : { "resultCode" : "3" }, "responseCategoryCode" : "000", "forwardedAcquirerCode" : "Sumitomo", "avs" : { "code" : "2" } }, "reconciliationId" : "0020230518053410000000000001", "status" : "AUTHORIZED", "submitTimeUtc" : "2023-05-17T20:34:10Z" }