Payment Links API
Create payment links at scale with the API and embed it into your sales processes.
Link the Payment Links API API to your internal systems for a payment link to be generated every time a new order comes through, a new invoice gets sent out, or whenever you email a new customer. You can automatically create links with the API that support the full feature set as the webapp version.
Enjoy the same benefit of accepting payments via 30+ payments methods in any currency from anywhere in the world, as well as top tier fraud protection and 3D secure authentication.
For more information on how to create payment links with the webapp, refer to the Payment Links page .
When customers complete a payment on a payment link, Airwallex sends a payment_intent.succeeded webhook that you can use for subsequent fulfillment and reconciliation purposes. See Notifications and Webhooks for more information.
In general, all API calls can be failed and in this case, merchants will get a specific HTTP status and error code and error message in the body.
|Error code||Error description|
|OTHER_ERROR||some other errors, it should contain trace-id in the message for debug|
|INPUT_MISSING||requested input field is missing|
|INPUT_TOO_LONG||requested input field is too long|
|CODE_BAD_SYMBOLS||requested code had unsupported symbols|
|CODE_NOT_FOUND||requested code not found|
|CODE_NOT_UNIQUE||requested code not unique in the system|
|EMAIL_NOT_VALID||requested shopper email is not valid or is too long|
|BAD_EXPIRY||expiry date in the past|
|ACTIVATION_FAILED||can't activate link (current status not DEACTIVATED)|
|DEACTIVATION_FAILED||can't deactivate link (current status not ACTIVE)|
|INTENT_CREATED||intent already created for one-time links|
|LINK_FORBIDDEN||link belongs to another merchant|
|LINK_NOT_FOUND||link not found|
|LINK_NOT_ACTIVE||link not active|
|CONFIG_NOT_FOUND||merchant config not found|
|CORE_FAILED||payment core failed to create intent|
|CONFIG_CENTER_FAILED||config centre failed to provide merchant available currency|
|AMOUNT_WRONG||requested amount is wrong (less than min or other currency)|
|MERCHANT_NOT_ENABLED_PA||merchant config is not full in config-centre or no active PMPs configured|
|HEADER_MISSING||missing required header|
|ARGUMENT_MISMATCH||failed to deserialize JSON from the body|