Create VAS by return inventory ID
Vas
Create VAS by return inventory ID
Create value-added service requests for one or more return inventories. Inventory must be set to On-hold handling before creating VAS. Split parcel VAS must be submitted separately from other VAS types.
POST
Create VAS by return inventory ID
Requests one or more value-added services (VAS) on received return inventory — quality inspection, repackaging, photo, split-parcel, etc. The warehouse executes the VAS and reports results back via subsequent webhook events.
Prerequisites
- Target inventory items exist and belong to your account. The
returnInventoryIdvalues come from thenewInventoryCreatedwebhook event — cache them on your side as parcels are logged. - Each target inventory’s
handlingCodemust beohd(on-hold). VAS is only allowed while the inventory is on-hold; if it’s already in another handling pathway, move it back to on-hold first via Update return inventory handling. - Pick valid
vasCodevalues from Get all VAS.
Required fields
createVasList— non-empty list of payloads. Each payload covers one inventory and one or more VAS requests on it.
returnInventoryId— string that parses to a long; must exist and be on-hold.createVasDetailList— list of VAS detail objects, each carrying avasCodeand any VAS-specific fields.
returnInventoryId values across the whole batch must be unique — you cannot create two payloads for the same inventory in one call.
Split-parcel rule
If any VAS in a payload usesvasCode: SPLIT_PARCEL:
- It must be the only VAS in that payload’s
createVasDetailList(you can’t combine split-parcel with other VAS in a single payload for the same inventory). - File attachments are allowed (and typically required) only for
SPLIT_PARCEL. Other VAS codes cannot have file attachments.
Side effects
- The inventory’s handling stays at
ohdwhile VAS is pending. - Subsequent webhook events report progress:
vasUpdated, ,splitLineItemandnewInventoryCreated(For parcel split). - For split-parcel VAS, completion may produce additional inventory records (the split items).
Related
- Get all VAS — valid
vasCodevalues. - Get all VAS statuses — code-to-label mappings for VAS lifecycle.
- Update return inventory handling — move an inventory back to
ohdif it’s left that state. - Webhooks — the
vasUpdatedevent reports VAS lifecycle progress to your endpoint.