CheckoutSessionRequest
Base amount in minor currency units. Required when lineItems is empty. With lineItems, omit it to use their subtotal or send exactly that subtotal; discounts, shipping, and tax can change the final payable total.
Possible values: >= 1 and <= 99999999
createSubscription objectnullable
Possible values: [DAILY, WEEKLY, MONTHLY, QUARTERLY, YEARLY]
Possible values: >= 1
Possible values: >= 1
metadata objectnullable
Possible values: non-empty
customerBinding objectnullable
Possible values: Value must match regular expression [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}
Possible values: Value must match regular expression PEAK_POS
customerPrefill objectnullable
Possible values: <= 255 characters
Possible values: Value must match regular expression ^[A-Z]{2}$
Possible values: <= 50 characters
Possible values: <= 1024 characters
Possible values: <= 20 characters
Possible values: <= 255 characters
Possible values: <= 512 characters
Possible values: <= 50 characters
Possible values: >= 60
lineItems object[]nullable
Tax-provider category code, matched against configured category tax rules.
Catalog price identifier. The line is charged and stored at this price's unitAmount.
Possible values: >= 1
Exact line tax in minor units, required only in PRECOMPUTED mode. Not a per-unit amount.
Possible values: >= 0
Whether a custom line is taxable. Catalog tax treatment is authoritative.
Unit price in minor currency units for a custom line without priceId. Must not be sent with priceId; catalog lines are charged at the catalog price.
Possible values: >= 0
Possible values: <= 128 characters
Possible values: <= 128 characters
Permanent idempotency identity for immutable, amount-only PRECOMPUTED commerce checkouts.
Possible values: Value must match regular expression [A-Za-z0-9_-]{16,64}
metadata objectnullable
Possible values: <= 50 characters
shippingAddressCollection objectnullable
shippingOptions object[]nullable
Possible values: >= 0
Possible values: non-empty
Possible values: non-empty
Possible values: [AUTOMATIC, PRECOMPUTED]
Required in PRECOMPUTED mode: exact additional tax in minor units, equal to the sum of line taxAmount values. For an amount-only collection of an already tax-inclusive receivable, send 0; amount is then the entire payable balance.
Possible values: >= 0
{
"allowedPaymentMethods": [
"string"
],
"amount": 0,
"cancelUrl": "string",
"captureMethod": "string",
"createSubscription": {
"endDate": "2024-07-29",
"interval": "DAILY",
"intervalCount": 0,
"maxCycles": 0,
"metadata": {},
"planName": "string",
"startDate": "2024-07-29",
"webhookUrl": "string"
},
"currency": "string",
"customerBinding": {
"externalRef": "string",
"externalRefSource": "string"
},
"customerPrefill": {
"billingCity": "string",
"billingCountry": "string",
"billingState": "string",
"billingStreet": "string",
"billingZip": "string",
"email": "string",
"fullName": "string",
"phone": "string"
},
"description": "string",
"expiresIn": 0,
"lineItems": [
{
"categoryCode": "string",
"description": "string",
"name": "string",
"priceId": "string",
"quantity": 0,
"taxAmount": 0,
"taxable": true,
"unitPrice": 0
}
],
"locationId": "string",
"merchantId": "string",
"merchantReference": "string",
"metadata": {},
"promotionCode": "string",
"promotionCodes": [
"string"
],
"saveCard": true,
"shippingAddressCollection": {
"allowedCountries": [
"string"
],
"enabled": true
},
"shippingOptions": [
{
"amount": 0,
"estimatedDaysMax": 0,
"estimatedDaysMin": 0,
"id": "string",
"name": "string"
}
],
"successUrl": "string",
"taxMode": "AUTOMATIC",
"totalTax": 0,
"webhookUrl": "string"
}