Header Parameter | Type | Description |
---|---|---|
Client-Id | string | The Client ID you retrieved from Jokul Back OfficeMANDATORY |
Request-Id | string | Random string that must unique per request for idempotencyMANDATORY ALPHA NUMERIC 40 chars |
Request-Timestamp | string | Request time in ISO8601 format with UTC + 0MANDATORY |
Signature | string | Security parameter to ensure the request's authenticity. Learn more how to generate Signature hereMANDATORY |
{
"order": {
"invoice_number":"INV-{{$timestamp}}",
"line_items": [
{
"name": "DOKU T-Shirt Merah",
"price": 30000,
"quantity": 2
},
{
"name": "DOKU T-Shirt Biru",
"price": 30000,
"quantity": 1
}
],
"amount": 90000,
"callback_url": "https://doku.com",
"auto_redirect": false,
"session_id": "0000231223"
},
"customer": {
"id":"W7rbKhPYh76VSHYwHRaGDIbBhgTebgAoWtX",
"name":"Anton Budiman",
"email":"anton@doku.com",
"phone":"+6281287458232",
"address":"Jakarta, Menara Mulia Lt 8",
"country":"ID"
},
"override_configuration": {
"themes": {
"language": "ID",
"background_color": "",
"font_color": "",
"button_background_color": "",
"button_font_color": ""
}
}
}
curl --location --request POST '/credit-card/v1/cancellation/credit-card/refund' \
--header 'Client-Id: {{client_id}}' \
--header 'Request-Id: {{request_id}}' \
--header 'Request-Timestamp: {{request_timestamp}}' \
--header 'Signature: {{signature}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"order": {
"invoice_number":"INV-{{$timestamp}}",
"line_items": [
{
"name": "DOKU T-Shirt Merah",
"price": 30000,
"quantity": 2
},
{
"name": "DOKU T-Shirt Biru",
"price": 30000,
"quantity": 1
}
],
"amount": 90000,
"callback_url": "https://doku.com",
"auto_redirect": false,
"session_id": "0000231223"
},
"customer": {
"id":"W7rbKhPYh76VSHYwHRaGDIbBhgTebgAoWtX",
"name":"Anton Budiman",
"email":"anton@doku.com",
"phone":"+6281287458232",
"address":"Jakarta, Menara Mulia Lt 8",
"country":"ID"
},
"override_configuration": {
"themes": {
"language": "ID",
"background_color": "",
"font_color": "",
"button_background_color": "",
"button_font_color": ""
}
}
}'
{}