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

Headers

{
    "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
        }
    ]
}

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

Request Body

{
    "status": "PASS",
    "message": {
        "id": 930,
        "po_number": "18052210123469767"
    }
}
{
    "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

Request Body

{
    "status": "PASS",
    "message": {
        "id": 930,
        "po_number": "18052210123469767"
    }
}
{
    "po_number": "18052210123469767",
    "description": "Purchase Order description"
}

Last updated