Exporting orders to a CSV file
You can export a comma-separated values (CSV) spreadsheet of your orders from the Orders page of your Shopify admin to view a broad overview of your complete order information.
On this page
You can export orders along with their transaction histories or you can export only the transaction histories of your orders. The transaction histories that are included in your CSV file include the captured payments data only. Authorization data isn't included in your exported transaction histories.
- Sort and filter your orders.
- From the Orders page, click Export.
- In the Export orders window:
- Select the option for the orders that you want to export. For example, if you want to export your orders by date, then click Export orders by date and set the start and end dates for the orders that you want to export.
- Under Export as, select a file format.
- If you want to download all information about your orders, then click Export orders. If you want to download your transaction information only, then click Export transaction histories.
You'll have one of the following scenarios when you're trying to export orders:
- When you export up to one full page of orders (up to 50 orders), the CSV file is downloaded by your browser.
- When you export more than one page of orders (51 or more orders), the CSV file is emailed to you and the Shopify store owner.
- If the export fails, then you'll receive an email with this information.
Order export CSV structure
The following table describes the format of the CSV file that will be created when you export orders.
In your order CSV file, orders with multiple line items display their additional line items on separate lines. Many of the fields are left blank to indicate that multiple items were purchased on the same order.
|The order number as it displays in your store admin.
|The customer's phone number.
|The customer's email address.
|Whether the order has been paid, authorized, refunded, and so on.
|The date when the payment was captured for the order.
|Whether the order has been fulfilled or is still pending.
|The date when the fulfillment was completed for the order.
|Whether the customer has agreed to accept marketing from your store.
|Your store's base currency at the time of the order.
|The order's subtotal before shipping and taxes.
|The total cost of shipping for the order.
|The amount of taxes charged on the order.
|The total cost of the order.
|The discount code that was applied to the order. Only discounts and discounts applied manually to draft orders will be displayed in this column. This does not include automatic discounts.
|The amount of the discount applied to the order.
|The shipping method used to ship the order.
|When the order was completed by the customer.
|The quantity of the line item (product/variant from your products menu).
|The name of the line item.
|The price of the line item.
|Lineitem compare-at price
|The compare-at price of the line item.
|The line item SKU.
|Lineitem requires shipping
|Whether the line item in the order requires shipping.
|Whether the line item was taxable.
|Lineitem fulfillment status
|Whether the line item was fulfilled.
|The first and last name from the customer's billing address, if entered. Otherwise, the first and last name from the customer's account.
|The name of the street entered for the billing address.
|The full first line of the billing address -- for example, 151 O’Connor Street.
|The full second line of the billing address -- for example, Ground floor. This column is often empty.
|The customer's company name. This column is often empty.
|The customer's billing address city.
|The customer's billing address ZIP or postal code.
|The code of the customer's billing state or province.
|Billing Province Name
|The name of the customer's billing state or province.
|The customer's billing country.
|The customer's billing phone number.
|The first and last name of the customer.
|The name of the street entered for the shipping address.
|The full first line of the shipping address -- for example, 151 O’Connor Street.
|The full second line of the shipping address -- for example, Ground floor. This column is often empty.
|The customer's company name. This column often empty.
|The customer's shipping address city.
|The customer's shipping address ZIP or postal code.
|The code of the customer's shipping state or province.
|Shipping Province Name
|The name of the customer's shipping state or province.
|The customer's shipping country.
|The customer's shipping phone number.
|The notes included on the order.
|Any order note attribute values.
|The date and time the order was canceled at.
|How the order was paid for. An order can have more than one Payment Method. Multiple entries are separated with a space, a
+, and another space.
|Payment Reference (deprecated)
|The unique token for the transaction. This number isn't displayed in your store admin. This column is now deprecated. Payment References should be used instead.
|Contains the Payment IDs sent by Shopify to the payment providers. Use this ID to match order information between Shopify and your payment provider. This column includes all Payment IDs linked to an order, including failed payments, refunds, and captures. Multiple entries are separated with a space, a
+, and another space.
|The amount of any refund applied to the order.
|The line item product vendor.
|The amount owing on the order if it was not paid in full. This column only displays if you have the POS sales channel installed on your store.
|The name of the employee that sold the order.
|The location of the POS that sold the order.
|The device ID of the POS used to sell the order.
|The order ID.
|The tags associated with the order.
|The order's risk level.
|The order's source -- for example, web, draft order, POS.
|The total discount applied to the line item.
|Tax # Name
|The name of a line tax. Up to five line taxes are available.
|Tax # Value
|The monetary amount of tax charged on the line tax.
|The customer's phone number.
|A unique ID sent by Shopify to payment providers when a customer pays at checkout. Use this ID to match order information between Shopify and your payment provider. An order can have more than one Payment ID. It only includes successful or pending payments. It does not include captures and refunds. Multiple entries are separated with a space, a
+, and another space.
|The terms for payment of the order. For example, due on receipt.
|Next payment due at
|The date that the next payment is due.
Transaction history CSV structure
The following table describes the format of the CSV file that will be created when you export transaction histories of your orders.
|The order ID of a transaction. This number might be used by your payment provider, and it's the number that displays at the end of the URL on an order page.
|The order number associated with the transaction. This is the order number displays on your Orders page.
|How the order was paid for.
|The type of transaction. Whether it was a sale, refund, or an authorization.
|The payment provider that processed the transaction.
|The date of the transaction, presented Y-M-D, time, and time zone difference from UTC/GMT.
|States whether the transaction was a success or a failure.
|How much the transaction was for.
|The currency the transaction was processed in.
|The brand of credit card used, if applicable.
Use a text editor to edit your orders CSV file
If you don't have a spreadsheet program, then you can edit CSV files using a text editor.
When you format your CSV file in a text editor, observe the following considerations:
- Column headers must be separated by commas (for example,
First Name,Last Name,Email,Company,Address1).
- The list of tags must be wrapped in quotation marks (for example,
- Tags are not case sensitive.
- Different records must be separated by line breaks.