Fulfillment records
Fulfillment tracks how an order is delivered after payment. A fulfillment covers a set of the order's line items and has a type: shipment, pickup, local_delivery, digital, or service. Create one with POST /v1/fulfillments and order_id in the body.
When a buyer pays with a delivery choice, Flint creates the fulfillments for you. Your integration then reports the work as it happens: fulfillment actions for picking, packing, handover, and completion, and packages for each parcel and its carrier progress. Flint keeps the fulfillment's status, the order's fulfillment_status, committed stock, and the buyer's shipping emails in step with what you report. Flint doesn't buy labels or poll carriers. For the end-to-end flow, see Fulfill and ship orders.
Each return_line_items allocation on a return shipment or package includes required return_id beside return_line_item_id.
The records#
| Record | ID prefix | What it is |
|---|---|---|
| Fulfillment | ful_ | The work of delivering some quantity of an order's lines in one way. It carries type, status, supported_actions, recipient, and the details for its type. |
| Shipment | shp_ | One carrier leg of a shipment fulfillment, outbound to the buyer or return to you. Its status comes from its packages. |
| Package | pkg_ | One parcel in a shipment, with its tracking and carrier progress. |
| Package item | pki_ | A quantity of one order line inside a package. |
| Fulfillment event | fev_ | One entry on the fulfillment's timeline: a status change, a tracking change, or a carrier scan. |
| Fulfillment notification | fnt_ | The record of one buyer email Flint sent, failed to send, or skipped. |
A fulfillment holds shipments, a shipment holds packages, and a package holds items. Only shipment fulfillments have shipments. Pickup, local delivery, digital, and service fulfillments record everything on the fulfillment itself, in pickup_details, local_delivery_details, digital_details, or service_details.
Reads accept commerce.orders.read or commerce.orders.write. Every write needs commerce.orders.write.
Where fulfillments come from#
Fulfillments Flint creates#
When an order is paid with a delivery selection, Flint creates one fulfillment for each execution leg of the delivery options the buyer chose, shortly after payment once all of the units it covers are in stock, and sends fulfillment.created for each one. Start delivery work from that event, not from order.paid: a handler that reads the order on order.paid can find no fulfillments yet.
These fulfillments carry four read-only links back to the selection: delivery_selection_id, delivery_choice_group_id, delivery_execution_leg_id (the same ID the delivery quote lists in execution_legs), and delivery_method_id. The fields are always present and are null on fulfillments you create.
Don't create your own fulfillment for quantities Flint has already created fulfillments for. While Flint is still creating them, POST /v1/fulfillments returns 409 OPERATION_IN_PROGRESS with details[0].reason: delivery_selection_materializing. Once they exist, it returns 409 ACTION_NOT_ALLOWED, because they already own the quantity.
Flint creates these fulfillments only when all of the remaining units are in stock, and it never splits a delivery choice into shipments on its own. The remaining units are the selected quantity minus the quantity already assigned to fulfillments, including ones you created, and minus units removed by an order edit. While units are on backorder, ship the units you have by creating a fulfillment yourself; when the rest is in stock, Flint creates fulfillments for the remainder only, or nothing if none remains. Automatic creation waits for stock has the details.
Fulfillments you create#
Create a fulfillment yourself for quantity no fulfillment owns: a line whose fulfillment requirement is required with resolution_mode: "manual" and the fulfillment's type in its allowed_types, orders you manage outside checkout, or units a failed fulfillment handed back. A custom line sets that requirement in its fulfillment. A catalog line gets it from a manual delivery profile on the variant of a digital or service product, with allowed_types exactly ["digital"] or ["service"] to match product_type. A catalog digital or service variant with no profile, and a custom line with requirement: "none", has nothing to fulfill, so a request naming its line returns 400 INVALID_REQUEST with detail code NOT_ALLOWED at line_items[i].order_line_item_id; deliver those from your own app after order.paid. A line ID that doesn't exist on the order still returns 404 RESOURCE_NOT_FOUND. A profile applies to orders created after you assign it, and existing orders retain their fulfillment requirements. A service line takes a service fulfillment, never a digital one. The order must be paid, or the request returns 409 ACTION_NOT_ALLOWED with reason status_not_reached.
- Quantities are capped. A request can't claim more than the line's
unassigned_quantityinfulfillment_quantities; see Read what is left to fulfill. A line can be split across several fulfillments. - Backordered units can't be claimed. The quantity you can fulfill now is the line's
unassigned_quantityminus itsbackordered_quantity. A request for more than that, but not more thanunassigned_quantity, returns409 INVENTORY_INSUFFICIENTwith the units that can be fulfilled indetails[0].available_quantity. A line'srelease_dateandexpected_ship_datedon't hold a fulfillment back. See Backordered and pre-ordered lines. - The line must allow the type. Each order line's fulfillment requirement decides which
typevalues it accepts. - The recipient defaults to the order. Without
recipient, Flint copies the order'sdelivery_destinationand buyer email. Arecipientyou send, or change later withPATCH, applies to that fulfillment only. A patch updates only the recipient fields you send. Sendingaddressreplaces the recipient's address. Send"recipient": nullto clear the whole recipient. - Details match the type. Send at most one details object, for the fulfillment's own type.
PATCHfollows the same rule, and anulldetails field still counts as the one.
For a shipment fulfillment, shipment creates its outbound shipment and packages in the same call:
shipment.packaging | Send | What Flint creates |
|---|---|---|
single_package | shipment.package, without items | One package holding every unit in the request's line_items |
itemized | shipment.packages: 1 to 20 packages, each with non-empty items | One package per entry, holding exactly the items you list |
With itemized, every item must name a line from the request's line_items, and each line's quantity across all boxes can cover less than, but not more than, what the request asks for. An item for another line returns 400 INVALID_REQUEST with detail NOT_ALLOWED, and the item that pushes a line over returns detail INVALID_VALUE; both name the item in param, such as shipment.packages[1].items[0].quantity. Each packaging value rejects the other's field. Leave out shipment to add shipments later with POST /v1/shipments.
Each package needs status: created or status: shipped. shipped reports the carrier handoff in the same call, sends one shipped email per package, and accepts shipped_at (default: the request time) and buyer_notification_behavior: suppress. Use created to print labels first, then send mark_shipped at handoff. A non-Flint label_url requires the package's own external_system; the shipment's external_system doesn't count for it.
This records two units that left in one box:
curl -X POST https://api.withflintpay.com/v1/fulfillments \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: wms-order-1042-box-1" \
-H "Content-Type: application/json" \
-d '{
"order_id": "ord_1kmn0aExample",
"type": "shipment",
"line_items": [{ "order_line_item_id": "li_1kmn0aExample", "bundle_component_id": null, "quantity": 2 }],
"external_reference_id": "wms-order-1042",
"shipment": {
"packaging": "single_package",
"package": {
"status": "shipped",
"carrier": "ups",
"service_code": "ground",
"tracking_number": "1Z999AA10123456784"
}
}
}'
{
"data": {
"fulfillment_id": "ful_1kmn0aExample",
"order_id": "ord_1kmn0aExample",
"type": "shipment",
"status": "dispatched",
"line_items": [{ "order_line_item_id": "li_1kmn0aExample", "bundle_component_id": null, "quantity": 2 }],
"external_reference_id": "wms-order-1042",
"dispatched_at": "2026-10-28T16:05:00Z",
"supported_actions": ["complete", "fail"],
"shipments": [
{
"shipment_id": "shp_1kmn0aExample",
"fulfillment_id": "ful_1kmn0aExample",
"direction": "outbound",
"status": "shipped",
"package_count": 1,
"shipped_at": "2026-10-28T16:05:00Z",
"handed_off_at": "2026-10-28T16:05:00Z"
}
],
"packages": [
{
"package_id": "pkg_1kmn0aExample",
"shipment_id": "shp_1kmn0aExample",
"fulfillment_id": "ful_1kmn0aExample",
"status": "shipped",
"carrier": "ups",
"service_code": "ground",
"tracking_number": "1Z999AA10123456784",
"shipped_at": "2026-10-28T16:05:00Z"
}
]
},
"request_id": "req_01KWM6TE63VRVPCMCMA65Y34ER"
}
The example leaves out most fields. Because every unit is in a shipped box, the fulfillment is already dispatched. shipments and packages appear in the response only when the request included shipment. Read the box contents with GET /v1/packages/{package_id}/items.
The fulfillment, its shipment, packages, items, timeline entries, and email requests commit together, or none of them do. Emails and webhooks go out after the commit. Idempotency-Key is optional; store the key before you send, so after a timeout you can replay the same key and body and get the original IDs without a second package or email. To reconcile without the key, list GET /v1/fulfillments?order_id=...&external_reference_id=.... See Idempotency.
Types, statuses, and actions#
Each type reaches its own set of statuses, and the type decides when committed stock leaves on hand:
type | Statuses its actions reach | Stock leaves on hand at |
|---|---|---|
shipment | accepted, picked, packed, dispatched, completed | dispatched, or completed if it skips dispatch |
local_delivery | accepted, preparing, dispatched, completed | dispatched, or completed if it skips dispatch |
pickup | accepted, preparing, ready, completed | completed |
digital | accepted, completed | completed |
service | accepted, scheduled, in_progress, completed, no_show | completed |
Every fulfillment starts at pending, and every step is optional: a fulfillment can go from pending straight to its last step. Until dispatch, every type also accepts hold, fail, and cancel, except that cancel drops out while the fulfillment has a shipment that isn't voided. A dispatched fulfillment accepts only complete and fail. completed, canceled, failed, and no_show are terminal. Canceling releases committed stock without moving it, and refunding the order never cancels a fulfillment or restocks anything. Returned goods come back through Returns and Return dispositions.
When the merchant turns on fulfillment.approval_required in Settings, a new fulfillment offers only accept, hold, cancel, and fail until someone accepts it.
Send an action#
Read supported_actions, then send POST to the route that value names under /v1/fulfillments/{fulfillment_id}/, with underscores written as hyphens. The 14 routes are accept, schedule, start, mark-preparing, mark-picked, mark-packed, mark-ready, dispatch, complete, mark-no-show, fail, cancel, hold, and release-hold. For example, mark_packed is POST /v1/fulfillments/{fulfillment_id}/mark-packed. The body has no action field. The response is the updated fulfillment, not the timeline entry or email it created; read those from GET /v1/fulfillment-events and GET /v1/fulfillment-notifications.
supported_actions comes from the fulfillment, its order, and any hold on it, never from your credential. It is [] while the order isn't paid, because Flint refuses every action until payment. A credential without permission for a route gets 403 INSUFFICIENT_SCOPE.
- Each route takes only its own fields.
schedulerequiresscheduled_start_atandscheduled_end_at.holdandmark_no_showrequire areasonfrom their own enum.failrequiresrelease_quantity:truehands the quantity back to the line'sunassigned_quantityfor a replacement, andfalsekeeps it with the failed fulfillment. Every action acceptsoccurred_at, areason_messagenote, andexpected_version. - Send
expected_version. It must equal the fulfillment'sversion, so the action applies only if nobody changed the fulfillment since you read it.PATCH /v1/fulfillments/{fulfillment_id}takes it too. - Choose whether to email. An action that reaches a buyer moment emails by default;
buyer_notification_behavior: suppressskips it. See What the buyer receives. occurred_atoncompletesetscompleted_at. Send it when you know the delivery or handover time. For shipments, omitting it uses the time you mark the shipment complete.
Holds#
hold moves a fulfillment to on_hold, and active_hold is present exactly while it is held. active_hold.previous_status is the status the hold paused, never on_hold or terminal. A held fulfillment only moves forward from there:
release_holdrestoresprevious_status. It keeps the schedule and progress timestamps, never emails the buyer, and rejectsbuyer_notification_behavior.- Any other action that
previous_statusallows, excepthold, moves the fulfillment on and clears the hold.
A payment provider can also stop shipping for a payment, such as during a review. Every open fulfillment on the order then goes on hold with reason payment_review, and only cancel and hold work until the stop lifts. Lifting it leaves the fulfillment on hold until you send release_hold or the next action. payment_intent.fulfillment_hold_updated fires when the stop starts and when it lifts.
Shipments and packages#
Tracking belongs to packages. Create a shipment for each carrier leg and a package for each parcel, and put carrier, service_code, tracking_number, tracking_url, expected_delivery_at, weight, dimensions, and label details on the package, even when a shipment has one parcel. A shipment has no actions of its own: its status comes from its packages that aren't voided. An exception on any package sets the shipment to exception; otherwise the least advanced package sets it. A shipment with no packages stays created.
POST /v1/shipments takes direction: outbound and fulfillment_id, or direction: return and return_id with return_line_items. Each direction rejects the other parent ID. Outbound shipment creation takes optional packages, 1 to 20, and POST /v1/packages adds one more box with shipment_id in the body. Package items take 1 to 100 entries, each order line at most once per box, and the active items across a fulfillment's packages can't exceed its quantities. Report carrier progress with package actions sent to POST /v1/packages/{package_id}/mark-shipped, chosen from the package's supported_actions. Only mark_shipped accepts carrier, service_code, tracking_number, and tracking_url, which replace the stored values before the shipped email is built.
Note: Packages move a shipment fulfillment
Once a shipment fulfillment has a package, it moves to dispatched when every unit is in an outbound package and every package has shipped, and to completed when every package is delivered, in the same request as the package action. A package in exception or returned blocks completion, and a completed fulfillment never reopens. Its completed_at then comes from the packages, so setting it with PATCH returns 409 ACTION_NOT_ALLOWED with reason derived_from_packages. See How packages move the fulfillment.
Packages don't move a fulfillment that is waiting for accept, that you put on hold, or whose payment is holding fulfillment. The packages still record progress and email the buyer; send dispatch or complete yourself when the fulfillment can go on. dispatch and complete also serve shipments you track without packages.
What can change after handoff#
| Change | Allowed |
|---|---|
| Package contents, new packages, and voids | Only before handoff, while the shipment is created or packed |
| Package tracking, carrier, service, label, weight, dimensions, expected delivery time, status reason, external references, and metadata | Any time until the package is voided, with PATCH /v1/packages/{package_id}, even after delivery |
| Shipment external references and metadata | Any time until the shipment is voided, with PATCH /v1/shipments/{shipment_id} |
Corrections never email the buyer. A PATCH to a voided package or shipment returns 409 ACTION_NOT_ALLOWED with reason terminal_status, and a structural change after handoff returns reason unsupported_state. Voiding a shipment voids its packages too, so POST /v1/shipments/{shipment_id}/void returns both.
Packages, shipments, and package items each carry a version and accept expected_version on PATCH, transitions, and voids. A package item's version is its own: PATCH /v1/packages/{package_id}/items/{package_item_id} takes expected_version in the body and DELETE takes it as a query parameter, and a stale value returns 409 VERSION_CONFLICT with resource_type: "package_item" and details[0].current_version. Changing an item also advances its package's version and sends package.updated.
Each order line or bundle component can appear once per package. To add more units of the same item to the package, update the existing package item's quantity. Include bundle_component_id when updating a bundle component. Adding the same item twice returns 400 INVALID_REQUEST with detail code INVALID_VALUE.
Return shipments#
A shipment's direction is fixed when you create it. outbound carries goods to the buyer. Send direction explicitly when creating a shipment. A return shipment carries them back: it names a return_id and allocates whole-number quantities to return_line_items from that return, and it takes no outbound packages or items. Its packages are created with status: created and their own return_line_items. List shipments by return_id to find the inbound leg for a return. See Return labels and tracking.
Carrier scans and other timeline facts#
A carrier or 3PL fact that changes no status goes to POST /v1/fulfillment-events, with fulfillment_id and event_type carrier_scan or custom. Add shipment_id or package_id to attach it to a leg or a box. Send external_system with external_event_id so a repeated scan is recorded once: the first returns 201 with the new event, and a repeat returns 200 with the same event. Status changes such as shipped or delivered are package actions; sending one as an event_type returns 400 INVALID_REQUEST with param: event_type. These entries never email the buyer.
GET /v1/fulfillment-events is the pollable timeline, the same entries fulfillment_event.created delivers. Status changes carry previous_status, current_status, and quantity_effect; your note is in reason_message, and the hold and mark_no_show codes are in reason. GET /v1/fulfillment-notifications is the email record: each entry is pending, sent, failed, or suppressed, with a suppression_reason when Flint skipped it.
List shipments and packages#
GET /v1/shipments and GET /v1/packages return the newest first, by created_at and then ID. Their filters build warehouse and carrier queues: status and direction on shipments, and status, carrier, and tracking_number on packages, plus order, fulfillment, external reference, and time-range filters on both. Repeat a filter or separate values with commas to match any of them; different filters must all match. Pagination, filters, and sorting covers ranges, page tokens, and errors that every list shares.
- Queues.
GET /v1/shipments?direction=outbound&status=packedlists boxes waiting for the carrier, andstatus=exception,delivery_attemptedlists shipments that need attention. - A package from a carrier scan.
carrierandtracking_numbereach match the whole stored value exactly, including case and spaces. Tracking numbers can repeat across carriers, so send both. For a partial match, usequery. - Changes since a sync.
updated_afterreturns records changed since your last read, andhanded_off_afteron shipments returns legs that left with the carrier.
GET /v1/fulfillments filters by status, type, location_id, and order_id. Its status filter matches on_hold exactly.
Use sort_by=due_at&sort_direction=asc to list the soonest booked starts first, with fulfillments that have no booked start last. due_at compares scheduled_start_at: the service appointment start or pickup, local delivery, or shipment window start. It does not compare pickup_due_at or delivery_due_at deadlines. Descending order puts nulls first.
sort_by=scheduled_start_at compares the same start with nulls first ascending and last descending, so an ascending scheduled queue puts unbooked work first. Both sorts break ties by fulfillment_id in the requested direction. Page tokens are bound to the sort field and direction; restart from the first page when changing either.
Expand the order#
GET /v1/fulfillments, GET /v1/shipments, GET /v1/packages, GET /v1/packages/{package_id}/items, GET /v1/fulfillment-events, and GET /v1/fulfillment-notifications accept expand=order, which puts each row's order summary beside its order_id. The summary includes the order's buyer_contact, so a packing queue can show a guest buyer's email; see Expanded order summaries. GET /v1/shipments/{shipment_id} also accepts expand=packages.
What buyers see#
A signed-in buyer reads their own records through GET /v1/me/fulfillments, /v1/me/shipments, and /v1/me/packages with a customer session. Buyer fulfillments, under /v1/me and inside the orders checkout returns to the buyer, leave out what belongs to the merchant:
- Holds. A held fulfillment shows its
previous_statusasstatusand has noactive_hold. TheGET /v1/me/fulfillmentsstatusfilter matches held work by that status and rejectson_hold. - Delivery selection links. The four
delivery_*ID fields are omitted. - Private notes and courier IDs.
outcomekeepsoutcome_typeandreasonbut dropsnotes. Local delivery details drop the courier'sservice_area_idandexternal_delivery_id, and keep buyer instructions, tracking, and courier support details.
/v1/me fulfillments also leave out location_id, device_id, external_reference_id, and metadata. Merchant reads and webhooks keep every field. Buyer shipment and package lists accept fewer filters than the merchant lists and reject the others with UNKNOWN_FIELD.
Timestamps#
| Field | On | Records |
|---|---|---|
scheduled_start_at | Fulfillment | The start of the booked service appointment, or of the pickup, local delivery, or shipment window. null for digital and unbooked fulfillments |
picked_at, packed_at, dispatched_at | Fulfillment | The first time the fulfillment reached that status |
completed_at | Fulfillment | When the goods or service reached the buyer: occurred_at on complete, or the last package's delivered_at. A manual shipment completion defaults to the time you mark it complete |
terminal_at | Fulfillment | When it became completed, canceled, failed, or no_show. Later edits don't change it, and it can differ from completed_at |
handed_off_at | Shipment | When the leg left with the carrier, outbound or return. Set when its packages ship, and never changed afterward |
shipped_at, delivered_at | Package | When the carrier took the parcel and when it arrived |
expected_delivery_at | Package | Your arrival estimate. You set and refresh it; Flint doesn't track carriers. Kept after delivery as history, and separate from the fulfillment's promised window in shipment_details |
occurred_at, received_at | Fulfillment event | When the fact happened, and when Flint recorded it |
Webhooks#
- fulfillment.
created Flint created a fulfillment after payment, or you created one. - fulfillment.
updated A status change other than tocompleted,canceled, orfailed, or a change to the recipient, details, or metadata. - fulfillment.
completed The fulfillment completed. With packages, the last package was delivered. - fulfillment.
canceled The fulfillment was canceled. - fulfillment.
failed The fulfillment failed. - shipment.
created A shipment was created, outbound or return. - shipment.
updated A shipment's status, timestamps,package_count, external references, or metadata changed. - package.
created A package was created. - package.
updated A package's status, tracking, shipping details, external references, metadata, or items changed. - fulfillment_
event. created A timeline entry was recorded: a status change, a tracking change, or a carrier scan.
Each event carries the resource in data.object, as its GET returns it without expansions. Events fire for your own writes too. Records a call creates send their .created events at their final state, with no .updated events of their own. Changes to an order's fulfillments or fulfillment_status send order.updated, or order.closed when they close the order.
- Deduplicate and order by
version. Deliveries can repeat or arrive out of order. Deduplicate bywebhook_event_id, and replace a stored record only when the snapshot'sversionis higher. A retry resends the original snapshot, so fetch the record when you need its current state. - Refresh package contents by listing them. A package snapshot has no items. When a
package.updatedarrives with a higherversion, page throughGET /v1/packages/{package_id}/itemsto refresh the contents. - Key your own emails to timeline entries. An update event says a record changed, not that the buyer got an email.
fulfillment_event.createdrecords the moments Flint emails for.
The event catalog has every payload, and Staying in sync explains which events a call sends.
Errors#
- StatusHTTP 409What to doThe current state refuses the request; branch on
details[0].reason.unsupported_state: the action isn't insupported_actions, or the change comes after handoff, anddetails[0]carries the currentversion, status, andsupported_actions.status_not_reached: the order isn't paid when creating or editing fulfillment data, or the fulfillment needsacceptfirst before its data can change. An action sent beforeacceptor before payment isunsupported_state.on_hold: a payment is holding fulfillment.terminal_status: the record has ended.field_locked: a completed fulfillment's details can't be replaced.derived_from_packages: packages set thiscompleted_at. - StatusHTTP 409What to doThe fulfillment claims units that are still on backorder.
details[0].available_quantityis the quantity that can be fulfilled now. - StatusHTTP 409What to do
expected_versionis stale, or another change landed while the request ran.details[0].current_resourceis the current record. Read it, decide again, and send a new request with a newIdempotency-Key. - StatusHTTP 409CodeLIMIT_
EXCEEDED What to doA quantity is more than what is left: a fulfillment asks for more than the line'sunassigned_quantity, or package items exceed the fulfillment's quantity.paramnames the quantity. - StatusHTTP 409What to doWith reason
delivery_selection_materializing, Flint is still creating the fulfillments for the buyer's delivery selection. Wait forfulfillment.createdand use those. - StatusHTTP 409CodeRESOURCE_
IN_ USE What to doA shipment that isn't voided still holds the quantity, sofailwithrelease_quantity: truecan't run. Void the shipment indetails[0].blocking_resourcesfirst. - StatusHTTP 409CodeALREADY_
EXISTS What to doAnexternal_event_idwas reused with different details. Send a new ID for a new event. - StatusHTTP 404What to doThe record doesn't exist, or a package item names an
order_line_item_idthe fulfillment doesn't cover. - StatusHTTP 400CodeINVALID_
REQUEST What to doA field is missing, invalid, or not accepted here;paramnames it. Common causes: a field another action owns,nulltracking onmark_shipped, a status sent as anevent_type, or a package or item outside the packaging rules.
Related guides#
Fulfill and ship ordersFind the work, ship packages, report carrier progress, and handle holds and failures.Add shipping to a checkoutOffer delivery methods and rates that become fulfillments when the buyer pays.Customer email deliveryChoose whether Flint or your system sends shipping emails.ReturnsBring goods back with return shipments, receipts, and dispositions.The Fulfillment object#
Work required to deliver an order's items.
Returned by GET /v1/fulfillments/{fulfillment_id} and carried by the endpoints below.
Attributes
active_holdobjectCurrent hold details. Present exactly when status is on_hold.
Not returned with a checkout credential or a customer session
chargesarray of objectOrder charges associated with this fulfillment.
completed_atstringWhen the fulfillment was completed. Mirrors the completion time for its type: delivered_at for shipment, local delivery, and digital fulfillments, picked_up_at for pickup, service_details.completed_at for service fulfillments, and the order's paid_at for handovers completed at payment. Omitted until a completion time is recorded.
created_atstringRequiredWhen the fulfillment was created, in RFC3339 format.
customer_idstringCustomer receiving this fulfillment, when one is set.
delivery_choice_group_idstring or nullDelivery choice group that created this fulfillment. `null` when the merchant created the fulfillment or checkout created it without a delivery quote. Always present with merchant credentials.
Not returned with a checkout credential or a customer session
delivery_execution_leg_idstring or nullExecution leg of the selected delivery option that created this fulfillment. `null` when the merchant created the fulfillment or checkout created it without a delivery quote. Always present with merchant credentials.
Not returned with a checkout credential or a customer session
delivery_method_idstring or nullDelivery method chosen for this fulfillment. `null` when the merchant created the fulfillment or checkout created it without a delivery quote. Also `null` when it was created before this field was added. Always present with merchant credentials.
Not returned with a checkout credential or a customer session
delivery_selection_idstring or nullDelivery selection that created this fulfillment. `null` when the merchant created the fulfillment or checkout created it without a delivery quote. Always present with merchant credentials.
Not returned with a checkout credential or a customer session
device_idstringDevice associated with the fulfillment, when one is recorded.
Not returned with a checkout credential or a customer session
digital_detailsobjectDelivery URL and completion time for a digital fulfillment.
dispatched_atstringFirst time this fulfillment reached dispatched.
external_reference_idstringCaller-owned identifier for this resource in an external system.
Not returned with a checkout credential or a customer session
fulfillment_idstringRequiredStable identifier of the fulfillment.
idempotency_keystring or nullRequiredThe Idempotency-Key of the request that created this resource. `null` when that request sent no key, Flint created the resource, the reader isn't the caller that created it (another app install, a buyer, or the merchant reading an app's or buyer's record), or the caller that created an older record is unknown. Filter its list with `idempotency_key` to find it. Recorded payloads, including replayed responses and webhook events, can return `null`. To find a key that a replay returns as `null`, read the resource. Buyer sessions on routes shared with merchants get `null`. `/v1/me` responses do not include this field.
line_itemsarray of objectRequiredOrder lines and quantities allocated to this fulfillment.
local_delivery_detailsobjectCourier, delivery window, and handoff details for a local delivery fulfillment.
location_idstringMerchant location responsible for this fulfillment.
Not returned with a checkout credential or a customer session
metadatamap of stringCaller-owned key-value metadata associated with the fulfillment.
Not returned with a checkout credential or a customer session
orderobject or nullOrder summary returned when the order relationship is expanded. Present only when `expand` includes `order`; `null` when expanded and there is no related order.
Not returned with a checkout credential or a customer session
order_idstringRequiredOrder whose items this fulfillment delivers.
order_numberstringHuman-readable number of the order this fulfillment belongs to. Omitted when the order has no number.
outcomeobjectTerminal outcome details. Present exactly when status is no_show.
packagesarray of objectPackages associated with this fulfillment.
packed_atstringFirst time this fulfillment reached packed.
picked_atstringFirst time this fulfillment reached picked.
pickup_detailsobjectPickup window, pickup mode, and handoff times for a pickup fulfillment.
recipientobjectOmitted for a checkout session credential that doesn't act for the customer the buyer verified.
scheduled_start_atstring or nullRequiredDerived start of the service schedule or pickup, local delivery, or shipment window. Null when no schedule is booked, including digital fulfillments. Details remain the authoritative schedule inputs. Sorting by scheduled_start_at puts nulls first ascending and last descending. Sorting by due_at compares this same value with nulls last ascending and first descending. Ties use fulfillment_id in the same direction.
service_detailsobjectSchedule and completion details for a service fulfillment.
shipment_detailsobjectShipping schedule and ship time for a shipment fulfillment. Present only on shipment fulfillments with at least one value.
shipmentsarray of objectShipments associated with this fulfillment.
statusenumRequiredCurrent fulfillment lifecycle status. Read supported_actions for available transitions. - `pending`: Work has not started and has not been accepted. Approval may be required before work can begin. - `accepted`: The provider accepted the fulfillment; work has not started. - `on_hold`: Work is paused. Release the hold to restore active_hold.previous_status, or use a supported forward action. - `in_progress`: Work has started and is not yet ready or complete. - `ready`: The fulfillment is ready for pickup, handoff, or completion. - `completed`: All fulfillment work completed successfully. - `canceled`: The fulfillment was intentionally canceled and will not continue. - `failed`: The fulfillment could not be completed. Resolve the recorded reason before creating replacement work. - `scheduled`: The fulfillment is scheduled for its recorded service window. - `preparing`: Warehouse or provider preparation is underway. - `picked`: The assigned items have been picked. - `packed`: The assigned items have been packed. - `dispatched`: The fulfillment left its origin for delivery or handoff. - `no_show`: A service appointment was missed. Read outcome for the recorded reason.
pendingacceptedon_holdin_progressreadycompletedcanceledfailedscheduledpreparingpickedpackeddispatchedno_show
supported_actionsarray of enumRead-only lifecycle actions accepted now, based on the fulfillment, its order payment status, holds, and shipment progress. Empty when none are available. Values name the verb route with hyphens replaced by underscores. Always present with merchant credentials.
Not returned with a checkout credential or a customer session
acceptcancelcompletedispatchfailholdmark_no_showmark_packedmark_pickedmark_preparingmark_readyrelease_holdschedulestart
terminal_atstringWhen the fulfillment entered a terminal state: completed, canceled, failed, or no_show. This records the state transition; completed_at records completion evidence supplied for the fulfillment.
typeenumRequiredHow the items are delivered: shipment, pickup, local delivery, digital delivery, or service.
shipmentpickuplocal_deliverydigitalservicehandover
updated_atstringRequiredWhen the fulfillment was last updated, in RFC3339 format.
versionintegerRequiredMonotonic fulfillment version for expected_version checks.
{
"completed_at": "2026-05-13T14:30:00Z",
"created_at": "2026-05-13T09:45:00Z",
"delivery_choice_group_id": null,
"delivery_execution_leg_id": null,
"delivery_method_id": null,
"delivery_selection_id": null,
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"idempotency_key": null,
"line_items": [
{
"bundle_component_id": null,
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"quantity": 1
}
],
"metadata": {
"source": "dispatch"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"order_number": "1001",
"scheduled_start_at": "2026-05-13T09:00:00Z",
"shipment_details": {
"shipped_at": "2026-05-13T10:00:00Z",
"timezone": "America/Toronto",
"window_end_at": "2026-05-13T11:00:00Z",
"window_start_at": "2026-05-13T09:00:00Z"
},
"status": "completed",
"supported_actions": [],
"type": "shipment",
"updated_at": "2026-05-13T14:30:00Z",
"version": 4
}The Fulfillment event object#
An action recorded during an order's fulfillment.
Returned by GET /v1/fulfillment-events/{fulfillment_event_id} and carried by the endpoints below.
Attributes
buyer_notification_behaviorenumRequiredControls buyer email handling. Omit or use send to send when recipient, template, and deduplication rules allow it. Use suppress when another system owns buyer messaging.
sendsuppress
created_atstringRequiredTimeline entry creation timestamp.
current_statusenumSubject status after the recorded transition.
pendingon_holdin_progressreadycompletedcanceledfailedscheduledacceptedpreparingpickedpackeddispatchedno_showcreatedshippedin_transitout_for_deliverydelivereddelivery_attemptedexceptionreturnedvoided
custom_detailsmap of stringFree-form details attached to the event.
event_typeenumRequiredThe delivery or fulfillment event recorded by this entry.
carrier_scanstatus_changedshippedin_transitout_for_deliverydelivereddelivery_attemptedtracking_updatedexceptionreturnedcustom
external_event_idstringEvent identifier assigned by that integration.
external_statusstringStatus supplied by that integration before mapping to Flint's public status.
external_systemstringIntegration that supplied the event.
fulfillment_event_idstringRequiredUnique identifier for this fulfillment event, prefixed `fev_`.
fulfillment_idstringRequiredID of the fulfillment the event belongs to.
location_descriptionstringWhere the event happened, such as `Louisville, KY`.
messagestringHuman-readable text describing the event.
occurred_atstringProvider event timestamp.
orderobject or nullPresent only when `expand` includes `order`; `null` when expanded and there is no related order.
order_idstringRequiredID of the order the fulfillment belongs to.
package_idstringID of the package the event is attached to. Absent when it isn't attached to a package.
previous_statusenumSubject status before the recorded transition.
pendingon_holdin_progressreadycompletedcanceledfailedscheduledacceptedpreparingpickedpackeddispatchedno_showcreatedshippedin_transitout_for_deliverydelivereddelivery_attemptedexceptionreturnedvoided
quantity_effectenumHow the transition changes fulfillment quantities. - `preserve`: Keeps the quantity assigned without marking it fulfilled. - `fulfill`: Moves the quantity from assigned to fulfilled. - `release`: Returns the assigned quantity for reassignment.
preservefulfillrelease
reasonenumWhy the fulfillment was paused or an appointment was missed, when the transition recorded a reason.
address_issuecustomer_no_showcustomer_requestfraud_reviewinventory_issuelocation_unavailableotherpayment_reviewprovider_issueprovider_no_showscheduling_errorscheduling_issue
reason_messagestringThe note supplied when this action was requested.
received_atstringFlint receive timestamp.
shipment_idstringID of the shipment the event is attached to. Absent when it isn't attached to a shipment.
subject_typeenumRequiredWhich resource current_status and previous_status describe. - `fulfillment`: The status belongs to the fulfillment named by fulfillment_id. - `shipment`: The status belongs to the shipment named by shipment_id. - `package`: The status belongs to the package named by package_id.
fulfillmentshipmentpackage
{
"buyer_notification_behavior": "suppress",
"created_at": "2026-05-13T18:30:01Z",
"custom_details": {
"provider_carrier": "ups"
},
"event_type": "carrier_scan",
"external_event_id": "evt_9a41c7",
"external_status": "in_transit",
"external_system": "shippo",
"fulfillment_event_id": "fev_01KEZF7C00Z60GQ3P071KX5MKK",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"message": "Departed carrier facility.",
"occurred_at": "2026-05-13T18:30:00Z",
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"package_id": "pkg_01KEZF7C008VJBE6BT0CWZT296",
"received_at": "2026-05-13T18:30:01Z",
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"subject_type": "package"
}The Fulfillment notification object#
A message sent about an order's fulfillment.
Returned by GET /v1/fulfillment-notifications/{fulfillment_notification_id} and carried by the endpoints below.
Attributes
channelenumRequiredHow Flint sends this notification. - `email`: Sends the notification to recipient_email.
email
created_atstringRequiredRFC3339 timestamp.
external_reference_idstringCaller-owned identifier for this resource in an external system.
failed_atstringRFC3339 timestamp.
fulfillment_event_idstringID of the fulfillment event that triggered the notification.
fulfillment_idstringRequiredID of the fulfillment the notification is about.
fulfillment_notification_idstringRequiredUnique identifier for this fulfillment notification, prefixed `fnt_`.
metadatamap of stringStored caller-owned key-value data. See `MetadataInput` for key, value, and size rules.
notification_typeenumRequiredThe buyer update this notification communicates. - `fulfillment_ready`: The fulfillment is ready for pickup. - `fulfillment_dispatched`: The fulfillment was dispatched. - `fulfillment_completed`: The fulfillment was completed. - `fulfillment_canceled`: The fulfillment was canceled. - `fulfillment_failed`: The fulfillment failed. - `fulfillment_no_show`: A service appointment was missed. - `fulfillment_shipped`: The fulfillment was shipped. - `fulfillment_delivered`: The fulfillment was delivered. - `shipment_shipped`: A shipment was shipped. - `shipment_out_for_delivery`: A shipment is out for delivery. - `shipment_delivered`: A shipment was delivered. - `shipment_delivery_attempted`: A carrier attempted to deliver a shipment. - `shipment_exception`: A shipment has a delivery exception. - `shipment_returned`: A shipment was returned.
fulfillment_readyfulfillment_dispatchedfulfillment_completedfulfillment_canceledfulfillment_failedfulfillment_no_showfulfillment_shippedfulfillment_deliveredshipment_shippedshipment_out_for_deliveryshipment_deliveredshipment_delivery_attemptedshipment_exceptionshipment_returned
orderobject or nullPresent only when `expand` includes `order`; `null` when expanded and there is no related order.
order_idstringRequiredID of the order the notification is about.
package_idstringID of the package the notification is about, when it concerns a package.
recipient_customer_idstringID of the customer the notification was sent to.
recipient_emailstringEmail address the notification was sent to.
sent_atstringRFC3339 timestamp.
shipment_idstringID of the shipment the notification is about, when it concerns a shipment.
statusenumRequiredWhether the notification's email is waiting to send, was sent, failed, or was suppressed.
pendingsentfailedsuppressed
suppression_reasonenumWhy Flint chose not to send this notification. - `source_suppressed`: The originating request suppressed buyer messaging. - `default_suppressed`: The configured default suppressed buyer messaging. - `recipient_missing`: No usable recipient was available. - `template_not_configured`: No notification template was configured. - `merchant_managed_email`: The merchant's integration owns this email. - `recipient_unsubscribed`: The recipient opted out of this notification. - `sandbox_daily_limit_reached`: Not sent because the sandbox reached its daily limit of buyer emails to addresses outside your team. Send to a team address, or wait for the next UTC day.
source_suppresseddefault_suppressedrecipient_missingtemplate_not_configuredmerchant_managed_emailrecipient_unsubscribedsandbox_daily_limit_reached
trigger_typeenumRequiredWhat created this notification. - `fulfillment_status_updated`: Created by a fulfillment status transition. - `fulfillment_event_created`: Created by a fulfillment timeline event.
fulfillment_status_updatedfulfillment_event_created
updated_atstringRequiredRFC3339 timestamp.
{
"channel": "email",
"created_at": "2026-05-13T14:30:01Z",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"fulfillment_notification_id": "fnt_01KEZF7C00HWEBZCXSM9QCE5AW",
"notification_type": "fulfillment_completed",
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"recipient_email": "buyer@example.com",
"sent_at": "2026-05-13T14:30:02Z",
"status": "sent",
"trigger_type": "fulfillment_status_updated",
"updated_at": "2026-05-13T14:30:02Z"
}The Package object#
A package within a shipment.
Returned by GET /v1/packages/{package_id} and carried by the endpoints below.
Attributes
carrierstringCarrier transporting the package.
created_atstringRequiredCreation timestamp.
delivered_atstringPackage delivery timestamp.
dimensionsobjectPhysical length, width, and height of the package.
expected_delivery_atstring or nullWhen the carrier or merchant expects this package to arrive. Null when no estimate is set. Retained after delivery as history. This estimate is separate from the fulfillment's promised shipment window.
external_reference_idstringCaller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries.
Not returned with a checkout credential or a customer session
external_systemstringName of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries.
Not returned with a checkout credential or a customer session
fulfillment_idstringRequiredFulfillment whose items are in the package.
label_urlstringHTTPS shipping-label URL supplied by your integration. Non-Flint URLs require external_system for provenance. Flint does not host the label file. Omitted for a checkout session credential that doesn't act for the customer the buyer verified.
metadatamap of stringCaller-owned key-value metadata associated with the package.
Not returned with a checkout credential or a customer session
orderobject or nullOrder summary returned when the order relationship is expanded. Present only when `expand` includes `order`; `null` when expanded and there is no related order.
Not returned with a checkout credential or a customer session
order_idstringRequiredOrder whose items are in the package.
package_idstringRequiredStable identifier of the package.
return_idstringReturn this package belongs to. Present only on packages of return shipments.
return_line_itemsarray of objectReturn line quantities allocated to this parcel. Present only on packages of return shipments.
service_codestringCarrier service used for the package.
shipment_idstringRequiredShipment carrying this package.
shipped_atstringPackage handoff timestamp.
statusenumRequiredCurrent package lifecycle state. Package states are the source used to derive shipment status. - `created`: The package record exists but has not been packed or handed off. - `packed`: The package is packed and awaiting carrier handoff. - `shipped`: The package was handed to the carrier. - `in_transit`: The carrier is moving the package through its network. - `out_for_delivery`: The package is on its final delivery route. - `delivered`: The carrier reported successful delivery. - `delivery_attempted`: The carrier attempted delivery but did not complete it. Follow the carrier instructions before retrying delivery. - `exception`: A carrier exception is blocking normal progress. Resolve the carrier-reported issue. - `returned`: The package was returned toward or to its origin. - `voided`: The package was voided and will not continue through delivery.
createdpackedshippedin_transitout_for_deliverydelivereddelivery_attemptedexceptionreturnedvoided
status_reasonstringAdditional explanation of the package's current status.
Not returned with a checkout credential or a customer session
supported_actionsarray of enumRequiredLifecycle actions Flint accepts now. mark_in_transit can repeat while in transit to refresh expected_delivery_at.
Not returned with a checkout credential or a customer session
mark_deliveredmark_delivery_attemptedmark_exceptionmark_in_transitmark_out_for_deliverymark_packedmark_returnedmark_shippedvoid
tracking_numberstringOmitted for a checkout session credential that doesn't act for the customer the buyer verified.
tracking_urlstringAbsolute HTTPS carrier tracking URL. Embedded URL credentials are rejected. Omitted for a checkout session credential that doesn't act for the customer the buyer verified.
updated_atstringRequiredLast update timestamp.
versionintegerRequiredMonotonic package version for expected_version checks.
weightobjectPhysical weight of the package.
{
"carrier": "ups",
"created_at": "2026-05-13T16:01:00Z",
"dimensions": {
"height": 4,
"length": 8,
"unit": "inch",
"width": 6
},
"expected_delivery_at": "2026-05-15T18:00:00Z",
"external_reference_id": "pkg_789",
"external_system": "merchant_wms",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"metadata": {
"box": "small"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"package_id": "pkg_01KEZF7C008VJBE6BT0CWZT296",
"service_code": "ground",
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"status": "created",
"supported_actions": [
"mark_packed",
"mark_shipped",
"mark_in_transit",
"mark_out_for_delivery",
"mark_delivered",
"mark_delivery_attempted",
"mark_exception"
],
"tracking_number": "1Z999AA10123456784",
"tracking_url": "https://track.example.com/1Z999AA10123456784",
"updated_at": "2026-05-13T16:01:00Z",
"version": 1,
"weight": {
"unit": "pound",
"value": 1.2
}
}The Shipment object#
A shipment carrying fulfilled order items.
Returned by GET /v1/shipments/{shipment_id} and carried by the endpoints below.
Attributes
created_atstringRequiredCreation timestamp.
delivered_atstringWhen the shipment was delivered, in RFC3339 format.
directionenumRequiredWhether the shipment sends items to the buyer or returns items to the merchant.
outboundreturn
external_reference_idstringCaller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries.
Not returned with a checkout credential or a customer session
external_systemstringName of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries.
Not returned with a checkout credential or a customer session
fulfillment_idstringRequiredFulfillment associated with this shipment.
handed_off_atstringCarrier handoff timestamp for outbound and return shipments, using the recorded shipped_at when no separate handoff timestamp exists. For return shipments, this can satisfy an after_handoff execution gate for the declared return_line_items.
metadatamap of stringCaller-owned key-value metadata associated with the shipment.
Not returned with a checkout credential or a customer session
orderobject or nullOrder summary returned when the order relationship is expanded. Present only when `expand` includes `order`; `null` when expanded and there is no related order.
Not returned with a checkout credential or a customer session
order_idstringRequiredOrder whose items are transported by the shipment.
package_countintegerRequiredTotal number of packages attached to the shipment, including voided packages.
packagesarray of objectSummaries of the shipment's packages in creation order, returned when the packages relationship is expanded or when the shipment is created with packages.
Not returned with a checkout credential or a customer session
return_idstringReturn associated with this shipment, when its direction is return.
return_line_itemsarray of objectReturn lines and quantities allocated to this return shipment.
shipment_idstringRequiredStable identifier of the shipment.
shipped_atstringWhen the shipment was shipped, in RFC3339 format.
statusenumRequiredRead-only shipment state derived from the shipment's package states. An empty shipment remains a created draft. - `created`: The shipment leg exists but has not been packed or handed off. - `packed`: The shipment leg is packed and awaiting carrier handoff. - `shipped`: The shipment leg was handed to the carrier. - `in_transit`: The carrier is moving the shipment through its network. - `out_for_delivery`: The shipment is on its final delivery route. - `delivered`: The carrier reported successful delivery. - `delivery_attempted`: The carrier attempted delivery but did not complete it. Follow the carrier instructions before retrying delivery. - `exception`: A carrier exception is blocking normal progress. Resolve the carrier-reported issue. - `returned`: The shipment was returned toward or to its origin. - `voided`: The shipment was voided and will not continue through delivery.
createdpackedshippedin_transitout_for_deliverydelivereddelivery_attemptedexceptionreturnedvoided
supported_actionsarray of enumRequiredLifecycle actions Flint accepts now, independent of permissions. Contains void while the shipment and its fulfillment permit voiding.
Not returned with a checkout credential or a customer session
void
updated_atstringRequiredLast update timestamp.
versionintegerRequiredMonotonic shipment version for expected_version checks.
{
"created_at": "2026-05-13T15:59:00Z",
"direction": "outbound",
"external_reference_id": "ship_789",
"external_system": "merchant_wms",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"metadata": {
"warehouse": "east"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"package_count": 1,
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"shipped_at": "2026-05-13T16:10:00Z",
"status": "shipped",
"supported_actions": [],
"updated_at": "2026-05-13T16:10:01Z",
"version": 4
}List fulfillment events#
/v1/fulfillment-eventsRequires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Lists provider-neutral fulfillment events. sort_direction applies to both the selected timestamp and the ID tiebreaker. Default order: received_at descending, then fulfillment_event_id descending.
Query parameters
fulfillment_idstringOptional fulfillment ID filter.
shipment_idstringOptional shipment ID filter.
package_idstringOptional package ID filter.
order_idstringOptional order ID filter.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
event_typearray of enumFilter by fulfillment event 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.
carrier_scanstatus_changedshippedin_transitout_for_deliverydelivereddelivery_attemptedtracking_updatedexceptionreturnedcustom
external_systemstringFilter by external system identifier.
external_event_idstringFilter by external provider event ID.
occurred_afterstringInclusive lower bound on occurred_at.
occurred_beforestringExclusive upper bound on occurred_at.
sort_byenumField to sort by. Defaults to received_at; ties are broken by fulfillment_event_id.
received_atoccurred_at
sort_directionenumSort direction. Defaults to desc.
ascdesc
expandarray of enumInclude related objects in the response. Supported expansions: order. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.
order
Response · 200
Fulfillment events for the fulfillment.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/fulfillment-events \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Fulfillment events for the fulfillment.
{
"data": [
{
"buyer_notification_behavior": "suppress",
"created_at": "2026-05-13T18:30:01Z",
"custom_details": {
"provider_carrier": "ups"
},
"event_type": "carrier_scan",
"external_event_id": "evt_9a41c7",
"external_status": "in_transit",
"external_system": "shippo",
"fulfillment_event_id": "fev_01KEZF7C00Z60GQ3P071KX5MKK",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"message": "Departed carrier facility.",
"occurred_at": "2026-05-13T18:30:00Z",
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"package_id": "pkg_01KEZF7C008VJBE6BT0CWZT296",
"received_at": "2026-05-13T18:30:01Z",
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"subject_type": "package"
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6GYQWYPEC9MA62K22T1NF"
}Create fulfillment event#
/v1/fulfillment-eventsIdempotentRequires scope commerce.orders.write
Rate limit: write
Records an observational event for a fulfillment or one of its shipments or packages. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Request body
custom_detailsmap of stringFree-form details attached to the event.
event_typeenumRequiredWhat kind of event this records.
carrier_scancustom
external_event_idstringEvent identifier assigned by that integration. Flint records a repeated pair of `external_system` and `external_event_id` once.
external_statusstringStatus supplied by that integration.
external_systemstringIntegration that supplied the event.
fulfillment_idstringRequiredFulfillment that owns this event.
location_descriptionstringWhere the event happened, such as `Louisville, KY`.
messagestringHuman-readable text describing the event.
occurred_atstringProvider event timestamp.
package_idstringNested package associated with this observational event. Flint resolves and validates its shipment and fulfillment ownership.
shipment_idstringNested shipment associated with this observational event. Flint validates that it belongs to fulfillment_id.
Response · 201
The newly recorded fulfillment event.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
Response · 200
The existing fulfillment event matching external_system and external_event_id. Nothing was created.
Same attributes as 201.
curl -X POST https://api.withflintpay.com/v1/fulfillment-events \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"custom_details": {
"facility": "east"
},
"event_type": "custom",
"external_event_id": "evt_7f3df2",
"external_status": "work_started",
"external_system": "shippo",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"message": "The fulfillment partner started work.",
"occurred_at": "2026-05-13T16:05:00Z",
"package_id": "pkg_01KEZF7C008VJBE6BT0CWZT296",
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8"
}'Get fulfillment event#
/v1/fulfillment-events/{fulfillment_event_id}Requires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Retrieves one provider-neutral fulfillment event by ID.
Path parameters
fulfillment_event_idstringRequiredFlint fulfillment event ID. Must be a valid ID with prefix fev_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expandarray of enumInclude related objects in the response. Supported expansions: order. Expansion requires commerce.orders.read. Limits: at most 10 unique expand paths per request.
order
curl https://api.withflintpay.com/v1/fulfillment-events/fev_01KEZF7C002XK9D7X3239ERT51 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The fulfillment event.
{
"data": {
"buyer_notification_behavior": "suppress",
"created_at": "2026-05-13T18:30:01Z",
"custom_details": {
"provider_carrier": "ups"
},
"event_type": "carrier_scan",
"external_event_id": "evt_9a41c7",
"external_status": "in_transit",
"external_system": "shippo",
"fulfillment_event_id": "fev_01KEZF7C00Z60GQ3P071KX5MKK",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"message": "Departed carrier facility.",
"occurred_at": "2026-05-13T18:30:00Z",
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"package_id": "pkg_01KEZF7C008VJBE6BT0CWZT296",
"received_at": "2026-05-13T18:30:01Z",
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"subject_type": "package"
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6GYQWYPEC9MA62K22T1NF"
}List fulfillment notifications#
/v1/fulfillment-notificationsRequires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Returns persisted fulfillment notification audit records. Results default to newest created first. Default order: created_at descending, then fulfillment_notification_id descending.
Query parameters
fulfillment_idstringOptional fulfillment ID filter.
order_idstringOptional order ID filter.
fulfillment_event_idstringOptional fulfillment event ID filter.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
channelarray of enumFilter by notification channel. 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.
email
statusarray of enumFilter by notification status. 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.
pendingsentfailedsuppressed
notification_typearray of enumFilter by notification 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.
fulfillment_canceledfulfillment_completedfulfillment_deliveredfulfillment_dispatchedfulfillment_failedfulfillment_no_showfulfillment_readyfulfillment_shippedshipment_deliveredshipment_delivery_attemptedshipment_exceptionshipment_out_for_deliveryshipment_returnedshipment_shipped
expandarray of enumInclude related objects in the response. Supported expansions: order. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.
order
Response · 200
Fulfillment notifications for the fulfillment.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/fulfillment-notifications \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Fulfillment notifications for the fulfillment.
{
"data": [
{
"channel": "email",
"created_at": "2026-05-13T14:30:01Z",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"fulfillment_notification_id": "fnt_01KEZF7C00HWEBZCXSM9QCE5AW",
"notification_type": "fulfillment_completed",
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"recipient_email": "buyer@example.com",
"sent_at": "2026-05-13T14:30:02Z",
"status": "sent",
"trigger_type": "fulfillment_status_updated",
"updated_at": "2026-05-13T14:30:02Z"
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6QQ17KH1CQKCH35CA8SN7"
}Get fulfillment notification#
/v1/fulfillment-notifications/{fulfillment_notification_id}Requires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Retrieves one fulfillment notification audit record by ID.
Path parameters
fulfillment_notification_idstringRequiredFlint fulfillment notification ID. Must be a valid ID with prefix fnt_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expandarray of enumInclude related objects in the response. Supported expansions: order. Expansion requires commerce.orders.read. Limits: at most 10 unique expand paths per request.
order
Response · 200
The fulfillment notification.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/fulfillment-notifications/fnt_01KEZF7C00QD91RXQH2E7H9K5E \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The fulfillment notification.
{
"data": {
"channel": "email",
"created_at": "2026-05-13T14:30:01Z",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"fulfillment_notification_id": "fnt_01KEZF7C00HWEBZCXSM9QCE5AW",
"notification_type": "fulfillment_completed",
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"recipient_email": "buyer@example.com",
"sent_at": "2026-05-13T14:30:02Z",
"status": "sent",
"trigger_type": "fulfillment_status_updated",
"updated_at": "2026-05-13T14:30:02Z"
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6QQ17KH1CQKCH35CA8SN7"
}List fulfillments#
/v1/fulfillmentsRequires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Returns a paginated list of fulfillments. scheduled_start_at uses the service scheduled start or the start of the pickup, local delivery, or shipment window. For scheduled_start_at and terminal_at, null values sort first ascending and last descending. Default order: created_at descending, then fulfillment_id descending.
Query parameters
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
expandarray of enumInclude related objects in the response. Supported expansions: order. Expansion requires commerce.orders.read. Limits: at most 10 unique expand paths per request.
order
order_idstringFilter by order ID.
customer_idstringExact match on customer_id.
external_reference_idstringExact-match filter on the caller-owned external reference ID.
idempotency_keystringFilter by the original Idempotency-Key, after trimming surrounding whitespace. Matching is exact and case-sensitive. Returns only resources created in your caller namespace, plus resources created before caller scoping under the original key. Returns current authorized resources, not the recorded response. A pending resource does not prove that the operation succeeded, and an empty list does not prove that it had no effect. A match can show `idempotency_key: null` when that request sent no key, Flint created the resource, the reader isn't the caller that created it (another app install, a buyer, or the merchant reading an app's or buyer's record), or the caller that created an older record is unknown.
querystringSearch across fulfillment_id and external_reference_id. Also matches an exact order number. 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 ful_01.
statusarray of enumFilter by exact fulfillment status. Values within this filter are ORed; combined with other filters using AND. 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.
pendingon_holdin_progressreadycompletedcanceledfailedscheduledacceptedpreparingpickedpackeddispatchedno_show
typearray of enumFilter by fulfillment 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.
shipmentpickuplocal_deliverydigitalservicehandover
location_idstringFilter by assigned Location ID.
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
updated_afterstringInclusive lower bound on updated_at.
updated_beforestringExclusive upper bound on updated_at.
sort_byenumField to sort by. Defaults to created_at; ties are broken by fulfillment_id. due_at compares scheduled_start_at, the booked service start or pickup, delivery, or shipment window start, with nulls last ascending and first descending. scheduled_start_at and terminal_at put nulls first ascending and last descending. Ties use fulfillment_id in the same direction.
created_atscheduled_start_atterminal_atdue_at
sort_directionenumSort direction. Defaults to desc.
ascdesc
Response · 200
Fulfillments for the order.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/fulfillments \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Fulfillments for the order.
{
"data": [
{
"completed_at": "2026-05-13T14:30:00Z",
"created_at": "2026-05-13T09:45:00Z",
"delivery_choice_group_id": null,
"delivery_execution_leg_id": null,
"delivery_method_id": null,
"delivery_selection_id": null,
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"idempotency_key": null,
"line_items": [
{
"bundle_component_id": null,
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"quantity": 1
}
],
"metadata": {
"source": "dispatch"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"order_number": "1001",
"scheduled_start_at": "2026-05-13T09:00:00Z",
"shipment_details": {
"shipped_at": "2026-05-13T10:00:00Z",
"timezone": "America/Toronto",
"window_end_at": "2026-05-13T11:00:00Z",
"window_start_at": "2026-05-13T09:00:00Z"
},
"status": "completed",
"supported_actions": [],
"type": "shipment",
"updated_at": "2026-05-13T14:30:00Z",
"version": 4
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6KPFD8F8VKZKQ4JWZQWCA"
}Create fulfillment#
/v1/fulfillmentsKey requiredRequires scope commerce.orders.write
Rate limit: write
Creates a fulfillment for the specified quantities on a paid order. Idempotency-Key is required for every request because an inline shipped package can consume inventory. Save the key before sending and retry the same key and body after a lost response. GET /v1/fulfillments supports order_id and external_reference_id filters, but not idempotency_key; an empty list does not prove creation failed. If replay cannot recover the result, contact support with the original key and request ID instead of creating another fulfillment. A line that does not require fulfillment returns 400 INVALID_REQUEST with detail code NOT_ALLOWED at line_items[i].order_line_item_id; an unknown line ID returns 404 RESOURCE_NOT_FOUND. Use this when you manage fulfillment outside checkout; checkout creates fulfillments for the buyer's delivery selections. While Flint is creating those fulfillments, requests for their quantities return OPERATION_IN_PROGRESS with reason delivery_selection_materializing. Retrieve the order and use its fulfillments. Fails with `ACTION_NOT_ALLOWED` and reason `status_not_reached` when the order is not paid. See the [fulfillment guide](/docs/guides/fulfillment).
Request body
Send exactly one of these
Provide at most one fulfillment details object: pickup_details, local_delivery_details, digital_details, or service_details. Shipment execution details belong to shipments and packages.
customer_idstringCustomer receiving this fulfillment, when one is set.
device_idstringDevice used for this fulfillment. It must be active. When location_id is also set, the device must belong to that Location.
external_reference_idstringCaller-owned identifier for this resource in an external system.
line_itemsarray of objectRequiredOrder line items, with the quantity of each, that this fulfillment covers.
location_idstringMerchant location responsible for this fulfillment.
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.
order_idstringRequiredPaid order whose quantities this fulfillment delivers.
recipientobjectWho receives the fulfillment.
shipmentone ofCreates an outbound shipment and packages atomically with a shipment fulfillment. single_package assigns every submitted line quantity to package; itemized requires explicit items in each of 1 to 20 packages. Set a package's status to shipped to report handoff in the same call.
typeenumRequiredThe kind of fulfillment.
shipment
Provide at most one fulfillment details object: pickup_details, local_delivery_details, digital_details, or service_details. Shipment execution details belong to shipments and packages.
customer_idstringCustomer receiving this fulfillment, when one is set.
device_idstringDevice used for this fulfillment. It must be active. When location_id is also set, the device must belong to that Location.
external_reference_idstringCaller-owned identifier for this resource in an external system.
line_itemsarray of objectRequiredOrder line items, with the quantity of each, that this fulfillment covers.
location_idstringMerchant location responsible for this fulfillment.
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.
order_idstringRequiredPaid order whose quantities this fulfillment delivers.
pickup_detailsobjectDetails of a `pickup` fulfillment.
recipientobjectWho receives the fulfillment.
typeenumRequiredThe kind of fulfillment.
pickup
Provide at most one fulfillment details object: pickup_details, local_delivery_details, digital_details, or service_details. Shipment execution details belong to shipments and packages.
customer_idstringCustomer receiving this fulfillment, when one is set.
device_idstringDevice used for this fulfillment. It must be active. When location_id is also set, the device must belong to that Location.
external_reference_idstringCaller-owned identifier for this resource in an external system.
line_itemsarray of objectRequiredOrder line items, with the quantity of each, that this fulfillment covers.
local_delivery_detailsobjectDetails of a `local_delivery` fulfillment, such as the courier's tracking link.
location_idstringMerchant location responsible for this fulfillment.
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.
order_idstringRequiredPaid order whose quantities this fulfillment delivers.
recipientobjectWho receives the fulfillment.
typeenumRequiredThe kind of fulfillment.
local_delivery
Provide at most one fulfillment details object: pickup_details, local_delivery_details, digital_details, or service_details. Shipment execution details belong to shipments and packages.
customer_idstringCustomer receiving this fulfillment, when one is set.
device_idstringDevice used for this fulfillment. It must be active. When location_id is also set, the device must belong to that Location.
digital_detailsobjectDetails of a `digital` fulfillment, such as the download link.
external_reference_idstringCaller-owned identifier for this resource in an external system.
line_itemsarray of objectRequiredOrder line items, with the quantity of each, that this fulfillment covers.
location_idstringMerchant location responsible for this fulfillment.
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.
order_idstringRequiredPaid order whose quantities this fulfillment delivers.
recipientobjectWho receives the fulfillment.
typeenumRequiredThe kind of fulfillment.
digital
Provide at most one fulfillment details object: pickup_details, local_delivery_details, digital_details, or service_details. Shipment execution details belong to shipments and packages.
customer_idstringCustomer receiving this fulfillment, when one is set.
device_idstringDevice used for this fulfillment. It must be active. When location_id is also set, the device must belong to that Location.
external_reference_idstringCaller-owned identifier for this resource in an external system.
line_itemsarray of objectRequiredOrder line items, with the quantity of each, that this fulfillment covers.
location_idstringMerchant location responsible for this fulfillment.
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.
order_idstringRequiredPaid order whose quantities this fulfillment delivers.
recipientobjectWho receives the fulfillment.
service_detailsobjectDetails of a `service` fulfillment.
typeenumRequiredThe kind of fulfillment.
service
Response · 201
The created fulfillment. Includes the created shipment and package when shipment input is provided.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/fulfillments \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"line_items": [
{
"bundle_component_id": null,
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"quantity": 1
}
],
"metadata": {
"source": "dispatch"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"shipment": {
"package": {
"carrier": "ups",
"status": "created",
"tracking_number": "1Z999AA10123456784"
},
"packaging": "single_package"
},
"type": "shipment"
}'Get fulfillment#
/v1/fulfillments/{fulfillment_id}Requires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Retrieves a single fulfillment by ID.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expandarray of enumInclude related objects in the response. Supported expansions: order, packages, shipments. Expansion requires commerce.orders.read. Limits: at most 10 unique expand paths per request. To-many expansions are capped at 20 related objects per path.
orderpackagesshipments
curl https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The requested fulfillment.
{
"data": {
"completed_at": "2026-05-13T14:30:00Z",
"created_at": "2026-05-13T09:45:00Z",
"delivery_choice_group_id": null,
"delivery_execution_leg_id": null,
"delivery_method_id": null,
"delivery_selection_id": null,
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"idempotency_key": null,
"line_items": [
{
"bundle_component_id": null,
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
"quantity": 1
}
],
"metadata": {
"source": "dispatch"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"order_number": "1001",
"scheduled_start_at": "2026-05-13T09:00:00Z",
"shipment_details": {
"shipped_at": "2026-05-13T10:00:00Z",
"timezone": "America/Toronto",
"window_end_at": "2026-05-13T11:00:00Z",
"window_start_at": "2026-05-13T09:00:00Z"
},
"status": "completed",
"supported_actions": [],
"type": "shipment",
"updated_at": "2026-05-13T14:30:00Z",
"version": 4
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6TE63VRVPCMCMA65Y34ER"
}Update fulfillment#
/v1/fulfillments/{fulfillment_id}IdempotentRequires scope commerce.orders.write
Rate limit: write
Updates mutable fulfillment fields and fulfillment-specific details. Before handoff, changing location_id moves committed stock to the new Location. If the Location has insufficient available stock, the update returns INVENTORY_INSUFFICIENT. expected_version is optional and rejects a stale resource version when supplied.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
completed_atstring or nullCompletion evidence timestamp. Use only to correct completion evidence on an already completed fulfillment; complete pending fulfillments with POST /v1/fulfillments/{fulfillment_id}/complete. Send null to clear it.
customer_idstring or nullSend null to clear it.
device_idstring or nullDevice used for this fulfillment. It must be active. When location_id is also set, the device must belong to that Location. Send null to clear it.
digital_detailsobject or nullDetails of a `digital` fulfillment, such as the download link.
expected_versionintegerOptional resource version last read by the caller.
external_reference_idstring or nullCaller-owned identifier for this resource in an external system. Send null to clear it.
local_delivery_detailsobject or nullDetails of a `local_delivery` fulfillment, such as the courier's tracking link.
location_idstring or nullSend 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.
pickup_detailsobject or nullDetails of a `pickup` fulfillment.
recipientobject or nullWho receives the fulfillment.
service_detailsobject or nullDetails of a `service` fulfillment.
curl -X PATCH https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T \
-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": 3,
"location_id": "loc_01KEZF7C00G0VBJJ8VMFCQ5YVG",
"metadata": {
"stage": "ready"
}
}'Accept fulfillment#
/v1/fulfillments/{fulfillment_id}/acceptIdempotentRequires scope commerce.orders.write
Rate limit: write
Accepts pending fulfillment work so preparation can begin. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/accept \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'Cancel fulfillment#
/v1/fulfillments/{fulfillment_id}/cancelIdempotentRequires scope commerce.orders.write
Rate limit: write
Cancels fulfillment work that has not completed. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/cancel \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"expected_version": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'Complete fulfillment#
/v1/fulfillments/{fulfillment_id}/completeIdempotentRequires scope commerce.orders.write
Rate limit: write
Completes the fulfillment and records its completion time. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/complete \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'Dispatch fulfillment#
/v1/fulfillments/{fulfillment_id}/dispatchIdempotentRequires scope commerce.orders.write
Rate limit: write
Records that a shipment or local delivery fulfillment has left for its destination. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/dispatch \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'Fail fulfillment#
/v1/fulfillments/{fulfillment_id}/failIdempotentRequires scope commerce.orders.write
Rate limit: write
Records fulfillment failure and explicitly releases or preserves the allocated quantities. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
release_quantitybooleanRequiredWhether the failed fulfillment releases its quantities for another fulfillment. false preserves the allocation.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/fail \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z",
"release_quantity": false
}'Hold fulfillment#
/v1/fulfillments/{fulfillment_id}/holdIdempotentRequires scope commerce.orders.write
Rate limit: write
Pauses fulfillment work with a required merchant hold reason. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reasonenumRequiredWhy fulfillment work is paused or the service appointment was missed.
inventory_issueaddress_issuecustomer_requestprovider_issuescheduling_issuefraud_reviewother
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/hold \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z",
"reason": "inventory_issue"
}'Mark fulfillment no show#
/v1/fulfillments/{fulfillment_id}/mark-no-showIdempotentRequires scope commerce.orders.write
Rate limit: write
Records a missed service appointment with a required no-show reason. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reasonenumRequiredWhy fulfillment work is paused or the service appointment was missed.
customer_no_showprovider_no_showlocation_unavailablescheduling_errorother
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/mark-no-show \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z",
"reason": "customer_no_show"
}'Mark fulfillment packed#
/v1/fulfillments/{fulfillment_id}/mark-packedIdempotentRequires scope commerce.orders.write
Rate limit: write
Records that the items for a shipment fulfillment have been packed. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/mark-packed \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'Mark fulfillment picked#
/v1/fulfillments/{fulfillment_id}/mark-pickedIdempotentRequires scope commerce.orders.write
Rate limit: write
Records that the items for a shipment fulfillment have been picked. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/mark-picked \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'Mark fulfillment preparing#
/v1/fulfillments/{fulfillment_id}/mark-preparingIdempotentRequires scope commerce.orders.write
Rate limit: write
Records that preparation of a pickup or delivery fulfillment has begun. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/mark-preparing \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'Mark fulfillment ready#
/v1/fulfillments/{fulfillment_id}/mark-readyIdempotentRequires scope commerce.orders.write
Rate limit: write
Records that a pickup is ready for collection or a delivery is ready for dispatch. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/mark-ready \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'Release fulfillment hold#
/v1/fulfillments/{fulfillment_id}/release-holdIdempotentRequires scope commerce.orders.write
Rate limit: write
Releases a merchant hold and restores the previous fulfillment status. An active payment hold must lift first. Schedules and progress timestamps are preserved and no buyer notification is sent. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/release-hold \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'Schedule fulfillment#
/v1/fulfillments/{fulfillment_id}/scheduleIdempotentRequires scope commerce.orders.write
Rate limit: write
Sets the start and end of a service fulfillment's appointment window. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
scheduled_end_atstringRequiredEnd of the service appointment window, after scheduled_start_at, as an RFC 3339 timestamp.
scheduled_start_atstringRequiredStart of the service appointment window, as an RFC 3339 timestamp.
timezonestringIANA timezone of the service appointment.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/schedule \
-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": 4,
"occurred_at": "2026-05-13T11:00:00Z",
"scheduled_end_at": "2026-05-14T12:00:00Z",
"scheduled_start_at": "2026-05-14T11:00:00Z",
"timezone": "America/New_York"
}'Start fulfillment#
/v1/fulfillments/{fulfillment_id}/startIdempotentRequires scope commerce.orders.write
Rate limit: write
Starts fulfillment work. Read supported_actions for actions available now. occurred_at records when the action occurred; on complete it also records completion evidence. expected_version optionally rejects a stale fulfillment version. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
fulfillment_idstringRequiredFlint fulfillment ID. Must be a valid ID with prefix ful_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/fulfillments/ful_01KEZF7C00F24WVSTTWR1FQX5T/start \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"expected_version": 4,
"occurred_at": "2026-05-13T11:00:00Z"
}'List packages#
/v1/packagesRequires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Lists package records, newest created first. Default order: created_at descending, then package_id descending.
Query parameters
shipment_idstringOptional shipment ID filter.
fulfillment_idstringOptional fulfillment ID filter.
order_idstringOptional order ID filter.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
external_systemstringFilter by external system identifier.
external_reference_idstringExact match on the package's `external_reference_id`.
querystringSearch across package ID, external reference ID, and tracking number. 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 pkg_01.
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
statusarray of enumFilter by package status. Values within this filter are combined with OR. 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.
createdpackedshippedin_transitout_for_deliverydelivereddelivery_attemptedexceptionreturnedvoided
tracking_numberstringByte-sensitive full tracking-number match. Whitespace and commas are literal; combine with carrier to identify a carrier-specific tracking number.
carrierstringByte-sensitive full carrier match. Whitespace and commas are literal.
updated_afterstringInclusive lower bound on updated_at.
updated_beforestringExclusive upper bound on updated_at.
expandarray of enumInclude related objects in the response. Supported expansions: order. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.
order
Response · 200
Packages for the shipment.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/packages \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Packages for the shipment.
{
"data": [
{
"carrier": "ups",
"created_at": "2026-05-13T16:01:00Z",
"dimensions": {
"height": 4,
"length": 8,
"unit": "inch",
"width": 6
},
"expected_delivery_at": "2026-05-15T18:00:00Z",
"external_reference_id": "pkg_789",
"external_system": "merchant_wms",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"metadata": {
"box": "small"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"package_id": "pkg_01KEZF7C008VJBE6BT0CWZT296",
"service_code": "ground",
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"status": "created",
"supported_actions": [
"mark_packed",
"mark_shipped",
"mark_in_transit",
"mark_out_for_delivery",
"mark_delivered",
"mark_delivery_attempted",
"mark_exception"
],
"tracking_number": "1Z999AA10123456784",
"tracking_url": "https://track.example.com/1Z999AA10123456784",
"updated_at": "2026-05-13T16:01:00Z",
"version": 1,
"weight": {
"unit": "pound",
"value": 1.2
}
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6TTJN8X1Y8DSWRR4RMJF9"
}Create package#
/v1/packagesIdempotentRequires scope commerce.orders.write
Rate limit: write
Creates a package record under a shipment. For an outbound package created with status shipped, send at least one item or set pack_fulfillment_items to true. Change package status after creation through its lifecycle action routes. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Request body
Send exactly one of these
Creates one package belonging to shipment_id. Inline packages omit shipment_id because their enclosing create supplies the shipment.
carrierstringCarrier that handles the package.
dimensionsobjectDimensions of the package.
expected_delivery_atstring or nullWhen the carrier or merchant expects this package to arrive. Past dates are allowed. Send null to clear it; omit to leave it unchanged on updates and transitions.
expected_fulfillment_versionintegerOptional version of the owning fulfillment. If the version changed, Flint refuses the request before creating any records.
external_reference_idstringCaller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries.
external_systemstringName of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries.
itemsarray of objectIndependent package-item collection. Required when status is shipped unless pack_fulfillment_items is true. Inline creation uses the child-create shape and commits atomically; edit items through the package item routes after creation. Each order line and bundle component pair may appear once.
label_urlstringHTTPS shipping-label URL supplied by your integration. Non-Flint URLs require external_system for provenance. Flint does not host the label file.
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.
pack_fulfillment_itemsenumPut every item in the fulfillment into this outbound package. Use with status shipped and a single package. Omit items.
true
return_line_itemsarray of objectRequired for a package on a return shipment: allocates quantities from the shipment's return_line_items to this parcel. Rejected on outbound shipments.
service_codestringCarrier's code for the shipping service used.
shipment_idstringRequiredShipment that owns this package.
statusenumRequiredOutbound packages can start as created or shipped. Return packages must start as created, omit items, and include return_line_items. Use mark_shipped after the buyer hands over the return package.
created
status_reasonstringAdditional explanation of the package's starting status.
tracking_numberstringCarrier tracking number for the package.
tracking_urlstringAbsolute HTTPS carrier tracking URL. Embedded URL credentials are rejected.
weightobjectWeight of the package.
Creates one package belonging to shipment_id. Inline packages omit shipment_id because their enclosing create supplies the shipment.
buyer_notification_behaviorenumControls buyer email handling. Omit or use send to send when recipient, template, and deduplication rules allow it. Use suppress when another system owns buyer messaging.
sendsuppress
carrierstringCarrier that handles the package.
dimensionsobjectDimensions of the package.
expected_delivery_atstring or nullWhen the carrier or merchant expects this package to arrive. Past dates are allowed. Send null to clear it; omit to leave it unchanged on updates and transitions.
expected_fulfillment_versionintegerOptional version of the owning fulfillment. If the version changed, Flint refuses the request before creating any records.
external_reference_idstringCaller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries.
external_systemstringName of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries.
itemsarray of objectIndependent package-item collection. Required when status is shipped unless pack_fulfillment_items is true. Inline creation uses the child-create shape and commits atomically; edit items through the package item routes after creation. Each order line and bundle component pair may appear once.
label_urlstringHTTPS shipping-label URL supplied by your integration. Non-Flint URLs require external_system for provenance. Flint does not host the label file.
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.
pack_fulfillment_itemsenumPut every item in the fulfillment into this outbound package. Use with status shipped and a single package. Omit items.
true
service_codestringCarrier's code for the shipping service used.
shipment_idstringRequiredShipment that owns this package.
shipped_atstringPackage handoff time. Defaults to request time. Only allowed with status shipped.
statusenumRequiredOutbound packages can start as created or shipped. Return packages must start as created, omit items, and include return_line_items. Use mark_shipped after the buyer hands over the return package.
shipped
status_reasonstringAdditional explanation of the package's starting status.
tracking_numberstringCarrier tracking number for the package.
tracking_urlstringAbsolute HTTPS carrier tracking URL. Embedded URL credentials are rejected.
weightobjectWeight of the package.
Response · 201
The newly created package.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/packages \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"carrier": "ups",
"dimensions": {
"height": 4,
"length": 8,
"unit": "inch",
"width": 6
},
"expected_delivery_at": "2026-05-15T18:00:00Z",
"external_reference_id": "pkg_789",
"external_system": "merchant_wms",
"items": [
{
"order_line_item_id": "li_01KEZF7C0003GP5Y88KW1687AP",
"quantity": 1
}
],
"metadata": {
"box": "small"
},
"service_code": "ground",
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"status": "shipped",
"tracking_number": "1Z999AA10123456784",
"tracking_url": "https://track.example.com/1Z999AA10123456784",
"weight": {
"unit": "pound",
"value": 1.2
}
}'Get package#
/v1/packages/{package_id}Requires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Retrieves one package by ID.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expandarray of enumInclude related objects in the response. Supported expansions: order. Expansion requires commerce.orders.read. Limits: at most 10 unique expand paths per request.
order
curl https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The package.
{
"data": {
"carrier": "ups",
"created_at": "2026-05-13T16:01:00Z",
"dimensions": {
"height": 4,
"length": 8,
"unit": "inch",
"width": 6
},
"expected_delivery_at": "2026-05-15T18:00:00Z",
"external_reference_id": "pkg_789",
"external_system": "merchant_wms",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"metadata": {
"box": "small"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"package_id": "pkg_01KEZF7C008VJBE6BT0CWZT296",
"service_code": "ground",
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"status": "created",
"supported_actions": [
"mark_packed",
"mark_shipped",
"mark_in_transit",
"mark_out_for_delivery",
"mark_delivered",
"mark_delivery_attempted",
"mark_exception"
],
"tracking_number": "1Z999AA10123456784",
"tracking_url": "https://track.example.com/1Z999AA10123456784",
"updated_at": "2026-05-13T16:01:00Z",
"version": 1,
"weight": {
"unit": "pound",
"value": 1.2
}
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6TTJN8X1Y8DSWRR4RMJF9"
}Update package#
/v1/packages/{package_id}IdempotentRequires scope commerce.orders.write
Rate limit: write
Updates non-lifecycle package fields such as carrier, tracking, expected_delivery_at, label access, measurements, metadata, and caller-owned external references. Descriptive fields can be corrected until the package is voided, regardless of shipment or fulfillment status. Corrections never email the buyer. Package status cannot be patched directly. expected_version is optional and rejects a stale resource version when supplied. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
carrierstring or nullSend null to clear it.
dimensionsobject or nullDimensions of the package.
expected_delivery_atstring or nullWhen the carrier or merchant expects this package to arrive. Past dates are allowed. Send null to clear it; omit to leave it unchanged on updates and transitions.
expected_versionintegerOptional resource version last read by the caller.
external_reference_idstring or nullCaller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries. Send null to clear it.
external_systemstring or nullName of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries. Send null to clear it.
label_urlstring or nullHTTPS shipping-label URL supplied by your integration. Non-Flint URLs require external_system for provenance. Flint does not host the label file. 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.
service_codestring or nullSend null to clear it.
status_reasonstring or nullSend null to clear it.
tracking_numberstring or nullSend null to clear it.
tracking_urlstring or nullAbsolute HTTPS carrier tracking URL. Embedded URL credentials are rejected. Send null to clear it.
weightobject or nullWeight of the package.
curl -X PATCH https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R \
-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_delivery_at": "2026-05-16T18:00:00Z",
"expected_version": 1,
"metadata": {
"box": "small",
"packed_by": "warehouse-a"
},
"tracking_number": "1Z999AA10987654321",
"tracking_url": "https://track.example.com/1Z999AA10987654321"
}'List package items#
/v1/packages/{package_id}/itemsRequires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Lists order line quantities contained in packages. Default order: created_at descending, then package_item_id descending.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
expandarray of enumInclude related objects in the response. Supported expansions: order. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.
order
Response · 200
Package items for the package.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/items \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Package items for the package.
{
"data": [
{
"bundle_component_id": null,
"created_at": "2026-05-13T16:02:00Z",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"metadata": {
"slot": "A"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"order_line_item_id": "li_01KEZF7C0003GP5Y88KW1687AP",
"package_id": "pkg_01KEZF7C008VJBE6BT0CWZT296",
"package_item_id": "pki_01KEZF7C00168FF75F1MVRNYNK",
"quantity": 1,
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"updated_at": "2026-05-13T16:02:00Z",
"version": 1
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6Q7ZRQ5ZRQV8TKQ31W7HQ"
}Create package item#
/v1/packages/{package_id}/itemsIdempotentRequires scope commerce.orders.write
Rate limit: write
Adds an order line quantity to a package. Total active package item quantities cannot exceed the parent fulfillment line-item quantity.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
bundle_component_idstring or nullBundle component to pack, from the order line's bundle_components. Required for every bundle line, including a line with only one component in the fulfillment. Send null for a non-bundle line.
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.
order_line_item_idstringRequiredOrder line whose quantity is allocated.
quantityintegerRequiredWhole-number quantity in component units for a bundle component, or line units otherwise; fractional quantities are not supported.
Response · 201
The newly created package item.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/items \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"metadata": {
"slot": "A"
},
"order_line_item_id": "li_01KEZF7C0003GP5Y88KW1687AP",
"quantity": 1
}'Get package item#
/v1/packages/{package_id}/items/{package_item_id}Requires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Retrieves one package item by ID.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
package_item_idstringRequiredFlint package item ID. Must be a valid ID with prefix pki_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expandarray of enumInclude related objects in the response. Supported expansions: order. Expansion requires commerce.orders.read. Limits: at most 10 unique expand paths per request.
order
curl https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/items/pki_01KEZF7C00CEFTYV5RD7XVYQ7B \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The package item.
{
"data": {
"bundle_component_id": null,
"created_at": "2026-05-13T16:02:00Z",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"metadata": {
"slot": "A"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"order_line_item_id": "li_01KEZF7C0003GP5Y88KW1687AP",
"package_id": "pkg_01KEZF7C008VJBE6BT0CWZT296",
"package_item_id": "pki_01KEZF7C00168FF75F1MVRNYNK",
"quantity": 1,
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"updated_at": "2026-05-13T16:02:00Z",
"version": 1
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6Q7ZRQ5ZRQV8TKQ31W7HQ"
}Update package item#
/v1/packages/{package_id}/items/{package_item_id}IdempotentRequires scope commerce.orders.write
Rate limit: write
Updates a package item quantity or metadata while the package is still mutable.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
package_item_idstringRequiredFlint package item ID. Must be a valid ID with prefix pki_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
bundle_component_idstring or nullBundle component to pack on this order line in the fulfillment. Every PATCH of a bundle line requires its component ID, including when the fulfillment has only one component for the line. Send null for a non-bundle line.
expected_versionintegerVersion last read from the resource returned in `data` (the primary resource for a result object). The write fails with `VERSION_CONFLICT` if it has changed. Requiredness depends on the operation and fields being changed.
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.
quantityintegerWhole-number quantity; fractional quantities are not supported.
curl -X PATCH https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/items/pki_01KEZF7C00CEFTYV5RD7XVYQ7B \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"metadata": {
"slot": "B"
},
"quantity": 1
}'Delete package item#
/v1/packages/{package_id}/items/{package_item_id}IdempotentRequires scope commerce.orders.write
Rate limit: write
Removes an order line quantity from a package while the package is still mutable.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
package_item_idstringRequiredFlint package item ID. Must be a valid ID with prefix pki_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expected_versionintegerOptional item version last read by the caller.
curl -X DELETE https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/items/pki_01KEZF7C00CEFTYV5RD7XVYQ7B \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Mark package delivered#
/v1/packages/{package_id}/mark-deliveredIdempotentRequires scope commerce.orders.write
Rate limit: write
Performs one action from the package's supported_actions. mark_shipped accepts carrier, service_code, tracking_number, and tracking_url; present fields replace tracking before the status change and shipped email in one transaction. Omitted tracking is unchanged and null is invalid. Other actions reject tracking fields. mark_shipped, mark_in_transit, and mark_out_for_delivery optionally set expected_delivery_at; send null to clear it. Delivery preserves the estimate as history. expected_version is optional and rejects a stale resource version when supplied. Recording carrier progress on a created or packed package requires contents. An empty package returns 409 ACTION_NOT_ALLOWED with reason package_empty. Add an item before retrying. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the carrier scan or package action occurred, as an RFC 3339 timestamp.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/mark-delivered \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "send",
"expected_version": 3
}'Mark package delivery attempted#
/v1/packages/{package_id}/mark-delivery-attemptedIdempotentRequires scope commerce.orders.write
Rate limit: write
Performs one action from the package's supported_actions. mark_shipped accepts carrier, service_code, tracking_number, and tracking_url; present fields replace tracking before the status change and shipped email in one transaction. Omitted tracking is unchanged and null is invalid. Other actions reject tracking fields. mark_shipped, mark_in_transit, and mark_out_for_delivery optionally set expected_delivery_at; send null to clear it. Delivery preserves the estimate as history. expected_version is optional and rejects a stale resource version when supplied. Recording carrier progress on a created or packed package requires contents. An empty package returns 409 ACTION_NOT_ALLOWED with reason package_empty. Add an item before retrying. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the carrier scan or package action occurred, as an RFC 3339 timestamp.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/mark-delivery-attempted \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "send",
"expected_version": 3
}'Mark package exception#
/v1/packages/{package_id}/mark-exceptionIdempotentRequires scope commerce.orders.write
Rate limit: write
Performs one action from the package's supported_actions. mark_shipped accepts carrier, service_code, tracking_number, and tracking_url; present fields replace tracking before the status change and shipped email in one transaction. Omitted tracking is unchanged and null is invalid. Other actions reject tracking fields. mark_shipped, mark_in_transit, and mark_out_for_delivery optionally set expected_delivery_at; send null to clear it. Delivery preserves the estimate as history. expected_version is optional and rejects a stale resource version when supplied. Recording carrier progress on a created or packed package requires contents. An empty package returns 409 ACTION_NOT_ALLOWED with reason package_empty. Add an item before retrying. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the carrier scan or package action occurred, as an RFC 3339 timestamp.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/mark-exception \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "send",
"expected_version": 3
}'Mark package in transit#
/v1/packages/{package_id}/mark-in-transitIdempotentRequires scope commerce.orders.write
Rate limit: write
Performs one action from the package's supported_actions. mark_shipped accepts carrier, service_code, tracking_number, and tracking_url; present fields replace tracking before the status change and shipped email in one transaction. Omitted tracking is unchanged and null is invalid. Other actions reject tracking fields. mark_shipped, mark_in_transit, and mark_out_for_delivery optionally set expected_delivery_at; send null to clear it. Delivery preserves the estimate as history. expected_version is optional and rejects a stale resource version when supplied. Recording carrier progress on a created or packed package requires contents. An empty package returns 409 ACTION_NOT_ALLOWED with reason package_empty. Add an item before retrying. Reroutes from out_for_delivery or delivery_attempted require occurred_at at or after the package's latest recorded status time. An older scan is refused before any write with 409 ACTION_NOT_ALLOWED, reason out_of_order, param occurred_at, current_status, and latest_status_occurred_at. Discard it or send an occurred_at at or after that time; equal timestamps are accepted. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_delivery_atstring or nullWhen the carrier or merchant expects this package to arrive. Past dates are allowed. Send null to clear it; omit to leave it unchanged on updates and transitions.
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the carrier scan or package action occurred, as an RFC 3339 timestamp.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/mark-in-transit \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "send",
"expected_version": 3
}'Mark package out for delivery#
/v1/packages/{package_id}/mark-out-for-deliveryIdempotentRequires scope commerce.orders.write
Rate limit: write
Performs one action from the package's supported_actions. mark_shipped accepts carrier, service_code, tracking_number, and tracking_url; present fields replace tracking before the status change and shipped email in one transaction. Omitted tracking is unchanged and null is invalid. Other actions reject tracking fields. mark_shipped, mark_in_transit, and mark_out_for_delivery optionally set expected_delivery_at; send null to clear it. Delivery preserves the estimate as history. expected_version is optional and rejects a stale resource version when supplied. Recording carrier progress on a created or packed package requires contents. An empty package returns 409 ACTION_NOT_ALLOWED with reason package_empty. Add an item before retrying. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_delivery_atstring or nullWhen the carrier or merchant expects this package to arrive. Past dates are allowed. Send null to clear it; omit to leave it unchanged on updates and transitions.
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the carrier scan or package action occurred, as an RFC 3339 timestamp.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/mark-out-for-delivery \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "send",
"expected_version": 3
}'Mark package packed#
/v1/packages/{package_id}/mark-packedIdempotentRequires scope commerce.orders.write
Rate limit: write
Performs one action from the package's supported_actions. mark_shipped accepts carrier, service_code, tracking_number, and tracking_url; present fields replace tracking before the status change and shipped email in one transaction. Omitted tracking is unchanged and null is invalid. Other actions reject tracking fields. mark_shipped, mark_in_transit, and mark_out_for_delivery optionally set expected_delivery_at; send null to clear it. Delivery preserves the estimate as history. expected_version is optional and rejects a stale resource version when supplied. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the carrier scan or package action occurred, as an RFC 3339 timestamp.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/mark-packed \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "send",
"expected_version": 3
}'Mark package returned#
/v1/packages/{package_id}/mark-returnedIdempotentRequires scope commerce.orders.write
Rate limit: write
Performs one action from the package's supported_actions. mark_shipped accepts carrier, service_code, tracking_number, and tracking_url; present fields replace tracking before the status change and shipped email in one transaction. Omitted tracking is unchanged and null is invalid. Other actions reject tracking fields. mark_shipped, mark_in_transit, and mark_out_for_delivery optionally set expected_delivery_at; send null to clear it. Delivery preserves the estimate as history. expected_version is optional and rejects a stale resource version when supplied. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the carrier scan or package action occurred, as an RFC 3339 timestamp.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/mark-returned \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "send",
"expected_version": 3
}'Mark package shipped#
/v1/packages/{package_id}/mark-shippedIdempotentRequires scope commerce.orders.write
Rate limit: write
Performs one action from the package's supported_actions. mark_shipped accepts carrier, service_code, tracking_number, and tracking_url; present fields replace tracking before the status change and shipped email in one transaction. Omitted tracking is unchanged and null is invalid. Other actions reject tracking fields. mark_shipped, mark_in_transit, and mark_out_for_delivery optionally set expected_delivery_at; send null to clear it. Delivery preserves the estimate as history. expected_version is optional and rejects a stale resource version when supplied. Recording carrier progress on a created or packed package requires contents. An empty package returns 409 ACTION_NOT_ALLOWED with reason package_empty. Add an item before retrying. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumWhether to send or suppress the buyer notification for this action.
sendsuppress
carrierstringCarrier handling this package.
expected_delivery_atstring or nullWhen the carrier or merchant expects this package to arrive. Past dates are allowed. Send null to clear it; omit to leave it unchanged on updates and transitions.
expected_versionintegerResource version the caller last read.
occurred_atstringWhen the carrier scan or package action occurred, as an RFC 3339 timestamp.
reason_messagestringYour internal note explaining this transition. Not included in buyer emails.
service_codestringCarrier service used for this package.
tracking_numberstringCarrier tracking number for this package.
tracking_urlstringAbsolute HTTPS carrier tracking URL. Embedded URL credentials are rejected.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/mark-shipped \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "send",
"expected_version": 3
}'Void package#
/v1/packages/{package_id}/voidIdempotentRequires scope commerce.orders.write
Rate limit: write
Voids a package before carrier handoff and appends a package timeline event. Voided package items no longer count against fulfillment package allocation capacity. expected_version is optional and rejects a stale resource version when supplied. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
package_idstringRequiredFlint package ID. Must be a valid ID with prefix pkg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumControls buyer email handling. Omit or use send to send when recipient, template, and deduplication rules allow it. Use suppress when another system owns buyer messaging.
sendsuppress
expected_versionintegerOptional resource version last read by the caller.
occurred_atstringVoid event timestamp.
reason_messagestringYour internal note explaining this action. Not included in buyer emails.
curl -X POST https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/void \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "suppress",
"expected_version": 1,
"occurred_at": "2026-05-13T16:09:00Z",
"reason_message": "Package was repacked before pickup."
}'List shipments#
/v1/shipmentsRequires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Lists shipment execution records, newest created first. Default order: created_at descending, then shipment_id descending.
Query parameters
order_idstringOptional order ID filter.
fulfillment_idstringOptional fulfillment ID filter.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.
external_systemstringFilter by external system identifier.
external_reference_idstringExact match on the shipment's `external_reference_id`.
querystringSearch across shipment ID 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 shp_01.
return_idstringFilter by linked Return ID.
handed_off_afterstringInclusive lower bound on handed_off_at.
handed_off_beforestringExclusive upper bound on handed_off_at.
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
statusarray of enumFilter by package-derived shipment status. Values within this filter are combined with OR. 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.
createdpackedshippedin_transitout_for_deliverydelivereddelivery_attemptedexceptionreturnedvoided
directionarray of enumFilter by shipment direction. Values within this filter are combined with OR. 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.
outboundreturn
updated_afterstringInclusive lower bound on updated_at.
updated_beforestringExclusive upper bound on updated_at.
expandarray of enumInclude related objects in the response. Supported expansions: order. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.
order
Response · 200
Shipments for the fulfillment.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl https://api.withflintpay.com/v1/shipments \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Shipments for the fulfillment.
{
"data": [
{
"created_at": "2026-05-13T15:59:00Z",
"direction": "outbound",
"external_reference_id": "ship_789",
"external_system": "merchant_wms",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"metadata": {
"warehouse": "east"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"package_count": 1,
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"shipped_at": "2026-05-13T16:10:00Z",
"status": "shipped",
"supported_actions": [],
"updated_at": "2026-05-13T16:10:01Z",
"version": 4
}
],
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6VN85VTKHTZ0WDGZ490A7"
}Create shipment#
/v1/shipmentsIdempotentRequires scope commerce.orders.write
Rate limit: write
Creates an outbound shipment for fulfillment_id or a return shipment for return_id. For outbound shipments, include 1 to 20 packages to create the parcels atomically and return their IDs. Set each package's status to shipped to report handoff in the same call. Return shipments cannot include packages.
Request body
Send exactly one of these
The `outbound` variant of `CreateShipmentRequest`.
directionenumRequiredWhether the shipment sends items to the buyer or returns items to the merchant.
outbound
expected_fulfillment_versionintegerOptional version of the owning fulfillment. If the version changed, Flint refuses the request before creating any records.
external_reference_idstringCaller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries.
external_systemstringName of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries.
fulfillment_idstringRequiredShipment fulfillment that owns an outbound shipment. Required when direction is outbound; forbidden when direction is return.
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.
packagesarray of one ofCreates packages atomically with an outbound shipment. Items are optional per package. Created packages are included in the response.
The `return` variant of `CreateShipmentRequest`.
directionenumRequiredWhether the shipment sends items to the buyer or returns items to the merchant.
return
expected_fulfillment_versionintegerOptional version of the owning fulfillment. If the version changed, Flint refuses the request before creating any records.
external_reference_idstringCaller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries.
external_systemstringName of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries.
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.
return_idstringRequiredReturn associated with this shipment, when its direction is return.
return_line_itemsarray of objectRequiredReturn lines and quantities the shipment carries.
Response · 201
The newly created shipment.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/shipments \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"direction": "outbound",
"external_reference_id": "ship_789",
"external_system": "merchant_wms",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"metadata": {
"warehouse": "east"
}
}'Get shipment#
/v1/shipments/{shipment_id}Requires scope commerce.orders.read or commerce.orders.write
Rate limit: read
Retrieves one shipment execution record by ID.
Path parameters
shipment_idstringRequiredFlint shipment ID. Must be a valid ID with prefix shp_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expandarray of enumInclude related objects in the response. Supported expansions: order, packages. Expansion requires commerce.orders.read. Limits: at most 10 unique expand paths per request. To-many expansions are capped at 20 related objects per path.
orderpackages
curl https://api.withflintpay.com/v1/shipments/shp_01KEZF7C00Q2AFXWXHMCDR3F68 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The shipment.
{
"data": {
"created_at": "2026-05-13T15:59:00Z",
"direction": "outbound",
"external_reference_id": "ship_789",
"external_system": "merchant_wms",
"fulfillment_id": "ful_01KEZF7C009TD0XN8YPHHHXQFR",
"metadata": {
"warehouse": "east"
},
"order_id": "ord_01KEZF7C006M16GC2D8HRRC30T",
"package_count": 1,
"shipment_id": "shp_01KEZF7C006DZPA7FGH42HTBY8",
"shipped_at": "2026-05-13T16:10:00Z",
"status": "shipped",
"supported_actions": [],
"updated_at": "2026-05-13T16:10:01Z",
"version": 4
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6VN85VTKHTZ0WDGZ490A7"
}Update shipment#
/v1/shipments/{shipment_id}IdempotentRequires scope commerce.orders.write
Rate limit: write
Updates shipment metadata and caller-owned external references. Shipment status is derived from package statuses and cannot be patched directly. expected_version is optional and rejects a stale resource version when supplied.
Path parameters
shipment_idstringRequiredFlint shipment ID. Must be a valid ID with prefix shp_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
expected_versionintegerOptional resource version last read by the caller.
external_reference_idstring or nullCaller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries. Send null to clear it.
external_systemstring or nullName of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries. 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.
curl -X PATCH https://api.withflintpay.com/v1/shipments/shp_01KEZF7C00Q2AFXWXHMCDR3F68 \
-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,
"metadata": {
"route": "A7",
"warehouse": "east"
}
}'Void shipment#
/v1/shipments/{shipment_id}/voidIdempotentRequires scope commerce.orders.write
Rate limit: write
Voids a shipment before carrier handoff and voids all child packages that have not shipped. The action appends timeline events for the shipment and affected packages. expected_version is optional and rejects a stale resource version when supplied. Read timeline events with GET /v1/fulfillment-events filtered by package_id, shipment_id, or fulfillment_id, and notifications with GET /v1/fulfillment-notifications filtered by fulfillment_event_id or fulfillment_id.
Path parameters
shipment_idstringRequiredFlint shipment ID. Must be a valid ID with prefix shp_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
buyer_notification_behaviorenumControls buyer email handling. Omit or use send to send when recipient, template, and deduplication rules allow it. Use suppress when another system owns buyer messaging.
sendsuppress
expected_versionintegerOptional resource version last read by the caller.
occurred_atstringVoid event timestamp.
reason_messagestringYour internal note explaining this action. Not included in buyer emails.
Response · 200
The voided shipment and all affected packages.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/shipments/shp_01KEZF7C00Q2AFXWXHMCDR3F68/void \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"buyer_notification_behavior": "suppress",
"expected_version": 2,
"occurred_at": "2026-05-13T16:08:00Z",
"reason_message": "Label canceled before carrier pickup."
}'Was this helpful?