Pay an order
pay_orderPay an eVerbary order using prepaid balance, saved card, or team invoice; first preview amount and method, then confirm to charge.
Instructions
Pay an order with the account's own means: its team's prepaid balance, its saved card (off-session; card numbers are never accepted), or - for teams with billing terms - its periodic invoice. Call with confirm=false first, show the user the amount and method, then confirm=true with the confirmation_id. If the card needs the cardholder's approval (3-D Secure) nothing is charged and a payment link is returned. Limited per order and per day for this key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | prepaid_balance: the team's prepaid balance. card_on_file: the account's primary saved card, charged off-session. on_account: teams with billing terms - the order goes on the team's periodic invoice, nothing is charged now. | |
| confirm | No | false: show what would be charged and get a confirmation_id. true: charge it. | |
| order_number | Yes | The eVerbary order number, e.g. 43392. | |
| confirmation_id | No | Required with confirm=true: the confirmation_id from the confirm=false call (valid 15 minutes). Retrying with it never charges twice. |