Schedule suborder delivery

POST REST API request for Ino MTO merchants. This endpoint schedules a courier that was previously allocated for the suborder and sets the suborder's status_context to null.

The endpoint requires exactly one path parametersuborderId. When invoked, the service validates the suborder and schedules the courier if conditions are met.

Merchant eligibility

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

Suborder eligibility

The suborder must satisfy both of the following conditions:

  • status_context is IN_TRANSIT or ON_THE_BORDER
  • status is PACKED or PARTIALLY_PACKED

If these conditions are not met, the API returns:

Suborder is not in correct state for scheduling

Request

HTTP MethodPOST
URLQA2https://api.qa2.ananastest.com/order/api/v1/merchant-integration/outbound-orders/{suborderId}/packSchedule
Productionhttps://api.ananas.rs/order/api/v1/merchant-integration/outbound-orders/{suborderId}/packSchedule
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 /packSchedule

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

Response

The endpoint will return status 204 - No Content.

Copyright © Ananas 2023. All right reserved.