Confirm outbound Master Order quantities

PUT REST API request for merchants, requiring a JSON body and an authorization token, to confirm master order quantities for each item. For each item, it is necessary to pass the warehouseAddressId.

Request

HTTP MethodPUT
URLStagehttps://api.stage.ananastest.com/order/api/v1/merchant-integration/orders/{orderId}/confirm
Productionhttps://api.ananas.rs/order/api/v1/merchant-integration/orders/{orderId}/confirm
HTTP Headers
Header nameHeader value
AuthorizationBearer {access_token}

Example of the request:

Click to copy
Success!
[
  {
    "merchantInventoryId": 1,
    "confirmedQuantities": [
      {
        "warehouseAddressId": 1,
        "quantity": 4,
      },
      {
        "warehouseAddressId": 2,
        "quantity": 3,
      },
    ],
  },
  {
    "merchantInventoryId": 2,
    "confirmedQuantities": [
      {
        "warehouseAddressId": 3,
        "quantity": 2,
      },
      {
        "warehouseAddressId": 4,
        "quantity": 1,
      },
    ],
  },
];

Response

The endpoint will return status 201 - Created.

Copyright © Ananas 2023. All right reserved.