GET List Purchase Order

Last Updated by 27/10/2022

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

GET Create Master Data

FieldEndpoint
GET/v3/fulfillment/inbounds

Query Parameter

FieldData TypeDescriptionMandatory Field
created_startyyyy-MM-ddStart Date for searching Purchase Order by creation date

Example: 2021-11-01
Optional
created_endyyyy-MM-ddEnd Date for searching Purchase Order by creation date

Example: 2021-11-01
Optional
updated_startyyyy-MM-ddStart Date for searching Purchase Order by updated date

Example: 2021-11-01
Optional
updated_endyyyy-MM-ddEnd Date for searching Purchase Order by updated date

Example: 2021-11-01
Optional
warehouse_idStringRegistered warehouse identification

Example: WH-TGR04
Optional
po_typeStringPO Type :

“CG” for Normal Inbound.
“RT” for Inbound Return
Optional
po_statusStringPurchase Order Status, divided by 4 categories,

“CREATED”,
“PROCESSING“,
“CLOSED“,
“CANCELLED“
Optional
pageIntegerPage Number

Example: 1
Optional
limitIntegerItem Limit per Page

Example: 100
Optional
sort_byString [Array]Sort by Attributes: po_type, po_statusOptional

Body Response

FieldData TypeDescriptionNote
warehouse_idStringRegistered warehouse identificationAvailable
order_noStringOrder number’s POAvailable
po_statusStringPurchase Order StatusAvailable
order_typeStringOrder typeAvailable

Value:
“CG” for Normal Inbound or “RT” for Inbound Return
po_dateyyyy-MM-ddPurchase Order Created DateAvailable

Sample Query Parameters Request

HeaderHow to fill
x-api-keyShipper API Key
/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
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/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",
    "http_status_code": 200,
    "http_status": "OK",
    "timestamp": 1637652606
  },
  "data": {
    "inbounds": [
      {
        "warehouse_id": "WH-TGR04",
        "order_no": "PO000018",
        "po_status": "CREATED",
        "order_type": "CG",
        "po_date": "2021-04-01"
      }
    ]
  }
{
  "metadata": {
    "path": "/v3/fulfillment/inbounds?warehouse_id=WH-TGR04&po_type=CGA&po_status=CREATED&created_start=2021-04-01&created_end=2021-04-01&updated_start=2021-04-01&updated_end=2021-04-01&page=1&limit=10&sort_by=po_status",
    "http_status_code": 400,
    "http_status": "Bad Request",
    "errors": [
      {
        "code": 800,
        "message": "Invalid Input. Please Validate Your Input."
      }
    ],
    "timestamp": 1637653255
  }
}
{
  "metadata": {
    "path": "/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",
    "http_status_code": 401,
    "http_status": "Unauthorized",
    "errors": [
      {
        "code": 10001,
        "message": "Unauthorized Access. You are not authorized to access this resource."
      }
    ],
    "timestamp": 1637653095
  }
}
{
  "metadata": {
    "path": "/v3/fulfillment/inbounds?warehouse_id=WH-TGR04&po_type=CG&po_status=CREATED&created_start=2021-04-01&created_end=2021-04-01&updated_start=2021-04-01&updated_end=2021-04-01&page=1&limit=10&sort_by=po_status",
    "http_status_code": 404,
    "http_status": "Not Found",
    "errors": [
      {
        "code": 801,
        "message": "Record Does Not Exist. Please Validate Your Input Or Contact Administrator."
      }
    ],
    "timestamp": 1637652836
  }
}
StatusReason
201PO Creation success
400Please check your input.
Make sure the JSON payload is correct
Make sure the requested input are valid.
401Please check whether your API Key is valid and still active.
500Something wrong with Shipper application.
Please contact Shipper representative.