Cart
A Customer token generated using an API Key in the format 'Customer TOKEN_HERE'.
The ISO three-letter lowercase currency code (e.g., usd, eur, gbp) to display prices in. If not provided, the store's default currency will be used.
The IP address (IPv4 or IPv6) of the customer. Required if the request is not being made from the customer's browser.
The customer's country code in ISO 3166-1 alpha-2 format. Optional, but recommended if you have this available.
^[A-Z]{2}$OK
Represents a customer's shopping cart
411486491630370816411486491630370816The total price of all items in the cart in the smallest currency unit (e.g., cents)
The currency code (e.g., usd, eur, gbp)
Error response
A Customer token generated using an API Key in the format 'Customer TOKEN_HERE'.
The IP address (IPv4 or IPv6) of the customer. Required if the request is not being made from the customer's browser.
The customer's country code in ISO 3166-1 alpha-2 format. Optional, but recommended if you have this available.
^[A-Z]{2}$No Content
Error response
No content
A Customer token generated using an API Key in the format 'Customer TOKEN_HERE'.
The ID of the product that should be added to the cart.
411486491630370816The quantity to set or increment.
Set to either '1' or 'true' to store as a subscription line item.
Set to either '1' or 'true' to indicate if the line should be trialed.
A game server ID, required if single_game_server_only is enabled for the product.
411486491630370816Set to either '1' or 'true' to increment (add quantity instead of setting).
The ID of the customer in which this line is a gift for.
411486491630370816The platform type
SteamPossible values: The account ID on the platform
76561198152492642The IP address (IPv4 or IPv6) of the customer. Required if the request is not being made from the customer's browser.
The customer's country code in ISO 3166-1 alpha-2 format. Optional, but recommended if you have this available.
^[A-Z]{2}$No Content
Error response
No content
A Customer token generated using an API Key in the format 'Customer TOKEN_HERE'.
The IP address (IPv4 or IPv6) of the customer. Required if the request is not being made from the customer's browser.
The customer's country code in ISO 3166-1 alpha-2 format. Optional, but recommended if you have this available.
^[A-Z]{2}$Request to create a new checkout session from a cart
411486491630370816Optional affiliate code to track referrals
Optional URL to redirect to after successful checkout
Optional URL to redirect to if checkout is canceled
Whether to automatically redirect the customer (return_url must be set)
OK
Response after creating a checkout session
411486491630370816The token for the checkout session
The URL to redirect the customer to complete checkout
Error response
Last updated
Was this helpful?
