GET

Create And Redirect To Checkout


Creates a new checkout based on the checkout template and redirects to the new checkout page.

Before using this endpoint, you must have a checkout template available. Create a checkout template with Create Checkout Template.

To build a URL that uses this endpoint, follow this format: https://www.wixapis.com/ecom/v1/checkout-templates/{checkoutTemplateId}/create-and-redirect-to-checkout?siteId={siteId}

To create a checkout but not automatically redirect to the checkout page, use Create Checkout From Template.

Endpoint
GET
https://www.wixapis.com/ecom/v1/checkout-templates/{checkoutTemplateId}/create-and-redirect-to-checkout

Path Params
checkoutTemplateIdstringRequired

ID of the checkout template to use to create a checkout.

Query Params
siteIdstringRequired

ID of the site associated with the checkout template.

Response Object
bodybytes

statusCodeintegerformat uint32

headersArray <HeadersEntry>
Create And Redirect To Checkout From Template
Request
cURL
Response
JSON
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?