GET Purchase Order Detail by Order Number

Last Updated by 27/10/2022

Shipper API gives interface access to our clients for retrieving or pulling Purchase Order Detail by ID API from Shipper Warehouse Management System

GET Purchase Order Detail Data

FieldEndpoint
GET/v3/fulfillment/warehouse/{warehouse_id}/inbound/{order_number}

Path Parameter

FieldData TypeDescriptionNotes
warehouse_idStringRegistered warehouse identification

Example: WH-TGR04
Mandatory
order_numberStringRegistered Order Number

Example: PO000019
Mandatory

Response Parameter

FieldData TypeDescriptionNote
warehouse_idStringRegistered Warehouse IdentificationAvailable
order_noStringRegistered Order NumberAvailable
po_statusStringPurchase Order Status, divided by 4 categories, “CREATED”, “PROCESSING“, “CLOSED“, “CANCELLED“Available
order_typeString“CG” for Normal Inbound. “RT” for Inbound ReturnAvailable
supplier_idStringRegistered Supplier IdentificationAvailable
po_dateyyyy-MM-dd HH:mm:ssPurchase Order Created DateAvailable
DETAILS
reference_noStringPurchase Order NoAvailable
line_noIntegerLine NoAvailable
skuStringSKU Code (Registered at WMS)Available
pack_idStringUoM Conversion IDAvailable
received_timeyyyy-MM-dd HH:mm:ssGoods Received Date TimeAvailable
expected_qtyIntegerQTY Expected from SKUAvailable
received_qtyIntegerQTY Received from SKUAvailable
mfg_dateyyyy-MM-ddManufacturing DateAvailable
exp_dateyyyy-MM-ddExpired DateAvailable
batch_noStringBatch NoAvailable
serial_noStringSerial NoAvailable
receipt_dateyyyy-MM-dd HH:mm:ssReceipt DateReturn Empty String
product_conditionStringProduct Condition such as OK, DamageAvailable
grn_noStringGRN NoAvailable
notesStringRemarksAvailable

Sample Query Parameters Request

/v3/fulfillment/inbounds?warehouse_id=WH-TGR04&po_type=CG&po_status=CREATED&created_start=2021-04-01&created_end=2021-04-10&updated_start=2021-04-01&updated_end=2021-04-10&page=1&limit=10&sort_by=po_status

Sample Body Response

{
  "metadata": {
    "path": "/v3/fulfillment/warehouse/WH-TGR04/inbound/PO000019?%3Aorder_number=PO000019&%3Awarehouse_id=WH-TGR04&",
    "http_status_code": 200,
    "http_status": "OK",
    "timestamp": 1637654084
  },
  "data": {
    "inbound": {
      "warehouse_id": "WH-TGR04",
      "order_no": "",
      "po_status": "CREATED",
      "order_type": "CG",
      "po_date": "2021-04-01",
      "supplier_id": "",
      "details": [
        {
          "reference_no": "",
          "line_no": 1,
          "sku": "JTA-ARROWS",
          "pack_id": "JTA-ARROWS",
          "received_time": "",
          "expected_qty": 500,
          "received_qty": 0,
          "mfg_date": "",
          "exp_date": "",
          "batch_no": "",
          "serial_no": "",
          "receipt_date": "",
          "product_condition": "N",
          "grn_no": "ASN21040100004",
          "notes": ""
        },
        {
          "reference_no": "",
          "line_no": 2,
          "sku": "P-NYERILUTUT",
          "pack_id": "P-NYERILUTUT",
          "received_time": "",
          "expected_qty": 200,
          "received_qty": 0,
          "mfg_date": "",
          "exp_date": "",
          "batch_no": "",
          "serial_no": "",
          "receipt_date": "",
          "product_condition": "N",
          "grn_no": "ASN21040100004",
          "notes": ""
        }
      ]
    }
  }
}
{
    "metadata": {
        "path": "/v3/fulfillment/warehouse/WG-123/inbound/PO-1999?%3Aorder_number=PO-1999&%3Awarehouse_id=WG-123&",
        "http_status_code": 401,
        "http_status": "Unauthorized",
        "errors": [
            {
                "code": 10001,
                "message": "Unauthorized Access. You are not authorized to access this resource."
            }
        ],
        "timestamp": 1637654466
    }
}
{
  "metadata": {
    "path": "/v3/fulfillment/warehouse/WG-123/inbound/PO000019?%3Aorder_number=PO000019&%3Awarehouse_id=WG-123&",
    "http_status_code": 404,
    "http_status": "Not Found",
    "errors": [
      {
        "code": 10004,
        "message": "Record Does Not Exist. Please Validate Your Input Or Contact Administrator."
      }
    ],
    "timestamp": 1637654251
  }
}
{
  "metadata": {
    "path": "/v1/fulfillment/client/information",
    "http_status_code": 500,
    "http_status": "Internal Server Error",
    "errors": [
      {
        "code": 803,
        "message": "Internal Server error."
      }
    ],
    "timestamp": 1637555484
  }
}
StatusReason
200Success
401Invalid API Key
404Invalid PO Order Number
500Server Error
Please contact Shipper's representative