Template: Order Data

Cohesive offers a standard, fine-tuned model for extracting order information. Use the below schema in the request for best results:

{
supplierName: string;  // Name of the supplier who's selling (vendor), NOT the buyer
orderNumber: string | null; // This is the purchase order / PO number provided by the supplier. Can also be the quote number
paymentTerms: string | null; // The payment terms offered for this contract. Null if not applicable or provided
quoteDate: string; // Date that the quote was issued or sent. Convert to MM/DD/YYY format. Can be same as the acceptDate
acceptDate: string; // Date that the order was officially placed or accepted. Convert to MM/DD/YYY format. Typically the last signature date
dueDate: string | null // The date that a payment is due. Null if not applicable or provided
customerBillToAddress: string | null;   // The address of the customer (do not include the name of the customer). Null if not provided. 
customerShipToAddress: string | null;   // The address to ship to the customer (do not include the name of the customer). Null if not provided
       productGroups: {         // Item or product groups. This is often each table, which separates item categories. 
                name: string; // Name of the item or product group. Name should be the table name if provided. If no name, default table to Items
                isRecurring: boolean; // If the item or product group is recurring
                SKUS: {
                        name: string; // Name of the item or product, also called SKU
                        quantity: string | null; // Number of unit(s) of the item or product or SKU, null if not applicable
                        unitPrice: string | null; // Unit price of the item or product or SKU, null if not applicable
                        itemTotal: string | null; // Total item of the line item, accounting for quantity and unitprice
                        contractTerm: string | null; // Length of the contract for the item or product or SKU in months, null if not applicable
                        contractStartDate: string | null; // Effective date of billing for the contract starts, null if not applicable
                        contractEndDate: string | null; // Effective date of of when the billing ends, null if not applicable
                }[],
                subtotal: string; // Subtotal amount of the item or product group
        }[],
totalSubtotal: string; // Total subtotal value of all item groups
totalTax: string; // Sum of all tax items (could be more than one tax line item)  
totalNonRecurring: string; // Total value of all non-recurring item groups
totalRecurring: string; // Total value of all recurring item groups
renewalNoticeDays: string; // Days in advance to give customers renewal notice. Only applicable if renewal is an option
autoRenew: boolean; // If the contract can or will be auto-renewed
}

Last updated