Skip to main content

Invoices template

Create and update BigCommerce B2B Edition invoices using Shift.

tip

Check out our step-by-step guides for how to import & export.

Quick start

The best way to get started is to run an export and use the file as a guide to the format required.

If you are creating invoices, follow the creating invoices guide or download the minimal invoice creation example.

To see the fields included on export, download the full invoice export example.

warning

By default, BigCommerce B2B Edition emails the buyer when a new invoice is created. To stop this email, disable it in the B2B app under Settings > Emails > Templates for Buyer > New Invoice before running your import.

Import & export columns

Basic columns

ColumnDescription
ModeThe import mode for this row. See import modes for more information.
IDThe unique identifier for the invoice. Use this to update or delete an existing invoice.
This field is read-only.
Invoice NumberThe invoice number.
This field is required when creating an invoice.
TypeThe invoice type.
Due DateThe invoice due date.
StatusThe invoice status.
Allowed values: Open, Partially paid, Completed, 0, 1, 2.
Order NumberThe related order number.
Purchase Order NumberThe related purchase order number.
Original Balance CurrencyThe currency code for the original invoice balance, e.g. GBP or USD.
This field is required when creating an invoice.
Original Balance AmountThe original invoice balance amount.
This field is required when creating an invoice.
Open Balance CurrencyThe currency code for the open invoice balance, e.g. GBP or USD.
This field is required when creating an invoice.
Open Balance AmountThe open invoice balance amount.
This field is required when creating an invoice.
Issued AtThe date and time when the invoice was issued. On import, this is sent as the invoice header order date.
SourceThe invoice source.
Allowed values: B2B Edition, External, 0, 1.
Customer NameThe customer name.
This field is provided for information on exports.
Company IDThe B2B company ID that this invoice belongs to.
This field is required when creating an invoice. Company IDs are not shown in the BigCommerce admin area, so export Companies from Shift to find the correct ID.
Customer BC IDThe BigCommerce customer ID.
This field is provided for information on exports.
Customer BC Group NameThe BigCommerce customer group name.
This field is provided for information on exports.
External IDAn external invoice ID, such as an ID from an ERP or another external system.
This field is required when creating an invoice. When creating invoices, Shift uses this field to match invoice rows across the sheets in the import file. Updates use ID to identify the invoice.
External Customer IDAn external customer ID, such as an ID from an ERP or another external system.
Channel IDThe channel ID linked to the invoice.
Channel NameThe channel name linked to the invoice.
This field is provided for information on exports.
Pending Payment CountThe number of pending payments for this invoice.
This field is provided for information on exports.
Not Allowed PayWhether the invoice is not allowed to be paid.
This field is provided for information on exports.
BC IDThe related BigCommerce ID.
This field is provided for information on exports.
BC Group NameThe related BigCommerce group name.
This field is provided for information on exports.
External PDF URLA URL for an externally hosted invoice PDF.
Terms & ConditionsThe invoice terms and conditions.
Created AtThe date and time when the invoice was created.
This field is read-only.
Updated AtThe date and time when the invoice was last updated.
This field is read-only.

Billing address columns

ColumnDescription
Invoice IDThe invoice ID used to match this row to an existing invoice.
Invoice External IDThe invoice external ID used to match this row to a new invoice when importing a multi-sheet creation file.
Billing Address First NameThe first name on the billing address.
Billing Address Last NameThe last name on the billing address.
Billing Address Street 1The first line of the billing address.
Billing Address Street 2The second line of the billing address.
Billing Address CityThe billing address city.
Billing Address StateThe billing address state, county, or region.
Billing Address Zip CodeThe billing address zip or postal code.
Billing Address CountryThe billing address country.
Billing Address Custom FieldsBilling address custom fields as JSON.

Cost line columns

Cost lines are imported as rows on the Cost Lines sheet. An invoice can have multiple cost line rows, such as Subtotal, Discount, Freight, or Sales Tax.

ColumnDescription
Invoice IDThe invoice ID used to match this row to an existing invoice.
Invoice External IDThe invoice external ID used to match this row to a new invoice when importing a multi-sheet creation file.
Currency CodeThe currency code for this cost line.
AmountThe amount for this cost line.
DescriptionThe description for this cost line, such as Subtotal, Discount, Freight, or Sales Tax.

Shipping address columns

Shipping addresses are imported as numbered columns. Increase the number for each additional shipping address.

ColumnDescription
Invoice IDThe invoice ID used to match this row to an existing invoice.
Invoice External IDThe invoice external ID used to match this row to a new invoice when importing a multi-sheet creation file.
Shipping Address 1 First NameThe first name on the shipping address.
Shipping Address 1 Last NameThe last name on the shipping address.
Shipping Address 1 Street 1The first line of the shipping address.
Shipping Address 1 Street 2The second line of the shipping address.
Shipping Address 1 CityThe shipping address city.
Shipping Address 1 StateThe shipping address state, county, or region.
Shipping Address 1 Zip CodeThe shipping address zip or postal code.
Shipping Address 1 CountryThe shipping address country.
Shipping Address 1 Custom FieldsShipping address custom fields as JSON.

Shipment columns

Shipments are imported as numbered columns. Increase the number for each additional shipment.

ColumnDescription
Invoice IDThe invoice ID used to match this row to an existing invoice.
Invoice External IDThe invoice external ID used to match this row to a new invoice when importing a multi-sheet creation file.
Shipment 1 Address IndexThe index of the shipping address this shipment belongs to.
Shipment 1 Ship DateThe shipment date.
Shipment 1 Ship ViaThe shipping carrier or service.
Shipment 1 Tracking NumberThe shipment tracking number.
Shipment 1 CommentsShipment comments.

Line item columns

Line items are imported as numbered columns. Increase the number for each additional line item.

ColumnDescription
Invoice IDThe invoice ID used to match this row to an existing invoice.
Invoice External IDThe invoice external ID used to match this row to a new invoice when importing a multi-sheet creation file.
Line Item 1 Product IDThe BigCommerce product ID for this line item.
Line Item 1 SKUThe product SKU for this line item.
Line Item 1 TypeThe line item type.
Line Item 1 CommentsComments for this line item.
Line Item 1 QuantityThe quantity for this line item.
Line Item 1 Unit Price CurrencyThe currency code for the unit price.
Line Item 1 Unit PriceThe unit price amount.
Line Item 1 DescriptionThe line item description.
Line Item 1 Custom FieldsLine item custom fields as JSON.
Line Item 1 Unit Discount CurrencyThe currency code for the unit discount.
Line Item 1 Unit DiscountThe unit discount amount.

Extra field columns

Invoice extra fields are dynamic. Add one column for each configured extra field.

ColumnDescription
Invoice IDThe invoice ID used to match this row to an existing invoice.
Invoice External IDThe invoice external ID used to match this row to a new invoice when importing a multi-sheet creation file.
Extra Field {field name}The value for a B2B invoice extra field. Replace {field name} with the exact extra field name configured in BigCommerce B2B Edition.
info

Billing addresses, cost lines, shipping addresses, shipments, line items, and extra fields are merged into the invoice request on import. They are not imported as standalone resources.

warning

BigCommerce does not allow partially paid invoices to be deleted. If an import uses Replace mode on a partially paid invoice, the delete step can fail before the replacement invoice is created.

Import modes

Use Import modes to control the import behaviour.

The Mode column on import is used to determine what kind of update action is performed for each row.

ModeAction
MergeExisting items are updated. New items are created. Missing columns or empty column values are ignored.
This is the default mode.
UpdateExisting items are updated. New items are ignored. Missing columns or empty column values are ignored
CreateNew items are created. Existing items are ignored.
ReplaceExisting items are deleted and recreated. New items are created. This is the same as a Delete followed by a Merge.
DeleteExisting items are deleted.
SkipThis item is ignored

Export filters

You can filter invoice exports by:

  • External Customer ID
  • Invoice
  • Order
  • Purchase Order Number
  • Status
  • Created