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. |
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 sends a line item's whole quantity from one Location. quantity_split_allowed lets Flint split the quantity across Locations. |
A profile holds no weight or dimensions, and sending weight or dimensions returns UNKNOWN_FIELD. Quotes read weight from each variant's unit_weight and from unit_weight on custom order lines.
This profile is for furniture that can be shipped or picked up, but is too large for local delivery:
curl -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.
Product variants and bundle components report delivery_configuration_status. Clearing an item's delivery_profile_id leaves it action_required until you assign another active profile. Filter by the status or by profile to find items that need attention:
GET /v1/products/{product_id}/variants?delivery_configuration_status=action_required
GET /v1/bundles/{bundle_id}/components?delivery_profile_id=dprof_...
Zones and eligibility#
A method's eligibility, a zone's configuration, and a rate's when are all expressions. Each node holds exactly one key: all, any, or not to combine conditions, or one condition. Conditions are direct keys, never wrapped. An expression has at most 8 levels and 100 nodes.
{
"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. |
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, and a weight basis needs a unit. |
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. expires_at must leave at least minimum_option_lifetime_seconds and can't be later than the pending quote's expires_at. selection_guarantee_expires_at can't be earlier than expires_at. An unavailable outcome takes an unavailable_reason, and a cannot_calculate outcome takes a failure_category and retryable.
Only an API key can supply rates. Hosted checkout can't offer a required caller_supplied method, and quoting a checkout that has one with the checkout credential returns 403 FORBIDDEN with details[0].reason merchant_credential_required. Create those quotes from your server.
Tax#
taxable and charge_tax_category inherit from settings.tax.default_delivery_taxable and settings.tax.default_delivery_tax_category when you omit them on create, and responses return null for an inherited value. With no default category, Flint uses shipping for shipment, delivery for local delivery, and service_fee for pickup. Automatic tax calculates the shipping and delivery categories and refuses the others with 400 INVALID_REQUEST and detail code NOT_ALLOWED. On PATCH, omit a field to keep it or send null to inherit again.
Status#
Methods and rate callbacks can be turned off and on. Profiles, zones, and location sets are only active or archived.
status on delivery 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.
Send a status change in its own PATCH, with nothing but status and an optional expected_version. Combining it with other fields returns 400 INVALID_REQUEST with param status.
A method's subscription_counts shows how many active, paused, and past_due subscriptions use it. Archiving a method they use holds each of them at its next renewal, so move them first with a delivery method migration.
Rate callbacks#
A rate callback is your HTTPS endpoint that prices callback methods during a quote. Flint sends one signed POST for all of a choice group's callback methods and expects one result per method. A new callback starts inactive; activate it with a status PATCH before an active method can use it. Callbacks take no metadata.
configuration 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 to also get a shared secret, returned once with its key_id. After 30 consecutive failures the callback's circuit_state opens and its methods are dropped from quotes until a probe succeeds.
A method can set configuration.quote_input_fields to the address and coordinate fields its callback needs, such as destination_address.postal_code. Flint sends only the declared fields, and asks the buyer for any that are missing before it calls your endpoint.
Live delivery rates with a callback has the request and response bodies, verification code, retries, the circuit breaker, and signing-key rotation.
Change configuration#
Each create or configuration change publishes an immutable revision, named by the resource's current_*_revision_id. Future checkouts use the new revision.
Note: Open checkouts keep their revision
A checkout pins the revision of each method it offers and of everything that method references. A change applies to checkouts created afterward. To stop a checkout from using a revision that is already pinned, revoke it.
Versions#
Every resource has a version that advances on each write. Send it as expected_version when a PATCH changes anything a quote depends on:
| Resource | expected_version is required to change |
|---|---|
| Profile, zone, or location set | configuration |
| Method | configuration, name, description, display_position, or recommendation_priority |
| Rate callback | configuration or signing_methods |
Other fields, such as status, metadata, external_reference_id, and the name of a profile, zone, location set, or callback, accept it optionally. Leaving out a required fence returns 400 INVALID_REQUEST with param expected_version.
A stale expected_version returns 409 VERSION_CONFLICT with param expected_version and the current version in details[0].current_version. A write without a fence that loses a race to another write returns 409 VERSION_CONFLICT with no param. In both cases, read the resource again, rebuild the change, and send it with a new Idempotency-Key.
How configuration updates#
| Resource | Sending configuration |
|---|---|
| Method or rate callback | Changes only the keys you send. Each key replaces that part whole, and the rest keep their values, so a pricing-only update keeps the origin, eligibility, and estimate. |
| Profile, zone, or location set | Replaces the whole configuration. Send every required key. |
For a method or callback, the merged result must be a configuration you could create, and an empty configuration is invalid. Optional keys accept null:
eligibility: 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_issuedmeanshmacwas added before a secret exists, so callrotate-secret;in_progressmeans a rotation's one-hour overlap hasn't ended.
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.
allowed_typesarray of enumRequired as a non-empty unique list when requirement is required. quote accepts shipment, pickup, and local_delivery. manual accepts digital and service.
shipmentpickuplocal_deliverydigitalservice
combination_policyenumRequired for quote resolution and forbidden when requirement is none or resolution_mode is manual. Controls which delivery obligations can share a choice group.
combine_when_compatibleseparate_profileseparate_line_itemfulfill_alone
origin_policyobjectRequired for quote resolution and forbidden for none or manual resolution. fixed_location requires location_id. inventory_routing forbids location_id and applies only to tracked inventory. method_origin forbids location_id.
requirementenumRequiredWhether delivery planning applies. none forbids every other configuration field. required also requires resolution_mode and allowed_types, plus the fields required by that resolution mode.
nonerequired
resolution_modeenumRequired when requirement is required. quote plans physical delivery and requires origin_policy, combination_policy, and splitting_policy. manual supports digital and service items and forbids physical planning fields.
quotemanual
splitting_policyenumRequired for quote resolution and forbidden when requirement is none or resolution_mode is manual. Controls whether a line item quantity can be split across delivery assignments.
whole_line_itemquantity_split_allowed
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.
active_method_definitions_countintegerRequiredNumber of active delivery methods whose type is allowed by this profile.
covers_all_itemsbooleanRequiredTrue when this is the physical catalog default and every active physical catalog obligation uses it.
locations_without_rates_countintegerRequiredNumber of active Locations that no active delivery method compatible with this profile can use as an origin.
unassigned_locationsarray of stringRequiredUp to 20 active Location IDs that no compatible active delivery method can use as an origin. Use locations_without_rates_count for the complete count.
unassigned_locations_truncatedbooleanRequiredTrue when more matching Locations exist than are returned in unassigned_locations.
zone_country_countintegerRequiredNumber of distinct countries explicitly named by zones referenced from compatible active delivery methods.
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
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",
"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 and selection rules.
location_idsarray of stringRequiredcreated_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, local delivery, or service 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.
buyer_instructionsobjectControls whether checkout collects buyer instructions for this method.
charge_tax_categoryenum or nullRequiredTax category of the delivery charge, which decides its automatic tax and appears in tax records and reporting. Null inherits settings.tax.default_delivery_tax_category; if unset, Flint derives shipping for shipment methods, delivery for local delivery, or service_fee for pickup. Omit it on create to inherit, omit it on PATCH to preserve the current value, or send null to clear it back to inheriting. Automatic tax calculates the shipping and delivery categories at the general rate and refuses the others with AUTOMATIC_TAX_CHARGE_UNSUPPORTED.
service_feeshippingdeliveryhandlingsurchargenull
eligibilityone ofConditions that decide where this method is offered. Omit this field to offer the method everywhere the merchant serves.
estimateobjectRequiredThe buyer-visible delivery or pickup estimate. Use type none when the merchant makes no timing promise.
minimum_option_lifetime_secondsintegerRequiredMinimum remaining quote lifetime required before Flint offers this method. Required for calculated, callback, and caller_supplied pricing; defaults to 0 for other pricing. Must be less than Flint's 15-minute quote lifetime.
originone ofRequiredWhere delivery starts. A method can use a fixed location or a delivery location set; origin.type determines allocation or buyer pickup behavior.
pricingone ofRequiredHow Flint calculates the delivery charge.
public_detailsobjectBuyer-visible structured details supplied by the merchant.
quote_input_fieldsarray of enumAddress and coordinate fields a callback method requires and is allowed to receive.
destination_addressdestination_address.line1destination_address.line2destination_address.citydestination_address.statedestination_address.postal_codedestination_address.countrybuyer_locationbuyer_location.line1buyer_location.line2buyer_location.citybuyer_location.statebuyer_location.postal_codebuyer_location.countrybuyer_location.coordinate
recipient_requirementsarray of objectRecipient fields this method asks for. A delivery selection can leave out required fields, but payment needs them.
selection_guarantee_secondsintegerRequiredHow long after evaluation Flint guarantees a selected price, when that is later than the option expiry. Defaults to 0, which uses the option expiry. Fixed, tiered, and rate_table prices for a cart without tracked inventory hold until the checkout's calculation expiry.
taxableboolean or nullRequiredWhether the delivery charge is taxable. Null inherits settings.tax.default_delivery_taxable. Omit it on create to inherit, omit it on PATCH to preserve the current value, or send null to clear it back to inheriting.
created_atstringRequiredTime the method was created.
current_delivery_method_revision_idstringRequiredImmutable revision currently used for new quotes.
delivery_method_idstringRequiredStable delivery method ID.
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_countsobjectRequiredCounts of subscriptions by status: active, past due, and paused.
activeintegerRequiredpast_dueintegerRequiredpausedintegerRequiredtypeenumRequiredDelivery 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",
"display_position": 0,
"name": "Local delivery",
"status": "inactive",
"subscription_counts": {
"active": 0,
"past_due": 0,
"paused": 0
},
"type": "local_delivery",
"updated_at": "2026-08-02T16:00:00Z",
"version": 1
}The Delivery rate callback object#
An endpoint that supplies delivery rates.
Returned by GET /v1/delivery-rate-callbacks/{delivery_rate_callback_id} and carried by the endpoints below.
Attributes
circuit_failure_countintegerRequiredConsecutive callback failures since the last successful response.
circuit_stateenumRequiredclosedopenhalf_open
configurationobjectRequiredSettings for a delivery rate callback: the endpoint `url` Flint calls, request timeout, request and response size limits, redirect policy, and whether previews can use it.
maximum_request_bytesintegermaximum_response_bytesintegerpreview_enabledbooleanredirect_policyenumreject
request_timeout_secondsnumberurlstringRequiredcreated_atstringRequiredRFC3339 timestamp.
current_delivery_rate_callback_revision_idstringRequireddelivery_rate_callback_idstringRequiredUnique identifier for this delivery rate callback, prefixed `dcb_`.
external_reference_idstringCaller-owned identifier for this resource in an external system.
key_idstringInitial HMAC signing key ID. Returned only by create when hmac is included.
namestringRequiredsecretstringInitial HMAC shared secret. Returned only by the create response when signing_methods includes hmac.
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
statusenumRequiredactiveinactivearchived
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",
"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.
One of these shapes
A reusable geographic predicate containing only country, state, postal_code, and radius conditions.
allarray of one ofRequiredcreated_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 next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.
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.
configurationobjectRequiredCurrent member Locations and selection rules.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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 location IDs in a delivery location set.
location_idsarray of stringRequiredexternal_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.
namestringRequiredResponse · 201
Created delivery location set.
dataobjectRequiredResource, collection, or operation result returned by this request.
configurationobjectRequiredCurrent member Locations and selection rules.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
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 change to pinned configuration publishes a new immutable revision and requires expected_version. Archived resources can't be changed; create a new resource instead.
Path parameters
delivery_location_set_idstringRequiredFlint delivery location set ID.
Request body
Send at least one of these
configurationobjectlocation_ids replaces the set's Locations when present; leave configuration out to keep them. Null, an empty list, and duplicate IDs are invalid. Requires expected_version.
location_idsarray of stringRequiredexpected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringRequiredconfigurationobjectlocation_ids replaces the set's Locations when present; leave configuration out to keep them. Null, an empty list, and duplicate IDs are invalid. Requires expected_version.
location_idsarray of stringRequiredexpected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringconfigurationobjectRequiredlocation_ids replaces the set's Locations when present; leave configuration out to keep them. Null, an empty list, and duplicate IDs are invalid. Requires expected_version.
location_idsarray of stringRequiredexpected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringconfigurationobjectlocation_ids replaces the set's Locations when present; leave configuration out to keep them. Null, an empty list, and duplicate IDs are invalid. Requires expected_version.
location_idsarray of stringRequiredexpected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringcurl -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 after checking current dependencies. The retired resource remains available by ID for historical records. Deleting an already archived resource returns it without changing its version or repeating effects.
Path parameters
delivery_location_set_idstringRequiredFlint delivery location set ID.
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 next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.
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.
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.
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_countsobjectRequiredCounts of subscriptions by status: active, past due, and paused.
typeenumRequiredDelivery mode this method offers.
shipmentlocal_deliverypickup
updated_atstringRequiredTime the method last changed.
versionintegerRequiredOptimistic-concurrency version for method writes.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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",
"display_position": 0,
"name": "Local delivery",
"status": "inactive",
"subscription_counts": {
"active": 0,
"past_due": 0,
"paused": 0
},
"type": "local_delivery",
"updated_at": "2026-08-02T16:00:00Z",
"version": 1
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "page_2",
"request_id": "req_01KWM6N4GV1JDR9PVZK6008PHM"
}Create delivery method#
/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`.
configurationobjectRequiredThe configuration you supply when creating a delivery method. `origin` and `pricing` are required.
public_detailsobjectBuyer-visible structured details supplied by the merchant.
buyer_instructionsobjectControls whether checkout collects buyer instructions for this method.
charge_tax_categoryenum or nullTax category of the delivery charge, which decides its automatic tax and appears in tax records and reporting. Null inherits settings.tax.default_delivery_tax_category; if unset, Flint derives shipping for shipment methods, delivery for local delivery, or service_fee for pickup. Omit it on create to inherit, omit it on PATCH to preserve the current value, or send null to clear it back to inheriting. Automatic tax calculates the shipping and delivery categories at the general rate and refuses the others with AUTOMATIC_TAX_CHARGE_UNSUPPORTED.
service_feeshippingdeliveryhandlingsurchargenull
eligibilityone ofConditions that decide where this method is offered. Omit this field to offer the method everywhere the merchant serves.
estimateobjectThe buyer-visible delivery or pickup estimate. Use type none when the merchant makes no timing promise.
minimum_option_lifetime_secondsintegerMinimum remaining quote lifetime required before Flint offers this method. Required for calculated, callback, and caller_supplied pricing; defaults to 0 for other pricing. Must be less than Flint's 15-minute quote lifetime.
originone ofRequiredWhere delivery starts. A method can use a fixed location or a delivery location set; origin.type determines allocation or buyer pickup behavior.
pricingone ofRequiredHow Flint calculates the delivery charge.
quote_input_fieldsarray of enumAddress and coordinate fields a callback method requires and is allowed to receive.
destination_addressdestination_address.line1destination_address.line2destination_address.citydestination_address.statedestination_address.postal_codedestination_address.countrybuyer_locationbuyer_location.line1buyer_location.line2buyer_location.citybuyer_location.statebuyer_location.postal_codebuyer_location.countrybuyer_location.coordinate
recipient_requirementsarray of objectRecipient fields this method asks for. A delivery selection can leave out required fields, but payment needs them.
selection_guarantee_secondsintegerHow long after evaluation Flint guarantees a selected price, when that is later than the option expiry. Defaults to 0, which uses the option expiry. Fixed, tiered, and rate_table prices for a cart without tracked inventory hold until the checkout's calculation expiry.
taxableboolean or nullWhether the delivery charge is taxable. Null inherits settings.tax.default_delivery_taxable. Omit it on create to inherit, omit it on PATCH to preserve the current value, or send null to clear it back to inheriting.
descriptionstringdisplay_positionintegerexternal_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.
namestringRequiredrecommendation_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
typeenumRequiredshipment
The `local_delivery` variant of `CreateDeliveryMethodRequest`.
configurationobjectRequiredThe configuration you supply when creating a delivery method. `origin` and `pricing` are required.
public_detailsobjectBuyer-visible structured details supplied by the merchant.
buyer_instructionsobjectControls whether checkout collects buyer instructions for this method.
charge_tax_categoryenum or nullTax category of the delivery charge, which decides its automatic tax and appears in tax records and reporting. Null inherits settings.tax.default_delivery_tax_category; if unset, Flint derives shipping for shipment methods, delivery for local delivery, or service_fee for pickup. Omit it on create to inherit, omit it on PATCH to preserve the current value, or send null to clear it back to inheriting. Automatic tax calculates the shipping and delivery categories at the general rate and refuses the others with AUTOMATIC_TAX_CHARGE_UNSUPPORTED.
service_feeshippingdeliveryhandlingsurchargenull
eligibilityone ofConditions that decide where this method is offered. Omit this field to offer the method everywhere the merchant serves.
estimateobjectThe buyer-visible delivery or pickup estimate. Use type none when the merchant makes no timing promise.
minimum_option_lifetime_secondsintegerMinimum remaining quote lifetime required before Flint offers this method. Required for calculated, callback, and caller_supplied pricing; defaults to 0 for other pricing. Must be less than Flint's 15-minute quote lifetime.
originone ofRequiredWhere delivery starts. A method can use a fixed location or a delivery location set; origin.type determines allocation or buyer pickup behavior.
pricingone ofRequiredHow Flint calculates the delivery charge.
quote_input_fieldsarray of enumAddress and coordinate fields a callback method requires and is allowed to receive.
destination_addressdestination_address.line1destination_address.line2destination_address.citydestination_address.statedestination_address.postal_codedestination_address.countrybuyer_locationbuyer_location.line1buyer_location.line2buyer_location.citybuyer_location.statebuyer_location.postal_codebuyer_location.countrybuyer_location.coordinate
recipient_requirementsarray of objectRecipient fields this method asks for. A delivery selection can leave out required fields, but payment needs them.
selection_guarantee_secondsintegerHow long after evaluation Flint guarantees a selected price, when that is later than the option expiry. Defaults to 0, which uses the option expiry. Fixed, tiered, and rate_table prices for a cart without tracked inventory hold until the checkout's calculation expiry.
taxableboolean or nullWhether the delivery charge is taxable. Null inherits settings.tax.default_delivery_taxable. Omit it on create to inherit, omit it on PATCH to preserve the current value, or send null to clear it back to inheriting.
descriptionstringdisplay_positionintegerexternal_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.
namestringRequiredrecommendation_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
typeenumRequiredlocal_delivery
The `pickup` variant of `CreateDeliveryMethodRequest`.
configurationobjectRequiredThe configuration you supply when creating a delivery method. `origin` and `pricing` are required.
originone ofRequiredWhere delivery starts. A method can use a fixed location or a delivery location set; origin.type determines allocation or buyer pickup behavior.
public_detailsobjectRequiredBuyer-visible structured details supplied by the merchant.
buyer_instructionsobjectControls whether checkout collects buyer instructions for this method.
charge_tax_categoryenum or nullTax category of the delivery charge, which decides its automatic tax and appears in tax records and reporting. Null inherits settings.tax.default_delivery_tax_category; if unset, Flint derives shipping for shipment methods, delivery for local delivery, or service_fee for pickup. Omit it on create to inherit, omit it on PATCH to preserve the current value, or send null to clear it back to inheriting. Automatic tax calculates the shipping and delivery categories at the general rate and refuses the others with AUTOMATIC_TAX_CHARGE_UNSUPPORTED.
service_feeshippingdeliveryhandlingsurchargenull
eligibilityone ofConditions that decide where this method is offered. Omit this field to offer the method everywhere the merchant serves.
estimateobjectThe buyer-visible delivery or pickup estimate. Use type none when the merchant makes no timing promise.
minimum_option_lifetime_secondsintegerMinimum remaining quote lifetime required before Flint offers this method. Required for calculated, callback, and caller_supplied pricing; defaults to 0 for other pricing. Must be less than Flint's 15-minute quote lifetime.
pricingone ofRequiredHow Flint calculates the delivery charge.
quote_input_fieldsarray of enumAddress and coordinate fields a callback method requires and is allowed to receive.
destination_addressdestination_address.line1destination_address.line2destination_address.citydestination_address.statedestination_address.postal_codedestination_address.countrybuyer_locationbuyer_location.line1buyer_location.line2buyer_location.citybuyer_location.statebuyer_location.postal_codebuyer_location.countrybuyer_location.coordinate
recipient_requirementsarray of objectRecipient fields this method asks for. A delivery selection can leave out required fields, but payment needs them.
selection_guarantee_secondsintegerHow long after evaluation Flint guarantees a selected price, when that is later than the option expiry. Defaults to 0, which uses the option expiry. Fixed, tiered, and rate_table prices for a cart without tracked inventory hold until the checkout's calculation expiry.
taxableboolean or nullWhether the delivery charge is taxable. Null inherits settings.tax.default_delivery_taxable. Omit it on create to inherit, omit it on PATCH to preserve the current value, or send null to clear it back to inheriting.
descriptionstringdisplay_positionintegerexternal_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.
namestringRequiredrecommendation_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
typeenumRequiredpickup
Response · 201
Created delivery method.
dataobjectRequiredResource, collection, or operation result returned by this request.
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.
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_countsobjectRequiredCounts of subscriptions by status: active, past due, and paused.
typeenumRequiredDelivery mode this method offers.
shipmentlocal_deliverypickup
updated_atstringRequiredTime the method last changed.
versionintegerRequiredOptimistic-concurrency version for method writes.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
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",
"display_position": 0,
"name": "Local delivery",
"status": "inactive",
"subscription_counts": {
"active": 0,
"past_due": 0,
"paused": 0
},
"type": "local_delivery",
"updated_at": "2026-08-02T16:00:00Z",
"version": 1
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6VQ55Z8AP44TSCNXQC5Y5"
}Update delivery method#
/v1/delivery-methods/{delivery_method_id}IdempotentRequires scope commerce.delivery.write
Rate limit: write
Sparsely updates mutable fields. A change to pinned configuration publishes a new immutable revision and requires expected_version. Archived resources can't be changed; create a new resource instead. A method referenced by checkout.default_delivery_method_ids at merchant scope or by delivery_method_ids on an active or inactive payment link cannot be set inactive; the request returns 409 RESOURCE_IN_USE with the blocking references. Remove the method from checkout.default_delivery_method_ids with PATCH /v1/settings or from the link's delivery_method_ids with PATCH /v1/payment-links/{payment_link_id}.
Path parameters
delivery_method_idstringRequiredFlint delivery method ID.
Request body
Send at least one of these
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, name, description, display_position, recommendation_priority.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, name, description, display_position, recommendation_priority.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, name, description, display_position, recommendation_priority.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, name, description, display_position, recommendation_priority.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, name, description, display_position, recommendation_priority.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, name, description, display_position, recommendation_priority.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, name, description, display_position, recommendation_priority.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, name, description, display_position, recommendation_priority.
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 cannot be archived; the request returns 409 RESOURCE_IN_USE with the blocking references. Remove the method from checkout.default_delivery_method_ids with PATCH /v1/settings or from the link's delivery_method_ids with PATCH /v1/payment-links/{payment_link_id}. Open checkout sessions keep their pinned revision and do not block retirement.
Path parameters
delivery_method_idstringRequiredFlint delivery method ID.
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 next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.
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.
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
updated_atstringRequiredTime the profile last changed.
versionintegerRequiredOptimistic-concurrency version for profile writes.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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",
"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 ofRequiredDelivery planning settings you supply when creating or updating a delivery profile. Which fields are allowed depends on `requirement` and `resolution_mode`.
Send exactly one of these
The `none` variant of `DeliveryProfileConfigurationInput`.
requirementenumRequiredWhether delivery planning applies. none forbids every other configuration field. required also requires resolution_mode and allowed_types, plus the fields required by that resolution mode.
none
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.
namestringRequiredResponse · 201
Created delivery profile.
dataobjectRequiredResource, collection, or operation result returned by this request.
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
updated_atstringRequiredTime the profile last changed.
versionintegerRequiredOptimistic-concurrency version for profile writes.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
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",
"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 change to pinned configuration publishes a new immutable revision and requires expected_version. Archived resources can't be changed; create a new resource instead.
Path parameters
delivery_profile_idstringRequiredFlint delivery profile ID.
Request body
Send at least one of these
configurationone ofSend the whole profile configuration. It replaces the current one; leave configuration out to keep it. requirement none allows no other keys, and quote profiles require origin_policy, combination_policy, and splitting_policy. Null and an empty object are invalid. Requires expected_version.
Send exactly one of these
The `none` variant of `DeliveryProfileConfigurationInput`.
requirementenumRequiredWhether delivery planning applies. none forbids every other configuration field. required also requires resolution_mode and allowed_types, plus the fields required by that resolution mode.
none
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringRequiredconfigurationone ofSend the whole profile configuration. It replaces the current one; leave configuration out to keep it. requirement none allows no other keys, and quote profiles require origin_policy, combination_policy, and splitting_policy. Null and an empty object are invalid. Requires expected_version.
Send exactly one of these
The `none` variant of `DeliveryProfileConfigurationInput`.
requirementenumRequiredWhether delivery planning applies. none forbids every other configuration field. required also requires resolution_mode and allowed_types, plus the fields required by that resolution mode.
none
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringconfigurationone ofRequiredSend the whole profile configuration. It replaces the current one; leave configuration out to keep it. requirement none allows no other keys, and quote profiles require origin_policy, combination_policy, and splitting_policy. Null and an empty object are invalid. Requires expected_version.
Send exactly one of these
The `none` variant of `DeliveryProfileConfigurationInput`.
requirementenumRequiredWhether delivery planning applies. none forbids every other configuration field. required also requires resolution_mode and allowed_types, plus the fields required by that resolution mode.
none
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringconfigurationone ofSend the whole profile configuration. It replaces the current one; leave configuration out to keep it. requirement none allows no other keys, and quote profiles require origin_policy, combination_policy, and splitting_policy. Null and an empty object are invalid. Requires expected_version.
Send exactly one of these
The `none` variant of `DeliveryProfileConfigurationInput`.
requirementenumRequiredWhether delivery planning applies. none forbids every other configuration field. required also requires resolution_mode and allowed_types, plus the fields required by that resolution mode.
none
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringconfigurationone ofSend the whole profile configuration. It replaces the current one; leave configuration out to keep it. requirement none allows no other keys, and quote profiles require origin_policy, combination_policy, and splitting_policy. Null and an empty object are invalid. Requires expected_version.
Send exactly one of these
The `none` variant of `DeliveryProfileConfigurationInput`.
requirementenumRequiredWhether delivery planning applies. none forbids every other configuration field. required also requires resolution_mode and allowed_types, plus the fields required by that resolution mode.
none
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringcurl -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 after checking current dependencies. The retired resource remains available by ID for historical records. Deleting an already archived resource returns it without changing its version or repeating effects.
Path parameters
delivery_profile_idstringRequiredFlint delivery profile ID.
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 do not have a delivery profile.
Path parameters
delivery_profile_idstringRequiredFlint delivery profile ID.
Request body
expected_versionintegerCurrent version of the delivery profile.
Response · 200
Counts of catalog entries assigned to the delivery profile.
dataobjectRequiredResource, collection, or operation result returned by this request.
bundle_components_updatedintegerRequiredNumber of previously unconfigured catalog records updated.
delivery_profile_idstringRequiredDelivery profile assigned to each updated catalog item.
product_variants_updatedintegerRequiredNumber of previously unconfigured catalog records updated.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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 next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.
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.
circuit_failure_countintegerRequiredConsecutive callback failures since the last successful response.
circuit_stateenumRequiredclosedopenhalf_open
configurationobjectRequiredSettings for a delivery rate callback: the endpoint `url` Flint calls, request timeout, request and response size limits, redirect policy, and whether previews can use it.
created_atstringRequiredRFC3339 timestamp.
current_delivery_rate_callback_revision_idstringRequireddelivery_rate_callback_idstringRequiredUnique identifier for this delivery rate callback, prefixed `dcb_`.
external_reference_idstringCaller-owned identifier for this resource in an external system.
key_idstringInitial HMAC signing key ID. Returned only by create when hmac is included.
namestringRequiredsecretstringInitial HMAC shared secret. Returned only by the create response when signing_methods includes hmac.
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
statusenumRequiredactiveinactivearchived
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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",
"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. A shared secret and key_id are issued and returned once only when hmac is included. It starts inactive.
Request body
configurationobjectRequiredSettings for a delivery rate callback: the endpoint `url` Flint calls, request timeout, request and response size limits, redirect policy, and whether previews can use it.
maximum_request_bytesintegermaximum_response_bytesintegerpreview_enabledbooleanredirect_policyenumreject
request_timeout_secondsnumberurlstringRequiredexternal_reference_idstringCaller-owned identifier for this resource in an external system.
namestringRequiredsigning_methodsarray of enumSigning methods for callback requests. Defaults to JWT verification with Flint's public JWKS. A shared secret and key_id are returned only when hmac is included.
jwthmac
Response · 201
Created delivery rate callback.
dataobjectRequiredResource, collection, or operation result returned by this request.
circuit_failure_countintegerRequiredConsecutive callback failures since the last successful response.
circuit_stateenumRequiredclosedopenhalf_open
configurationobjectRequiredSettings for a delivery rate callback: the endpoint `url` Flint calls, request timeout, request and response size limits, redirect policy, and whether previews can use it.
created_atstringRequiredRFC3339 timestamp.
current_delivery_rate_callback_revision_idstringRequireddelivery_rate_callback_idstringRequiredUnique identifier for this delivery rate callback, prefixed `dcb_`.
external_reference_idstringCaller-owned identifier for this resource in an external system.
key_idstringInitial HMAC signing key ID. Returned only by create when hmac is included.
namestringRequiredsecretstringInitial HMAC shared secret. Returned only by the create response when signing_methods includes hmac.
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
statusenumRequiredactiveinactivearchived
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
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",
"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 change to pinned configuration publishes a new immutable revision. Configuration and signing_methods changes require expected_version. signing_methods replaces the set; removing hmac deletes all shared secrets. Use rotate-secret to issue a first shared secret before adding hmac. Archived resources can't be changed; create a new resource instead.
Path parameters
delivery_rate_callback_idstringRequiredFlint delivery rate callback ID.
Request body
Send at least one of these
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, signing_methods.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, signing_methods.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, signing_methods.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, signing_methods.
expected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration, signing_methods.
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 after checking current dependencies. The retired resource remains available by ID for historical records. Deleting an already archived resource returns it without changing its version or repeating effects.
Path parameters
delivery_rate_callback_idstringRequiredFlint delivery rate callback ID.
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.
Response · 200
Callback connection-check result.
dataobjectRequiredResource, collection, or operation result returned by this request.
checked_atstringRequiredRFC3339 timestamp.
delivery_rate_callback_idstringRequireddelivery_rate_callback_revision_idstringRequiredfailure_categoryenumWhy the callback connection check failed and the action that can make the next check succeed. - `authentication_or_http_error`: Return a 2xx status after verifying the enabled signing methods. For a 401, check JWT verification with Flint's JWKS, issuer, delivery_rate_callback_id audience, expiration, and body_sha256 of the exact request bytes. For HMAC, check the shared secret and verify the raw body before parsing it. - `blocked_target`: Use a public HTTPS callback target allowed by Flint's outbound network policy. - `connection_error`: Restore network connectivity to the callback host, then test again. - `dns_error`: Fix the callback hostname or its DNS records, then test again. - `invalid_response`: Return a 2xx application/json response within maximum_response_bytes. For a test delivery, the body must also follow the callback response rules. Then test again. - `request_error`: Flint couldn't complete the request for another reason. Check the URL and your server logs, then test again. - `timeout`: Acknowledge the callback within its configured timeout, then test again. - `tls_error`: Fix the callback certificate and TLS configuration, then test again.
authentication_or_http_errorblocked_targetconnection_errordns_errorinvalid_responserequest_errortimeouttls_error
http_status_codeintegerkey_idstringRequiredID of the HMAC signing key that signed this request. Empty for a JWT-only callback, which has no shared secret.
latency_millisecondsintegerRequiredstatusenumRequiredsucceededfailed
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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 signing key#
/v1/delivery-rate-callbacks/{delivery_rate_callback_id}/rotate-secretIdempotentRequires scope commerce.delivery.write
Rate limit: sensitive_write
Issues a first shared secret and adds hmac when no secret exists, and increments the callback's version. Otherwise rotates the shared secret and accepts both keys for one hour. Returns the new secret and key_id once.
Path parameters
delivery_rate_callback_idstringRequiredFlint delivery rate callback ID.
Response · 200
Rotated signing key.
dataobjectRequiredResource, collection, or operation result returned by this request.
delivery_rate_callback_idstringRequiredkey_idstringRequiredsecretstringRequiredNew signing secret. Returned only by this rotation response.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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/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.
Response · 201
Created callback test-delivery result.
dataobjectRequiredResource, collection, or operation result returned by this request.
delivery_rate_callback_idstringRequireddelivery_rate_callback_revision_idstringRequiredfailure_categoryenumWhy the callback test failed and the action that can make the next test succeed. - `authentication_or_http_error`: Return a 2xx status after verifying the enabled signing methods. For a 401, check JWT verification with Flint's JWKS, issuer, delivery_rate_callback_id audience, expiration, and body_sha256 of the exact request bytes. For HMAC, check the shared secret and verify the raw body before parsing it. - `blocked_target`: Use a public HTTPS callback target allowed by Flint's outbound network policy. - `connection_error`: Restore network connectivity to the callback host, then test again. - `dns_error`: Fix the callback hostname or its DNS records, then test again. - `invalid_response`: Return a 2xx application/json response within maximum_response_bytes. For a test delivery, the body must also follow the callback response rules. Then test again. - `request_error`: Flint couldn't complete the request for another reason. Check the URL and your server logs, then test again. - `timeout`: Acknowledge the callback within its configured timeout, then test again. - `tls_error`: Fix the callback certificate and TLS configuration, then test again.
authentication_or_http_errorblocked_targetconnection_errordns_errorinvalid_responserequest_errortimeouttls_error
http_status_codeintegerkey_idstringRequiredID of the HMAC signing key that signed this request. Empty for a JWT-only callback, which has no shared secret.
latency_millisecondsintegerRequiredstatusenumRequiredsucceededfailed
tested_atstringRequiredRFC3339 timestamp.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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 next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.
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.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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 ofRequiredA reusable geographic predicate containing only country, state, postal_code, and radius conditions.
Send exactly one of these
A reusable geographic predicate containing only country, state, postal_code, and radius conditions.
allarray of one ofRequiredexternal_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.
namestringRequiredResponse · 201
Created delivery zone.
dataobjectRequiredResource, collection, or operation result returned by this request.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
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 change to pinned configuration publishes a new immutable revision and requires expected_version. Archived resources can't be changed; create a new resource instead.
Path parameters
delivery_zone_idstringRequiredFlint delivery zone ID.
Request body
Send at least one of these
configurationone ofSend the whole geography. It replaces the zone's current geography; leave configuration out to keep it. Null and an empty object are invalid. Requires expected_version.
Send exactly one of these
A reusable geographic predicate containing only country, state, postal_code, and radius conditions.
allarray of one ofRequiredexpected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringRequiredconfigurationone ofSend the whole geography. It replaces the zone's current geography; leave configuration out to keep it. Null and an empty object are invalid. Requires expected_version.
Send exactly one of these
A reusable geographic predicate containing only country, state, postal_code, and radius conditions.
allarray of one ofRequiredexpected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringconfigurationone ofRequiredSend the whole geography. It replaces the zone's current geography; leave configuration out to keep it. Null and an empty object are invalid. Requires expected_version.
Send exactly one of these
A reusable geographic predicate containing only country, state, postal_code, and radius conditions.
allarray of one ofRequiredexpected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringconfigurationone ofSend the whole geography. It replaces the zone's current geography; leave configuration out to keep it. Null and an empty object are invalid. Requires expected_version.
Send exactly one of these
A reusable geographic predicate containing only country, state, postal_code, and radius conditions.
allarray of one ofRequiredexpected_versionintegerCurrent resource version. Required for configuration, owned-rate replacement, and quote-pinned method presentation; optional for other scalar and status updates. Required when any of these fields is present: configuration.
external_reference_idstring or 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.
namestringcurl -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 after checking current dependencies. The retired resource remains available by ID for historical records. Deleting an already archived resource returns it without changing its version or repeating effects.
Path parameters
delivery_zone_idstringRequiredFlint delivery zone ID.
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?
