v1

latestOpenAPI 3.0.42026-07-2499260182.5 KB
orders

Creates an exchange for a parcel

Creates an exchange for a parcel with products. The StockType parameter indicates the type of stock and accepts 'local' or 'warehouse'. Defaults to 'local' if not specified. the 'DeliveryType' parameter indicates the type of delivery and accepts 'home' or 'pickup-point'. Permissions requises : SupplierAdminRole, SupplierParcelsManagerRole.

post/api/v{version}/parcels/exchange

Path parameters

versionstring required

The requested API version

Headers

X-Tenantstring required

Input your tenant Id to access this API

Request body

hubIdstring uuid nullable
deliveryTypestring nullable
descriptionstring nullable
stateIdstring uuid nullable
originalParcelIdstring uuid
amountnumber double
externalIdstring nullable
hubStockIdstring uuid nullable

Response

Created

newParcelIdstring uuid
returnParcelIdstring uuid nullable
originalParcelIdstring uuid nullable