Skip to content

Imports

Use imports to create customers, products, and gift cards in batches. Create a draft, submit records as JSON, review the entry results, then start the import. Use the same source keys to safely re-run a file after fixing its failed rows.

Imports accept API keys, CLI logins, workload tokens, partner app install tokens, and Dashboard sessions. The authenticated environment determines where the import creates records.

Import typeRead scopeWrite scope
customerscustomers.readcustomers.write
productscommerce.products.readcommerce.products.write
gift_cardscommerce.gift_cards.readcommerce.gift_cards.write

The matching write scope grants read access. Adding or starting entries with opening stock requires commerce.inventory.write. Adding or starting entries with a gift card notification requires commerce.gift_cards.secrets.write. Dashboard sessions need the corresponding permission to manage customers, products, inventory, or gift cards. Owners and admins can manage gift cards.

Create a draft#

Send POST /v1/imports with import_type set to customers, products, or gift_cards. Give the import an optional name, such as the file name. The response is 201 with a draft and its import_id.

JSON
{"import_type":"customers","name":"legacy-customers.csv","send_webhook_events":false}

Set send_webhook_events to false to skip the ordinary events for records this import creates. It defaults to true. The import always sends its own completion or cancellation event. Gift card entries with a notification email the holder.

An environment can have five unfinished imports. On 409 LIMIT_REACHED with reason active_imports, use the IDs in blocking_resources to see which imports are still open. Wait for one to finish or cancel it. Drafts expire 24 hours after creation.

Add entries#

Send POST /v1/imports/{import_id}/entries while the import is a draft. For customers, put one customer's create request in each entry, including their addresses.

JSON
{
  "import_type": "customers",
  "entries": [
    {
      "key": "legacy-customer-1042",
      "source_reference": "line 14",
      "customer": {
        "name": "Maya Chen",
        "email": "maya@example.com",
        "external_reference_id": "1042",
        "on_email_conflict": "return_existing"
      }
    }
  ]
}

An add request can contain up to 1,000 entries, with a 2 MiB body limit and 512 KiB per entry. An import holds up to 50,000 customers or 10,000 products. A gift card import holds up to 50,000 entries and $1,000,000.00 in pending value. A request with an invalid envelope or a duplicate key adds no entries. An invalid record produces a failed entry with an error such as INVALID_REQUEST at customer.phone or product.variants[0].sku. A valid entry stays pending until you start the import. The response is 201. Its data.import contains the updated counts and data.import_entries lists the results in request order.

A key is 1 to 255 characters and matches byte for byte. Use the source system's record ID and keep personal data out of it. An optional source_reference of 1 to 255 characters can name a file line. Use external_reference_id to store the original ID on the created record.

When a key matches a customer, product, or gift card from an earlier import of the same type in this environment, the entry is immediately succeeded with outcome existing. The matched record and its stock stay as they are. Keys keep working after the job results expire. Erasing a customer or archiving a product lets that key create a new record. A gift card key still matches its card after the card closes.

Record rows you rejected#

If your importer rejects a row before sending it to Flint, use the same key and optional source_reference and send rejection in place of customer, product, or gift_card. This entry records a row with a missing email.

JSON
{
  "key": "legacy-customer-1043",
  "source_reference": "line 15",
  "rejection": {
    "reason": "missing_email",
    "message": "Enter an email address for this customer."
  }
}

Send a lowercase snake_case reason of 1 to 64 characters and a plain-text message of 1 to 500 characters. Keep personal data and gift card codes out of the message. A request with both a record and a rejection, or with neither, returns 400 INVALID_REQUEST.

Flint records the row as failed when you add it and sets processed_at. In the import entry result, both error.code and error.details[0].code are set to "ENTRY_REJECTED". error.message contains the supplied message, and error.details[0].reason contains the supplied reason. The row counts toward total_count and failed_count, creates no record, and adds no pending gift card value. An existing key still returns existing.

Each import can hold 50,000 client-rejected entries in addition to the regular entry limit. A batch that exceeds either limit returns 409 LIMIT_EXCEEDED on entries and adds nothing. The client-rejected limit adds details[0].reason: rejected_entries.

Add products and opening stock#

For products, put one product's create request in each entry. A simple product takes default_variant. An optioned product takes options and a list of up to 250 variants. Create any categories before starting and send their handles in category_handles. Flint downloads images from source_url while the import runs, with up to 32 external images and 100 megapixels per product entry across its galleries. You can also use ready image files by file_id.

JSON
{
  "import_type": "products",
  "entries": [
    {
      "key": "legacy-product-1200",
      "source_reference": "line 2",
      "product": {
        "variant_mode": "simple",
        "name": "Crew tee",
        "product_type": "physical",
        "default_variant": {
          "sku": "CREW-TEE",
          "unit_price_money": { "amount": 2800, "currency": "USD" },
          "inventory_item": { "name": "Crew tee", "sku": "CREW-TEE" },
          "opening_stock": [
            { "location_id": "loc_01M8C2S0T2V4X6Z8B0D2F4H6K8", "on_hand_quantity": 14 }
          ]
        }
      }
    }
  ]
}

opening_stock requires a new inline inventory_item on that variant. Use up to 20 distinct Locations per variant and an integer from 0 through 1,000,000,000 for each on_hand_quantity. Each Location must already exist and be unarchived. Flint checks the Locations before creating the product and records opening stock through counted inventory adjustments.

Flint creates the product and its variants together. A conflicting SKU or a failed image download fails the entry. If stock fails after the product was created, the entry has status failed and includes both the product's resource reference and an error naming an opening_stock line. Set the remaining stock with inventory adjustments. A re-run with the same entry key returns existing and leaves stock as it is.

Add gift cards#

For gift_cards, put one gift card create request in each entry. Include funding.value_money with a positive USD amount up to the card's maximum balance, and set funding.source.funding_source_type to import.

JSON
{
  "import_type": "gift_cards",
  "entries": [
    {
      "key": "ref:881",
      "source_reference": "line 2",
      "gift_card": {
        "currency": "USD",
        "code": "GIFT-7K2M9QX4R8",
        "external_reference_id": "legacy-card-881",
        "funding": {
          "value_money": { "amount": 3750, "currency": "USD" },
          "source": {
            "funding_source_type": "import",
            "external_reference_id": "legacy-gift-card-export"
          }
        }
      }
    }
  ]
}

Send code to keep the card's existing code or notification to email a newly generated code to the holder. You can send both to email the existing code. Set gift_card.notification to {"email": "taylor@example.com", "name": "Taylor Smith"}. The email is required and the name is optional.

Flint rejects the whole batch if another field in an entry contains its code. Matching follows the same rules as gift card lookup, including case, spaces, hyphens, and aliases for 16-character codes in Flint's alphabet. The check marks a code another card already holds as failed and leaves its balance out of the pending value. Flint checks again when the job runs. Flint encrypts the submitted code while the entry is pending and clears it from the entry when processing ends. Import responses, entry results, and import events omit both submitted and generated codes.

Flint checks referenced customers and code uniqueness when the job runs. If two entries have the same code, the first successful entry in submission order uses it. If a batch would exceed the job's entry or pending value limit, Flint returns 409 LIMIT_EXCEEDED and adds nothing. Check available_quantity or maximum_money in the error details for the remaining room.

Start and monitor#

Send POST /v1/imports/{import_id}/start after adding at least one entry.

HTTP
POST /v1/imports/imp_01M8C2Q4W6Y8A0C2E4G6J8M0P2/start

The response is 202. Flint processes one import at a time per environment. It handles entries in submission order, so if two entries share an email and both request return_existing, the first can create the customer and the next returns it unchanged.

Check progress with GET /v1/imports/{import_id}.

HTTP
GET /v1/imports/imp_01M8C2Q4W6Y8A0C2E4G6J8M0P2

While the import is pending with pending_reason: queued or has status processing, wait two seconds between reads as indicated by Retry-After. completed means every entry was checked. Use created_count, existing_count, and failed_count to see what happened. supported_actions shows what you can do at the current status.

Gift card approval#

A gift card import's pending_value_money is the sum of the values of its pending entries. If that sum exceeds the amount the environment can import, Flint sets status: pending and pending_reason: approval_required. An owner or admin can approve an allowance in the Dashboard before expires_at, seven days after the wait begins. Start and get responses omit Retry-After during this wait. You can cancel the import while it waits. If the wait expires, Flint marks the import expired and its pending entries canceled.

Approval queues the job. Each card still uses the capacity available when Flint creates it. If another import spends the capacity or the allowance ends during the run, entries that exceed what remains fail with LIMIT_EXCEEDED and reason merchant_imports_daily. Send those rows in a new import using the same keys. Any cards already created return existing.

Read import results#

Send GET /v1/imports/{import_id}/entries to read entries in submission order. Filter by status, outcome, or an exact key. Use page_token to continue from the previous page.

HTTP
GET /v1/imports/imp_01M8C2Q4W6Y8A0C2E4G6J8M0P2/entries?status=failed&page_size=20

The results include the key, source reference, and status, along with any resource reference and error. Use the error's param to locate the field inside the entry. The API omits submitted objects from entry results. Flint clears the submitted object when an entry reaches a terminal status. Finished imports and their entry results stay readable for 90 days.

Find earlier imports#

Send GET /v1/imports to list imports, newest first. Filter by import_type, status, created_after, or created_before. Provide a page token when the response includes one. A list with no type filter requires read access to every supported import type.

HTTP
GET /v1/imports?import_type=customers&status=completed,canceled

The four POST routes accept an optional Idempotency-Key. After a lost response, retry with the same key and request. To find a created import by that key, use the same idempotency namespace and send GET /v1/imports?import_type=customers&idempotency_key=legacy-customers-2026-11-26.

Cancel an import#

Send POST /v1/imports/{import_id}/cancel for a draft, pending, or processing import. Writes already in progress can finish. The remaining pending entries become canceled. If the current product is still recording opening stock, the cancel response can show processing. Poll the import until it is canceled. Records already created stay in the environment.

HTTP
POST /v1/imports/imp_01M8C2Q4W6Y8A0C2E4G6J8M0P2/cancel

Webhooks#

  • import.completed
    The import finished checking its entries. Read its final counts from data.object.
  • import.canceled
    The import stopped. Read its final counts from data.object.

These events go to the merchant's own endpoints. Ordinary events such as customer.created, product.created, product_variant.created, category.updated, and inventory_level.updated have a null request when the import causes them.

The Import object#

A job that creates records from staged entries.

Returned by GET /v1/imports/{import_id} and carried by the endpoints below.

Attributes

canceled_atstring

RFC3339 timestamp.

canceled_countintegerRequired

The number of entries left unprocessed when the import was canceled or expired.

completed_atstring

RFC3339 timestamp.

created_atstringRequired

RFC3339 timestamp.

created_countintegerRequired

The number of entries that created a record.

existing_countintegerRequired

The number of entries that matched an existing record.

expires_atstring

When the draft or approval wait expires. Present while draft or pending with approval_required.

failed_countintegerRequired

The number of entries the caller rejected or Flint could not validate or process.

import_idstringRequired

Unique identifier for this import, prefixed `imp_`.

import_typeenumRequired

The type of records this import creates.

  • customers
  • products
  • gift_cards
namestring or nullRequired

The label supplied when this import was created. Null when the caller omitted the label.

pending_countintegerRequired

The number of entries waiting to be processed.

pending_reasonenum

Why this import is waiting. Present only while pending.

  • queued
  • approval_required
pending_value_moneyobject

The value of entries still pending. Present on gift card imports.

send_webhook_eventsbooleanRequired

Whether to send ordinary events for records created by this import.

started_atstring

RFC3339 timestamp.

statusenumRequired

The current state of the import.

  • draft
  • pending
  • processing
  • completed
  • canceled
  • expired
supported_actionsarray of enumRequired

Actions the current import can take.

  • cancel
  • start
total_countintegerRequired

The number of entries added to this import.

updated_atstringRequired

RFC3339 timestamp.

JSON
{
  "canceled_count": 0,
  "completed_at": "2026-11-26T15:04:09Z",
  "created_at": "2026-11-26T15:04:05Z",
  "created_count": 1,
  "existing_count": 0,
  "failed_count": 0,
  "import_id": "imp_01KEZF7C001SNC628JC5FXZ3KT",
  "import_type": "customers",
  "name": "customers.csv",
  "pending_count": 0,
  "send_webhook_events": true,
  "started_at": "2026-11-26T15:04:08Z",
  "status": "completed",
  "supported_actions": [],
  "total_count": 1,
  "updated_at": "2026-11-26T15:04:09Z"
}

List imports#

GET/v1/imports

Requires scope commerce.gift_cards.adjustments.write or commerce.gift_cards.read or commerce.gift_cards.redemptions.write or commerce.gift_cards.secrets.write or commerce.gift_cards.write or commerce.products.read or commerce.products.write or customers.read or customers.write

Also requires customers.read. Required for customer imports.

Also requires commerce.products.read. Required for product imports.

Also requires commerce.gift_cards.read. Required for gift card imports.

Also requires customers.read and commerce.products.read and commerce.gift_cards.read. All three scopes are required when import_type is omitted.

Rate limit: read

Lists imports by creation time, newest first. For Dashboard sessions, an unfiltered request returns only the types the merchant role can read. API keys and OAuth credentials must have read access to every supported type for an unfiltered request. Use idempotency_key for an exact recovery read in the creating namespace. Default order: created_at descending, then import_id descending.

Query parameters

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

import_typearray of enum

Return any of these import types. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • customers
  • products
  • gift_cards
statusarray of enum

Return any of these import statuses. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • draft
  • pending
  • processing
  • completed
  • canceled
  • expired
created_afterstring

Exclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

idempotency_keystring

Filter by the Idempotency-Key sent when you created the import, after trimming surrounding whitespace. Matching is exact and case-sensitive within your caller namespace. Returns the import's current status and counts.

Response · 200

The import or entry result.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/imports \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The import or entry result.

JSON
{
  "data": [
    {
      "canceled_count": 0,
      "completed_at": "2026-11-26T15:04:09Z",
      "created_at": "2026-11-26T15:04:05Z",
      "created_count": 1,
      "existing_count": 0,
      "failed_count": 0,
      "import_id": "imp_01KEZF7C001SNC628JC5FXZ3KT",
      "import_type": "customers",
      "name": "customers.csv",
      "pending_count": 0,
      "send_webhook_events": true,
      "started_at": "2026-11-26T15:04:08Z",
      "status": "completed",
      "supported_actions": [],
      "total_count": 1,
      "updated_at": "2026-11-26T15:04:09Z"
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Create an import#

POST/v1/importsIdempotent

Requires scope commerce.gift_cards.write or commerce.products.write or customers.write

Also requires customers.write. Required for customer imports.

Also requires commerce.products.write. Required for product imports.

Also requires commerce.gift_cards.write. Required for gift card imports.

Rate limit: write

Creates a draft import for the authenticated environment. Add entries to the draft, then start it. An environment can have up to five unfinished imports.

Request body

import_typeenumRequired

The type of records to create.

  • customers
  • products
  • gift_cards
namestring

A label for the import, such as the source file name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

send_webhook_eventsboolean

Send the ordinary events for records created by this import.

Response · 201

The import or entry result.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/imports \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "import_type": "customers",
    "name": "customers.csv",
    "send_webhook_events": true
  }'

Get an import#

GET/v1/imports/{import_id}

Requires scope commerce.gift_cards.adjustments.write or commerce.gift_cards.read or commerce.gift_cards.redemptions.write or commerce.gift_cards.secrets.write or commerce.gift_cards.write or commerce.products.read or commerce.products.write or customers.read or customers.write

Also requires customers.read. Required for customer imports.

Also requires commerce.products.read. Required for product imports.

Also requires commerce.gift_cards.read. Required for gift card imports.

Rate limit: read

Returns the current status and counts. Queued and processing imports include Retry-After with a value of 2.

Path parameters

import_idstringRequired

Flint import ID. Must be a valid ID with prefix imp_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Response · 200

The import or entry result.

  • Retry-After: Whole seconds to wait before retrying or polling again, at least 1.

Same response as Create an import.

curl https://api.withflintpay.com/v1/imports/imp_01KEZF7C001SNC628JC5FXZ3KT \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The import or entry result.

JSON
{
  "data": {
    "canceled_count": 0,
    "completed_at": "2026-11-26T15:04:09Z",
    "created_at": "2026-11-26T15:04:05Z",
    "created_count": 1,
    "existing_count": 0,
    "failed_count": 0,
    "import_id": "imp_01KEZF7C001SNC628JC5FXZ3KT",
    "import_type": "customers",
    "name": "customers.csv",
    "pending_count": 0,
    "send_webhook_events": true,
    "started_at": "2026-11-26T15:04:08Z",
    "status": "completed",
    "supported_actions": [],
    "total_count": 1,
    "updated_at": "2026-11-26T15:04:09Z"
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Cancel an import#

POST/v1/imports/{import_id}/cancelIdempotent

Requires scope commerce.gift_cards.write or commerce.products.write or customers.write

Also requires customers.write. Required for customer imports.

Also requires commerce.products.write. Required for product imports.

Also requires commerce.gift_cards.write. Required for gift card imports.

Rate limit: write

Stops a draft, pending, or processing import. Writes already in progress can finish before cancellation takes effect. The import can remain processing while the current entry records opening stock. Created records stay. Pending entries become canceled.

Path parameters

import_idstringRequired

Flint import ID. Must be a valid ID with prefix imp_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Response · 200

The import or entry result.

Same response as Create an import.

curl -X POST https://api.withflintpay.com/v1/imports/imp_01KEZF7C001SNC628JC5FXZ3KT/cancel \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{}'

List import entries#

GET/v1/imports/{import_id}/entries

Requires scope commerce.gift_cards.adjustments.write or commerce.gift_cards.read or commerce.gift_cards.redemptions.write or commerce.gift_cards.secrets.write or commerce.gift_cards.write or commerce.products.read or commerce.products.write or customers.read or customers.write

Also requires customers.read. Required for customer imports.

Also requires commerce.products.read. Required for product imports.

Also requires commerce.gift_cards.read. Required for gift card imports.

Rate limit: read

Lists an import's entries in submission order. Each entry contains its current result and omits the submitted object. Default order: position ascending, then import_entry_id ascending.

Path parameters

import_idstringRequired

Flint import ID. Must be a valid ID with prefix imp_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Query parameters

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

statusarray of enum

Return entries in any of these statuses. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • pending
  • succeeded
  • failed
  • canceled
outcomearray of enum

Return entries with any of these outcomes. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • created
  • existing
keystring

Match the source key byte for byte.

Response · 200

The import or entry result.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/imports/imp_01KEZF7C001SNC628JC5FXZ3KT/entries \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The import or entry result.

JSON
{
  "data": [
    {
      "import_entry_id": "impe_01KEZF7C00RQTJJBZWQ3XH0FAP",
      "import_id": "imp_01KEZF7C001SNC628JC5FXZ3KT",
      "key": "account-1842",
      "outcome": "created",
      "position": 0,
      "processed_at": "2026-11-26T15:04:09Z",
      "resource": {
        "resource_id": "cus_01KEZF7C006X9JK6NZNA2SM9XD",
        "resource_type": "customer"
      },
      "source_reference": "line 2",
      "status": "succeeded"
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Add import entries#

POST/v1/imports/{import_id}/entriesIdempotent

Requires scope commerce.gift_cards.write or commerce.products.write or customers.write

Also requires customers.write. Required for customer imports.

Also requires commerce.products.write. Required for product imports.

Also requires commerce.gift_cards.write. Required for gift card imports.

Also requires commerce.inventory.write when a product entry includes opening_stock.

Also requires commerce.gift_cards.secrets.write when a gift card entry includes notification.

Rate limit: write

Adds up to 1,000 entries to a draft, with a 2 MiB request limit and 512 KiB per entry. A key for an existing record returns existing. Gift card keys still match closed cards. Send the record to validate, or send rejection to record a client-rejected row as failed immediately. Each import can keep up to 50,000 client-rejected rows in addition to its regular entry limit. Read the returned status and error for each entry before starting.

Path parameters

import_idstringRequired

Flint import ID. Must be a valid ID with prefix imp_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Request body

Send exactly one of these

The `customers` variant of `CreateImportEntriesRequest`.

entriesarray of one ofRequired

The customer entries to add in submission order.

import_typeenumRequired

The type of records in this batch. Must match the import.

  • customers

Response · 201

The import or entry result.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/imports/imp_01KEZF7C001SNC628JC5FXZ3KT/entries \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "entries": [
      {
        "customer": {
          "email": "alex@example.com",
          "name": "Alex Morgan"
        },
        "key": "account-1842",
        "source_reference": "line 2"
      }
    ],
    "import_type": "customers"
  }'

Start an import#

POST/v1/imports/{import_id}/startIdempotent

Requires scope commerce.gift_cards.write or commerce.products.write or customers.write

Also requires customers.write. Required for customer imports.

Also requires commerce.products.write. Required for product imports.

Also requires commerce.gift_cards.write. Required for gift card imports.

Also requires commerce.inventory.write when a product entry includes opening_stock.

Also requires commerce.gift_cards.secrets.write when a gift card entry includes notification.

Rate limit: write

Starts a draft with at least one entry. A gift card import waits for approval when its pending value exceeds the available capacity. Queued imports include Retry-After with a value of 2.

Path parameters

import_idstringRequired

Flint import ID. Must be a valid ID with prefix imp_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Response · 202

The import or entry result.

  • Retry-After: Whole seconds to wait before retrying or polling again, at least 1.

Same response as Create an import.

curl -X POST https://api.withflintpay.com/v1/imports/imp_01KEZF7C001SNC628JC5FXZ3KT/start \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{}'

Was this helpful?