Cancel Purchase Order

Last Updated by 31/10/2022

Shipper API gives interface access to our clients for canceling Purchase Order from their own system to Shipper Warehouse Management System.

Sales Order only able to cancel if WMS has not allocated any stock to that Sales Order

PATCH Purchase Order

FieldEndpoint
PATCHv3/fulfillment/inbound/cancel

Body Request Paramater

FieldData TypeDescriptionNote
cancel_reasonstringCancellation ReasonMandatory
order_noString(20)Purchase Order NoMandatory
warehouse_idString(60)Warehouse Id Given by ShipperMandatory

Sample Body Request

{
  "data": {
    "cancellation": {
      "order_no": "KZFILN0HRC9RDXJTZBJS",
      "cancel_reason": "tidak jadi membuat inbound",
      "warehouse_id": "PMU"
    }
  }
}

Sample Response

{
    "metadata": {
        "path": "/v3/fulfillment/outbound/oms/cancel",
        "http_status_code": 200,
        "http_status": "OK",
        "timestamp": 1637907242
    }
}
{
  "metadata": {
    "path": "/v3/fulfillment/outbound/oms/cancel",
    "http_status_code": 400,
    "http_status": "Bad Request",
    "errors": [
      {
        "code": 810,
        "message": "Invalid Input. Please Validate Your Input."
      }
    ],
    "timestamp": 1637907103
  }
}
{
  "metadata": {
    "path": "/v1/fulfillment/cancel-outbound-oms",
    "http_status_code": 500,
    "http_status": "Internal Server Error",
    "timestamp": 1615969609
  }
}