Example: Requesting an DOKU Refund Using the REST API
Light
Dark
Request
1234567891011121314151617181920212223{ "orderInformation": { "amountDetails": { "totalAmount": "1", "currency": "IDR" } }, "clientReferenceInformation": { "code": "sale1077", "originalTransactionId": "1169585326" }, "paymentInformation": { "paymentType": { "name": "bankTransfer", "method": { "name": "doku" } } } }
Response to a Successful Request
123456789101112{ "clientReferenceInformation": { "transactionid": "sale1077" }, "processorInformation": { "transactionId": "144051805" }, "message": "Successful", "status": "REFUNDED", "id": "6523329019126746031908", "submitTimeUtc": "2022-06-06T14:26:35Z" }