Create Release Stock (⛔ DEPRECATED)
This API is used to release stock to a bundle. This API is DEPRECATED
Authorizations : X-API-Key_Header
Request Body Schema : application/json
| Method | Endpoint |
|---|---|
| POST | /v3/fulfillment/bundle/{bundle_code}/stock/release |
Request Parameters
| Parameter | Type | Mandatory/Optional | Note |
|---|---|---|---|
| merchant_id | integer | Mandatory | The ID of the merchant |
| warehouse_code | string | Mandatory | The code of the warehouse |
| qty | integer | Mandatory | The quantity of the products to release |
| operator | string | Optional | the operator for this action |
Sample Request
curl --location 'https://fulfillmentapisvc.staging-0.shipper.id/v3/fulfillment/bundle/KEVINDAIPOSTMANBUNDLE01/stock/release' \
--header 'Content-Type: application/json' \
--data '{
"merchant_id":1089649,
"warehouse_code":"WH-CGK09",
"bundle":"KEVINDAIPOSTMANBUNDLE01",
"qty":3
}'Response Parameters
| Parameter | Type | Note |
|---|---|---|
| metadata | object | The metadata information |
Sample Response
{
"metadata": {
"path": "/v3/fulfillment/bundle/:bundle/stock/release?%3Abundle=%3Abundle&",
"http_status_code": 503,
"http_status": "Service Unavailable",
"errors": [
{
"code": 811,
"message": "Service is unavailable."
}
],
"timestamp": 1753933502
}
}{
"metadata": {
"path": "/v3/fulfillment/bundle/KEVINDAIPOSTMANBUNDLE01/stock/release",
"status": "OK",
"message": "POST /v3/fulfillment/bundle/KEVINDAIPOSTMANBUNDLE01/stock/release [200] OK",
"timestamp": 1682566755,
"http_status_code": 200
}
}{
"metadata": {
"path": "/oms/v1/openapi/bundle/KEVINDAIPOSTMANBUNDLE01/stock/release",
"errors": [
{
"code": 603,
"message": "Bundle [KEVINDAIPOSTMANBUNDLE01] assinged stock is not enough to be released"
}
],
"timestamp": 1685409955,
"http_status_code": 400,
"http_status": "Bad Request"
}
}{
"metadata": {
"path": "/oms/v1/openapi/bundle/KEVINDAIPOSTMANBUNDLE01/stock/assign",
"errors": [
{
"code": 400,
"message": "warehouse_code can't be blank"
}
],
"timestamp": 1685409916,
"http_status_code": 400,
"http_status": "Bad Request"
}
}Updated 3 months ago
