Pay for an order using one or more approved payments, or settle an order with a total of 0.
0
Open in API Reference
The ID of the order being paid.
A value you specify that uniquely identifies this request among requests you've sent. If you're unsure whether a particular payment request was completed successfully, you can reattempt it with the same idempotency key without worrying about duplicate payments.
See Idempotency for more information.
The version of the order being paid. If not supplied, the latest version will be paid.
The IDs of the payments to collect. The payment total must match the order total.
curl https://connect.squareupsandbox.com/v2/orders/{order_id}/pay \ -X POST \ -H 'Square-Version: 2021-03-17' \ -H 'Authorization: Bearer ACCESS_TOKEN' \ -H 'Content-Type: application/json'
// No response received yet.