Blowhorn API Documentation
  • Welcome
  • API REFERENCE
    • Authentication
      • Customer Authentication
      • Partner Authentication
    • Orders
      • Shipment Orders
      • Marketplace Orders
      • Cancel Order
      • Order Event
      • Order Event History
      • ETA
      • Delivery Partner Details
      • Order Documents
    • Drivers
      • Available Vehicle Class
      • Driver Availability
      • Payday Loan Eligibility
      • Driver Details
      • Driver Balance
      • Driver Deductions
    • Locations
      • Serviceability
      • Hubs
      • Coverage
      • Location Type
      • Storage Type
      • Location Zone
      • Location
    • WMS Inbound
      • Clients
      • Suppliers
      • Purchase Orders
      • Advance Shipping Notice
      • Goods Receipt Note
    • WMS Outbound
      • Shipping Label
      • Shipping Manifest
    • Inventory
      • Product Group
      • Tracking Level
      • Pack Config
      • SKU
      • Inventory
      • Inventory Transaction
    • Webhooks
      • HMAC Authentication
      • Order Status
      • Trip Status
      • Inventory Status
  • Help
    • FAQ
Powered by GitBook
On this page
  • Fetch Purchase Order(s)
  • Create a Purchase Order
  • Update a Purchase Order

Was this helpful?

  1. API REFERENCE
  2. WMS Inbound

Purchase Orders

Purchase Order is the build of materials / request list of inventory to be fulfilled by the warehouse

Fetch Purchase Order(s)

GET /wms/purchase-order

Use this api to get the details of the Purchase Order Receipt providing details on whether the warehouse management system was successful in receiving the requested quantity of each detail line on the PO. It chiefly contains the status, phone number and invoice number.

Query Parameters

Name
Type
Description

id

String

id number of the purchase order returned at the time of purchase order creation.

po_number

String

purchase order number

supplier

String

supplier id for the purchase order

supplier_name

String

supplier name for the purchase order

description

String

Full or partial description text of matching purchase order

site

String

site id to which purchase order was created for.

site_name

String

site name to which purchase order was created for.

status

String

Status of the purchase order.

Ex:New, In-Progress, Completed, Expired

delivery_date_start

String

Start date which is inclusive to filter the result based on.

Note: This works only if both delivery_date_start and delivery_date_end are provided.

Ex: 2022-01-01

delivery_date_end

String

End date which is inclusive to filter the result based on.

Note: This works only if both delivery_date_start and delivery_date_end are provided.

Ex: 2022-01-01

expiry_date_start

String

Start date which is inclusive to filter the result based on.

Note: This works only if both expiry_date_start and expiry_date_end are provided.

Ex: 2022-01-01

expiry_date_end

String

End date which is inclusive to filter the result based on.

Note: This works only if both expiry_date_start and expiry_date_end are provided.

Ex: 2022-01-01

invoice_number

String

Invoice number for the purchase order.

Headers

Name
Type
Description

API_KEY*

string

API key obtained by the Customer/Partner

{
    "count": 1,
    "previous": null,
    "next": 0,
    "result": [
        {
            "id": 1,
            "sku_lines": [
                {
                    "id": 9,
                    "sku": "Sample 123456",
                    "pack_config": {
                        "id": 4,
                        "tracking_level": "Each",
                        "created_date": "2021-07-30T17:53:01.396745+05:30",
                        "modified_date": "2021-07-30T17:53:01.397988+05:30",
                        "name": "Box of 25",
                        "each_volume": 1,
                        "each_weight": 250,
                        "tag_volume": 1,
                        "use_each_volume": true,
                        "use_tag_volume": false,
                        "uom": null,
                        "created_by": 108434,
                        "modified_by": 108434,
                        "each_dimension": null,
                        "customer": 40082
                    },
                    "created_date": "2022-05-26T12:47:45.228470+05:30",
                    "modified_date": "2022-05-26T12:47:45.228611+05:30",
                    "status": "New",
                    "qty": 77.0,
                    "qty_received": 6.0,
                    "price_per_qty": 22.0,
                    "item_desc": "Nice quality",
                    "created_by": null,
                    "modified_by": null,
                    "purchase_order": 941,
                    "maximum_retail_price": 25.0,
                    "discount": 3.0,
                    "discount_percentage": 12.0
                }
            ],
            "created_date": "2021-09-18T18:24:56.142039+05:30",
            "modified_date": "2021-09-18T18:24:58.238885+05:30",
            "po_number": "180921125456141585",
            "receiving_number": "RN180921125456590192",
            "invoice_number": null,
            "description": null,
            "delivery_date": "2021-09-18T18:24:56.141581+05:30",
            "expiry_date": null,
            "status": "Completed",
            "total_price": 0,
            "batch": null,
            "serial_number": null,
            "file": "http://localhost/media/uploads/documents/wmss/purchaseorder_1/2021-09-18/1W4MYRU/RN180921125456590192.PDF",
            "created_by": 109050,
            "modified_by": 109050,
            "supplier": 4,
            "site": 7
        }
    ]
}
{
  "status": "FAIL",
  "message": "Unauthorized"
}
{
  "status": "FAIL",
  "message": "Unexpected error"
}
{
    "count": 1,
    "previous": null,
    "next": 0,
    "result": []
}

Create a Purchase Order

POST /wms/purchase-order

Use this api to create a purchase order. A purchase order is a commercial document with agreed prices between buyer and seller. It is usually sent by the warehouse manager post getting the goods as a receipt.

Headers

Name
Type
Description

API_KEY*

string

API key obtained by the Customer/Partner

Request Body

Name
Type
Description

po_number*

String

Purchase Order number

supplier

String

Supplier id for the purchase order.

Note: This field is conditionally optional. Either supplier or supplier_name should be provided.

supplier_name

String

Supplier name for the purchase order.

Note: This field is conditionally optional. Either supplier or supplier_name should be provided.

description

String

Full or partial description text of matching purchase order

site

String

Site id to which purchase order was created for.

Note: This field is conditionally optional. Either site or site_name should be provided.

site_name

String

Unique Site name to which purchase order was created for.

Note: This field is conditionally optional. Either site or site_name should be provided.

status

String

Status of the purchase order.

Ex: New, In-Progress, Completed, Expired

delivery_date

String

Delivery date of the purchase order.

Ex:2022-01-01

expiry_date

String

Expiry date of the purchase order.

Ex:2022-01-01

total_price

String

total price of all the items of the same SKU

batch

String

Batch number

serial_number

String

Serial Number

sku_lines*

String

Array containing SKUs information against those purchase order is created

sku_lines/sku_name

String

SKU name which should be uniquely identifiable in Blowhorn system.

sku_lines/status

String

?

sku_lines/qty*

String

Total quantity of the same SKU

sku_lines/price_per_qty

String

Price of the SKU per unit.

sku_lines/item_desc

String

SKU description.

sku_lines/maximum_retail_price

String

Maximum retail price of the SKU.

sku_lines/discount

String

Discount amount if any applied on the SKU.

sku_lines/discount_percentage

String

What percentage of discount applied on the SKUs maximum retail price if any.

invoice_number

String

Invoice number for the purchase order

invoice_date

String

Invoice date for the purchase order

{
    "status": "PASS",
    "message": {
        "id": 930,
        "po_number": "18052210123469767"
    }
}
{
  "status": "FAIL",
  "message": "Unauthorized"
}
{
  "status": "FAIL",
  "message": "Unexpected error"
}
{
    "status": "FAIL",
    "message": "Error when creating the PurchaseOrder. Reason: PurchaseOrder with po_number: 18052210123469766 already exists."
}
{
    "po_number": "18052210123469767",
    "invoice_number", "1234567",
    "invoice_date": "2022-05-24"
    "description": "Purchase Order description",
    "delivery_date": "2022-05-24",
    "expiry_date": "2022-05-30",
    "status": "New",
    "total_price": 125.50,
    "batch": "yes",
    "serial_number": 54943,
    "supplier": 7,
    "supplier_name": "Default Supplier",
    "site": 7,
    "site_name": "Banashankari WH",
    "sku_lines": [
        {
            "sku_name": "Sample 123456",
            "status": "New",
            "qty": 77,
            "qty_received": 6,
            "price_per_qty": 22,
            "item_desc": "Nice quality",
            "maximum_retail_price": 25.0,
            "discount": 3.0,
            "discount_percentage": 12.0
        },
        {
            "sku_name": "Sample 123455",
            "status": "New",
            "qty": 55,
            "qty_received": 10,
            "price_per_qty": 11,
            "item_desc": "Good quality"
            "maximum_retail_price": null,
            "discount": null,
            "discount_percentage": null
        }
    ]
}

Update a Purchase Order

PUT /wms/purchase-order

Updates the details of an existing purchase order. Note: Purchase order number or purchase order id is mandatory in order to proceed with updating the purchase order. check the documents for more details.

Headers

Name
Type
Description

API_KEY*

string

API key obtained by the Customer/Partner

Request Body

Name
Type
Description

po_number*

String

Purchase Order number

supplier

String

Supplier id for the purchase order.

Note: This field is conditionally optional. Either supplier or supplier_name should be provided.

supplier_name

String

Supplier name for the purchase order.

Note: This field is conditionally optional. Either supplier or supplier_name should be provided.

description

String

Full or partial description text of matching purchase order

site

String

Site id to which purchase order was created for.

Note: This field is conditionally optional. Either site or site_name should be provided.

site_name

String

Unique Site name to which purchase order was created for.

Note: This field is conditionally optional. Either site or site_name should be provided.

status

String

Status of the purchase order.

Ex: New, In-Progress, Completed, Expired

delivery_date

String

Delivery date of the purchase order.

Ex:2022-01-01

expiry_date

String

Expiry date of the purchase order.

Ex:2022-01-01

total_price

String

total price of all the items of the same SKU

batch

String

Batch number

serial_number

String

Serial Number

sku_lines*

String

Array containing SKUs information against those purchase order is created

sku_lines/sku_name

String

SKU name which should be uniquely identifiable in Blowhorn system.

sku_lines/status

String

Status of the inventory. i.e Unlocked or Locked

sku_lines/qty*

String

Total quantity of the same SKU

sku_lines/price_per_qty

String

Price of the SKU per unit.

sku_lines/item_desc

String

SKU description.

sku_lines/maximum_retail_price

String

Maximum retail price of the SKU.

sku_lines/discount

String

Discount amount if any applied on the SKU.

sku_lines/discount_percentage

String

What percentage of discount applied on the SKUs maximum retail price if any.

{
    "status": "PASS",
    "message": {
        "id": 930,
        "po_number": "18052210123469767"
    }
}
{
  "status": "FAIL",
  "message": "Unauthorized"
}
{
  "status": "FAIL",
  "message": "Unexpected error"
}
{
    "status": "FAIL",
    "message": "Error when updating the PurchaseOrder. Reason: PurchaseOrder with po_number: 18052210123469766 does not exists."
}
{
    "po_number": "18052210123469767",
    "description": "Purchase Order description"
}
{
    "po_number": "18052210123469767",
    "delivery_date": "2022-05-24",
    "expiry_date": "2022-05-30",
    "status": "Completed",
}
{
    "po_number": "18052210123469767",
    "sku_lines": [
        {
            "sku_name": "Sample 123456",
            "status": "New",
            "qty": 77,
            "qty_received": 6,
            "price_per_qty": 22,
            "item_desc": "Nice quality",
            "maximum_retail_price": 25.0,
            "discount": 3.0,
            "discount_percentage": 12.0
        }
    ]
}
PreviousSuppliersNextAdvance Shipping Notice

Last updated 2 years ago

Was this helpful?