Skip to main content

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.

Required scope: accounting:write

Grant 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 unless sales_payment_request_id is 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) — card and/or echeck. 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​

Created

Response Headers
    Content-Type