Update Terms of Service Status
Update Cart Terms of Service
This endpoint allows you to update the approval status of items in a specific cart in the system. It is used to ensure compliance with the terms of service associated with the cart.
Request
-
Method: POST
-
URL:
{{API_BASE_URL}}/shop/v1/cart/:cartId/terms-of-service
Request Body
The request body must be in JSON format and should contain the following parameters:
-
Items (Array of Objects): A list of items to be updated.
-
UniqueId (String): The unique identifier of the terms of service item that you want to update.
-
IsApproved (Boolean): A flag indicating whether the item is approved or not.
-
Example Request Body:
Response
Upon a successful request, the API will return a response with the following structure:
-
Status: 200 OK
-
Content-Type: application/vnd.aditus.v1+json
-
Response Body:
-
data (Object): Contains the result of the update operation.
-
cartId (String): The ID of the cart that was updated.
-
isSuccess (Boolean): Indicates whether the update operation was successful.
-
-
Example Response:
Notes
-
Ensure that the
cartIdin the URL is replaced with the actual cart's ID whose terms of service you wish to update. -
The response will confirm whether the operation was successful or not, allowing you to handle subsequent logic accordingly.
Authentication#auth
This endpoint does not require authentication.