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, andsettings.checkout.default_delivery_method_ids. - Delivery rate callback (
dcb_): your rate server's URL and how Flint signs requests to it. Used by methods withcallbackpricing.
A checkout offers a method to a buyer when all of these are true:
- The method is
active, and the checkout session, the payment link, or your checkout default lists it. - The method's
typeis in theallowed_typesof every item's delivery profile in the choice group. - The buyer's address and customer details match the method's
eligibility. - The pricing produces a price. A rate table with no matching rate, for example, offers nothing.
- 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:
configuration | Use 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:
| Policy | Values |
|---|---|
origin_policy.type | method_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_policy | combine_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_policy | whole_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 -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:
{
"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.
| Field | Meaning |
|---|---|
status | processing while batches run, then completed, canceled, or failed. All three are final. |
cancellation_reason | Present only when canceled: superseded when a newer assignment took over, or delivery_profile_archived when the profile was archived first. |
failure_reason | Present 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_at | When Flint accepted the request. |
completed_at | When the assignment reached completed, canceled, or failed. Absent while processing. |
product_variants_remaining, bundle_components_remaining | About 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:
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:
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:
{
"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
serviceline is fulfilled withtype: "service"and never asdigital.
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.
{
"all": [
{ "country": { "values": ["US"] } },
{ "not": { "state": { "values": ["US-AK", "US-HI"] } } }
]
}
| Allowed in | Conditions |
|---|---|
| Zones, method eligibility, and rates | country, 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 only | zone 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
statenames no subdivision of its country, the condition can't be decided, and the method or rate is left out ascannot_calculatewithinvalid_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.type | Behavior |
|---|---|
fixed_location | Always the Location in location_id. |
allocated_origin_group | Flint chooses a stocked Location from 1 to 25, for shipment or local delivery. |
pickup_location_collection | The 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 -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.type | Price |
|---|---|
fixed | One amount per currency. |
rate_table | The 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. |
tiered | The 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. |
calculated | A 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. |
callback | Your rate callback, named by delivery_rate_callback_id, which Flint calls during the quote. |
caller_supplied | Your 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.
{
"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 methodinactiveNot offered at checkout. New methods start here unless you send"status": "active".activeOffered on checkouts that list it, wherever its eligibility matches.archivedFinalRetired withDELETE. 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 key | Default |
|---|---|
url | Required |
request_timeout_seconds | 2, between 0.1 and 10 |
maximum_request_bytes, maximum_response_bytes | 262144 |
redirect_policy | reject, the only value: Flint never follows redirects |
preview_enabled | false. 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.
| Resource | Revision fields |
|---|---|
| Profile, zone, or location set | configuration |
| Method | configuration, name, description, display_position, recommendation_priority |
| Rate callback | configuration, 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#
| Resource | Sending configuration |
|---|---|
| Method or rate callback | A 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 set | Replaced 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: nullremoves the conditions, so the method is offered everywhere.estimate: nullrestorestype: "none".- A callback key set to
nullrestores its default. origin,pricing, and a callback'surlcan't benull.- Arrays can't be
null. Send[]to clearrecipient_requirementsorquote_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:
| Resource | Blocked while |
|---|---|
| Method | Your checkout default or a payment link lists it, including an inactive link |
| Zone, location set, or rate callback | An active method references it |
| Profile | A 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#
- StatusHTTP 400CodeINVALID_
REQUEST What to doparamnames the field. A configuration value failed validation, such as a gap between tiered bands. A requiredexpected_versionis missing. Astatuschange was combined with other fields, or a field doesn't belong to this resource family. - StatusHTTP 404What to doThe resource, or a zone, location set, Location, or callback it references, doesn't exist in this environment.
details[0].resource_typeanddetails[0].resource_idname it. - StatusHTTP 409What to doThe resource changed after you read it.
details[0].current_versionhas its version. Read it again, rebuild the change, and retry. - StatusHTTP 409CodeRESOURCE_
IN_ USE What to doSomething still depends on the resource. Remove the references indetails[0].blocking_resources, then retry. For a default profile, make another profile the default first. - StatusHTTP 409What to doWith
reasonarchived, the resource is archived and can't change. For rate callbacks,secret_not_issuedmeansrotate-secretwas called on a callback withouthmac, so PATCHsigning_methodsto includehmac, which issues the first secret;in_progressmeans a rotation's one-hour overlap hasn't ended;dependency_revokedmeans a test delivery or connection check named a revoked revision or key, so publish a new revision or rotate the secret first.
Related#
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
configurationobjectRequiredCurrent delivery requirement and grouping policy.
created_atstringRequiredTime the profile was created.
current_delivery_profile_revision_idstringRequiredImmutable revision used for new line-item snapshots.
delivery_profile_idstringRequiredStable delivery profile ID.
diagnosticsobjectRead-only catalog and delivery-method compatibility diagnostics.
external_reference_idstringCaller-owned identifier for this resource in an external system.
is_defaultbooleanRequiredTrue only when this profile is the current physical catalog default.
metadatamap of stringCaller-owned metadata.
namestringRequiredMerchant-facing profile name.
statusenumRequiredCurrent profile lifecycle status.
activearchived
unconfigured_assignmentobject or nullProgress 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_atstringRequiredTime the profile last changed.
versionintegerRequiredOptimistic-concurrency version for profile writes.
{
"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
configurationobjectRequiredCurrent member Locations.
created_atstringRequiredTime the location set was created.
current_delivery_location_set_revision_idstringRequiredImmutable revision used for new quotes.
delivery_location_set_idstringRequiredStable delivery location set ID.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-owned metadata.
namestringRequiredMerchant-facing location set name.
statusenumRequiredCurrent location set lifecycle status.
activearchived
updated_atstringRequiredTime the location set last changed.
versionintegerRequiredOptimistic-concurrency version for location set writes.
{
"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
configurationobjectRequiredCurrent eligibility, pricing, origin, estimate, and tax configuration.
created_atstringRequiredTime the method was created.
current_delivery_method_revision_idstringRequiredImmutable revision currently used for new quotes.
delivery_method_idstringRequiredStable delivery method ID.
delivery_revocation_idstring or nullRequiredThe 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.
descriptionstringOptional buyer-facing description.
display_positionintegerRequiredAscending display order among methods.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-owned metadata.
namestringRequiredMerchant-facing method name.
recommendation_priorityintegerMarks 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.
statusenumRequiredCurrent method lifecycle status.
activeinactivearchived
subscription_countsobjectRequiredHow many subscriptions use this method, by status.
typeenumRequiredDelivery mode this method offers.
shipmentlocal_deliverypickup
updated_atstringRequiredTime the method last changed.
versionintegerRequiredOptimistic-concurrency version for method writes.
{
"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_countintegerRequiredConsecutive callback failures since the last successful response.
circuit_stateenumRequiredWhether Flint is currently calling the callback, based on recent failures.
closedopenhalf_open
configurationobjectRequiredCurrent settings of the rate callback.
created_atstringRequiredRFC3339 timestamp.
current_delivery_rate_callback_revision_idstringRequiredID of the current revision. New quotes use it.
delivery_rate_callback_idstringRequiredUnique identifier for this delivery rate callback, prefixed `dcb_`.
delivery_revocation_idstring or nullRequiredThe 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_idstringCaller-owned identifier for this resource in an external system.
namestringRequiredMerchant-facing name of the rate callback.
signing_methodsarray of enumRequiredSigning 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.
jwthmac
statusenumRequiredWhether the rate callback is in use.
activeinactivearchived
updated_atstringRequiredRFC3339 timestamp.
versionintegerRequiredCurrent version of this resource's owned state. Send it as `expected_version` when changing the resource to reject a stale write.
{
"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 ofRequiredCurrent geographic eligibility conditions.
created_atstringRequiredTime the zone was created.
current_delivery_zone_revision_idstringRequiredImmutable revision used for new quotes.
delivery_zone_idstringRequiredStable delivery zone ID.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-owned metadata.
namestringRequiredMerchant-facing zone name.
statusenumRequiredCurrent zone lifecycle status.
activearchived
updated_atstringRequiredTime the zone last changed.
versionintegerRequiredOptimistic-concurrency version for zone writes.
{
"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#
/v1/delivery-location-setsRequires 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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, 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.
querystringSearch 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_idstringExact-match filter on the caller-owned external reference ID.
statusarray of enumFilter 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.
activearchived
delivery_method_idstringFilter by an active current method that references this resource.
Response · 200
Delivery configuration page.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/delivery-location-setsIdempotentRequires 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
configurationobjectRequiredThe settings that define this resource. Changing them publishes a new revision.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-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.
namestringRequiredMerchant-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.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint 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.
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.
{
"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#
/v1/delivery-location-sets/{delivery_location_set_id}IdempotentRequires 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_idstringRequiredFlint 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
configurationobjectReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
metadatamap of string or nullCaller-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.
namestringRequiredMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationobjectReplaced 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_versionintegerCurrent 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 nullRequiredCaller-owned identifier for this resource in an external system. Send null to clear it.
metadatamap of string or nullCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationobjectRequiredReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
metadatamap of string or nullCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationobjectReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
metadatamap of string or nullRequiredCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
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#
/v1/delivery-location-sets/{delivery_location_set_id}IdempotentRequires 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_idstringRequiredFlint 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_versionintegerOptional current resource version. The delete is rejected if the resource changed after this version was read.
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#
/v1/delivery-methodsRequires 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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, 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.
querystringSearch 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_idstringExact-match filter on the caller-owned external reference ID.
statusarray of enumFilter 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.
activeinactivearchived
typearray of enumFilter 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.
shipmentlocal_deliverypickup
delivery_zone_idstringFilter by referenced delivery zone.
delivery_location_set_idstringFilter by referenced delivery location set.
delivery_rate_callback_idstringFilter by referenced callback endpoint.
location_idstringFilter by referenced Location.
Response · 200
Delivery configuration page.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/delivery-methodsIdempotentRequires 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`.
configurationobjectRequiredSettings that decide where this method is offered, how it is priced, and what the buyer sees. Changing them publishes a new revision.
descriptionstringBuyer-visible description of the method.
display_positionintegerPosition in which this method displays among the others. Lower values display first.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-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.
namestringRequiredName 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_priorityintegerMarks 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.
statusenumWhether this method is available for new delivery quotes. Defaults to inactive.
inactiveactive
typeenumRequiredDelivery type of the method. It cannot change after you create the method.
shipment
The `local_delivery` variant of `CreateDeliveryMethodRequest`.
configurationobjectRequiredSettings that decide where this method is offered, how it is priced, and what the buyer sees. Changing them publishes a new revision.
descriptionstringBuyer-visible description of the method.
display_positionintegerPosition in which this method displays among the others. Lower values display first.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-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.
namestringRequiredName 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_priorityintegerMarks 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.
statusenumWhether this method is available for new delivery quotes. Defaults to inactive.
inactiveactive
typeenumRequiredDelivery type of the method. It cannot change after you create the method.
local_delivery
The `pickup` variant of `CreateDeliveryMethodRequest`.
configurationobjectRequiredSettings that decide where this method is offered, how it is priced, and what the buyer sees. Changing them publishes a new revision.
descriptionstringBuyer-visible description of the method.
display_positionintegerPosition in which this method displays among the others. Lower values display first.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-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.
namestringRequiredName 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_priorityintegerMarks 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.
statusenumWhether this method is available for new delivery quotes. Defaults to inactive.
inactiveactive
typeenumRequiredDelivery type of the method. It cannot change after you create the method.
pickup
Response · 201
Created delivery method.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint 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.
curl https://api.withflintpay.com/v1/delivery-methods/dmet_01KEZF7C00YSG3X2D1TZJ36TM0 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Delivery resource.
{
"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#
/v1/delivery-methods/{delivery_method_id}IdempotentRequires 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_idstringRequiredFlint 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_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
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#
/v1/delivery-methods/{delivery_method_id}IdempotentRequires 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_idstringRequiredFlint 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_versionintegerOptional current resource version. The delete is rejected if the resource changed after this version was read.
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#
/v1/delivery-profilesRequires 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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, 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.
querystringSearch 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_idstringExact-match filter on the caller-owned external reference ID.
statusarray of enumFilter 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.
activearchived
is_defaultbooleanFilter by whether the profile is the current physical catalog default. Accepts a single true or false value.
resolution_modearray of enumFilter 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.
quotemanual
include_diagnosticsbooleanCompute catalog and delivery-configuration diagnostics for every profile returned.
Response · 200
Delivery configuration page.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/delivery-profilesIdempotentRequires 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 ofRequiredThe settings that define this resource. Changing them publishes a new revision.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-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.
namestringRequiredMerchant-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.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint 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_diagnosticsbooleanCompute catalog and delivery-configuration diagnostics for this 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.
{
"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#
/v1/delivery-profiles/{delivery_profile_id}IdempotentRequires 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_idstringRequiredFlint 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 ofReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
is_defaultenumSend 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 nullCaller-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.
namestringRequiredMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationone ofReplaced 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_versionintegerCurrent 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 nullRequiredCaller-owned identifier for this resource in an external system. Send null to clear it.
is_defaultenumSend 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 nullCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationone ofRequiredReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
is_defaultenumSend 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 nullCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationone ofReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
is_defaultenumSend 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 nullRequiredCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationone ofReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
is_defaultenumRequiredSend 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 nullCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
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#
/v1/delivery-profiles/{delivery_profile_id}IdempotentRequires 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_idstringRequiredFlint 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_versionintegerOptional current resource version. The delete is rejected if the resource changed after this version was read.
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#
/v1/delivery-profiles/{delivery_profile_id}/assign-to-unconfiguredIdempotentRequires 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_idstringRequiredFlint 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_versionintegerCurrent 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.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/v1/delivery-rate-callbacksRequires 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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, 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.
querystringSearch 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_idstringExact-match filter on the caller-owned external reference ID.
statusarray of enumFilter 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.
activeinactivearchived
delivery_method_idstringFilter by an active current method that references this resource.
Response · 200
Delivery configuration page.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/delivery-rate-callbacksIdempotentRequires 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
configurationobjectRequiredThe settings that define this resource. Changing them publishes a new revision.
external_reference_idstringCaller-owned identifier for this resource in an external system.
namestringRequiredMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
signing_methodsarray of enumSigning 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.
jwthmac
statusenumWhether active delivery methods can price with this callback. Defaults to inactive.
inactiveactive
Response · 201
Created delivery rate callback. secret is present only when signing_methods includes hmac.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint 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.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/delivery-rate-callbacks/{delivery_rate_callback_id}IdempotentRequires 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_idstringRequiredFlint 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_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
expected_versionintegerCurrent 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.
expected_versionintegerCurrent 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#
/v1/delivery-rate-callbacks/{delivery_rate_callback_id}IdempotentRequires 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_idstringRequiredFlint 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_versionintegerOptional current resource version. The delete is rejected if the resource changed after this version was read.
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#
/v1/delivery-rate-callbacks/{delivery_rate_callback_id}/check-connectionIdempotentRequires 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_idstringRequiredFlint 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.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/v1/delivery-rate-callbacks/{delivery_rate_callback_id}/rotate-secretIdempotentRequires 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_idstringRequiredFlint 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#
/v1/delivery-rate-callbacks/{delivery_rate_callback_id}/test-deliveriesIdempotentRequires 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_idstringRequiredFlint 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.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/v1/delivery-zonesRequires 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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, 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.
querystringSearch 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_idstringExact-match filter on the caller-owned external reference ID.
statusarray of enumFilter 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.
activearchived
delivery_method_idstringFilter by an active current method that references this resource.
Response · 200
Delivery configuration page.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/delivery-zonesIdempotentRequires scope commerce.delivery.write
Rate limit: write
Delivery zones define versioned geographic eligibility. Creation publishes immutable revision 1. It starts active.
Request body
configurationone ofRequiredThe settings that define this resource. Changing them publishes a new revision.
external_reference_idstringCaller-owned identifier for this resource in an external system.
metadatamap of stringCaller-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.
namestringRequiredMerchant-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.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint 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.
curl https://api.withflintpay.com/v1/delivery-zones/dzone_01KEZF7C005RY7KGCN4M2CH5WP \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Delivery resource.
{
"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#
/v1/delivery-zones/{delivery_zone_id}IdempotentRequires 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_idstringRequiredFlint 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 ofReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
metadatamap of string or nullCaller-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.
namestringRequiredMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationone ofReplaced 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_versionintegerCurrent 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 nullRequiredCaller-owned identifier for this resource in an external system. Send null to clear it.
metadatamap of string or nullCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationone ofRequiredReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
metadatamap of string or nullCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
configurationone ofReplaced 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_versionintegerCurrent 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 nullCaller-owned identifier for this resource in an external system. Send null to clear it.
metadatamap of string or nullRequiredCaller-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.
namestringMerchant-facing name. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
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#
/v1/delivery-zones/{delivery_zone_id}IdempotentRequires 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_idstringRequiredFlint 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_versionintegerOptional current resource version. The delete is rejected if the resource changed after this version was read.
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?