Purchase Order

Extract procurement details from a purchase order including buyer, vendor, line items, totals, and approval information.

The fields this preset extracts.

po_numberstring

Unique purchase order reference number.

po_datestring

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

buyerobject

Organization placing the purchase order.

namestring

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.

vendorobject

Organization supplying goods or services.

namestring

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>

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_amountnumber

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

currencystring

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

notesstring

Special instructions, notes, or terms.

approvalobject

Purchase order approval information.

curl
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.

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

We value your privacy

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