POSTADITUS/Ticket purchase & registration/Cart/Basic cart processes/Update Terms of Service Status

Update Terms of Service Status

POST{{API_BASE_URL}}/shop/v1/cart/:cartId/terms-of-service

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:

{
"Items": [
0: {
"UniqueId": "55d12ee4-67e8-4bf9-8da9-a459b0...",
"IsApproved": true
}
]
}

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:

{
"data": {
"cartId": "",
"isSuccess": true
}
}

Notes

  • Ensure that the cartId in 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.

Query parameters#query

$expandAlloptional

Responses#responses

200OKUpdate Terms of Service Status
200OKUpdate Terms of Service Status