containerization/decontainerization of the container

Grouping together container into a container. The container that goes inside another container is said to be containerized.

  • containerType - The container type of the parent container ID that needs to be add in parent container.
PARAMETERDESCRIPTIONTYPEVALIDATION
parentId*Field to represent container ID of the parent container. During the containerization process, this value is assigned to represent which container contains this container.stringExample- box:9c9b1138-7cdd-11eb-9439-0242ac130002
childcontainerType*Container type defined using container type configuration APIs.stringpattern: It should match a through z or A through Z, inclusive (range).
minLength: 3 maxLength: 64
Example: bag
childIds*Field to represent list of container IDs of the child containesr.arrayExample- ["box:9c9b1138-7cdd-11eb-9439-0242ac130002", "box:9c9b1138-7cdd-11eb-9439-0242ac130011"]
action*field to represent action to be performed on the container.field to represent action to be performed on the container.
subStateclosed subState to which the parent container will be transitioned after containerisation. Required in case of CONTAINERIZATION.stringExample: closed
trackingDetailsField to represent tracking ID (such as AWB) for a container which is usually pasted on the container and used for scanning it. There can be multiple tracking IDs for a container, owned by different operators and hence it will be stored as a list.
ㅤ↳operator*Field to specify the owner of the tracking ID.stringminLength: 3 maxLength: 64
Example: Delhivery
ㅤ↳trackingId*stringminLength: 1 maxLength: 128
Example: 132121232423232
ㅤ↳isPrimaryIt defines whether it is a primary tracking ID or not. If not defined we assume first tracking ID as primary tracking ID.booleanDefault: false
attributesA map to provide values for the attributes defined in Container-type configuration APIs.
itemsList of items can be added into a container only if the container-type is a leaf.
ㅤ↳name*Name of the item.stringminLength: 3 maxLength: 128
Example: pant/shirt
ㅤ↳codeCode of the item.stringminLength: 3 maxLength: 128
ㅤ↳cost*Cost of the item.
ㅤㅤ↳unitRepresents unit price of the item.
ㅤㅤㅤ↳amountThe value of the amount; accurate to three decimal places.number
ㅤㅤㅤ↳currencyCurrency of the price of the item.string
ㅤㅤ↳total*Represents total price of the item.
ㅤㅤㅤ↳amountThe value of the amount; accurate to three decimal places.number
ㅤㅤㅤ↳currencyCurrency of the price of the item.string
ㅤ↳quantity
ㅤㅤ↳valueA number quantifying measurement.integer
ㅤㅤ↳unitUnit for measurement.stringEnum: [cm, m, l, ml, nos, g, kg, mm]
isHazmatRepresents whether this container can contain hazardous materials or not.booleanDefault: false
isContainerizableDefines whether container can be put into other containers or not.booleanDefault: true
callbackRepresents callback URL, which can be to notify status(success/failed) of API.stringA valid URL.

*This is required.



HTTP Status Code Summary
| Code | Description |
| ---- | ---------- |
| 202 - Accepted |
| 400 - Bad Request | The request was unacceptable, often due to missing a required parameter. |
| 401 - Unauthorized | No valid API key provided. |
| 404 - Not Found | The requested resource doesn't exist. |
| 503 - Server Error | Something went wrong.. (These are rare.) |

Callbacks
Language
URL
Click Try It! to start a request and see the response here!