curl --request POST \
--url https://api.wava.co/v1/links \
--header 'Content-Type: application/json' \
--header 'merchant-key: <api-key>' \
--data '
{
"amount": 50000,
"description": "Invoice #1234 - Web design services",
"currency": "COP",
"order_key": "inv-1234",
"redirect_link": "https://mystore.com/thanks",
"redirect_link_cancel": "https://mystore.com/cancelled",
"redirect_link_failure": "https://mystore.com/error"
}
'{
"data": {
"payment_link_id": 5678,
"payment_url": "https://checkout.wava.co/aBcDeFgH",
"hash": "aBcDeFgH",
"expires_at": "2025-03-15T23:59:59.000Z"
}
}Create a shareable payment link that redirects buyers to a hosted Wava checkout page. The buyer selects their preferred payment method and completes the transaction on the hosted page.
Standard link: Include the amount field to create a link with a fixed payment amount.
Dynamic link: Omit the amount field to create a link where the buyer enters the amount before paying. Useful for donations, tips, or variable-price scenarios.
The returned payment_url can be shared via email, messaging, social media, or embedded in your website.
curl --request POST \
--url https://api.wava.co/v1/links \
--header 'Content-Type: application/json' \
--header 'merchant-key: <api-key>' \
--data '
{
"amount": 50000,
"description": "Invoice #1234 - Web design services",
"currency": "COP",
"order_key": "inv-1234",
"redirect_link": "https://mystore.com/thanks",
"redirect_link_cancel": "https://mystore.com/cancelled",
"redirect_link_failure": "https://mystore.com/error"
}
'{
"data": {
"payment_link_id": 5678,
"payment_url": "https://checkout.wava.co/aBcDeFgH",
"hash": "aBcDeFgH",
"expires_at": "2025-03-15T23:59:59.000Z"
}
}Merchant key for store identification. Required for all API requests.
merchant-key: YOUR_MERCHANT_KEYPayment description displayed to the buyer.
1 - 255"Invoice #1234 - Web design services"
Payment amount. Omit this field to create a dynamic link where the buyer enters the amount.
x >= 0.0150000
ISO 4217 currency code. Defaults to store currency.
^[A-Z]{3}$"COP"
Your external reference for this payment link.
100"inv-1234"
URL to redirect buyer after successful payment.
"https://mystore.com/thanks"
URL to redirect buyer if payment is cancelled.
"https://mystore.com/cancelled"
URL to redirect buyer if payment fails.
"https://mystore.com/error"
Payment link created successfully
Show child attributes