Skip to main content
POST
Charge a Payment Method

Charge a Payment Method

Creates an order from the line items you send and charges the stored card for it. The shopper is not involved. Eligibility is checked for these items at the time of the charge, the same way as for a checkout.

Endpoint

Authentication

Idempotency-Key is required and must be 22 to 255 characters. Use one key per order. Sending the same key again returns the first result and never charges twice.

Request Body

All monetary amounts are integers in cents (e.g., 4995 = $49.95).

Parameters

Response

201 Created. The order, with the payment method that was charged.
Gale also sends the order.completed webhook for this order.

Declined charges

A decline returns 422 with PAYMENT_METHOD_010. No money is taken. The order stays open and checkout_url is its hosted checkout page, where the shopper can pay with another card. Gale also sends payment.failed. Gale does not retry a declined charge.

Errors