Skip to main content
POST
/
orders#partners
Create direct order on behalf of a store
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"
      }
    }
  }
}

Authorizations

X-API-Key
string
header
required

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_KEY
X-API-Secret
string
header
required

Partner 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
string
header
required

Merchant key for store identification. Required for all API requests.

merchant-key: YOUR_MERCHANT_KEY

Body

application/json
amount
number
required

Order amount. Must be greater than 0.

Required range: x >= 0.01
Example:

50000

description
string
required

Order description displayed to the buyer during checkout.

Required string length: 1 - 255
Example:

"Premium subscription - Monthly"

payment_gateway
object
required
currency
string

ISO 4217 currency code. Defaults to store currency if omitted.

Required string length: 3
Pattern: ^[A-Z]{3}$
Example:

"COP"

shopper
object
order_key
string

Your external order reference. Use this to correlate Wava orders with your system.

Maximum string length: 100
Example:

"order-12345"

URL to redirect buyer after successful payment.

Example:

"https://mystore.com/success"

URL to redirect buyer if payment is cancelled.

Example:

"https://mystore.com/cancel"

URL to redirect buyer if payment fails.

Example:

"https://mystore.com/error"

device_key
string

Device identifier for session tracking.

Maximum string length: 100
Example:

"device-12345"

Response

Order created on behalf of store

data
object