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. A catalog variant accepts it only when allowed_types is exactly ["digital"] or ["service"] to match its product's product_type; see Assign a manual profile to digital and service variants.

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 keeps the whole line at one Location. quantity_split_allowed permits split delivery planning. A tracked variant order line currently needs one Location for its full quantity with either value, including checkout and payment.

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.

Flint checks the profile and its expected_version in the request and returns 202 Accepted with a Retry-After header. product_variants_unconfigured and bundle_components_unconfigured count the items that had no profile at that moment. Flint then assigns the profile in the background, in batches of at most 250 items, usually within seconds; a large catalog takes longer. Until an item's batch commits, reads show it as before: no delivery_profile_id and delivery_configuration_status action_required. Each batch sends product_variant.updated for its variants, product.updated for each product whose delivery_configuration_status or other summaries changed, and bundle.updated for each bundle whose components it assigned. An item that gets a profile from another write first keeps that profile.

Follow an assignment#

The 202 response and every read of the profile carry unconfigured_assignment, the progress of the profile's latest assignment. It is null on a profile that has never had one.

FieldMeaning
statusprocessing while batches run, then completed, canceled, or failed. All three are final.
cancellation_reasonPresent only when canceled: superseded when a newer assignment took over, or delivery_profile_archived when the profile was archived first.
failure_reasonPresent only when failed: assignment_failed when Flint kept failing to write a batch and stopped retrying. Items it reached keep the profile; start a new assignment for the rest.
accepted_atWhen Flint accepted the request.
completed_atWhen the assignment reached completed, canceled, or failed. Absent while processing.
product_variants_remaining, bundle_components_remainingAbout how many items the assignment hasn't reached yet, starting from the items with no profile when Flint accepted it. Flint updates them between runs of batches, about every 10 seconds, and they are 0 once completed.

Poll GET /v1/delivery-profiles/{delivery_profile_id} until status isn't processing, waiting at least Retry-After seconds between reads:

Shell
while :; do
  status=$(curl -s https://api.withflintpay.com/v1/delivery-profiles/dprof_... \
    -H "Authorization: Bearer YOUR_API_KEY" | jq -r '.data.unconfigured_assignment.status')
  [ "$status" != "processing" ] && break
  sleep 10
done
echo "$status"

If you start another assignment before this one finishes, the newer one takes over: this one stops with canceled and superseded, and the newer one assigns its profile to everything still unconfigured. If the profile is archived before the assignment finishes, the assignment stops with canceled and delivery_profile_archived, and the remaining items stay unconfigured. Progress changes don't advance the profile's version or send delivery_profile.updated; the batches' own product_variant.updated, product.updated, and bundle.updated events report the items they assigned. Write responses and delivery_profile.* webhook objects leave unconfigured_assignment out, so read the profile to see it.

Items whose profile isn't active report action_required too, and the assignment doesn't change them, so after completed some items can still need a profile. List them with delivery_configuration_status=action_required.

Product variants and bundle components report delivery_configuration_status. Clearing a physical 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_...

Assign a manual profile to digital and service variants#

A variant of a digital or service product has no delivery requirement until you assign a profile. Flint applies no default to these variants: the variant reports delivery_configuration_status: "not_applicable", orders for it get nothing to fulfill, and you deliver from your own app after order.paid and a check of the order's dispute_status (access rules). This stays valid and unchanged for any variant you leave unassigned.

To have Flint track delivery, create a manual profile and send its ID as delivery_profile_id on the variant. The profile's configuration must have requirement: "required", resolution_mode: "manual", and allowed_types exactly ["digital"] for a digital product or ["service"] for a service product:

JSON
{
  "name": "Digital downloads",
  "configuration": {
    "requirement": "required",
    "resolution_mode": "manual",
    "allowed_types": ["digital"]
  }
}

A profile that doesn't match returns 400 INVALID_REQUEST with detail code NOT_ALLOWED at delivery_profile_id, or at the nested path of the request that carried it, such as variants[0].delivery_profile_id. A quote profile, a none profile, a list with more than one type, and a profile for the other type all fail this check.

What an assignment does:

  • New order lines only. A catalog line copies the variant's fulfillment requirement when you add it to an order and keeps it. Assigning or clearing a profile never changes an existing line.
  • Fulfillment is manual. Flint creates no fulfillment, grant, or entitlement for the line. After the order is paid, create the fulfillment yourself with POST /v1/fulfillments, then complete it through the usual fulfillment lifecycle.
  • Service stays service. A service line is fulfilled with type: "service" and never as digital.

Variants you leave unassigned keep requirement: "none", so creating a fulfillment for their lines returns 400 INVALID_REQUEST with detail code NOT_ALLOWED at line_items[i].order_line_item_id.

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.

A group with two or more Locations needs items whose delivery profile has origin_policy inventory_routing, which lets Flint choose among them. Under method_origin, which the General profile uses, the method's own origin must be one Location, so a quote reports that method as cannot_calculate with failure_category: invalid_configuration and a method_unavailable diagnostic naming origin_policy. The quote still offers your other methods. See Ship from two warehouses.

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. caller.tier_key uses the nonnegative tier_key sent when creating the checkout delivery quote, with the same numeric bands. Only choice_group.total_weight takes a unit; every other basis forbids it.
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. offered_windows must contain at least one window when no window pair is supplied. expires_at must be strictly later than the evaluation time plus 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. Each outcome type accepts only its own fields and merchant_reference: sending another type's field, such as amount_money on an unavailable outcome, returns 400 INVALID_REQUEST with an UNKNOWN_FIELD detail whose param names it, such as method_results[0].outcome.amount_money.

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 all five categories, service_fee, shipping, delivery, handling, and surcharge, at the general rate at the charge's location. A paid pickup is taxed at the store. 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.

A revocation of a method's or rate callback's current revision doesn't change status. The resource reads delivery_revocation_id naming the revocation. Publishing a new revision ends a fence on the old revision, so the field reads null again. An older revocation that names the resource without a revision fences every revision, so it still applies after you publish and stays named. Check it before relying on an active status.

delivery_revocation_id covers only the resource's own current revision. A method whose own revision is fine can still be unusable because a revocation fences something it depends on: its rate callback's current revision or signing key, or the address of a Location it ships from or offers pickup at. In that case the method reads null, the rate callback reads its own delivery_revocation_id when its revision is the one revoked, and quotes report the method as unavailable with unavailable_reason: dependency_revoked.

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. Of the active subscriptions, canceling counts those scheduled to cancel and billing_hold counts those on a billing hold or retry. Scheduled cancellations count only in the canceling subset. Archiving a method holds any future renewals that still use it, so move subscribers 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 unless you send "status": "active" on create; an active method can use only an active callback. 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, or later with PATCH, to also get a shared secret, returned once with its delivery_rate_callback_signing_key_id in that response (DeliveryRateCallbackWithSecret). Reads never return it, and rotate-secret replaces it. 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, and each PATCH that carries a revision field, publishes an immutable revision, named by the resource's current_*_revision_id. Future checkouts use the new revision.

ResourceRevision fields
Profile, zone, or location setconfiguration
Methodconfiguration, name, description, display_position, recommendation_priority
Rate callbackconfiguration, signing_methods

A PATCH publishes a new revision whenever it carries a revision field, even if every value you send matches the current one. Other fields, such as status, metadata, external_reference_id, and the name of a profile, zone, location set, or callback, advance version and keep the current revision. Sending them with their current values changes nothing: version stays the same and no webhook event is sent.

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.

A revoked method keeps its status, but it can't be added anywhere new until you publish a new revision: settings defaults, checkout sessions, payment links, subscription plans and offers, subscription delivery changes, and delivery method migrations refuse it with 409 ACTION_NOT_ALLOWED, reason dependency_revoked. Places that already list it keep it. See what a revocation changes.

To recover, send a PATCH with a revision field and expected_version. When the revoked revision was fine apart from the reason you revoked it, such as an exposed endpoint you have since secured, send the current configuration back unchanged, or for a rate callback its current signing_methods. A PATCH of only metadata, external_reference_id, status, or a non-revision name keeps the revoked revision, so delivery_revocation_id stays set.

Versions#

Every resource has a version that advances on each write. A PATCH that carries a revision field must send it as expected_version. Other fields 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 callbackA patch object: changes only the keys you send, and the rest keep their values, so a pricing-only update keeps the origin, eligibility, and estimate. Each key you send is replaced as a whole: send every field you want to keep in pricing, origin, eligibility, and the other objects.
Profile, zone, or location setReplaced as a whole. Send every required key.

For a method or callback, the merged result must be a configuration you could create. For every resource, configuration: {} returns 400 INVALID_REQUEST with param configuration. 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 rotate-secret was called on a callback without hmac, so PATCH signing_methods to include hmac, which issues the first secret; in_progress means a rotation's one-hour overlap hasn't ended; dependency_revoked means a test delivery or connection check named a revoked revision or key, so publish a new revision or rotate the secret first.
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
unconfigured_assignmentobject or null

Progress of the profile's latest bulk assignment through `POST /v1/delivery-profiles/{delivery_profile_id}/assign-to-unconfigured`. `null` when the profile has never had one. Omitted when the response is a write response or a webhook object; retrieve and list responses include it. Flint updates it as the assignment's runs commit, without changing the profile's `version` or sending `delivery_profile.updated`; each batch's `product_variant.updated`, `product.updated`, and `bundle.updated` events report the items it assigned.

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",
  "unconfigured_assignment": null,
  "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.

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, or local delivery 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.

delivery_revocation_idstring or nullRequired

The revocation fencing this resource's own current revision. `null` when the current revision isn't revoked. It doesn't cover dependencies: a method can be unusable while this is `null` because its rate callback revision, signing key, or a Location's address is revoked. A revocation doesn't change `status`; publish a new revision to clear it.

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

How many subscriptions use this method, by status.

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",
  "delivery_revocation_id": null,
  "display_position": 0,
  "name": "Local delivery",
  "status": "inactive",
  "subscription_counts": {
    "active": 0,
    "billing_hold": 0,
    "canceling": 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

Whether Flint is currently calling the callback, based on recent failures.

  • closed
  • open
  • half_open
configurationobjectRequired

Current settings of the rate callback.

created_atstringRequired

RFC3339 timestamp.

current_delivery_rate_callback_revision_idstringRequired

ID of the current revision. New quotes use it.

delivery_rate_callback_idstringRequired

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

delivery_revocation_idstring or nullRequired

The revocation fencing this resource's own current revision. `null` when the current revision isn't revoked. It doesn't cover dependencies: a method can be unusable while this is `null` because its rate callback revision, signing key, or a Location's address is revoked. A revocation doesn't change `status`; publish a new revision to clear it.

external_reference_idstring

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

namestringRequired

Merchant-facing name of the rate callback.

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

Whether the rate callback is in use.

  • 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",
  "delivery_revocation_id": "drev_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, 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.

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 settings that define this resource. Changing them publishes a new revision.

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

Merchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

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. Must be a valid ID with prefix dls_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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 request that carries configuration publishes a new immutable revision, even when its values are unchanged, and requires expected_version. Other fields advance version and keep the current revision. Archived resources can't be changed; create a new resource instead.

Path parameters

delivery_location_set_idstringRequired

Flint delivery location set ID. Must be a valid ID with prefix dls_. 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 at least one of these

configurationobject

Replaced as a whole: send every field you want to keep. location_ids replaces the set's Locations; leave configuration out to keep them. Null, an empty object, an empty list, and duplicate IDs are invalid. Publishes a new immutable revision, even when the values are unchanged, and requires expected_version.

expected_versioninteger

Current resource version. Required when the request carries a revision field: configuration. A revision field publishes a new immutable revision even when its value is unchanged. Optional for other fields, which advance version and keep the current revision.

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

Merchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

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. An active delivery method whose current revision still uses the location set as its origin blocks deletion: the request returns 409 RESOURCE_IN_USE with the blocking methods. Point those methods at another origin first. 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. Must be a valid ID with prefix dls_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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, 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.

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",
      "delivery_revocation_id": null,
      "display_position": 0,
      "name": "Local delivery",
      "status": "inactive",
      "subscription_counts": {
        "active": 0,
        "billing_hold": 0,
        "canceling": 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

Settings that decide where this method is offered, how it is priced, and what the buyer sees. Changing them publishes a new revision.

descriptionstring

Buyer-visible description of the method.

display_positioninteger

Position in which this method displays among the others. Lower values display first.

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

Name of the method. Buyers see it as the option name at checkout. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

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

Delivery type of the method. It cannot change after you create the method.

  • 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. Must be a valid ID with prefix dmet_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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",
    "delivery_revocation_id": null,
    "display_position": 0,
    "name": "Local delivery",
    "status": "inactive",
    "subscription_counts": {
      "active": 0,
      "billing_hold": 0,
      "canceling": 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 request that carries configuration, name, description, display_position, or recommendation_priority publishes a new immutable revision, even when its values are unchanged, and requires expected_version. Other fields, such as status, metadata, and external_reference_id, advance version and keep the current revision, so they never replace a revoked revision. 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 or shop 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 remove it from delivery_method_ids on the payment link or shop.

Path parameters

delivery_method_idstringRequired

Flint delivery method ID. Must be a valid ID with prefix dmet_. 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 at least one of these

expected_versioninteger

Current resource version. Required when the request carries a revision field: configuration, name, description, display_position, recommendation_priority. A revision field publishes a new immutable revision even when its value is unchanged. Optional for other fields, which advance version and keep the current revision.

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 or shop 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 remove it from delivery_method_ids on the payment link or shop. Open checkout sessions keep their pinned revision and do not block retirement.

Path parameters

delivery_method_idstringRequired

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

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, 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.

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",
      "unconfigured_assignment": null,
      "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

The settings that define this resource. Changing them publishes a new revision.

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

Merchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

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. Must be a valid ID with prefix dprof_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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",
    "unconfigured_assignment": null,
    "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 request that carries configuration publishes a new immutable revision, even when its values are unchanged, and requires expected_version. Other fields advance version and keep the current revision. Archived resources can't be changed; create a new resource instead.

Path parameters

delivery_profile_idstringRequired

Flint delivery profile ID. Must be a valid ID with prefix dprof_. 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 at least one of these

configurationone of

Replaced as a whole: send every field you want to keep. Send the whole profile configuration; 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. Publishes a new immutable revision, even when the values are unchanged, and requires expected_version.

expected_versioninteger

Current resource version. Required when the request carries a revision field: configuration. A revision field publishes a new immutable revision even when its value is unchanged. Optional for other fields, which advance version and keep the current revision.

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

Merchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

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. Product variants, bundle components, or a catalog default that still use the profile block deletion: the request returns 409 RESOURCE_IN_USE with the blocking references. Assign those items to another delivery profile first. 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. Must be a valid ID with prefix dprof_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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 don't have one. Flint accepts the request with `202`, then assigns the profile in batches after responding. To know when it's done, poll `GET /v1/delivery-profiles/{delivery_profile_id}`, waiting at least `Retry-After` seconds between reads, until `unconfigured_assignment.status` is `completed`, `canceled`, or `failed`. Each item keeps `delivery_configuration_status` `action_required` until its batch commits, and each batch sends the `updated` events of the variants, products, and bundles it changes. An item that gets a profile from another write first keeps it. A newer assignment takes over from one still running, and the earlier one becomes `canceled` with `cancellation_reason` `superseded`. If the profile is archived before the assignment finishes, it becomes `canceled` with `cancellation_reason` `delivery_profile_archived` and the remaining items stay unconfigured.

Path parameters

delivery_profile_idstringRequired

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

Request body

expected_versioninteger

Current version of the delivery profile.

Response · 202

The assignment was accepted, with the counts of catalog entries that had no delivery profile and the processing progress to poll on the profile.

  • Retry-After: Whole seconds to wait before retrying or polling again, at least 1.
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, 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.

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",
      "delivery_revocation_id": "drev_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. When hmac is included, the response returns the shared secret and its delivery_rate_callback_signing_key_id once; no later response returns them. It starts inactive.

Request body

configurationobjectRequired

The settings that define this resource. Changing them publishes a new revision.

external_reference_idstring

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

namestringRequired

Merchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

signing_methodsarray of enum

Signing methods for callback requests. Defaults to JWT verification with Flint's public JWKS. When hmac is included, the response returns the shared secret and its delivery_rate_callback_signing_key_id once.

  • jwt
  • hmac
statusenum

Whether active delivery methods can price with this callback. Defaults to inactive.

  • inactive
  • active

Response · 201

Created delivery rate callback. secret is present only when signing_methods includes hmac.

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. Must be a valid ID with prefix dcb_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Response · 200

Delivery resource.

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 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",
    "delivery_revocation_id": "drev_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 request that carries configuration or signing_methods publishes a new immutable revision, even when its values are unchanged, and requires expected_version. Other fields, such as name, external_reference_id, and status, advance version and keep the current revision, so they never replace a revoked revision. signing_methods replaces the set. Adding hmac when the callback has no shared secret issues one and returns it once, with its delivery_rate_callback_signing_key_id, in this response. Removing hmac deletes all shared secrets. Archived resources can't be changed; create a new resource instead.

Path parameters

delivery_rate_callback_idstringRequired

Flint delivery rate callback ID. Must be a valid ID with prefix dcb_. 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 at least one of these

expected_versioninteger

Current resource version. Required when the request carries a revision field: configuration, signing_methods. A revision field publishes a new immutable revision even when its value is unchanged. Optional for other fields, which advance version and keep the current revision.

Response · 200

Updated delivery rate callback. secret is present only when this update first adds hmac.

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. An active delivery method whose current revision still prices with the rate callback blocks deletion: the request returns 409 RESOURCE_IN_USE with the blocking methods. Move those methods to another pricing strategy first. 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. Must be a valid ID with prefix dcb_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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 Get 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. Must be a valid ID with prefix dcb_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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 secret#

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

Requires scope commerce.delivery.write

Rate limit: sensitive_write

Replaces the callback's shared secret and returns the callback with the new secret and its delivery_rate_callback_signing_key_id once. Flint signs with both keys for one hour. A callback without hmac returns ACTION_NOT_ALLOWED with reason secret_not_issued; PATCH signing_methods to include hmac to issue the first secret.

Path parameters

delivery_rate_callback_idstringRequired

Flint delivery rate callback ID. Must be a valid ID with prefix dcb_. 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 delivery rate callback with its new secret.

Same response as Create delivery rate callback.

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. Must be a valid ID with prefix dcb_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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, 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.

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

The settings that define this resource. Changing them publishes a new revision.

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

Merchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

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. Must be a valid ID with prefix dzone_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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 request that carries configuration publishes a new immutable revision, even when its values are unchanged, and requires expected_version. Other fields advance version and keep the current revision. Archived resources can't be changed; create a new resource instead.

Path parameters

delivery_zone_idstringRequired

Flint delivery zone ID. Must be a valid ID with prefix dzone_. 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 at least one of these

configurationone of

Replaced as a whole: send every field you want to keep. Send the whole geography; leave configuration out to keep it. Null and an empty object are invalid. Publishes a new immutable revision, even when the values are unchanged, and requires expected_version.

expected_versioninteger

Current resource version. Required when the request carries a revision field: configuration. A revision field publishes a new immutable revision even when its value is unchanged. Optional for other fields, which advance version and keep the current revision.

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

Merchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

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. An active delivery method whose current revision still uses the zone blocks deletion: the request returns 409 RESOURCE_IN_USE with the blocking methods. Remove the zone from those methods first. 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. Must be a valid ID with prefix dzone_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

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?