Update order form configuration
Changed onUpdates specific properties of the settings that apply to every orderForm in the account. Only the properties sent in the request body are changed, and all other properties keep their current values.
To check the current configuration, use the request Get orderForm configuration.
⚠️ The apps field cannot be modified through this endpoint. Requests that include it return a 400 status code with the CHK0288 error code.
⚠️ Some properties are restricted and can only be changed by VTEX internal teams. Requests from other users that attempt to change a restricted property return a 403 status code with the CHK003 error code.
Permissions
Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code 403 error. These are the applicable resources for this endpoint:
| Product | Category | Resource |
|---|---|---|
| Checkout | CheckoutResources | Save OrderForm Configuration |
There are no applicable predefined roles for this resource list. You must create a custom role and add at least one of the resources above in order to use this endpoint.To learn more about machine authentication at VTEX, see Authentication overview.
❗ To prevent integrations from having excessive permissions, consider the best practices for managing API keys when assigning License Manager roles to integrations.
Request
- Base URLhttps://apiexamples.vtexcommercestable.com.br
- URLhttps://apiexamples.vtexcommercestable.com.br/api/checkout/pvt/configuration/orderForm
- Auth
- API key in header X-VTEX-API-AppKey and API key in header X-VTEX-API-AppToken
- or API key in header VtexIdclientAutCookie
Query parameters
Shows the product's estimated shipping date in the shippingEstimate field from the orderForm.
Headers
Type of the content being sent.
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Request body
Example request
{
"paymentConfiguration": {
"requiresAuthenticationForPreAuthorizedPaymentOption": false,
"allowInstallmentsMerge": false,
"blockPaymentSession": false
},
"taxConfiguration": {
"appId": "12345"
},
"recaptchaValidation": "vtexCriteria",
"paymentSystemToCheckFirstInstallment": "6"
}Response
OK
Complete orderForm configuration of the account after the update. For more details about each property, see Get orderForm configuration.
Changes
- breaking
removed the success response with the status
- warning
removed the request property
- info
added the new optional request property
- info
the request property
became optional - info
the request property
became optional - info
the request property
became optional - info
the request property
became optional - info
the request property
became optional - info
the request property
became optional - info
the request property
became optional - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking
- info
endpoint added
- info