ok | boolean | Indicates whether the request was successful |
data | object | Contains the purchase order details |
data.poId | string | Unique slug identifier for the purchase order |
data.poNumber | string | Purchase order number assigned to the document |
data.state | string | Current state of the PO. Possible values: DRAFTED, PENDING, APPROVED, DECLINED, CLOSED, ARCHIVED |
data.poType | string | Purchase order type. Possible values: GOODS, SERVICES |
data.matchingType | string | Matching type. Possible values: TWO_WAY, THREE_WAY |
data.currency | string | ISO 4217 currency code (e.g., INR) |
data.amount | number | Total purchase order amount |
data.description | string | Short description for the purchase order |
data.poDate | string | Purchase order date (ISO 8601 format, YYYY-MM-DD) |
data.deliveryDate | string | Requested delivery date (ISO 8601 format, YYYY-MM-DD) |
data.termsAndConditions | string | Terms and conditions for the purchase order |
data.additionalNotes | string | Additional notes for delivery or special requirements |
data.paymentTerms | string | Agreed payment terms |
data.vendor | object | Linked vendor information (null if no vendor linked) |
data.vendor.displayName | string | Vendor display name |
data.vendor.legalName | string | Vendor legal name |
data.lineItems | array | List of line items on the purchase order |
data.lineItems[].identifier | string | SKU or identifier for the line item |
data.lineItems[].quantity | number | Quantity requested |
data.lineItems[].rate | number | Unit rate |
data.lineItems[].amount | number | Total amount for this line item (quantity × rate) |
data.matchedInvoices | array | List of invoices matched against this purchase order |
data.matchedInvoices[].invoiceId | string | Unique identifier of the matched invoice |
data.matchedInvoices[].invoiceNumber | string | Invoice number |
data.matchedInvoices[].state | string | Current state of the invoice |
data.matchedInvoices[].amount | number | Invoice amount |
data.matchedInvoices[].currency | string | Invoice currency |
data.matchedInvoices[].invoiceDate | string | Invoice date (ISO 8601 format) |
data.matchedGrns | array | List of Goods Receipt Notes matched against this purchase order |
data.matchedGrns[].grnId | string | Unique identifier of the matched GRN |
data.matchedGrns[].grnNumber | string | GRN number |
data.matchedGrns[].state | string | Current state of the GRN |
data.matchedGrns[].amount | number | GRN total amount |
data.matchedGrns[].totalQuantity | number | Total quantity received in the GRN |
data.matchedGrns[].createdAt | string | Date the GRN was created (ISO 8601 format) |