Purchase Order
Extract procurement details from a purchase order including buyer, vendor, line items, totals, and approval information.
The fields this preset extracts.
po_numberstringUnique purchase order reference number.
po_datestringDate the purchase order was issued in ISO-8601 format (YYYY-MM-DD).
buyerobjectOrganization placing the purchase order.
namestringLegal name of the buyer organization.
addressstringStreet address of the buyer.
contact_namestringName of the primary buyer contact.
contact_emailstringEmail address of the buyer contact.
contact_phonestringPhone number of the buyer contact.
billing_addressstringBilling address if different from primary address.
tax_idstringTax identification number (IN or VAT ID) of the buyer.
vendorobjectOrganization supplying goods or services.
namestringLegal name of the vendor.
addressstringStreet address of the vendor.
contact_namestringName of the primary vendor contact.
contact_emailstringEmail address of the vendor contact.
contact_phonestringPhone number of the vendor contact.
ship_toobjectDestination address for goods delivery.
delivery_date_requestedstringRequested delivery date in ISO-8601 format (YYYY-MM-DD).
payment_termsstringPayment terms description (e.g., 'Net 30', '2/10 Net 30').
incotermsstringInternational commercial terms governing delivery and cost allocation (e.g., 'FOB', 'CIF').
line_itemsarray<object>Array of ordered products or services.
subtotalnumberSubtotal of all line items as a decimal number without currency symbol.
tax_totalnumberTotal tax amount as a decimal number without currency symbol.
shipping_totalnumberTotal shipping cost as a decimal number without currency symbol.
total_amountnumberTotal order amount (subtotal + tax + shipping) as a decimal number without currency symbol.
currencystringISO 4217 currency code (e.g., 'USD', 'EUR', 'GBP').
notesstringSpecial instructions, notes, or terms.
approvalobjectPurchase order approval information.
curl -X POST 'https://app.staging.xberg.io/v1/extract' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-F 'file=@your-document.pdf' \
--form-string 'options={"preset":"purchase_order"}'- Call mode
- Text and vision
- Citations
- Enabled
- Version
- v1
The instructions Xberg gives the AI model when it extracts this document type.
You are extracting procurement data from a purchase order document. Extract all fields exactly as they appear. Preserve the PO number, date, buyer name, vendor name, and all line item details (SKU, description, quantity, unit price, line total). Record all numerical amounts (subtotal, tax, shipping, total) as decimal numbers without currency symbols. Dates must be in ISO-8601 format (YYYY-MM-DD). Currency code must be the three-letter ISO 4217 code (USD, EUR, etc.) without symbols. Include shipping and billing addresses if present. Record line items as an array with sequential ordering. If approval information is present, extract the approver name and approval date. Provide citations for all extracted values. If the document does not match this preset, return {}. Extract only values supported by the document. Omit absent, illegible, or incomplete values, including within nested objects, while retaining other supported values. Do not infer, guess, supply defaults, or calculate missing values. Omit dates whose complete year, month, and day are not explicit. Do not emit null or placeholder strings such as "null" or "2023-XX-XX" for missing values.