Documentation
Feedback
Guides
API Reference

API Reference
Filter By
Post
Get
Put
Delete
Patch

Checkout API

Check the new Checkout onboarding guide. We created this guide to improve the onboarding experience for developers at VTEX. It assembles all documentation on our Developer Portal about the Checkout and is organized by focusing on the developer's journey.

The Checkout API allows you to obtain and configure information about the shopping cart and its attachments, personalization of custom fields, orderForm structure, fulfillment data, order management, and identification of the sellers delivery region.

Data modification operations (POST, PATCH, PUT or DELETE endpoints) shall not be performed in parallel in the Checkout APIs. They need to be enqueued by the client/requester. Otherwise, old values ​​can be overwritten incorrectly or competition errors may occur.

All endpoints that consult or edit the orderForm can change the authentication depending on the customer context. If you are handling information from a customer with a complete profile on the store, authentication will be required. You can only access or modify the customer data for these profiles with an authenticated request.

Shopping cart

Allows merchants to simulate, configure and customize shopping cart information.

Cart attachments

Allows merchants to obtain client profiles and add information to a given shopping cart.

Custom data

Allows merchants to manage custom fields that were created by an app in their account.

Configuration

Allows merchants to configure orderForm in the account and seller exchange on a given order.

Fulfillment

Allows merchants to obtain pickup points and address information.

Order placement

Allows merchants to place and process orders by creating a new cart or using an existing cart.

Region

Allows merchants to obtain a list of sellers serving a specific delivery region.

Common parameters in the documentation

Parameter name Description
{{accountName}} Store account name
{{environment}} The environment that will be called. Change for vtexcommercestable or vtexcommmercebeta
{{X-VTEX-API-AppKey}} Located in the headers of the requests, user authentication key
{{X-VTEX-API-AppToken}} Located in the headers of the requests, authentication password

Endpoints

Shopping cart

SummaryMethodPath
Cart simulationPOST/api/checkout/pub/orderForms/simulation
Get current or create a new cartGET/api/checkout/pub/orderForm
Get cart information by IDGET/api/checkout/pub/orderForm/{orderFormId}
Remove all items from shopping cartPOST/api/checkout/pub/orderForm/{orderFormId}/items/removeAll
Remove all personal data from shopping cartGET/checkout/changeToAnonymousUser/{orderFormId}
Update cart itemsPOST/api/checkout/pub/orderForm/{orderFormId}/items/update
Add cart itemsPOST/api/checkout/pub/orderForm/{orderFormId}/items
Handle cart itemsPATCH/api/checkout/pub/orderForm/{orderFormId}/items
Change price of an SKU in a cartPUT/api/checkout/pub/orderForm/{orderFormId}/items/{itemIndex}/price
Ignore profile data on checkoutPATCH/api/checkout/pub/orderForm/{orderFormId}/profile
Cart installmentsGET/api/checkout/pub/orderForm/{orderFormId}/installments
Add coupons to the cartPOST/api/checkout/pub/orderForm/{orderFormId}/coupons

Cart attachments

SummaryMethodPath
Get client profile by emailGET/api/checkout/pub/profiles
Add client profilePOST/api/checkout/pub/orderForm/{orderFormId}/attachments/clientProfileData
Add shipping address and select delivery optionPOST/api/checkout/pub/orderForm/{orderFormId}/attachments/shippingData
Add client preferencesPOST/api/checkout/pub/orderForm/{orderFormId}/attachments/clientPreferencesData
Add marketing dataPOST/api/checkout/pub/orderForm/{orderFormId}/attachments/marketingData
Add payment dataPOST/api/checkout/pub/orderForm/{orderFormId}/attachments/paymentData
Add merchant context dataPOST/api/checkout/pub/orderForm/{orderFormId}/attachments/merchantContextData
Attach invoice dataPOST/api/checkout/pub/orderForm/{orderFormId}/attachments/invoiceData

Custom data

SummaryMethodPath
Set multiple custom field valuesPUT/api/checkout/pub/orderForm/{orderFormId}/customData/{appId}
Set single custom field valuePUT/api/checkout/pub/orderForm/{orderFormId}/customData/{appId}/{appFieldName}
Remove single custom field valueDELETE/api/checkout/pub/orderForm/{orderFormId}/customData/{appId}/{appFieldName}
Batch add custom fieldsPUT/api/checkout/pub/orderForm/{orderFormId}/customFields
Add order custom fieldPUT/api/checkout/pub/orderForm/{orderFormId}/customFields/order
Add item custom fieldPUT/api/checkout/pub/orderForm/{orderFormId}/customFields/item/{itemId}
Remove item custom fieldDELETE/api/checkout/pub/orderForm/{orderFormId}/customFields/item/{itemId}
Add address custom fieldPUT/api/checkout/pub/orderForm/{orderFormId}/customFields/address/{addressId}

Configuration

SummaryMethodPath
Get order form configurationGET/api/checkout/pvt/configuration/orderForm
Update order form configurationPOST/api/checkout/pvt/configuration/orderForm
Get window to change sellerGET/api/checkout/pvt/configuration/window-to-change-seller
Update window to change sellerPOST/api/checkout/pvt/configuration/window-to-change-seller
Clear order form messagesPOST/api/checkout/pub/orderForm/{orderFormId}/messages/clear

Fulfillment

SummaryMethodPath
List pickup points by locationGET/api/checkout/pub/pickup-points
Get address by postal codeGET/api/checkout/pub/postal-code/{countryCode}/{postalCode}

Order placement

SummaryMethodPath
Place order from an existing cartPOST/api/checkout/pub/orderForm/{orderFormId}/transaction
Place orderPUT/api/checkout/pub/orders
Process orderPOST/api/checkout/pub/gatewayCallback/{orderGroup}

Region

SummaryMethodPath
Get sellers by region or addressGET/api/checkout/pub/regions/{regionId}

Loading API specification...