List purchase orders
const options = {method: 'GET'};
fetch('https://api.dolfinai.co/purchase-orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"poNumber": "<string>",
"currency": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"supplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalRef": "<string>",
"orderDate": "2023-11-07T05:31:56Z",
"expectedDeliveryDate": "2023-11-07T05:31:56Z",
"lines": [
{
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sku": "<string>",
"quantityOrdered": 123,
"unit": "<string>",
"unitPrice": 123,
"taxRate": 123,
"taxAmount": 123,
"subTotal": 123,
"sortOrder": 123,
"matchedQuantity": 123,
"fullyMatched": true
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"meta": {
"cursors": {
"current": "<string>",
"next": "<string>",
"previous": "<string>"
}
}
}Purchase Orders
List purchase orders
List purchase orders for the organisation, optionally filtered by supplier, with cursor-based pagination.
GET
/
purchase-orders
List purchase orders
const options = {method: 'GET'};
fetch('https://api.dolfinai.co/purchase-orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"poNumber": "<string>",
"currency": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"supplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalRef": "<string>",
"orderDate": "2023-11-07T05:31:56Z",
"expectedDeliveryDate": "2023-11-07T05:31:56Z",
"lines": [
{
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sku": "<string>",
"quantityOrdered": 123,
"unit": "<string>",
"unitPrice": 123,
"taxRate": 123,
"taxAmount": 123,
"subTotal": 123,
"sortOrder": 123,
"matchedQuantity": 123,
"fullyMatched": true
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"meta": {
"cursors": {
"current": "<string>",
"next": "<string>",
"previous": "<string>"
}
}
}⌘I