On This Page
Example: Requesting an Indonesia Banks Sale Using the REST API
Request
{ "clientReferenceInformation": { "code": "sale1077" }, "orderInformation": { "amountDetails": { "totalAmount": "1000000", "currency": "IDR", "taxAmount": "5", "surcharge": { "amount": "1200" } }, "billTo": { "firstName": "Jane", "lastName": "abc", "country": "ID", "address1": "xyz street 13 14", "phoneNumber": "12628123456", "email": "[email protected]" }, "shipTo": { "country": "ID", "address1": "Sudirman", "address2" :"test", "locality": "Jakarta", "postalCode": "12190" }, "lineItems": [ { "productName": "mobile", "quantity": "9", "unitPrice": "32.4", "totalAmount": "70000" }, { "productName": "table", "quantity": "9", "unitPrice": "32.4", "totalAmount": "30000" } ] }, "paymentInformation": { "paymentType": { "name": "bankTransfer", "method": { "name": "indonesiaBank", "type":"bankMandiri" } }, "customer": { "customerid": "1234" } }, "merchantInformation": { "successUrl": "https://www.example.org/feedback.php", "merchantDescriptor": { "name": "test-merchant-descriptor" } }, "recipientInformation": { "beneficiaryAddress": "13735 SE 184th PL RN 98058", "beneficiaryId": "ben_id", "beneficiaryName": "John Doe" }, "deviceInformation": { "ipAddress": "127.0.0.1" }, "buyerInformation": { "personalIdentification": [ { "id": "personal_Identification" } ], "merchantCustomerId": "143456789700" }, "consumerAuthenticationInformation": { "customerCardAlias": "hishriva" } ] } } } }
Response to a Successful Request
{ "processorInformation": { "transactionId": "1169545123", "rawStatus": "PENDING", "paymentUrl": "https://r2.paygate.de/doku/S1150/I?tx=1169545123&rs=VfcxWb4wfxeZoayPogIz9cGE7LAzU33j&cs=06f532201a8075d3ba3d7e4abd3fe02974f6a21fd2f38dabffdd122187a8c5f4" }, "message": "Successful", "status": "PENDING", "id": "6523329019126743603320", "submitTimeUtc": "2022-06-06T13:42:08Z" }