{
"order": {
"amount": 10500,
"invoice_number": "INV-{{$timestamp}}",
"currency": "IDR",
"session_id": "SU5WFDferd561dfasfasdfae123c",
"callback_url": "https://doku.com/",
"line_items": [
{
"name": "DOKU T-Shirt",
"price": 10500,
"quantity" : 1
}
]
},
"payment": {
"payment_due_date": 60
},
"customer": {
"name": "Anton Budiman",
"email": "anton@doku.com",
"phone": "+6285694566147",
"address": "Plaza Asia Office Park Unit 3",
"country": "ID"
}
}
curl --location --request POST '/checkout/v1/payment' \
--header 'Client-Id: MCH-0001-10791114622547' \
--header 'Request-Id: fdb69f47-96da-499d-acec-7cdc318ab2fe' \
--header 'Request-Timestamp: 2020-08-11T08:45:42Z' \
--header 'Signature: HMACSHA256=1jap2tpgvWt83tG4J7IhEwUrwmMt71OaIk0oL0e6sPM=' \
--header 'Content-Type: application/json' \
--data-raw '{
"order": {
"amount": 10500,
"invoice_number": "INV-{{$timestamp}}",
"currency": "IDR",
"session_id": "SU5WFDferd561dfasfasdfae123c",
"callback_url": "https://doku.com/",
"line_items": [
{
"name": "DOKU T-Shirt",
"price": 10500,
"quantity" : 1
}
]
},
"payment": {
"payment_due_date": 60
},
"customer": {
"name": "Anton Budiman",
"email": "anton@doku.com",
"phone": "+6285694566147",
"address": "Plaza Asia Office Park Unit 3",
"country": "ID"
}
}'
{
"order": {
"amount": 10500,
"invoice_number": "INV-{{$timestamp}}",
"currency": "IDR",
"session_id": "SU5WFDferd561dfasfasdfae123c",
"callback_url": "https://doku.com/",
"line_items": [
{
"name": "DOKU T-Shirt",
"price": 10500,
"quantity" : 1
}
]
},
"payment": {
"payment_due_date": 60
},
"customer": {
"name": "Anton Budiman",
"email": "anton@doku.com",
"phone": "+6285694566147",
"address": "Plaza Asia Office Park Unit 3",
"country": "ID"
}
}