Allocate courier for suborder

POST REST API request for Ino MTO merchants. This endpoint allocates a courier for the suborder without scheduling the pickup time, since the goods have not yet arrived in Serbia. The endpoint sets the suborder’s status to PACKED and its status_context to null.

The endpoint requires exactly one path parametersuborderId. When invoked, the service allocates a courier for the suborder.

Merchant eligibility

  • The merchant must be marked as Ino MTO or Wholeseller.
  • If not, the API returns:
Merchant is not enabled for wholesaler or INO MTO functionalities

Suborder update

The endpoint performs the following updates on the suborder:

  • statusPACKED or PARTIALLY_PACKED
  • status_contextnull

Request

HTTP MethodPOST
URLQA2https://api.qa2.ananastest.com/order/api/v1/merchant-integration/outbound-orders/{suborderId}/packAllocate
Productionhttps://api.ananas.rs/order/api/v1/merchant-integration/outbound-orders/{suborderId}/packAllocate
HTTP Headers
Header nameHeader value
AuthorizationBearer {access_token}

Examples:

https://api.qa2.ananastest.com/order/api/v1/merchant-integration/outbound-orders/8G0DV-WT7O9-DS-1 /packAllocate

https://api.ananas.rs/order/api/v1/merchant-integration/outbound-orders/8G0DV-WT7O9-DS-1 /packAllocate

Response

The endpoint will return status 204 - No Content.

Copyright © Ananas 2023. All right reserved.