An request object containing criteria for searching for purchase orders
Success
Internal server error
{- "updatedDateRange": {
- "startDate": "2019-08-24",
- "endDate": "2019-08-24"
}, - "includeArchived": true,
- "purchaseOrderStatuses": [
- "DRAFT"
]
}{- "currentPageToken": "string",
- "nextPageToken": "string",
- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "createdDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "archived": true,
- "status": "DRAFT",
- "paid": true,
- "supplier": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "accountNumber": "string",
- "address": {
- "regionCode": "string",
- "addressLines": [
- "string"
], - "revision": 0,
- "languageCode": "string",
- "postalCode": "string",
- "sortingCode": "string",
- "administrativeArea": "string",
- "locality": "string",
- "sublocality": "string"
}, - "contactName": "string",
- "phoneDetails": {
- "countryCode": "string",
- "countryIsoCode": "string",
- "nationalNumber": "string"
}, - "email": "string"
}, - "toastGeneratedPurchaseOrderNumber": 0,
- "externalPurchaseOrderNumber": "string",
- "externalInvoiceNumber": "string",
- "items": [
- {
- "itemVersionId": "7cc9611b-d6ff-446b-b471-09a1f7e86228",
- "name": "string",
- "supplierItemId": "string",
- "orderedItemInfo": {
- "orderedQuantity": 0,
- "orderedUnit": {
- "name": "string",
- "quantityInUnit": 0
}, - "orderedCost": {
- "baseCost": 0,
- "subtotal": 0,
- "total": 0,
- "landedCost": 0
}
}, - "taxes": [
- {
- "name": "string",
- "absoluteValue": 0,
- "percentageValue": 0
}
], - "fees": [
- {
- "name": "string",
- "absoluteValue": 0,
- "percentageValue": 0,
- "isTaxable": true
}
], - "discounts": [
- {
- "name": "string",
- "absoluteValue": 0,
- "percentageValue": 0
}
], - "receivedEvents": [
- {
- "receivedQuantity": 0,
- "receivedUnit": {
- "name": null,
- "quantityInUnit": null
}, - "receivedCosts": {
- "baseCost": null,
- "subtotal": null,
- "total": null,
- "landedCost": null
}, - "inventoryHistoryId": "3107fb4f-3a12-4893-8757-81a434dce7f2"
}
]
}
], - "distributionStrategies": {
- "taxDistributionStrategy": "ITEM_TOTAL_COST",
- "feesDistributionStrategy": "ITEM_TOTAL_COST",
- "discountsDistributionStrategy": "ITEM_TOTAL_COST"
}, - "purchaseOrderTotals": {
- "itemsSubtotal": 0,
- "subtotalCost": 0,
- "totalCost": 0
}, - "expectedDate": "2019-08-24T14:15:22Z",
- "purchasingEntityInfo": {
- "taxes": [
- {
- "name": "string",
- "absoluteValue": 0,
- "percentageValue": 0
}
], - "fees": [
- {
- "name": "string",
- "absoluteValue": 0,
- "percentageValue": 0,
- "isTaxable": true
}
], - "discounts": [
- {
- "name": "string",
- "absoluteValue": 0,
- "percentageValue": 0,
- "combineWithItemDiscounts": true
}
]
}, - "supplierNotes": "string",
- "receivingNotes": "string"
}
]
}