Save order requirements settings Replaces the order requirements configuration for the current workspace.
PUT /api/configs/order-requirementsTest
Replaces the order requirements configuration for the current workspace.
Request payload for Save order requirements settings.
TypeScript Definitions
Use the request body type in TypeScript.
Copy
cURL
JavaScript
Go
Python
Java
C#
Rustcurl -X PUT "https://example.com/api/configs/order-requirements" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "templates": [ { "id": "tmpl_123", "key": "purchase_order", "title": "Purchase order", "description": "Ask the customer for the purchase order before confirming the sale.", "enabled": true } ] }'
200 400 401 403 404 409 422 503 504
{ "_tag": "ApiBadRequestError", "code": "PRICE_IMPORT_DUPLICATE_SKUS", "message": "The request payload is invalid.", "description": "Remove duplicate SKU rows before importing the file.", "details": null } { "_tag": "Unauthorized" } { "_tag": "ApiForbiddenError", "message": "You do not have permission to perform this action." } { "_tag": "ApiNotFoundError", "message": "The requested resource was not found." } { "_tag": "ApiConflictError", "message": "A resource with this handle already exists." } { "_tag": "ApiUnprocessableEntityError", "message": "The order cannot be submitted without items." } { "_tag": "ServiceUnavailable" } { "_tag": "ApiTimeoutError", "message": "The upstream operation timed out." }