Skip to content
extensions / Commerce extension
POST/__runtime/cart/buy-now

Start buy now cart

Adds an item to the cart and returns a checkout URL for an immediate purchase.

POST

Authentication

Requirement
Required
Credential type
API key
Scopes
Not specified

Permissions

  • Requires an API key with an active connection to the target project.

Headers

NameRequiredTypeDetails
AuthorizationYesNot specified
Description: Bearer credential used to authenticate the request.

Path Parameters

Query Parameters

NameRequiredTypeDetails
project_idNointeger
Description: Target project identifier.

Request Body

Schema: CartItemAddRequest

FieldRequiredTypeDetails
product_idYesinteger
Description: Target product identifier.
variant_idNointeger
Description: Identifier for variant.
variant_skuNostring
Description: Text value.
variant_labelNostring
Description: Human-readable label.
variant_attributesNoJSON
Description: JSON object.
quantityNointeger
Description: Integer value.

Response Body

Example 200 response

json
{
  "checkout_url": "string",
  "cart": "string"
}

Errors

500 INTERNAL_SERVER_ERROR

Availability

Available in
v0.1.0
Available since
v0.1.0
Implementation
Available
Deprecation
Not specified
Rate limits
Not specified