Download OpenAPI specification:Download
Endpoint to ingest purchase orders.
| skipDuplicates | boolean Whether to skip duplicate purchase orders |
| buyerOrgId required | string Identifier for the buyer's organization |
required | Array of objects (SinglePurchaseOrder) List of purchase orders |
{- "skipDuplicates": false,
- "buyerOrgId": "14195",
- "purchaseOrders": [
- {
- "status": 1,
- "metadata": {
- "pocode": "BUYER25689",
- "podate": "03/11/2023 18:23:45",
- "vendor_code": "330",
- "vendor_name": "DURATEX APPARELS",
- "exp_del_date": "30/11/2023 00:00:00",
- "buyername": "Default"
}, - "purchaseOrderNumber": "BUYER25689",
- "buyFromVendorMasterNumber": "330",
- "sourceCreationDate": "2023-11-03T18:15:48",
- "deliveryAt": "2023-11-30T00:00:00",
- "shipToBuyerFacilityCode": "BUYER",
- "billToBuyerFacilityCode": "BUYER",
- "totalAmount": 493500,
- "purchaseOrderItems": [
- {
- "metadata": {
- "skucode": "250831",
- "skuname": "Plaid: Gold & White (Utility)"
}, - "materialDescription": "Plaid: Gold & White (Utility)",
- "purchaseOrderItemNo": "250831",
- "quantity": 40,
- "quantityReceived": 29,
- "ratePerUnit": 470,
- "gstRate": 5,
- "discount": 0,
- "netAmount": 18800,
- "totalGstAmount": 940,
- "itemTotalAmount": 19740
}
], - "payToVendorMasterNumber": "330",
- "itemCount": 1,
- "deliveredTotalAmount": 380700
}
]
}{- "message": "Ingestion data accepted for processing.",
- "batchId": "00hQAanwMn"
}Endpoint to ingest Goods Receipt Note (GRN)
GRN Request
| skipDuplicates | boolean Flag to skip duplicate entries |
| buyerOrgId required | string ID of the buying organization |
required | Array of objects (GRNItems) List of Goods Receipt Note entries |
{- "value": {
- "skipDuplicates": false,
- "buyerOrgId": "212312",
- "grns": [
- {
- "metadata": {
- "pocode": "BUYER23175"
}, - "grnNumber": "BUYER001777290",
- "buyFromVendorMasterNumber": "339",
- "vendorInvoiceNo": "784/23-24",
- "orderNo": "BUYER23175",
- "sourceCreationDate": "2023-12-11T12:05:33",
- "shipToBuyerFacilityCode": "BUYER",
- "grnItems": [
- {
- "metadata": {
- "lineno": "1"
}, - "grnItemNumber": "234039",
- "quantity": "47.000",
- "unitCost": "465.000",
- "gstPercent": "5.00",
- "lineDiscount": 0,
- "qtyRejected": "0"
}
], - "billToBuyerFacilityCode": "BUYER",
- "payToVendorMasterNumber": "339"
}
]
}
}{- "message": "Ingestion data accepted for processing.",
- "batchId": "00hQAanwMn"
}Errors for Purchase Orders
| batchId required | string Find errors for particular ingestion batch |
{- "purchaseOrders": [
- {
- "status": 1,
- "purchaseOrderNumber": "BUYER25098",
- "buyFromVendorMasterNumber": 379,
- "sourceCreationDate": "2023-10-10T21:34:20",
- "deliveryAt": "2023-12-15T00:00:00",
- "shipToBuyerFacilityCode": "BUYER",
- "billToBuyerFacilityCode": "BUYER",
- "totalAmount": 588000,
- "payToVendorMasterNumber": 379,
- "itemCount": 6,
- "deliveredTotalAmount": 0,
- "poVendorCode": null,
- "error": "Vendor Master: 379 not found"
}
]
}