Skip to main content
POST
Quote Balance Purchase

Authorizations

Authorization
string
header
required

Authenticate with a customer token, minted server-to-server with POST /v1/shops/{shopId}/customers/{customerId}/token and sent as a Bearer token. Reseller API keys are rejected with a 403 here.

Body

application/json
cart
object[]
required

The items to price. At least one.

Example:
currency
string

Three-letter currency code to price in. Defaults to the shop's currency.

Example:

"USD"

affiliate
string

Affiliate code to credit for the order.

Example:

null

attribution
object

Campaign attribution stored on the invoice: utm_source, utm_medium, utm_campaign, utm_term, utm_content, referrer_host (host only), each max 100 characters.

Example:

null

Response

success
boolean
Example:

true

unique_id
string
Example:

"9f2b3c4d5e6f7"

checkout_url
string
Example:

"https://pay.sellauth.com/invoice/9f2b3c4d5e6f7"

currency
string
Example:

"USD"

price
number
Example:

14.99

price_usd
number
Example:

14.99

has_tax_or_fees
boolean
Example:

false

collects_fields_after
boolean
Example:

false

items
object[]
Example:
balance
integer
Example:

25

balance_after
number
Example:

10.01

can_pay
boolean
Example:

true