curl --request POST \
--url 'https://api.wava.co/v1/orders#partners' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--header 'merchant-key: <api-key>' \
--data '
{
"amount": 50000,
"description": "Premium subscription - Monthly",
"payment_gateway": {
"id_payment_gateway": 1
},
"currency": "COP",
"shopper": {
"email": "juan.perez@email.com",
"phone_number": "+573001234567",
"country": "CO",
"id_number": "12345678",
"id_type": 1,
"first_name": "Juan",
"last_name": "Pérez"
},
"order_key": "order-12345",
"redirect_link": "https://mystore.com/success",
"redirect_link_cancel": "https://mystore.com/cancel",
"redirect_link_failure": "https://mystore.com/error",
"device_key": "device-12345"
}
'{
"data": {
"id_order": 12345,
"status": "processing",
"daviplata_token_required": true,
"payment_gateway": {
"nequi": {
"phone_number": "****567"
}
}
}
}Partners can create and process orders for stores they have onboarded. The request body is identical to the standard Create Direct Order endpoint. The difference is that the partner includes their X-API-Key and X-API-Secret (for two-factor authentication) plus the store’s merchant-key in the request headers.
All payment gateways available to the store can be used.
curl --request POST \
--url 'https://api.wava.co/v1/orders#partners' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--header 'merchant-key: <api-key>' \
--data '
{
"amount": 50000,
"description": "Premium subscription - Monthly",
"payment_gateway": {
"id_payment_gateway": 1
},
"currency": "COP",
"shopper": {
"email": "juan.perez@email.com",
"phone_number": "+573001234567",
"country": "CO",
"id_number": "12345678",
"id_type": 1,
"first_name": "Juan",
"last_name": "Pérez"
},
"order_key": "order-12345",
"redirect_link": "https://mystore.com/success",
"redirect_link_cancel": "https://mystore.com/cancel",
"redirect_link_failure": "https://mystore.com/error",
"device_key": "device-12345"
}
'{
"data": {
"id_order": 12345,
"status": "processing",
"daviplata_token_required": true,
"payment_gateway": {
"nequi": {
"phone_number": "****567"
}
}
}
}Partner API key for platform partners. Must be combined with X-API-Secret header for partner operations. Both headers are required for two-factor authentication.
X-API-Key: YOUR_PARTNER_API_KEY
X-API-Secret: YOUR_PARTNER_SECRET_KEY
merchant-key: STORE_MERCHANT_KEYPartner API secret for platform partners. Must be combined with X-API-Key header for partner operations. Both headers are required for two-factor authentication.
Merchant key for store identification. Required for all API requests.
merchant-key: YOUR_MERCHANT_KEYOrder amount. Must be greater than 0.
x >= 0.0150000
Order description displayed to the buyer during checkout.
1 - 255"Premium subscription - Monthly"
Show child attributes
ISO 4217 currency code. Defaults to store currency if omitted.
3^[A-Z]{3}$"COP"
Show child attributes
Your external order reference. Use this to correlate Wava orders with your system.
100"order-12345"
URL to redirect buyer after successful payment.
"https://mystore.com/success"
URL to redirect buyer if payment is cancelled.
"https://mystore.com/cancel"
URL to redirect buyer if payment fails.
"https://mystore.com/error"
Device identifier for session tracking.
100"device-12345"
Order created on behalf of store
Show child attributes