UPDATE ORDERCART API
This API allows you to update an existing order cart with new order details.
Endpoint: PUT /transactional/v1/ordercart
🔑 Header Parameters
| Header | Type | Description | Example |
|---|---|---|---|
| Content-Type | string | Specifies the media type of the request | application/json |
| Authorization | string | Bearer token for authenticated requests | {{access_token}} |
📑 Request Body Parameters
| Field | Type | Required | Description | Example / Enum |
|---|---|---|---|---|
| ordercartName | string | Yes | Updated name for the order cart | "CART01" |
| orders | string | Yes | JSON-stringified array of updated order objects | Refer below |
| version | string | Yes | Version of the ordercart schema | "1" |
| createdBy | string | Yes | User ID of the original creator | "DEMO100" |
| modifiedBy | string | Yes | User ID of the user performing the update | "DEMO100" |
| executedNoTime | integer | Yes | Count of how many times the cart has been executed | 0 |
| ordercartId | string | Yes | Existing order cart ID to be updated | "2662 1D" |
The
ordersarray structure for the Update request follows the same schema as the Create Ordercart endpoint. Refer to the Orders Array and scripDetail Object Fields tables above.
🟢 Success Response - 200 OK
Content-Type: application/json
| Field | Type | Description | Example |
|---|---|---|---|
| status | string | Status of API call | "success" |
| code | string | Response code to user request | "s-101" |
| message | string | Success message | "Order cart updated successfully" |
| data | array | Array containing result | Refer to Data Object Fields |
📦 Data Object Fields
| Field | Type | Description | Example |
|---|---|---|---|
| message | string | Confirmation of outcome | "success" |