Purchase Order

Finance

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'
Sample Purchase Order document

Structured fields extracted by this preset

po_numberstringrequired

Unique purchase order reference number.

po_datestringrequired

Date the purchase order was issued in ISO-8601 format (YYYY-MM-DD).

buyerobjectrequired

Organization placing the purchase order.

namestringrequired

Legal name of the buyer organization.

addressstring

Street address of the buyer.

contact_namestring

Name of the primary buyer contact.

contact_emailstring

Email address of the buyer contact.

contact_phonestring

Phone number of the buyer contact.

billing_addressstring

Billing address if different from primary address.

tax_idstring

Tax identification number (IN or VAT ID) of the buyer.

vendorobjectrequired

Organization supplying goods or services.

namestringrequired

Legal name of the vendor.

addressstring

Street address of the vendor.

contact_namestring

Name of the primary vendor contact.

contact_emailstring

Email address of the vendor contact.

contact_phonestring

Phone number of the vendor contact.

ship_toobject

Destination address for goods delivery.

delivery_date_requestedstring

Requested delivery date in ISO-8601 format (YYYY-MM-DD).

payment_termsstring

Payment terms description (e.g., 'Net 30', '2/10 Net 30').

incotermsstring

International commercial terms governing delivery and cost allocation (e.g., 'FOB', 'CIF').

line_itemsarray<object>required

Array of ordered products or services.

subtotalnumber

Subtotal of all line items as a decimal number without currency symbol.

tax_totalnumber

Total tax amount as a decimal number without currency symbol.

shipping_totalnumber

Total shipping cost as a decimal number without currency symbol.

total_amountnumberrequired

Total order amount (subtotal + tax + shipping) as a decimal number without currency symbol.

currencystringrequired

ISO 4217 currency code (e.g., 'USD', 'EUR', 'GBP').

notesstring

Special instructions, notes, or terms.

approvalobject

Purchase order approval information.

Configuration

Call Mode

text_plus_vision

Citations

Enabled

Version

v1

Tags

poprocurementvendorbuyerline-items
+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.

Open-source primitives, composed into one backend. Curated cohort of design partners. Apply to work with us.

Cookies

We value your privacy

Xberg uses cookies to improve your experience, personalize content, and analyze traffic. You can manage your preferences at any time.