Create receiving order

POST {{fulfillment_client_url}}/warehouse/order

Save the information of an order, recieve the shipping type, the information of the products and his variants, and the boxes with the quantity of the products that must contain (referenced by its ecartId).

Body definition

nameTypeDescriptionRequired
shippingTypeStringthe method to ship the ordertrue
productsArrayList of products that include the ordertrue
boxesArrayList of boxes that include the ordertrue
warehouseIdIntegerid of the warehouse that should prepare the ordertrue
shippingDateTimestampThe date that the order should be shippedtrue

Products

this are the fields that include the objects in the products array

nameTypeDescriptionRequired
ecartIdIntegerIdentifier of the ecart accountfalse
skuStringIdentifier of the product inside the shop, for reference of the clientfalse
descriptionStringDescription of the productfalse
nameStringName of the producttrue
currencyStringCurrency that use the shoptrue
productTypeStringtype of the productfalse
priceDecimalprice of the producttrue
lengthDecimallength of the producttrue
widthDecimalwith of the producttrue
heightDecimalheight of the producttrue
weightDecimalweight of the producttrue
imageUrlStringimage of the producttrue
variantsArrayThe variants of this products that differ by some characteristicstrue
  • The variants of the product contain the fields of ecartId, sku, name, currency, price, length, width, height and weight with the same validations.

Boxes

this are the fields that include the objects in the boxes array

nameTypeDescriptionRequired
trackingNumberIntegerThe id of the box to updatefalse
productsArraylist of products that are include in this boxtrue

Each product in the in the array of boxes contains ecartId and amount. Note that the ecartId has to be one of the products includes in the array of the main object.

Request Body

{"shopId"=>1, "shippingType"=>"Parcel", "products"=>[{"ecartId"=>"2433", "sku"=>"123", "description"=>"desc1", "currency"=>"MXN", "productType"=>nil, "price"=>"328.70", "variants"=>[{"ecartId"=>"2498", "sku"=>"1-123", "name"=>"20.5 x 20.5 x 19.4 cm | 23ECTs / 25 Piezas / Default", "currency"=>nil, "price"=>"297.15", "length"=>1, "width"=>1, "height"=>1, "weight"=>"9", "unitForSize"=>"cm", "unitForWeight"=>"kg"}, {"ecartId"=>"2497", "sku"=>"2-123", "name"=>"20 x 15 x 12 cm | 26ECTs / 25 Piezas / Default", "currency"=>nil, "price"=>"240.92", "length"=>1, "width"=>1, "height"=>1, "weight"=>"6"}], "length"=>1, "width"=>1, "height"=>1, "weight"=>1, "imageUrl"=>"https://cdn.shopify.com/s/files/1/0015/6090/3792/products/Caja-de-carton-33.5-x-26-x-25.5_12157078-907e-4ba2-90ac-21cb6405a1d8.jpg?v=1576862213", "shopId"=>1}, {"ecartId"=>"2734", "sku"=>"456", "description"=>"desc2", "currency"=>"MXN", "productType"=>nil, "price"=>"328.70", "variants"=>[{"ecartId"=>"2799", "sku"=>"1-456", "name"=>"20.5 x 20.5 x 19.4 cm | 23ECTs / 25 Piezas / Default", "currency"=>nil, "price"=>"297.15", "length"=>1, "width"=>1, "height"=>1, "weight"=>"9"}, {"ecartId"=>"2798", "sku"=>"2-456", "name"=>"20 x 15 x 12 cm | 26ECTs / 25 Piezas / Default", "currency"=>nil, "price"=>"240.92", "length"=>1, "width"=>1, "height"=>1, "weight"=>"6"}], "length"=>1, "width"=>1, "height"=>1, "weight"=>1, "imageUrl"=>"https://cdn.shopify.com/s/files/1/0015/6090/3792/products/Caja-de-carton-33.5-x-26-x-25.5_12157078-907e-4ba2-90ac-21cb6405a1d8.jpg?v=1576862213", "shopId"=>1}], "boxes"=>[{"fulfillmentShipmentId"=>nil, "products"=>[{"ecartId"=>"2498", "amount"=>"7"}, {"ecartId"=>"2497", "amount"=>"4"}], "comment"=>""}, {"fulfillmentShipmentId"=>nil, "products"=>[{"ecartId"=>"2799", "amount"=>"12"}, {"ecartId"=>"2798", "amount"=>"15"}], "comment"=>""}], "warehouseId"=>1, "shippingDate"=>"2020-03-19 19:52:00"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"orderId":3,"fileUrl":"https://fulfillment-stage.s3.us-east-2.amazonaws.com/orders/Receive-order-invoice-3.pdf"}