Purchase Order
Extract procurement details from a purchase order including buyer, vendor, line items, totals, and approval information.
curl -X POST $XBERG_ENTERPRISE_URL/v1/extract \ -H "Authorization: Bearer $XBERG_API_KEY" \ -F file=@your-purchase_order.pdf \ -F 'preset=purchase_order'

Structured fields extracted by this preset
po_numberstringrequiredUnique purchase order reference number.
po_datestringrequiredDate the purchase order was issued in ISO-8601 format (YYYY-MM-DD).
buyerobjectrequiredOrganization placing the purchase order.
namestringrequiredLegal 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.
vendorobjectrequiredOrganization supplying goods or services.
namestringrequiredLegal 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>requiredArray 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_amountnumberrequiredTotal order amount (subtotal + tax + shipping) as a decimal number without currency symbol.
currencystringrequiredISO 4217 currency code (e.g., 'USD', 'EUR', 'GBP').
notesstringSpecial instructions, notes, or terms.
approvalobjectPurchase order approval information.
Configuration
Call Mode
text_plus_visionCitations
EnabledVersion
v1Tags
+System Prompt
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. Ensure all required fields are present: po_number, po_date, buyer.name, vendor.name, line_items array (non-empty), total_amount, and currency. Provide citations for all extracted values.