Example: Requesting an Indomaret Sale Using the REST API

Light Dark
Request
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
{"clientReferenceInformation": { "code": "sale1077" }, "orderInformation": { "amountDetails": { "totalAmount": "1000000", "currency": "IDR", "taxAmount": "5", "surcharge": { "amount": 1200 } }, "billTo": { "firstName": "John", "lastName": "abc", "country": "ID", "address1": "xyz street 13 14", "phoneNumber": "12628123456", "email": "abc@email.com" }, "shipTo": { "country": "ID", "address1": "Sudirman", "address2" :"test", "locality": "Jakarta", "postalCode": "12190" } }, "paymentInformation": { "paymentType": { "name": "offline", "method": { "name": "indomaret", "type":"alfaVa" } }, "customer": { "customerid": "abcd" } }, "merchantInformation": { "successUrl": "https://www.example.org/feedback.php", "merchantDescriptor": { "name": "test-merchant-descriptor" } }, "deviceInformation": { "ipAddress": "127.0.0.1" }, "buyerInformation": { "personalIdentification": [ { "id": "personal_Identification" } ], "merchantCustomerId": "143456789700" }, ] } } }}
Response to a Successful Request
12345678910
{"processorInformation": { "transactionId": "1166616607", "rawStatus": "PENDING", "paymentUrl": "https%3A%2F%2Fr2%2Epaygate%2Ede%2Fdoku%2FS1150%2FI%3Ftx%3D1166616607%26rs%3DE85JYxrmL2kbtET79vRYCfYijdhrQLbe%26cs%3D27a86537adeed14853ca13c56d3140fafa9c9d3b62cdc192cded9964348bcebd" }, "reconciliationId": "sale1077", "message": "Successful", "status": "PENDING", "id": "65233290191267436032944", "submitTimeUtc": "2022-06-03T11:06:01Z"}