Skip to main content

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.

Required scope: accounting:write

Grant 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​

OK

Response Headers
    Content-Type