curl --request POST \
--url https://api.wava.co/v1/orders/daviplata/{orderId} \
--header 'Content-Type: application/json' \
--header 'merchant-key: <api-key>' \
--data '
{
"daviplata_otp": "123456"
}
'{
"data": {
"id_order": 12345,
"status": "confirmed",
"payment_method": {
"gateway": "daviplata",
"id_number": "****678",
"status": "completed",
"confirmation_number": "DAVI123456789"
}
}
}Complete a Daviplata payment by submitting the OTP that the buyer received via SMS.
Only used for Daviplata orders where the create order response includes daviplata_token_required: true.
Development testing OTPs:
123456 — Always succeeds000000 — Always succeeds111111 — Always succeedscurl --request POST \
--url https://api.wava.co/v1/orders/daviplata/{orderId} \
--header 'Content-Type: application/json' \
--header 'merchant-key: <api-key>' \
--data '
{
"daviplata_otp": "123456"
}
'{
"data": {
"id_order": 12345,
"status": "confirmed",
"payment_method": {
"gateway": "daviplata",
"id_number": "****678",
"status": "completed",
"confirmation_number": "DAVI123456789"
}
}
}Merchant key for store identification. Required for all API requests.
merchant-key: YOUR_MERCHANT_KEYOrder ID requiring OTP verification.
x >= 112345
6-digit OTP received by the buyer via SMS from Daviplata.
^\d{6}$"123456"
Payment completed successfully
Show child attributes