Example: Requesting an DOKU Refund Using the REST API

Light Dark
Request
12345678910111213141516171819
{"orderInformation": { "amountDetails": { "totalAmount": "1", "currency": "IDR" } }, "clientReferenceInformation": { "code": "sale1077", "originalTransactionId": "1169585326" }, "paymentInformation": { "paymentType": { "name": "bankTransfer", "method": { "name": "doku" } } }}
Response to a Successful Request
12345678910
{"clientReferenceInformation": { "transactionid": "sale1077" }, "processorInformation": { "transactionId": "144051805" }, "message": "Successful", "status": "REFUNDED", "id": "6523329019126746031908", "submitTimeUtc": "2022-06-06T14:26:35Z"}