PUT tenant-salesorders-order Id
PUT {{baseUrl}}/order-v2/{{tenant}}/salesorders/{{orderId}}
Updates an order with the specified ID.
Requires scope order.order_update
.
Deprecated
Request Body
{"metadata"=>{"mixins"=>{"additionalCode"=>"https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/example-schema.json"}}, "mixins"=>{"additionalCode"=>{"code"=>"DFG-334-98330-X"}}, "created"=>"2014-03-31T10:18:21.134Z", "completed"=>"2014-04-15T10:18:21.134Z", "entries"=>[{"metadata"=>{"mixins"=>{"additionalCode"=>"https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/example-schema.json"}}, "id"=>"5c13ccdbba93e00008b8d274", "amount"=>2, "unitPrice"=>420, "totalPrice"=>840, "link"=>"https://api.emporix.io/product/saasdev2/products/5c13ccdbba93e00008b8d274", "product"=>{"metadata"=>{"mixins"=>{"color"=>"https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/color_v1.json"}}, "description"=>"A Mug you've always wanted !", "name"=>"Mug", "sku"=>"mug-product", "published"=>true, "images"=>[{"id"=>"media123456", "url"=>"https://res.cloudinary.com/saas-ag/image/upload/55db925ed94e8d92c6b4cfe9_vksjjg.jpg"}], "mixins"=>{"color"=>{"red"=>234, "green"=>231, "blue"=>123}}}, "mixins"=>{"additionalCode"=>{"code"=>"ABC"}}}, {"id"=>"1234547", "amount"=>5, "unitPrice"=>240, "totalPrice"=>1200, "product"=>{"metadata"=>{"mixins"=>{"color"=>"https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/color_v1.json"}}, "description"=>"A T-shirt you've always wanted !", "name"=>"T-shirt", "sku"=>"tshirt-product", "published"=>true, "images"=>[{"id"=>"media1234567", "url"=>"https://res.cloudinary.com/saas-ag/image/upload/55db925ed94e8d92c6b4cfe9_vksjjg.jpg"}], "mixins"=>{"color"=>{"red"=>234, "green"=>231, "blue"=>123}}}}, {"id"=>"1234548", "amount"=>1, "unitPrice"=>45, "totalPrice"=>45, "measurementUnit"=>{"value"=>2, "unit"=>"kg"}, "link"=>"https://api.emporix.io/product/saasdev2/products/5c13ccdbba93e00008b8d274", "product"=>{"description"=>"Vegetables you've always wanted !", "name"=>"Vegetables", "sku"=>"vegetables-product", "published"=>true, "images"=>[{"id"=>"media1234548", "url"=>"https://res.cloudinary.com/saas-ag/image/upload/55db925ed94e8d92c6b4cfe9_vksjjg.jpg"}]}}], "discounts"=>[{"code"=>"SUMMER_SALE", "name"=>"Summer Sale 10% off everything", "amount"=>204, "currency"=>"USD", "discountRate"=>10, "sequenceId"=>1, "link"=>{"id"=>"B2TD3JM", "type"=>"y-coupon", "url"=>"https://api.emporix.io/coupon/saasdev2/coupons/ENG2OC"}}], "customer"=>{"id"=>"C1234567890", "title"=>"Dr.", "name"=>"Example Buyer", "firstName"=>"Example", "lastName"=>"Buyer", "email"=>"noreply@emporix.com", "company"=>"emporix", "metadata"=>{"mixins"=>{"work_phone"=>"https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/contact-number.json"}}, "mixins"=>{"work_phone"=>{"number"=>"+86 334 0033 1233"}}}, "siteCode"=>"Germany", "countryCode"=>"DE", "deliveryWindowId"=>"5d230f973f05e303d5c30dba", "channel"=>{"name"=>"Twitter", "source"=>"https://twitter.com/emporix/status/707599225782214656"}, "billingAddress"=>{"contactName"=>"Example Buyer", "street"=>"Nymphenburger Str.", "streetNumber"=>"86", "city"=>"Munich", "state"=>"Bavaria", "country"=>"DE", "zipCode"=>"132 45", "contactPhone"=>"+49 1111 222 333"}, "shippingAddress"=>{"contactName"=>"Joe Smith", "companyName"=>"Cargo Services Airfreight", "street"=>"Cheng Xiang Zhen Guan Tang Lu", "streetNumber"=>"1031", "extraLine1"=>"No. 2058", "extraLine2"=>"Suzhou City", "zipCode"=>"201202", "city"=>"Taicang City", "state"=>"Jiangsu Province", "country"=>"CN", "contactPhone"=>"+86 182 9349 4663", "metadata"=>{"mixins"=>{"secondaryContactPhone"=>"https://res.cloudinary.com/saas-ag/raw/upload/schemata/CAAS/contact-number.json"}}, "mixins"=>{"secondaryContactPhone"=>{"number"=>"+86 334 0033 9934"}}}, "subTotalPrice"=>1881, "totalPrice"=>2041, "currency"=>"USD", "payments"=>[{"status"=>"SUCCESS", "method"=>"STRIPE", "paymentResponse"=>"", "paidAmount"=>2041, "currency"=>"USD"}], "tax"=>{"total"=>{"amount"=>150, "currency"=>"USD"}, "lines"=>[{"amount"=>150, "currency"=>"USD", "code"=>"VAT", "name"=>"Regular VAT", "rate"=>10, "taxable"=>1500, "sequenceId"=>1, "inclusive"=>false}]}, "shipping"=>{"total"=>{"amount"=>10, "currency"=>"USD"}, "lines"=>[{"amount"=>10, "currency"=>"USD", "code"=>"dhlstd", "name"=>"DHL Standard"}]}, "shipments"=>[{"trackingNumber"=>"123987456", "carrier"=>"UPS", "shippedDate"=>"2016-06-25T16:22:52.966Z", "expectDeliveryOn"=>"2016-06-27"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
saas-token | string | (Required) Token used to identify loggedin users. This token has an expiery date and is signed with a passphrase. | |
Content-Type | string |