Create Payment

POSThttps://api.acme.com/v1/payments

Charge a customer's payment method.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

amountintegerrequired

Amount in cents. `2500` = $25.00.

currencystringrequired

Three-letter ISO currency code.

customer_idstringrequired

ID of the customer to charge.

descriptionstring

Internal note attached to the payment.

Response

application/json

Payment created

idstring

Payment ID. Starts with `pay_`.

amountinteger

Amount in cents.

currencystring

Three-letter ISO currency code.

status"succeeded" | "pending" | "failed"

Current payment status.

Allowed values: "succeeded" | "pending" | "failed"
customerobject
customer.idstring

Customer ID. Starts with `cus_`.

customer.emailstring

Customer email address.

created_atstring<date-time>