Checkout

Price a cart against the signed-in buyer’s store balance (one-click buy)

POST
/v1/public/stores/{storeId}/checkout/balance-quote

Path Parameters

storeId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/public/stores/string/checkout/balance-quote" \  -H "Content-Type: application/json" \  -d '{    "lines": [      {        "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",        "qty": 1      }    ]  }'
{  "token": "string",  "lines": [    {      "name": "string",      "variantName": "string",      "qty": -9007199254740991,      "totalMinor": -9007199254740991    }  ],  "totalMinor": -9007199254740991,  "currency": "string",  "chargeMinor": -9007199254740991,  "chargeCurrency": "string",  "balanceMinor": -9007199254740991,  "balanceAfterMinor": -9007199254740991,  "canPay": true,  "hasTaxOrFees": true,  "collectsFieldsAfter": true}