Skip to content

OR07 - Update order line shipping origin

Request

Description

Update shipping origin (shipping_from) information on order lines.

A maximum of 100 order lines can be sent at once.

Call Frequency
Maximum usage: 60 per hour, 100 order lines per call
Security
Front-Bearer-Token or OAuth-2
Bodyapplication/json
order_linesArray of objects, [ 1 .. 100 ] itemsrequired

Order lines to be updated, maximum number of order lines per call: 100

curl -i -X PUT \
  https://your-instance.mirakl.net/api/orders/shipping_from \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "order_lines": [
      {
        "id": "order-line-1",
        "shipping_from": {
          "address": {
            "city": "New York City",
            "country_iso_code": "USA",
            "state": "New York",
            "street_1": "113 MacDougal Street",
            "street_2": "1st floor",
            "zip_code": "NY 10012"
          }
        }
      }
    ]
  }'

Responses

OK

Bodyapplication/json
order_linesArray of objects

A list containing each order line of the request, stating if the update was performed or failed.

Response
{ "order_lines": [ { … } ] }