Execute an after-order payment (mobile API)
pay_after_orderSettle an unpaid mobile-API order after checkout by providing the order ID, invoice number, payment method, and a one-time confirmation token.
Instructions
Execute an after-order payment on an unpaid mobile-API order (AfterOrderRequestBody: order id, invoice number, payment id from after_order_payments, optional stored-card id and device fingerprint). High-impact, money movement: requires a one-time token from prepare_mutation (action=after_order_payment) and explicit user confirmation. Do not use for legacy web WCF orders — that is web_pay_after_order. Requires a loaded mobile API access token — check account_status first; if none is loaded, run auth_start, have the user complete the browser sign-in, then auth_exchange with the returned code and state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | No | Stored-card id to pay with, if the user has one on file. | |
| order_id | Yes | The unpaid order id (from `order`). | |
| payment_id | Yes | Payment method id from `after_order_payments`. | |
| invoice_number | Yes | Invoice number for the payment (from the order detail). | |
| confirmation_token | Yes | One-time token from `prepare_mutation` prepared with the matching action. | |
| device_fingerprint | No | Device fingerprint expected by the payment gateway, if known. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| err | No | ||
| msg | No | ||
| data | No |