{
"channel": {
"id": "DIRECT_DEBIT"
},
"acquirer": {
"id": "BRI"
},
"customer": {
"id": "CUST-123123123",
"name": "Anton Budiman"
},
"order": {
"invoice_number": "INV-{{$timestamp}}",
"line_items": [
{
"name": "DOKU T-Shirt Black",
"price": 100000,
"quantity" : 1
},
{
"name": "DOKU T-Shirt Red",
"price": 150000,
"quantity" : 2
}
],
"amount": 400000
},
"payment": {
"token_id": "TOK_WMBD4E7ETDYVUEHNK4NEZFQP2WVQFCTQ::062115:41:36.718",
"otp_expiration_timestamp": 360010
}
}
curl --location --request POST '/direct-debit/v1/payment-recurring' \
--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 '{
"channel": {
"id": "DIRECT_DEBIT"
},
"acquirer": {
"id": "BRI"
},
"customer": {
"id": "CUST-123123123",
"name": "Anton Budiman"
},
"order": {
"invoice_number": "INV-{{$timestamp}}",
"line_items": [
{
"name": "DOKU T-Shirt Black",
"price": 100000,
"quantity" : 1
},
{
"name": "DOKU T-Shirt Red",
"price": 150000,
"quantity" : 2
}
],
"amount": 400000
},
"payment": {
"token_id": "TOK_WMBD4E7ETDYVUEHNK4NEZFQP2WVQFCTQ::062115:41:36.718",
"otp_expiration_timestamp": 360010
}
}'
{}