{
"order": {
"invoice_number": "INV-{{$timestamp}}",
"amount": 150000
},
"online_to_offline_info": {
"expired_time": 60,
"reusable_status": false,
"info": "Online Shoping Store"
},
"customer": {
"name": "Taufik Ismail",
"email": "taufik@doku.com"
},
"alfa_info": {
"receipt": {
"footer_message": "Call Center 021 555-0525"
}
}
}
curl --location --request POST '/alfa-online-to-offline/v2/payment-code' \
--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}}",
"amount": 150000
},
"online_to_offline_info": {
"expired_time": 60,
"reusable_status": false,
"info": "Online Shoping Store"
},
"customer": {
"name": "Taufik Ismail",
"email": "taufik@doku.com"
},
"alfa_info": {
"receipt": {
"footer_message": "Call Center 021 555-0525"
}
}
}'
{}