Capture Authorize.net Authorization
POST/api/authorize-net/transactions/:id/capture
Capture an open Authorize.net authorization and record the payment on its sales order. Authorize.net allows one capture per authorization: capturing less than the authorization releases the rest of the hold. The card surcharge share of the captured amount is booked on the order.
accounting:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token (PAT).
Requires permission: sales_orders.manage_payments
Request body fields:
amount(number, nullable, > 0, max 99999999) — how much to capture, at most the authorized amount. Omitted: the smaller of the authorization and what the order still owes.
Response: data is the (now captured) authorization; meta has capture (the capture transaction), payment (the recorded payment), amount and surcharge_amount.
Errors: 404 unknown transaction; 422 when it isn't an open authorization, the amount is above the authorization, nothing is due on the order, the authorization expired ("charge the card again"), Authorize.net declined the capture, or the account is disconnected.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
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.
Not Found
Response Headers
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.