PUT Active/Inactive on Bundle SKU
This API is used to update the status of a bundle.
Authorizations : X-API-Key_Header
Request Body Schema : application/json
Method | Endpoint |
---|---|
PUT | /v3/fulfillment/bundle/{bundle}/status |
Request Parameters
Parameter | Type | Mandatory/Optional | Note |
---|---|---|---|
status | string | Mandatory | The new status of the package Active/Inactive |
merchant_id | integer | Mandatory | ID of the merchant |
Request Example
curl --location --request PUT '<https://fulfillmentapisvc.staging-0.shipper.id/v3/fulfillment/bundle/KEVINDAIPOSTMANBUNDLE01/status'> \
--header 'Content-Type: application/json' \
--data '{
"status":"Active",
"merchant_id":1089649
}'
Response Example
{
"metadata": {
"path": "/v3/fulfillment/bundle/KEVINDAIPOSTMANBUNDLE01/status",
"status": "OK",
"message": "PUT /v3/fulfillment/bundle/KEVINDAIPOSTMANBUNDLE01/status [200] OK",
"timestamp": 1682567030,
"http_status_code": 200
}
}
{
"metadata": {
"path": "/oms/v1/openapi/bundle/KEVINDAIPOSTMANBUNDLE111101/status",
"status_code": 400,
"status": "Bad Request",
"message": "PUT /oms/v1/openapi/bundle/KEVINDAIPOSTMANBUNDLE111101/status [400] Bad Request",
"error": {
"code": 810,
"message": "invalid bundle"
},
"timestamp": "2023-05-30T01:27:52Z"
}
}
Updated over 1 year ago