REST Example: Authorizing a JPO Revolving Payment
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": "わが社の場合", "firstBusinessMonth": "05", "installments": "12", "paymentMethod": "80" } } }
Response to a Successful Request
{ "_links" : { "authReversal" : { "method" : "POST", "href" : "/pts/v2/payments/6843585327946622203059/reversals" }, "self" : { "method" : "GET", "href" : "/pts/v2/payments/6843585327946622203059" }, "capture" : { "method" : "POST", "href" : "/pts/v2/payments/6843585327946622203059/captures" } }, "clientReferenceInformation" : { "code" : "RTS-Auth" }, "id" : "6843585327946622203059", "orderInformation" : { "invoiceDetails" : { "salesSlipNumber" : "56311" }, "amountDetails" : { "authorizedAmount" : "100", "currency" : "jpy" } }, "paymentAccountInformation" : { "card" : { "type" : "001" } }, "paymentInformation" : { "tokenizedCard" : { "type" : "001" }, "card" : { "type" : "001" } }, "processorInformation" : { "salesSlipNumber" : "56311", "approvalCode" : "123456", "cardVerification" : { "resultCode" : "3" }, "responseCategoryCode" : "000", "forwardedAcquirerCode" : "Sumitomo", "avs" : { "code" : "2" } }, "reconciliationId" : "0020230518062213000000000001", "status" : "AUTHORIZED", "submitTimeUtc" : "2023-05-17T21:22:13Z" }