Example: Requesting an GrabPay Sale Using the REST API

Request
{ "clientReferenceInformation": { "code": "sale1077" }, "orderInformation": { "amountDetails": { "totalAmount": "1055", "currency": "SGD", "taxAmount": "9080" }, "billTo":{ "country":"SG", "firstName":"Jane", "lastName":"Doe", "email":"[email protected]" } }, "paymentInformation": { "paymentType": { "name": "eWallet", "method": { "name": "grabpayotp" } } }, "merchantInformation": { "successUrl": "https://www.example.org/feedback.php", "merchantDescriptor": { "name": "DynDescriptor" } } }
Response to a Successful Request
{ "processorInformation": { "transactionId": "829098179", "rawStatus": "PENDING", "paymentUrl": "https%3A%2F%2Fr2%2Epaygate%2Ede%2Fgrabpay%2FT1108%2FI%3Ftx%3D829098179%26rs%3DAq1IRTX1j5EavdyqFjbyNmwTyC0DS3Bj%26cs%3D4cc542fcaf38c695bfd2b039f086c8a921a819848bdc244c301ac539c43bffd4" }, "reconciliationId": "sale1077", "message": "Successful", "status": "PENDING", "id": "65233290191267436032914", "submitTimeUtc": "2022-06-02T14:56:37Z" }