Create Payment Link
create_paymentCreates an Airwallex payment link for a booking and returns a URL the traveller opens to pay securely. Never ask the user for card numbers or CVCs in chat — card details are only ever entered on the payment page. Requires a valid Druk Asia API key (sent automatically via the x-api-key header).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"online_booking_id": "<online_booking_id>",
"booking_ref_code": "<booking_ref_code>",
"amount": "<amount>"
},
"name": "create_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Payment amount in USD. | |
| booking_ref_code | Yes | Booking reference code, e.g. DA-26-X7K2PQ. | |
| online_booking_id | Yes | OnlineBookings.Id (booking_id from create_booking). |