- API reference
- Customer Tokens API
Charge a customer token to create an order
https://api.kustom.co/customer-token/v1/tokens/{customerToken}/order
Charges the customer’s stored payment method for the given order and, on success, forwards the resulting order to Order Manager. Internally served by MerchantApiController’s /merchant/{merchantId}/v1/tokens/{tokenId}/order route, reached through MerchantRequestRewriteFilter. Merchant log action: CHARGE_TOKEN.
No field here matches the current filters.
Allow merchant to trigger auto capturing.
Pass through field (max 6000 characters).
Merchant’s internal order number or other reference. Shown on the confirmation page as “order number” if set (max 255 characters).
Non-negative minor units. Total amount of the order, including tax and discounts.
24 fields in order_lines
Pass through field (max 255 characters).
Descriptive name of the order line item.
Quantity of the order line item.
Non-negative. Two implicit decimals, e.g. 1900 = 19%.
Non-negative minor units, includes tax and discount. value = (quantity x unit_price) - total_discount_amount.
Non-negative minor units, includes tax.
Total tax amount of the order line. Negative when type is discount.
- physical
- discount
- shipping_fee
- sales_tax
- digital
- gift_card
- store_credit
- surcharge
Non-negative minor units, includes tax, excludes discount.
Non-negative minor units. The total tax amount of the order.
ISO 4217 purchase currency.
13 fields in shipping_address
‘Attn.’ - optional parameter.
Customer’s city.
Customer’s country. Should follow ISO 3166 alpha-2, e.g. GB, US, DE, SE.
Customer’s email address.
Customer’s family name.
Customer’s first name.
Organization name (if applicable). Only applicable for B2B customers.
Phone number. Preferably a mobile phone number.
Customer’s postal code.
Customer’s region or state. Mandatory for US and AU market. ISO 3166-2 format.
Customer’s street address.
Customer’s street address, second line.
Customer’s title.
No field here matches the current filters.
Order was successfully created.
Always ACCEPTED for token charges.
Unique order ID of the transaction.
URL to redirect the customer to after placing the order, taken from the request’s merchant_urls.confirmation.
No field here matches the current filters.
The request failed validation, the token is not active, the token has no email on file, or the merchant is not configured for recurring payments.
No field here matches the current filters.
The charge attempt was declined by the payment provider.
No field here matches the current filters.
The merchant is not migrated, or the token or merchant was not found.
No response body — this status returns headers only.
No field here matches the current filters.
An unexpected error occurred.
No response body — this status returns headers only.
No field here matches the current filters.
This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.