> For the complete documentation index, see [llms.txt](https://documentation.bonsaidata.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.bonsaidata.io/resources/onboarding/business-data-and-point-of-sale-pos-requirements/google-cloud-storage-gcs-file-upload-guide.md).

# Google Cloud Storage (GCS) File Upload Guide

This guide defines the requirements for uploading files to our Google Cloud Storage (GCS) bucket to ensure reliable, automated processing as an alternative to using Bonsai's Connect Cards.

#### **Supported File Types**

* Preferred: .csv, .csv.gz, .parquet
* Not supported: Excel files (.xlsx, .xls), files with formulas, unapproved JSON formats
* Encoding: UTF-8 only

#### **File Naming Convention**

Required format

```
<source>_<dataset or table>_<YYYYMMDD>.<extension>
```

Example

```
shopify_orders_20250301.csv
```

#### **Rules**

* Lowercase only
* Use underscores (\_), no spaces or special characters
* Include a date for time-based data
* Do not overwrite files unless explicitly instructed

#### **File Structure**

* Single header row required
* One record per row
* No totals, summaries, or footers
* One dataset per file only

#### **Schema & Columns**

* Column names must be lowercase snake\_case
* Column order must remain consistent
* Data types must not change over time
* Use blank or NULL values for missing data
* Do not use placeholders like N/A, unknown, or 0 unless required

#### **Dates & Timestamps**

* Use ISO-8601 formats
  * Date: YYYY-MM-DD
  * Timestamp: YYYY-MM-DDTHH:MM:SS
* Use UTC for all timestamps

#### **Schema Changes**

Please notify us before:

* Renaming or removing columns
* Changing data types
* Changing file structure

Allowed with approval: adding new nullable columns\
Breaking changes may require versioned files or folders.

#### **Delivery Expectations**

* Upload files on the agreed cadence (daily, weekly, ad hoc)
* Files must be complete at upload time
* Late or corrected data must follow the agreed backfill process


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://documentation.bonsaidata.io/resources/onboarding/business-data-and-point-of-sale-pos-requirements/google-cloud-storage-gcs-file-upload-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
