Skip to content

Delivery configuration

Delivery configuration decides which shipping, pickup, and local delivery options a checkout can offer, where each one leaves from, and what it costs. You set it up with an API key, and every checkout then quotes and selects from it. Delivery options walks through a complete setup for a store with a warehouse and two shops. The rules below apply across all five resources.

  • Delivery profile (dprof_): whether an item needs delivery, and which method types can deliver it. Assigned to product variants and bundle components.
  • Delivery zone (dzone_): a reusable area of countries, states, postal codes, or a radius. Used in method eligibility and rate table rates.
  • Delivery location set (dls_): a reusable group of Locations that methods can ship from or offer for pickup.
  • Delivery method (dmet_): one option the buyer can choose, with its origin, eligibility, price, and estimate. Listed on checkout sessions, payment links, and settings.checkout.default_delivery_method_ids.
  • Delivery rate callback (dcb_): your rate server's URL and how Flint signs requests to it. Used by methods with callback pricing.

A checkout offers a method to a buyer when all of these are true:

  1. The method is active, and the checkout session, the payment link, or your checkout default lists it.
  2. The method's type is in the allowed_types of every item's delivery profile in the choice group.
  3. The buyer's address and customer details match the method's eligibility.
  4. The pricing produces a price. A rate table with no matching rate, for example, offers nothing.
  5. The origin can serve the items: a pickup store has the stock, the address is inside a radius, or a delivery window is still open.

Each qualifying method is a separate option. Flint doesn't merge methods that overlap, so if two shipping methods both cover an address, the buyer sees both.

What happens at checkout has its own pages: delivery previews show options before a checkout exists, delivery quotes price the methods for a checkout, and delivery selections record the buyer's choice. To fence a compromised revision or signing key, use a delivery revocation.

Profiles#

A profile tells Flint how to deliver the items assigned to it. Its configuration takes one of three shapes:

configurationUse it for
requirement: "none"Items that need no delivery. Every other key is rejected.
requirement: "required" with resolution_mode: "quote"Physical items. Needs allowed_types (shipment, pickup, local_delivery), origin_policy, combination_policy, and splitting_policy.
requirement: "required" with resolution_mode: "manual"Digital and service items. Needs allowed_types (digital, service) and rejects the physical planning keys.

The three types a buyer can choose are shipment, pickup, and local_delivery. delivery is not an alias for local_delivery.

For a quote profile, three policies decide how its items are planned:

PolicyValues
origin_policy.typemethod_origin ships each item from the origin of the method the buyer chooses. inventory_routing lets Flint choose a stocked Location among the method's origins, for tracked inventory. fixed_location always ships from origin_policy.location_id.
combination_policycombine_when_compatible lets the item share a choice group with any item it can be delivered with. separate_profile shares only with items under the same profile, separate_line_item only with the rest of its own line item, and fulfill_alone never shares.
splitting_policywhole_line_item sends a line item's whole quantity from one Location. quantity_split_allowed lets Flint split the quantity across Locations.

A profile holds no weight or dimensions, and sending weight or dimensions returns UNKNOWN_FIELD. Quotes read weight from each variant's unit_weight and from unit_weight on custom order lines.

This profile is for furniture that can be shipped or picked up, but is too large for local delivery:

cURL
curl -X POST https://api.withflintpay.com/v1/delivery-profiles \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: profile-oversized-1" \
  -d '{
    "name": "Oversized",
    "configuration": {
      "requirement": "required",
      "resolution_mode": "quote",
      "allowed_types": ["shipment", "pickup"],
      "origin_policy": { "type": "method_origin" },
      "combination_policy": "combine_when_compatible",
      "splitting_policy": "whole_line_item"
    }
  }'

Profiles are active as soon as you create them.

Choose the default profile#

Flint creates an active profile named General for each environment and makes it the default. General requires a quote, allows all three types, ships from the chosen method's origin, combines compatible items, and keeps each line item whole. A physical product variant or bundle component created without delivery_profile_id gets the default profile. Create another profile only when some items need different rules.

is_default is true on the default and false on every other profile. GET /v1/delivery-profiles?is_default=true returns the default, and is_default=false returns the rest.

To change the default, PATCH the active profile that should take over:

Response
{
  "is_default": true,
  "expected_version": 7
}

is_default accepts only true, because an environment always keeps a default; sending false returns 400 INVALID_REQUEST with param is_default. The change is atomic: the new default and the profile it replaces each advance version by one and send delivery_profile.updated. You can send other mutable fields in the same request, and all of it applies or none of it does. If the profile is already the default and is_default is the only field you send, Flint returns it with 200 and changes nothing: no new version and no event.

Because a profile's version also fences whether it is the default, moving the default advances the previous default's version. A write that still carries the earlier version returns 409 VERSION_CONFLICT. Read the profile again and retry.

Changing the default doesn't change existing assignments. To give a profile to every physical variant and bundle component that has none, call POST /v1/delivery-profiles/{delivery_profile_id}/assign-to-unconfigured. Items that already have a profile keep it.

Product variants and bundle components report delivery_configuration_status. Clearing an item's delivery_profile_id leaves it action_required until you assign another active profile. Filter by the status or by profile to find items that need attention:

HTTP
GET /v1/products/{product_id}/variants?delivery_configuration_status=action_required
GET /v1/bundles/{bundle_id}/components?delivery_profile_id=dprof_...

Zones and eligibility#

A method's eligibility, a zone's configuration, and a rate's when are all expressions. Each node holds exactly one key: all, any, or not to combine conditions, or one condition. Conditions are direct keys, never wrapped. An expression has at most 8 levels and 100 nodes.

JSON
{
  "all": [
    { "country": { "values": ["US"] } },
    { "not": { "state": { "values": ["US-AK", "US-HI"] } } }
  ]
}
Allowed inConditions
Zones, method eligibility, and ratescountry, state, and postal_code match the address. radius matches a straight-line distance from the method's origin or from one Location.
Method eligibility and rates onlyzone matches an address inside a zone. customer_segment, customer_merchant_verified, customer_has_email, and customer_has_phone match the checkout's customer. subscription_purchase matches quotes for a subscription, and window_time matches a delivery window's time of day.

Omitting eligibility offers the method everywhere you serve. To ship only to certain countries, add a country condition to the method or to a zone it references. A method whose conditions don't match the destination is left out of the quote as unavailable with eligibility_no_match.

States and postal codes#

A state condition lists ISO 3166-2 codes, such as US-NY or DE-BY. For a US state or Canadian province you can send the two-letter code, such as NY or ON, and Flint stores US-NY or CA-ON. Military addresses use AA, AE, and AP, stored as US-AA, US-AE, and US-AP. Two values that name the same subdivision are rejected as duplicates.

Flint reads the address's state the same way, so NY, US-NY, and New York all match US-NY. Outside the US and Canada, the address needs the subdivision code, with or without the country prefix. A state condition only decides addresses in the countries it lists:

  • It doesn't match an address in a country it lists no subdivisions of.
  • When the address has no state, the quote asks the buyer for one.
  • When the address's state names no subdivision of its country, the condition can't be decided, and the method or rate is left out as cannot_calculate with invalid_buyer_input.

A postal_code condition lists values, each with a country and a type. Flint compares codes in uppercase without spaces or hyphens. An exact value matches that code, and a prefix value matches every code that starts with it. A five-digit ZIP code in the US or a US territory also matches the ZIP+4 codes inside it, so 07030 matches 07030-5788, which address verification returns for a full address. A ZIP+4 value matches only itself.

Customer and subscription conditions#

Customer conditions read only these facts: the customer's segment, its is_merchant_verified flag, and whether it has an email or a phone. Customer metadata, names, notes, and other fields can't be used. An anonymous buyer doesn't match a customer condition, even one that tests for false.

Flint records these facts for the order's customer when the checkout is created. If the buyer confirms their email during checkout and the order had no customer, the confirmed customer's facts apply from then on. When that changes what a condition answers, the current selection is released and earlier quotes go stale. Other changes to a customer, such as a new segment, apply to checkouts created afterward.

subscription_purchase with {"value": true} matches the signup checkout for a subscription plan, a checkout with at least one line subscribed through a subscription offer, each renewal, and subscription delivery previews. A checkout with only one-time lines doesn't match. In a mixed cart the condition covers the whole signup shipment, one-time lines included. Use it on a method, or in a rate's when, to ship cheaper or free to subscribers.

Origins and location sets#

A method's origin says where an order leaves from, or where the buyer collects it:

origin.typeBehavior
fixed_locationAlways the Location in location_id.
allocated_origin_groupFlint chooses a stocked Location from 1 to 25, for shipment or local delivery.
pickup_location_collectionThe buyer chooses a pickup Location from 1 to 1,000.

For a group, send either location_ids inline or the delivery_location_set_id of a location set, never both. Create a location set only when several methods share the same Locations. A location set's configuration.location_ids replaces its Locations whenever you send it, and an empty list or duplicate IDs are invalid.

Methods#

A method needs a type, a name, and a configuration with origin and pricing. It starts inactive unless you send "status": "active", and it can be activated only once every zone, location set, Location, and rate callback it references is active.

cURL
curl -X POST https://api.withflintpay.com/v1/delivery-methods \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: method-standard-us-1" \
  -d '{
    "type": "shipment",
    "name": "Standard shipping",
    "status": "active",
    "configuration": {
      "origin": { "type": "fixed_location", "location_id": "loc_01K4WHSE" },
      "eligibility": { "country": { "values": ["US"] } },
      "pricing": {
        "type": "fixed",
        "fixed": {
          "currency_options": {
            "USD": { "amount": 900, "currency": "USD" }
          }
        }
      }
    }
  }'

Every money value needs amount and currency, and inside currency_options the value's currency must match its key. A pickup method also needs public_details.pickup_mode: in_store, curbside, locker, or other.

display_position orders the options, lowest first. recommendation_priority marks a method as recommended: among the available methods in a choice group that have one, the lowest value is recommended and listed first. Both are top-level method fields, not part of configuration.

Pricing strategies#

A method uses exactly one pricing strategy, set by pricing.type:

pricing.typePrice
fixedOne amount per currency.
rate_tableThe first matching rate, checked from the highest priority to the lowest. A table holds 1 to 100 rates, each with a when expression and a unique priority of 0 or more. With no match, the method offers nothing.
tieredThe band that contains the basis value, such as the order subtotal or the total weight. Use 1 to 25 bands: the first starts at from: 0, each band's from is the previous band's to, and the last band has no to. A band includes from and excludes to. Money bases use minor units, and a weight basis needs a unit.
calculatedA base fee plus per-item handling, distance, and weight components, within optional minimum and maximum fees. At least one per-item, distance, or weight component must be positive.
callbackYour rate callback, named by delivery_rate_callback_id, which Flint calls during the quote.
caller_suppliedYour server, in a second quote request. See Supply rates from your server.

A method priced by weight isn't offered for a choice group when any item in it has no weight.

calculated, callback, and caller_supplied prices can change, so these methods need minimum_option_lifetime_seconds: how much quote lifetime must remain before Flint offers the method. It must be less than 900, the 15-minute lifetime of a quote that uses these strategies. When a PATCH switches a method from fixed, tiered, or rate_table to one of them, send it too, unless the method already has a lifetime above 0.

Callback and caller-supplied amounts must fall within the method's minimum_fee_currency_options and maximum_fee_currency_options, which caller_supplied requires and callback makes optional. Flint doesn't clamp them: an amount outside the bounds makes the option cannot_calculate.

Supply rates from your server#

A caller_supplied method gets its rate from your server through two quote requests with your API key. The first returns a pending quote with pending_caller_rate_requests. The second sends that quote's ID as basis_delivery_quote_id, the same planning inputs, and one result for every pending request. Delivery quotes covers the exchange.

Response
{
  "basis_delivery_quote_id": "dqt_1kmn0aPending",
  "destination_address": {
    "postal_code": "11249",
    "country": "US"
  },
  "method_results": [
    {
      "delivery_method_revision_id": "dmetr_1kmn0aExample",
      "delivery_choice_group_id": "dcgrp_1kmn0aExample",
      "outcome": {
        "type": "available",
        "amount_money": { "amount": 1200, "currency": "USD" },
        "expires_at": "2026-11-03T15:40:00Z",
        "selection_guarantee_expires_at": "2026-11-03T16:00:00Z",
        "window_start_at": "2026-11-05T16:00:00Z",
        "window_end_at": "2026-11-07T23:00:00Z"
      }
    }
  ]
}

An available outcome needs amount_money in the checkout's currency, expires_at, selection_guarantee_expires_at, and a delivery window: window_start_at and window_end_at, or offered_windows for the buyer to choose from. expires_at must leave at least minimum_option_lifetime_seconds and can't be later than the pending quote's expires_at. selection_guarantee_expires_at can't be earlier than expires_at. An unavailable outcome takes an unavailable_reason, and a cannot_calculate outcome takes a failure_category and retryable.

Only an API key can supply rates. Hosted checkout can't offer a required caller_supplied method, and quoting a checkout that has one with the checkout credential returns 403 FORBIDDEN with details[0].reason merchant_credential_required. Create those quotes from your server.

Tax#

taxable and charge_tax_category inherit from settings.tax.default_delivery_taxable and settings.tax.default_delivery_tax_category when you omit them on create, and responses return null for an inherited value. With no default category, Flint uses shipping for shipment, delivery for local delivery, and service_fee for pickup. Automatic tax calculates the shipping and delivery categories and refuses the others with 400 INVALID_REQUEST and detail code NOT_ALLOWED. On PATCH, omit a field to keep it or send null to inherit again.

Status#

Methods and rate callbacks can be turned off and on. Profiles, zones, and location sets are only active or archived.

status on delivery method
Final values do not change again
  • inactive
    Not offered at checkout. New methods start here unless you send "status": "active".
  • active
    Offered on checkouts that list it, wherever its eligibility matches.
  • archivedFinal
    Retired with DELETE. Still readable by ID, but it can't be changed or activated again. Create a new method instead.

Send a status change in its own PATCH, with nothing but status and an optional expected_version. Combining it with other fields returns 400 INVALID_REQUEST with param status.

A method's subscription_counts shows how many active, paused, and past_due subscriptions use it. Archiving a method they use holds each of them at its next renewal, so move them first with a delivery method migration.

Rate callbacks#

A rate callback is your HTTPS endpoint that prices callback methods during a quote. Flint sends one signed POST for all of a choice group's callback methods and expects one result per method. A new callback starts inactive; activate it with a status PATCH before an active method can use it. Callbacks take no metadata.

configuration keyDefault
urlRequired
request_timeout_seconds2, between 0.1 and 10
maximum_request_bytes, maximum_response_bytes262144
redirect_policyreject, the only value: Flint never follows redirects
preview_enabledfalse. Delivery previews call the endpoint only when this and the method's pricing.callback.preview_enabled are both true.

signing_methods defaults to ["jwt"]: Flint signs each request with a JWT you verify against its public JWKS, with your delivery_rate_callback_id as the audience. Add hmac on create to also get a shared secret, returned once with its key_id. After 30 consecutive failures the callback's circuit_state opens and its methods are dropped from quotes until a probe succeeds.

A method can set configuration.quote_input_fields to the address and coordinate fields its callback needs, such as destination_address.postal_code. Flint sends only the declared fields, and asks the buyer for any that are missing before it calls your endpoint.

Live delivery rates with a callback has the request and response bodies, verification code, retries, the circuit breaker, and signing-key rotation.

Change configuration#

Each create or configuration change publishes an immutable revision, named by the resource's current_*_revision_id. Future checkouts use the new revision.

Note: Open checkouts keep their revision

A checkout pins the revision of each method it offers and of everything that method references. A change applies to checkouts created afterward. To stop a checkout from using a revision that is already pinned, revoke it.

Versions#

Every resource has a version that advances on each write. Send it as expected_version when a PATCH changes anything a quote depends on:

Resourceexpected_version is required to change
Profile, zone, or location setconfiguration
Methodconfiguration, name, description, display_position, or recommendation_priority
Rate callbackconfiguration or signing_methods

Other fields, such as status, metadata, external_reference_id, and the name of a profile, zone, location set, or callback, accept it optionally. Leaving out a required fence returns 400 INVALID_REQUEST with param expected_version.

A stale expected_version returns 409 VERSION_CONFLICT with param expected_version and the current version in details[0].current_version. A write without a fence that loses a race to another write returns 409 VERSION_CONFLICT with no param. In both cases, read the resource again, rebuild the change, and send it with a new Idempotency-Key.

How configuration updates#

ResourceSending configuration
Method or rate callbackChanges only the keys you send. Each key replaces that part whole, and the rest keep their values, so a pricing-only update keeps the origin, eligibility, and estimate.
Profile, zone, or location setReplaces the whole configuration. Send every required key.

For a method or callback, the merged result must be a configuration you could create, and an empty configuration is invalid. Optional keys accept null:

  • eligibility: null removes the conditions, so the method is offered everywhere.
  • estimate: null restores type: "none".
  • A callback key set to null restores its default.
  • origin, pricing, and a callback's url can't be null.
  • Arrays can't be null. Send [] to clear recipient_requirements or quote_input_fields.

A rate table's rates are replaced as a list. To add, edit, reorder, or remove rates, send the complete configuration.pricing.rate_table.rates array: include each kept rate's delivery_rate_id, leave the ID out for a new rate, and leave out rates to remove them. The response assigns drate_ IDs to new rates.

Each resource family takes only its own fields. Sending a method-only field, such as description, display_position, or recommendation_priority, to a profile, zone, location set, or callback returns 400 INVALID_REQUEST with param naming it.

Archive a resource#

DELETE archives a resource permanently. It stays readable by ID for historical records, and lists leave it out unless status names archived, such as status=active,inactive,archived. A DELETE on a resource that is already archived returns 200 with the resource and changes nothing, so a retry is safe. Any other write to an archived resource returns 409 ACTION_NOT_ALLOWED with reason archived.

Flint refuses to archive a resource, or to deactivate a method or callback, while something depends on it:

ResourceBlocked while
MethodYour checkout default or a payment link lists it, including an inactive link
Zone, location set, or rate callbackAn active method references it
ProfileA product variant or bundle component uses it, or it is the default

The refusal is 409 RESOURCE_IN_USE. details[0].blocking_resources lists up to 25 blockers and details[0].blocking_resource_count has the total. Your checkout default and the default profile appear as one blocker with resource_type merchant. Open checkout sessions keep their pinned revision and never block. GET /v1/delivery-methods?delivery_zone_id=dzone_... finds the methods that use a zone, and the same filter works for location sets, callbacks, and Locations.

Errors#

  • HTTP 400
    param names the field. A configuration value failed validation, such as a gap between tiered bands. A required expected_version is missing. A status change was combined with other fields, or a field doesn't belong to this resource family.
  • HTTP 404
    The resource, or a zone, location set, Location, or callback it references, doesn't exist in this environment. details[0].resource_type and details[0].resource_id name it.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    The resource changed after you read it. details[0].current_version has its version. Read it again, rebuild the change, and retry.
  • HTTP 409
    Something still depends on the resource. Remove the references in details[0].blocking_resources, then retry. For a default profile, make another profile the default first.
  • HTTP 409
    With reason archived, the resource is archived and can't change. For rate callbacks, secret_not_issued means hmac was added before a secret exists, so call rotate-secret; in_progress means a rotation's one-hour overlap hasn't ended.
Delivery optionsSet up regional shipping, free shipping over an amount, pickup, and scheduled local delivery.Live delivery rates with a callbackPrice delivery on your own server during the quote.Delivery quotesHow a checkout prices the methods you configure.Delivery revocationsFence a compromised revision, signing key, or Location geography.

The Delivery profile object#

Reusable delivery rules assigned to catalog items.

Returned by GET /v1/delivery-profiles/{delivery_profile_id} and carried by the endpoints below.

Attributes

configurationobjectRequired

Current delivery requirement and grouping policy.

created_atstringRequired

Time the profile was created.

current_delivery_profile_revision_idstringRequired

Immutable revision used for new line-item snapshots.

delivery_profile_idstringRequired

Stable delivery profile ID.

diagnosticsobject

Read-only catalog and delivery-method compatibility diagnostics.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

is_defaultbooleanRequired

True only when this profile is the current physical catalog default.

metadatamap of string

Caller-owned metadata.

namestringRequired

Merchant-facing profile name.

statusenumRequired

Current profile lifecycle status.

  • active
  • archived
updated_atstringRequired

Time the profile last changed.

versionintegerRequired

Optimistic-concurrency version for profile writes.

JSON
{
  "configuration": {
    "requirement": "none"
  },
  "created_at": "2026-08-02T16:00:00Z",
  "current_delivery_profile_revision_id": "dprofr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "delivery_profile_id": "dprof_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "is_default": true,
  "name": "Standard delivery",
  "status": "active",
  "updated_at": "2026-08-02T16:00:00Z",
  "version": 1
}

The Delivery location set object#

The locations available to a delivery method.

Returned by GET /v1/delivery-location-sets/{delivery_location_set_id} and carried by the endpoints below.

Attributes

configurationobjectRequired

Current member Locations and selection rules.

created_atstringRequired

Time the location set was created.

current_delivery_location_set_revision_idstringRequired

Immutable revision used for new quotes.

delivery_location_set_idstringRequired

Stable delivery location set ID.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

metadatamap of string

Caller-owned metadata.

namestringRequired

Merchant-facing location set name.

statusenumRequired

Current location set lifecycle status.

  • active
  • archived
updated_atstringRequired

Time the location set last changed.

versionintegerRequired

Optimistic-concurrency version for location set writes.

JSON
{
  "configuration": {
    "location_ids": [
      "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX"
    ]
  },
  "created_at": "2026-08-02T16:00:00Z",
  "current_delivery_location_set_revision_id": "dlsr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "delivery_location_set_id": "dls_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "name": "Standard delivery",
  "status": "active",
  "updated_at": "2026-08-02T16:00:00Z",
  "version": 1
}

The Delivery method object#

A configured shipping, pickup, local delivery, or service option.

Returned by GET /v1/delivery-methods/{delivery_method_id} and carried by the endpoints below.

Attributes

configurationobjectRequired

Current eligibility, pricing, origin, estimate, and tax configuration.

created_atstringRequired

Time the method was created.

current_delivery_method_revision_idstringRequired

Immutable revision currently used for new quotes.

delivery_method_idstringRequired

Stable delivery method ID.

descriptionstring

Optional buyer-facing description.

display_positionintegerRequired

Ascending display order among methods.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

metadatamap of string

Caller-owned metadata.

namestringRequired

Merchant-facing method name.

recommendation_priorityinteger

Marks this method as recommended. Within each choice group, the available method with the lowest value is recommended and listed first. Ties go to the lower display_position, then the method ID. Null never recommends the method.

statusenumRequired

Current method lifecycle status.

  • active
  • inactive
  • archived
subscription_countsobjectRequired

Counts of subscriptions by status: active, past due, and paused.

typeenumRequired

Delivery mode this method offers.

  • shipment
  • local_delivery
  • pickup
updated_atstringRequired

Time the method last changed.

versionintegerRequired

Optimistic-concurrency version for method writes.

JSON
{
  "configuration": {
    "charge_tax_category": null,
    "eligibility": {
      "zone": {
        "delivery_zone_id": "dzone_01K1P6G4M7H2N8Q9R3S5T6V7WX",
        "subject": "destination_address"
      }
    },
    "estimate": {
      "schedule_window": {
        "availability": {
          "dst_disambiguation": "earlier",
          "maximum_scheduling_horizon_days": 7,
          "preparation_lead_time_seconds": 7200,
          "timezone": "America/New_York",
          "weekly_intervals": [
            {
              "end_minute": 720,
              "end_weekday": 2,
              "start_minute": 600,
              "start_weekday": 2
            },
            {
              "end_minute": 720,
              "end_weekday": 4,
              "start_minute": 600,
              "start_weekday": 4
            }
          ]
        }
      },
      "type": "schedule_window"
    },
    "minimum_option_lifetime_seconds": 300,
    "origin": {
      "location_id": "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "type": "fixed_location"
    },
    "pricing": {
      "calculated": {
        "base_fee_currency_options": {
          "USD": {
            "amount": 500,
            "currency": "USD"
          }
        },
        "distance": {
          "currency_options": {
            "USD": {
              "amount": 100,
              "currency": "USD"
            }
          },
          "unit": "kilometer",
          "unit_quantity": 1
        },
        "maximum_fee_currency_options": {
          "USD": {
            "amount": 2000,
            "currency": "USD"
          }
        },
        "minimum_fee_currency_options": {
          "USD": {
            "amount": 500,
            "currency": "USD"
          }
        }
      },
      "type": "calculated"
    },
    "public_details": {
      "service_level": "scheduled"
    },
    "selection_guarantee_seconds": 0,
    "taxable": null
  },
  "created_at": "2026-08-02T16:00:00Z",
  "current_delivery_method_revision_id": "dmetr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "delivery_method_id": "dmet_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "display_position": 0,
  "name": "Local delivery",
  "status": "inactive",
  "subscription_counts": {
    "active": 0,
    "past_due": 0,
    "paused": 0
  },
  "type": "local_delivery",
  "updated_at": "2026-08-02T16:00:00Z",
  "version": 1
}

The Delivery rate callback object#

An endpoint that supplies delivery rates.

Returned by GET /v1/delivery-rate-callbacks/{delivery_rate_callback_id} and carried by the endpoints below.

Attributes

circuit_failure_countintegerRequired

Consecutive callback failures since the last successful response.

circuit_stateenumRequired
  • closed
  • open
  • half_open
configurationobjectRequired

Settings for a delivery rate callback: the endpoint `url` Flint calls, request timeout, request and response size limits, redirect policy, and whether previews can use it.

created_atstringRequired

RFC3339 timestamp.

current_delivery_rate_callback_revision_idstringRequired
delivery_rate_callback_idstringRequired

Unique identifier for this delivery rate callback, prefixed `dcb_`.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

key_idstring

Initial HMAC signing key ID. Returned only by create when hmac is included.

namestringRequired
secretstring

Initial HMAC shared secret. Returned only by the create response when signing_methods includes hmac.

signing_methodsarray of enumRequired

Signing methods enabled for callback HTTP requests. jwt sends Authorization: Bearer with a Flint-signed token whose aud is this delivery_rate_callback_id; hmac sends webhook-signature and signing key IDs.

  • jwt
  • hmac
statusenumRequired
  • active
  • inactive
  • archived
updated_atstringRequired

RFC3339 timestamp.

versionintegerRequired

Current version of this resource's owned state. Send it as `expected_version` when changing the resource to reject a stale write.

JSON
{
  "circuit_failure_count": 0,
  "circuit_state": "closed",
  "configuration": {
    "url": "https://merchant.example/delivery"
  },
  "created_at": "2026-08-02T16:00:00Z",
  "current_delivery_rate_callback_revision_id": "dcbr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "delivery_rate_callback_id": "dcb_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "name": "Standard delivery",
  "signing_methods": [
    "jwt"
  ],
  "status": "active",
  "updated_at": "2026-08-02T16:00:00Z",
  "version": 1
}

The Delivery zone object#

A geographic area served by a delivery method.

Returned by GET /v1/delivery-zones/{delivery_zone_id} and carried by the endpoints below.

Attributes

configurationone ofRequired

Current geographic eligibility conditions.

created_atstringRequired

Time the zone was created.

current_delivery_zone_revision_idstringRequired

Immutable revision used for new quotes.

delivery_zone_idstringRequired

Stable delivery zone ID.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

metadatamap of string

Caller-owned metadata.

namestringRequired

Merchant-facing zone name.

statusenumRequired

Current zone lifecycle status.

  • active
  • archived
updated_atstringRequired

Time the zone last changed.

versionintegerRequired

Optimistic-concurrency version for zone writes.

JSON
{
  "configuration": {
    "country": {
      "values": [
        "US"
      ]
    }
  },
  "created_at": "2026-08-02T16:00:00Z",
  "current_delivery_zone_revision_id": "dzoner_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "delivery_zone_id": "dzone_01K1P6G4M7H2N8Q9R3S5T6V7WX",
  "name": "Standard delivery",
  "status": "active",
  "updated_at": "2026-08-02T16:00:00Z",
  "version": 1
}

List delivery location sets#

GET/v1/delivery-location-sets

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns delivery location sets in a stable, cursor-paginated order. Archived resources are excluded by default. Default order: created_at ascending, then delivery_location_set_id ascending.

Query parameters

page_sizeinteger

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

page_tokenstring

Opaque next_page_token from the previous response. 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 invalid, expired, or mismatched token returns a validation error.

querystring

Search across delivery_location_set_id, name, and external_reference_id. Text fields match any part of the value, and %, _ and \ are ordinary characters, not wildcards. IDs match from the start and need the type prefix, such as dls_01.

external_reference_idstring

Exact-match filter on the caller-owned external reference ID.

statusarray of enum

Filter by status. Omitted, the list leaves out archived rows; name archived to include them. 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.

  • active
  • archived
delivery_method_idstring

Filter by an active current method that references this resource.

Response · 200

Delivery configuration page.

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/delivery-location-sets \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Delivery configuration page.

JSON
{
  "data": [
    {
      "configuration": {
        "location_ids": [
          "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX"
        ]
      },
      "created_at": "2026-08-02T16:00:00Z",
      "current_delivery_location_set_revision_id": "dlsr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "delivery_location_set_id": "dls_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "name": "Standard delivery",
      "status": "active",
      "updated_at": "2026-08-02T16:00:00Z",
      "version": 1
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "page_2",
  "request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}

Create delivery location set#

POST/v1/delivery-location-setsIdempotent

Requires scope commerce.delivery.write

Rate limit: write

Delivery location sets pin reusable sets of Locations for allocation or buyer pickup. Creation publishes immutable revision 1. It starts active.

Request body

configurationobjectRequired

The location IDs in a delivery location set.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

metadatamap of string

Caller-owned metadata. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

namestringRequired

Response · 201

Created delivery location set.

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/delivery-location-sets \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "configuration": {
      "location_ids": [
        "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX"
      ]
    },
    "name": "Standard delivery"
  }'

Get delivery location set#

GET/v1/delivery-location-sets/{delivery_location_set_id}

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns the current revision and lifecycle state for one delivery location set.

Path parameters

delivery_location_set_idstringRequired

Flint delivery location set ID.

Response · 200

Delivery resource.

Same response as Create delivery location set.

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

Delivery resource.

JSON
{
  "data": {
    "configuration": {
      "location_ids": [
        "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX"
      ]
    },
    "created_at": "2026-08-02T16:00:00Z",
    "current_delivery_location_set_revision_id": "dlsr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "delivery_location_set_id": "dls_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "name": "Standard delivery",
    "status": "active",
    "updated_at": "2026-08-02T16:00:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}

Update delivery location set#

PATCH/v1/delivery-location-sets/{delivery_location_set_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: write

Sparsely updates mutable fields. A change to pinned configuration publishes a new immutable revision and requires expected_version. Archived resources can't be changed; create a new resource instead.

Path parameters

delivery_location_set_idstringRequired

Flint delivery location set ID.

Request body

Send at least one of these

configurationobject

location_ids replaces the set's Locations when present; leave configuration out to keep them. Null, an empty list, and duplicate IDs are invalid. Requires expected_version.

expected_versioninteger

Current resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.

external_reference_idstring or null

Caller-owned identifier for this resource in an external system. Send null to clear it.

metadatamap of string or null

Caller-owned metadata. Omit this field to leave metadata unchanged. Send an object to merge by key, set a key to null to remove it, or set metadata to null to clear all caller-owned metadata. An empty object makes no change. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

namestringRequired

Response · 200

Updated delivery location set.

Same response as Create delivery location set.

curl -X PATCH https://api.withflintpay.com/v1/delivery-location-sets/dls_01KEZF7C00C4WWN7RYTRF55C4H \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "name": "Standard delivery"
  }'

Delete delivery location set#

DELETE/v1/delivery-location-sets/{delivery_location_set_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: write

Retires the delivery location set after checking current dependencies. The retired resource remains available by ID for historical records. Deleting an already archived resource returns it without changing its version or repeating effects.

Path parameters

delivery_location_set_idstringRequired

Flint delivery location set ID.

Query parameters

expected_versioninteger

Optional current resource version. The delete is rejected if the resource changed after this version was read.

Response · 200

Retired delivery location set.

Same response as Create delivery location set.

curl -X DELETE https://api.withflintpay.com/v1/delivery-location-sets/dls_01KEZF7C00C4WWN7RYTRF55C4H \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List delivery methods#

GET/v1/delivery-methods

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns delivery methods in a stable, cursor-paginated order. Archived resources are excluded by default. Default order: created_at ascending, then delivery_method_id ascending.

Query parameters

page_sizeinteger

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

page_tokenstring

Opaque next_page_token from the previous response. 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 invalid, expired, or mismatched token returns a validation error.

querystring

Search across delivery_method_id, name, description, and external_reference_id. Text fields match any part of the value, and %, _ and \ are ordinary characters, not wildcards. IDs match from the start and need the type prefix, such as dmet_01.

external_reference_idstring

Exact-match filter on the caller-owned external reference ID.

statusarray of enum

Filter by status. Omitted, the list leaves out archived rows; name archived to include them. 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.

  • active
  • inactive
  • archived
typearray of enum

Filter by method type. 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.

  • shipment
  • local_delivery
  • pickup
delivery_zone_idstring

Filter by referenced delivery zone.

delivery_location_set_idstring

Filter by referenced delivery location set.

delivery_rate_callback_idstring

Filter by referenced callback endpoint.

location_idstring

Filter by referenced Location.

Response · 200

Delivery configuration page.

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/delivery-methods \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Delivery configuration page.

JSON
{
  "data": [
    {
      "configuration": {
        "charge_tax_category": null,
        "eligibility": {
          "zone": {
            "delivery_zone_id": "dzone_01K1P6G4M7H2N8Q9R3S5T6V7WX",
            "subject": "destination_address"
          }
        },
        "estimate": {
          "schedule_window": {
            "availability": {
              "dst_disambiguation": "earlier",
              "maximum_scheduling_horizon_days": 7,
              "preparation_lead_time_seconds": 7200,
              "timezone": "America/New_York",
              "weekly_intervals": [
                {
                  "end_minute": 720,
                  "end_weekday": 2,
                  "start_minute": 600,
                  "start_weekday": 2
                },
                {
                  "end_minute": 720,
                  "end_weekday": 4,
                  "start_minute": 600,
                  "start_weekday": 4
                }
              ]
            }
          },
          "type": "schedule_window"
        },
        "minimum_option_lifetime_seconds": 300,
        "origin": {
          "location_id": "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX",
          "type": "fixed_location"
        },
        "pricing": {
          "calculated": {
            "base_fee_currency_options": {
              "USD": {
                "amount": 500,
                "currency": "USD"
              }
            },
            "distance": {
              "currency_options": {
                "USD": {
                  "amount": 100,
                  "currency": "USD"
                }
              },
              "unit": "kilometer",
              "unit_quantity": 1
            },
            "maximum_fee_currency_options": {
              "USD": {
                "amount": 2000,
                "currency": "USD"
              }
            },
            "minimum_fee_currency_options": {
              "USD": {
                "amount": 500,
                "currency": "USD"
              }
            }
          },
          "type": "calculated"
        },
        "public_details": {
          "service_level": "scheduled"
        },
        "selection_guarantee_seconds": 0,
        "taxable": null
      },
      "created_at": "2026-08-02T16:00:00Z",
      "current_delivery_method_revision_id": "dmetr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "delivery_method_id": "dmet_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "display_position": 0,
      "name": "Local delivery",
      "status": "inactive",
      "subscription_counts": {
        "active": 0,
        "past_due": 0,
        "paused": 0
      },
      "type": "local_delivery",
      "updated_at": "2026-08-02T16:00:00Z",
      "version": 1
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "page_2",
  "request_id": "req_01KWM6N4GV1JDR9PVZK6008PHM"
}

Create delivery method#

POST/v1/delivery-methodsIdempotent

Requires scope commerce.delivery.write

Rate limit: write

Delivery methods combine eligibility, pricing, schedules, estimates, tax treatment, and execution behavior. Creation publishes immutable revision 1. Omit status to start inactive.

Request body

Send exactly one of these

The `shipment` variant of `CreateDeliveryMethodRequest`.

configurationobjectRequired

The configuration you supply when creating a delivery method. `origin` and `pricing` are required.

descriptionstring
display_positioninteger
external_reference_idstring

Caller-owned identifier for this resource in an external system.

metadatamap of string

Caller-owned metadata. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

namestringRequired
recommendation_priorityinteger

Marks this method as recommended. Within each choice group, the available method with the lowest value is recommended and listed first. Ties go to the lower display_position, then the method ID. Null never recommends the method.

statusenum

Whether this method is available for new delivery quotes. Defaults to inactive.

  • inactive
  • active
typeenumRequired
  • shipment

Response · 201

Created delivery method.

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/delivery-methods \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "configuration": {
      "eligibility": {
        "zone": {
          "delivery_zone_id": "dzone_01K1P6G4M7H2N8Q9R3S5T6V7WX"
        }
      },
      "estimate": {
        "schedule_window": {
          "availability": {
            "maximum_scheduling_horizon_days": 7,
            "preparation_lead_time_seconds": 7200,
            "timezone": "America/New_York",
            "weekly_intervals": [
              {
                "end_minute": 720,
                "end_weekday": 2,
                "start_minute": 600,
                "start_weekday": 2
              },
              {
                "end_minute": 720,
                "end_weekday": 4,
                "start_minute": 600,
                "start_weekday": 4
              }
            ]
          }
        },
        "type": "schedule_window"
      },
      "minimum_option_lifetime_seconds": 300,
      "origin": {
        "location_id": "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX",
        "type": "fixed_location"
      },
      "pricing": {
        "calculated": {
          "base_fee_currency_options": {
            "USD": {
              "amount": 500,
              "currency": "USD"
            }
          },
          "distance": {
            "currency_options": {
              "USD": {
                "amount": 100,
                "currency": "USD"
              }
            },
            "unit": "kilometer",
            "unit_quantity": 1
          },
          "maximum_fee_currency_options": {
            "USD": {
              "amount": 2000,
              "currency": "USD"
            }
          },
          "minimum_fee_currency_options": {
            "USD": {
              "amount": 500,
              "currency": "USD"
            }
          }
        },
        "type": "calculated"
      },
      "public_details": {
        "service_level": "scheduled"
      }
    },
    "name": "Local delivery",
    "type": "local_delivery"
  }'

Get delivery method#

GET/v1/delivery-methods/{delivery_method_id}

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns the current revision and lifecycle state for one delivery method.

Path parameters

delivery_method_idstringRequired

Flint delivery method ID.

Response · 200

Delivery resource.

Same response as Create delivery method.

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

Delivery resource.

JSON
{
  "data": {
    "configuration": {
      "charge_tax_category": null,
      "eligibility": {
        "zone": {
          "delivery_zone_id": "dzone_01K1P6G4M7H2N8Q9R3S5T6V7WX",
          "subject": "destination_address"
        }
      },
      "estimate": {
        "schedule_window": {
          "availability": {
            "dst_disambiguation": "earlier",
            "maximum_scheduling_horizon_days": 7,
            "preparation_lead_time_seconds": 7200,
            "timezone": "America/New_York",
            "weekly_intervals": [
              {
                "end_minute": 720,
                "end_weekday": 2,
                "start_minute": 600,
                "start_weekday": 2
              },
              {
                "end_minute": 720,
                "end_weekday": 4,
                "start_minute": 600,
                "start_weekday": 4
              }
            ]
          }
        },
        "type": "schedule_window"
      },
      "minimum_option_lifetime_seconds": 300,
      "origin": {
        "location_id": "loc_01K1P6G4M7H2N8Q9R3S5T6V7WX",
        "type": "fixed_location"
      },
      "pricing": {
        "calculated": {
          "base_fee_currency_options": {
            "USD": {
              "amount": 500,
              "currency": "USD"
            }
          },
          "distance": {
            "currency_options": {
              "USD": {
                "amount": 100,
                "currency": "USD"
              }
            },
            "unit": "kilometer",
            "unit_quantity": 1
          },
          "maximum_fee_currency_options": {
            "USD": {
              "amount": 2000,
              "currency": "USD"
            }
          },
          "minimum_fee_currency_options": {
            "USD": {
              "amount": 500,
              "currency": "USD"
            }
          }
        },
        "type": "calculated"
      },
      "public_details": {
        "service_level": "scheduled"
      },
      "selection_guarantee_seconds": 0,
      "taxable": null
    },
    "created_at": "2026-08-02T16:00:00Z",
    "current_delivery_method_revision_id": "dmetr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "delivery_method_id": "dmet_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "display_position": 0,
    "name": "Local delivery",
    "status": "inactive",
    "subscription_counts": {
      "active": 0,
      "past_due": 0,
      "paused": 0
    },
    "type": "local_delivery",
    "updated_at": "2026-08-02T16:00:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6VQ55Z8AP44TSCNXQC5Y5"
}

Update delivery method#

PATCH/v1/delivery-methods/{delivery_method_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: write

Sparsely updates mutable fields. A change to pinned configuration publishes a new immutable revision and requires expected_version. Archived resources can't be changed; create a new resource instead. A method referenced by checkout.default_delivery_method_ids at merchant scope or by delivery_method_ids on an active or inactive payment link cannot be set inactive; the request returns 409 RESOURCE_IN_USE with the blocking references. Remove the method from checkout.default_delivery_method_ids with PATCH /v1/settings or from the link's delivery_method_ids with PATCH /v1/payment-links/{payment_link_id}.

Path parameters

delivery_method_idstringRequired

Flint delivery method ID.

Request body

Send at least one of these

expected_versioninteger

Current resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, name, description, display_position, recommendation_priority.

Response · 200

Updated delivery method.

Same response as Create delivery method.

curl -X PATCH https://api.withflintpay.com/v1/delivery-methods/dmet_01KEZF7C00YSG3X2D1TZJ36TM0 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "expected_version": 1,
    "name": "Local delivery"
  }'

Delete delivery method#

DELETE/v1/delivery-methods/{delivery_method_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: write

Retires the delivery method after checking current dependencies. The retired resource remains available by ID for historical records. Deleting an already archived resource returns it without changing its version or repeating effects. A method referenced by checkout.default_delivery_method_ids at merchant scope or by delivery_method_ids on an active or inactive payment link cannot be archived; the request returns 409 RESOURCE_IN_USE with the blocking references. Remove the method from checkout.default_delivery_method_ids with PATCH /v1/settings or from the link's delivery_method_ids with PATCH /v1/payment-links/{payment_link_id}. Open checkout sessions keep their pinned revision and do not block retirement.

Path parameters

delivery_method_idstringRequired

Flint delivery method ID.

Query parameters

expected_versioninteger

Optional current resource version. The delete is rejected if the resource changed after this version was read.

Response · 200

Retired delivery method.

Same response as Create delivery method.

curl -X DELETE https://api.withflintpay.com/v1/delivery-methods/dmet_01KEZF7C00YSG3X2D1TZJ36TM0 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List delivery profiles#

GET/v1/delivery-profiles

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns delivery profiles in a stable, cursor-paginated order. Archived resources are excluded by default. Default order: created_at ascending, then delivery_profile_id ascending.

Query parameters

page_sizeinteger

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

page_tokenstring

Opaque next_page_token from the previous response. 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 invalid, expired, or mismatched token returns a validation error.

querystring

Search across delivery_profile_id, name, and external_reference_id. Text fields match any part of the value, and %, _ and \ are ordinary characters, not wildcards. IDs match from the start and need the type prefix, such as dprof_01.

external_reference_idstring

Exact-match filter on the caller-owned external reference ID.

statusarray of enum

Filter by status. Omitted, the list leaves out archived rows; name archived to include them. 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.

  • active
  • archived
is_defaultboolean

Filter by whether the profile is the current physical catalog default. Accepts a single true or false value.

resolution_modearray of enum

Filter by profile resolution mode. 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.

  • quote
  • manual
include_diagnosticsboolean

Compute catalog and delivery-configuration diagnostics for every profile returned.

Response · 200

Delivery configuration page.

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/delivery-profiles \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Delivery configuration page.

JSON
{
  "data": [
    {
      "configuration": {
        "requirement": "none"
      },
      "created_at": "2026-08-02T16:00:00Z",
      "current_delivery_profile_revision_id": "dprofr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "delivery_profile_id": "dprof_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "is_default": true,
      "name": "Standard delivery",
      "status": "active",
      "updated_at": "2026-08-02T16:00:00Z",
      "version": 1
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "page_2",
  "request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}

Create delivery profile#

POST/v1/delivery-profilesIdempotent

Requires scope commerce.delivery.write

Rate limit: write

Delivery profiles define reusable delivery rules assigned to catalog obligations. Creation publishes immutable revision 1. It starts active.

Request body

configurationone ofRequired

Delivery planning settings you supply when creating or updating a delivery profile. Which fields are allowed depends on `requirement` and `resolution_mode`.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

metadatamap of string

Caller-owned metadata. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

namestringRequired

Response · 201

Created delivery profile.

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/delivery-profiles \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "configuration": {
      "requirement": "none"
    },
    "name": "Standard delivery"
  }'

Get delivery profile#

GET/v1/delivery-profiles/{delivery_profile_id}

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns the current revision and lifecycle state for one delivery profile.

Path parameters

delivery_profile_idstringRequired

Flint delivery profile ID.

Query parameters

include_diagnosticsboolean

Compute catalog and delivery-configuration diagnostics for this profile.

Response · 200

Delivery resource.

Same response as Create delivery profile.

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

Delivery resource.

JSON
{
  "data": {
    "configuration": {
      "requirement": "none"
    },
    "created_at": "2026-08-02T16:00:00Z",
    "current_delivery_profile_revision_id": "dprofr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "delivery_profile_id": "dprof_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "is_default": true,
    "name": "Standard delivery",
    "status": "active",
    "updated_at": "2026-08-02T16:00:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}

Update delivery profile#

PATCH/v1/delivery-profiles/{delivery_profile_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: write

Sparsely updates mutable fields. Send is_default true to make this active profile the physical catalog default, together with any other mutable fields in one atomic update. Sending only is_default true for the current default leaves its version unchanged and emits no events. A change to pinned configuration publishes a new immutable revision and requires expected_version. Archived resources can't be changed; create a new resource instead.

Path parameters

delivery_profile_idstringRequired

Flint delivery profile ID.

Request body

Send at least one of these

configurationone of

Send the whole profile configuration. It replaces the current one; leave configuration out to keep it. requirement none allows no other keys, and quote profiles require origin_policy, combination_policy, and splitting_policy. Null and an empty object are invalid. Requires expected_version.

expected_versioninteger

Current resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.

external_reference_idstring or null

Caller-owned identifier for this resource in an external system. Send null to clear it.

is_defaultenum

Send true to make this active profile the physical catalog default. Can be combined with other mutable fields in one atomic update. Send expected_version to fence the update against this profile's current version. Sending only is_default true for the current default is a no-op: its version stays unchanged and no events are emitted. False is invalid; make another profile the default instead.

  • true
metadatamap of string or null

Caller-owned metadata. Omit this field to leave metadata unchanged. Send an object to merge by key, set a key to null to remove it, or set metadata to null to clear all caller-owned metadata. An empty object makes no change. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

namestringRequired

Response · 200

Updated delivery profile.

Same response as Create delivery profile.

curl -X PATCH https://api.withflintpay.com/v1/delivery-profiles/dprof_01KEZF7C0020J13FQYNY9854R0 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "name": "Standard delivery"
  }'

Delete delivery profile#

DELETE/v1/delivery-profiles/{delivery_profile_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: write

Retires the delivery profile after checking current dependencies. The retired resource remains available by ID for historical records. Deleting an already archived resource returns it without changing its version or repeating effects.

Path parameters

delivery_profile_idstringRequired

Flint delivery profile ID.

Query parameters

expected_versioninteger

Optional current resource version. The delete is rejected if the resource changed after this version was read.

Response · 200

Retired delivery profile.

Same response as Create delivery profile.

curl -X DELETE https://api.withflintpay.com/v1/delivery-profiles/dprof_01KEZF7C0020J13FQYNY9854R0 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Assign unconfigured catalog entries#

POST/v1/delivery-profiles/{delivery_profile_id}/assign-to-unconfiguredIdempotent

Requires scope commerce.delivery.write

Rate limit: write

Assigns this active delivery profile to physical product variants and bundle components that do not have a delivery profile.

Path parameters

delivery_profile_idstringRequired

Flint delivery profile ID.

Request body

expected_versioninteger

Current version of the delivery profile.

Response · 200

Counts of catalog entries assigned to the delivery profile.

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/delivery-profiles/dprof_01KEZF7C0020J13FQYNY9854R0/assign-to-unconfigured \
  -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 delivery rate callbacks#

GET/v1/delivery-rate-callbacks

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns delivery rate callbacks in a stable, cursor-paginated order. Archived resources are excluded by default. Default order: created_at ascending, then delivery_rate_callback_id ascending.

Query parameters

page_sizeinteger

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

page_tokenstring

Opaque next_page_token from the previous response. 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 invalid, expired, or mismatched token returns a validation error.

querystring

Search across delivery_rate_callback_id, name, and external_reference_id. Text fields match any part of the value, and %, _ and \ are ordinary characters, not wildcards. IDs match from the start and need the type prefix, such as dcb_01.

external_reference_idstring

Exact-match filter on the caller-owned external reference ID.

statusarray of enum

Filter by status. Omitted, the list leaves out archived rows; name archived to include them. 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.

  • active
  • inactive
  • archived
delivery_method_idstring

Filter by an active current method that references this resource.

Response · 200

Delivery configuration page.

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/delivery-rate-callbacks \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Delivery configuration page.

JSON
{
  "data": [
    {
      "circuit_failure_count": 0,
      "circuit_state": "closed",
      "configuration": {
        "url": "https://merchant.example/delivery"
      },
      "created_at": "2026-08-02T16:00:00Z",
      "current_delivery_rate_callback_revision_id": "dcbr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "delivery_rate_callback_id": "dcb_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "name": "Standard delivery",
      "signing_methods": [
        "jwt"
      ],
      "status": "active",
      "updated_at": "2026-08-02T16:00:00Z",
      "version": 1
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "page_2",
  "request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}

Create delivery rate callback#

POST/v1/delivery-rate-callbacksIdempotent

Requires scope commerce.delivery.write

Rate limit: sensitive_write

Delivery callback endpoints pin shared outbound callback transport configuration. Creation publishes immutable revision 1. signing_methods defaults to ["jwt"]. JWTs use Flint's public JWKS and this callback's delivery_rate_callback_id as aud. Verify body_sha256 against the exact request bytes. The jwt method sends Authorization: Bearer, and the hmac method sends webhook-signature and Flint-Signing-Key-Ids. Every request includes webhook-id and webhook-timestamp. A shared secret and key_id are issued and returned once only when hmac is included. It starts inactive.

Request body

configurationobjectRequired

Settings for a delivery rate callback: the endpoint `url` Flint calls, request timeout, request and response size limits, redirect policy, and whether previews can use it.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

namestringRequired
signing_methodsarray of enum

Signing methods for callback requests. Defaults to JWT verification with Flint's public JWKS. A shared secret and key_id are returned only when hmac is included.

  • jwt
  • hmac

Response · 201

Created delivery rate callback.

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/delivery-rate-callbacks \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "configuration": {
      "url": "https://merchant.example/delivery-rates"
    },
    "name": "Live delivery rates",
    "signing_methods": [
      "jwt"
    ]
  }'

Get delivery rate callback#

GET/v1/delivery-rate-callbacks/{delivery_rate_callback_id}

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns the current revision and lifecycle state for one delivery rate callback.

Path parameters

delivery_rate_callback_idstringRequired

Flint delivery rate callback ID.

Response · 200

Delivery resource.

Same response as Create delivery rate callback.

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

Delivery resource.

JSON
{
  "data": {
    "circuit_failure_count": 0,
    "circuit_state": "closed",
    "configuration": {
      "url": "https://merchant.example/delivery"
    },
    "created_at": "2026-08-02T16:00:00Z",
    "current_delivery_rate_callback_revision_id": "dcbr_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "delivery_rate_callback_id": "dcb_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "name": "Standard delivery",
    "signing_methods": [
      "jwt"
    ],
    "status": "active",
    "updated_at": "2026-08-02T16:00:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}

Update delivery rate callback#

PATCH/v1/delivery-rate-callbacks/{delivery_rate_callback_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: sensitive_write

Sparsely updates mutable fields. A change to pinned configuration publishes a new immutable revision. Configuration and signing_methods changes require expected_version. signing_methods replaces the set; removing hmac deletes all shared secrets. Use rotate-secret to issue a first shared secret before adding hmac. Archived resources can't be changed; create a new resource instead.

Path parameters

delivery_rate_callback_idstringRequired

Flint delivery rate callback ID.

Request body

Send at least one of these

expected_versioninteger

Current resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, signing_methods.

Response · 200

Updated delivery rate callback.

Same response as Create delivery rate callback.

curl -X PATCH https://api.withflintpay.com/v1/delivery-rate-callbacks/dcb_01KEZF7C00Q4GZ7YPQ60GC4HV1 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "expected_version": 1,
    "signing_methods": [
      "jwt"
    ]
  }'

Delete delivery rate callback#

DELETE/v1/delivery-rate-callbacks/{delivery_rate_callback_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: write

Retires the delivery rate callback after checking current dependencies. The retired resource remains available by ID for historical records. Deleting an already archived resource returns it without changing its version or repeating effects.

Path parameters

delivery_rate_callback_idstringRequired

Flint delivery rate callback ID.

Query parameters

expected_versioninteger

Optional current resource version. The delete is rejected if the resource changed after this version was read.

Response · 200

Retired delivery rate callback.

Same response as Create delivery rate callback.

curl -X DELETE https://api.withflintpay.com/v1/delivery-rate-callbacks/dcb_01KEZF7C00Q4GZ7YPQ60GC4HV1 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Check delivery rate callback connection#

POST/v1/delivery-rate-callbacks/{delivery_rate_callback_id}/check-connectionIdempotent

Requires scope commerce.delivery.write

Rate limit: external_provider_action

Sends a minimal signed probe to verify endpoint reachability and callback credentials without running a synthetic rate evaluation. The Idempotency-Key fingerprint includes the delivery_rate_callback_id path value and request body. A retry replays the original result even after the callback changes or is archived.

Path parameters

delivery_rate_callback_idstringRequired

Flint delivery rate callback ID.

Response · 200

Callback connection-check 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/delivery-rate-callbacks/dcb_01KEZF7C00Q4GZ7YPQ60GC4HV1/check-connection \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Rotate delivery rate callback signing key#

POST/v1/delivery-rate-callbacks/{delivery_rate_callback_id}/rotate-secretIdempotent

Requires scope commerce.delivery.write

Rate limit: sensitive_write

Issues a first shared secret and adds hmac when no secret exists, and increments the callback's version. Otherwise rotates the shared secret and accepts both keys for one hour. Returns the new secret and key_id once.

Path parameters

delivery_rate_callback_idstringRequired

Flint delivery rate callback ID.

Response · 200

Rotated signing key.

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/delivery-rate-callbacks/dcb_01KEZF7C00Q4GZ7YPQ60GC4HV1/rotate-secret \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Test delivery rate callback#

POST/v1/delivery-rate-callbacks/{delivery_rate_callback_id}/test-deliveriesIdempotent

Requires scope commerce.delivery.write

Rate limit: external_provider_action

Sends a signed delivery rate callback with synthetic non-PII data and returns a safe result. The Idempotency-Key fingerprint includes the delivery_rate_callback_id path value and request body. A retry replays the original result even after the callback changes or is archived.

Path parameters

delivery_rate_callback_idstringRequired

Flint delivery rate callback ID.

Response · 201

Created callback test-delivery 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/delivery-rate-callbacks/dcb_01KEZF7C00Q4GZ7YPQ60GC4HV1/test-deliveries \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List delivery zones#

GET/v1/delivery-zones

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns delivery zones in a stable, cursor-paginated order. Archived resources are excluded by default. Default order: created_at ascending, then delivery_zone_id ascending.

Query parameters

page_sizeinteger

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

page_tokenstring

Opaque next_page_token from the previous response. 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 invalid, expired, or mismatched token returns a validation error.

querystring

Search across delivery_zone_id, name, and external_reference_id. Text fields match any part of the value, and %, _ and \ are ordinary characters, not wildcards. IDs match from the start and need the type prefix, such as dzone_01.

external_reference_idstring

Exact-match filter on the caller-owned external reference ID.

statusarray of enum

Filter by status. Omitted, the list leaves out archived rows; name archived to include them. 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.

  • active
  • archived
delivery_method_idstring

Filter by an active current method that references this resource.

Response · 200

Delivery configuration page.

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/delivery-zones \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Delivery configuration page.

JSON
{
  "data": [
    {
      "configuration": {
        "country": {
          "values": [
            "US"
          ]
        }
      },
      "created_at": "2026-08-02T16:00:00Z",
      "current_delivery_zone_revision_id": "dzoner_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "delivery_zone_id": "dzone_01K1P6G4M7H2N8Q9R3S5T6V7WX",
      "name": "Standard delivery",
      "status": "active",
      "updated_at": "2026-08-02T16:00:00Z",
      "version": 1
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "page_2",
  "request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}

Create delivery zone#

POST/v1/delivery-zonesIdempotent

Requires scope commerce.delivery.write

Rate limit: write

Delivery zones define versioned geographic eligibility. Creation publishes immutable revision 1. It starts active.

Request body

configurationone ofRequired

A reusable geographic predicate containing only country, state, postal_code, and radius conditions.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

metadatamap of string

Caller-owned metadata. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

namestringRequired

Response · 201

Created delivery zone.

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/delivery-zones \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "configuration": {
      "country": {
        "values": [
          "US"
        ]
      }
    },
    "name": "Standard delivery"
  }'

Get delivery zone#

GET/v1/delivery-zones/{delivery_zone_id}

Requires scope commerce.delivery.read or commerce.delivery.write

Rate limit: read

Returns the current revision and lifecycle state for one delivery zone.

Path parameters

delivery_zone_idstringRequired

Flint delivery zone ID.

Response · 200

Delivery resource.

Same response as Create delivery zone.

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

Delivery resource.

JSON
{
  "data": {
    "configuration": {
      "country": {
        "values": [
          "US"
        ]
      }
    },
    "created_at": "2026-08-02T16:00:00Z",
    "current_delivery_zone_revision_id": "dzoner_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "delivery_zone_id": "dzone_01K1P6G4M7H2N8Q9R3S5T6V7WX",
    "name": "Standard delivery",
    "status": "active",
    "updated_at": "2026-08-02T16:00:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6AASYFSEP53E9W34N8J33"
}

Update delivery zone#

PATCH/v1/delivery-zones/{delivery_zone_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: write

Sparsely updates mutable fields. A change to pinned configuration publishes a new immutable revision and requires expected_version. Archived resources can't be changed; create a new resource instead.

Path parameters

delivery_zone_idstringRequired

Flint delivery zone ID.

Request body

Send at least one of these

configurationone of

Send the whole geography. It replaces the zone's current geography; leave configuration out to keep it. Null and an empty object are invalid. Requires expected_version.

expected_versioninteger

Current resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.

external_reference_idstring or null

Caller-owned identifier for this resource in an external system. Send null to clear it.

metadatamap of string or null

Caller-owned metadata. Omit this field to leave metadata unchanged. Send an object to merge by key, set a key to null to remove it, or set metadata to null to clear all caller-owned metadata. An empty object makes no change. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

namestringRequired

Response · 200

Updated delivery zone.

Same response as Create delivery zone.

curl -X PATCH https://api.withflintpay.com/v1/delivery-zones/dzone_01KEZF7C005RY7KGCN4M2CH5WP \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "name": "Standard delivery"
  }'

Delete delivery zone#

DELETE/v1/delivery-zones/{delivery_zone_id}Idempotent

Requires scope commerce.delivery.write

Rate limit: write

Retires the delivery zone after checking current dependencies. The retired resource remains available by ID for historical records. Deleting an already archived resource returns it without changing its version or repeating effects.

Path parameters

delivery_zone_idstringRequired

Flint delivery zone ID.

Query parameters

expected_versioninteger

Optional current resource version. The delete is rejected if the resource changed after this version was read.

Response · 200

Retired delivery zone.

Same response as Create delivery zone.

curl -X DELETE https://api.withflintpay.com/v1/delivery-zones/dzone_01KEZF7C005RY7KGCN4M2CH5WP \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Was this helpful?