Create Authorize.net Payment Link
POST/api/authorize-net/payment-links
Creates an Authorize.net payment link for a sales order balance or one of its payment requests. Nothing is called at Authorize.net: the customer pays on your own SKU.io page by card or eCheck.
accounting:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token with the Manage payments permission.
Body
sales_order_id(integer) — the order; required unlesssales_payment_request_idis sent.sales_payment_request_id(integer, optional) — an open payment request of the order to collect. Without it a new payment request is raised for the link amount.integration_instance_id(integer, optional) — the Authorize.net account; defaults to the default card processor account, else the first connected one.amount(number, required, > 0) — at most the order's amount due (and what the payment request can still collect).allowed_methods(array, required) —cardand/orecheck. eCheck needs eCheck turned on for the account and a USD order.expires_in_days(integer 1–30, optional) — defaults to the Payment Collection setting.note(string ≤ 500, optional) — shown on the pay page.
Card surcharge: the link records the card surcharge rate in force when it is created (surcharge_percentage). When the customer pays by card on the pay page, the surcharge is the current rate but never more than that snapshot: a later rate increase doesn't reach links already sent, while a cut or switching surcharging off does. eCheck is never surcharged.
Rules: draft and cancelled orders can't take links; a payment request carries one open link at a time; the account must have a Public Client Key and accept the order currency.
Returns 201 with the link, or 422 with field errors.
Request
Responses
- 201
- 401
- 403
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.