Skip to content

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#

RecordID prefixWhat it is
Fulfillmentful_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.
Shipmentshp_One carrier leg of a shipment fulfillment, outbound to the buyer or return to you. Its status comes from its packages.
Packagepkg_One parcel in a shipment, with its tracking and carrier progress.
Package itempki_A quantity of one order line inside a package.
Fulfillment eventfev_One entry on the fulfillment's timeline: a status change, a tracking change, or a carrier scan.
Fulfillment notificationfnt_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_quantity in fulfillment_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_quantity minus its backordered_quantity. A request for more than that, but not more than unassigned_quantity, returns 409 INVENTORY_INSUFFICIENT with the units that can be fulfilled in details[0].available_quantity. A line's release_date and expected_ship_date don'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 type values it accepts.
  • The recipient defaults to the order. Without recipient, Flint copies the order's delivery_destination and buyer email. A recipient you send, or change later with PATCH, applies to that fulfillment only. A patch updates only the recipient fields you send. Sending address replaces the recipient's address. Send "recipient": null to clear the whole recipient.
  • Details match the type. Send at most one details object, for the fulfillment's own type. PATCH follows the same rule, and a null details field still counts as the one.

For a shipment fulfillment, shipment creates its outbound shipment and packages in the same call:

shipment.packagingSendWhat Flint creates
single_packageshipment.package, without itemsOne package holding every unit in the request's line_items
itemizedshipment.packages: 1 to 20 packages, each with non-empty itemsOne 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
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"
      }
    }
  }'
Response
{
  "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:

typeStatuses its actions reachStock leaves on hand at
shipmentaccepted, picked, packed, dispatched, completeddispatched, or completed if it skips dispatch
local_deliveryaccepted, preparing, dispatched, completeddispatched, or completed if it skips dispatch
pickupaccepted, preparing, ready, completedcompleted
digitalaccepted, completedcompleted
serviceaccepted, scheduled, in_progress, completed, no_showcompleted

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. schedule requires scheduled_start_at and scheduled_end_at. hold and mark_no_show require a reason from their own enum. fail requires release_quantity: true hands the quantity back to the line's unassigned_quantity for a replacement, and false keeps it with the failed fulfillment. Every action accepts occurred_at, a reason_message note, and expected_version.
  • Send expected_version. It must equal the fulfillment's version, 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: suppress skips it. See What the buyer receives.
  • occurred_at on complete sets completed_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_hold restores previous_status. It keeps the schedule and progress timestamps, never emails the buyer, and rejects buyer_notification_behavior.
  • Any other action that previous_status allows, except hold, 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#

ChangeAllowed
Package contents, new packages, and voidsOnly before handoff, while the shipment is created or packed
Package tracking, carrier, service, label, weight, dimensions, expected delivery time, status reason, external references, and metadataAny time until the package is voided, with PATCH /v1/packages/{package_id}, even after delivery
Shipment external references and metadataAny 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=packed lists boxes waiting for the carrier, and status=exception,delivery_attempted lists shipments that need attention.
  • A package from a carrier scan. carrier and tracking_number each match the whole stored value exactly, including case and spaces. Tracking numbers can repeat across carriers, so send both. For a partial match, use query.
  • Changes since a sync. updated_after returns records changed since your last read, and handed_off_after on 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_status as status and has no active_hold. The GET /v1/me/fulfillments status filter matches held work by that status and rejects on_hold.
  • Delivery selection links. The four delivery_* ID fields are omitted.
  • Private notes and courier IDs. outcome keeps outcome_type and reason but drops notes. Local delivery details drop the courier's service_area_id and external_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#

FieldOnRecords
scheduled_start_atFulfillmentThe 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_atFulfillmentThe first time the fulfillment reached that status
completed_atFulfillmentWhen 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_atFulfillmentWhen it became completed, canceled, failed, or no_show. Later edits don't change it, and it can differ from completed_at
handed_off_atShipmentWhen the leg left with the carrier, outbound or return. Set when its packages ship, and never changed afterward
shipped_at, delivered_atPackageWhen the carrier took the parcel and when it arrived
expected_delivery_atPackageYour 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_atFulfillment eventWhen the fact happened, and when Flint recorded it

Webhooks#

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 by webhook_event_id, and replace a stored record only when the snapshot's version is 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.updated arrives with a higher version, page through GET /v1/packages/{package_id}/items to 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.created records the moments Flint emails for.

The event catalog has every payload, and Staying in sync explains which events a call sends.

Errors#

  • HTTP 409
    The current state refuses the request; branch on details[0].reason. unsupported_state: the action isn't in supported_actions, or the change comes after handoff, and details[0] carries the current version, status, and supported_actions. status_not_reached: the order isn't paid when creating or editing fulfillment data, or the fulfillment needs accept first before its data can change. An action sent before accept or before payment is unsupported_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 this completed_at.
  • HTTP 409
    The fulfillment claims units that are still on backorder. details[0].available_quantity is the quantity that can be fulfilled now.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    expected_version is stale, or another change landed while the request ran. details[0].current_resource is the current record. Read it, decide again, and send a new request with a new Idempotency-Key.
  • HTTP 409
    A quantity is more than what is left: a fulfillment asks for more than the line's unassigned_quantity, or package items exceed the fulfillment's quantity. param names the quantity.
  • HTTP 409
    OPERATION_IN_PROGRESSRetry the same request
    With reason delivery_selection_materializing, Flint is still creating the fulfillments for the buyer's delivery selection. Wait for fulfillment.created and use those.
  • HTTP 409
    A shipment that isn't voided still holds the quantity, so fail with release_quantity: true can't run. Void the shipment in details[0].blocking_resources first.
  • HTTP 409
    An external_event_id was reused with different details. Send a new ID for a new event.
  • HTTP 404
    The record doesn't exist, or a package item names an order_line_item_id the fulfillment doesn't cover.
  • HTTP 400
    A field is missing, invalid, or not accepted here; param names it. Common causes: a field another action owns, null tracking on mark_shipped, a status sent as an event_type, or a package or item outside the packaging rules.
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_holdobject

Current hold details. Present exactly when status is on_hold.

Not returned with a checkout credential or a customer session

chargesarray of object

Order charges associated with this fulfillment.

completed_atstring

When 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_atstringRequired

When the fulfillment was created, in RFC3339 format.

customer_idstring

Customer receiving this fulfillment, when one is set.

delivery_choice_group_idstring or null

Delivery 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 null

Execution 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 null

Delivery 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 null

Delivery 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_idstring

Device associated with the fulfillment, when one is recorded.

Not returned with a checkout credential or a customer session

digital_detailsobject

Delivery URL and completion time for a digital fulfillment.

dispatched_atstring

First time this fulfillment reached dispatched.

external_reference_idstring

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

Not returned with a checkout credential or a customer session

fulfillment_idstringRequired

Stable identifier of the fulfillment.

idempotency_keystring or nullRequired

The 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 objectRequired

Order lines and quantities allocated to this fulfillment.

local_delivery_detailsobject

Courier, delivery window, and handoff details for a local delivery fulfillment.

location_idstring

Merchant location responsible for this fulfillment.

Not returned with a checkout credential or a customer session

metadatamap of string

Caller-owned key-value metadata associated with the fulfillment.

Not returned with a checkout credential or a customer session

orderobject or null

Order 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_idstringRequired

Order whose items this fulfillment delivers.

order_numberstring

Human-readable number of the order this fulfillment belongs to. Omitted when the order has no number.

outcomeobject

Terminal outcome details. Present exactly when status is no_show.

packagesarray of object

Packages associated with this fulfillment.

packed_atstring

First time this fulfillment reached packed.

picked_atstring

First time this fulfillment reached picked.

pickup_detailsobject

Pickup window, pickup mode, and handoff times for a pickup fulfillment.

recipientobject

Omitted for a checkout session credential that doesn't act for the customer the buyer verified.

scheduled_start_atstring or nullRequired

Derived 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_detailsobject

Schedule and completion details for a service fulfillment.

shipment_detailsobject

Shipping schedule and ship time for a shipment fulfillment. Present only on shipment fulfillments with at least one value.

shipmentsarray of object

Shipments associated with this fulfillment.

statusenumRequired

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

  • pending
  • accepted
  • on_hold
  • in_progress
  • ready
  • completed
  • canceled
  • failed
  • scheduled
  • preparing
  • picked
  • packed
  • dispatched
  • no_show
supported_actionsarray of enum

Read-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

  • accept
  • cancel
  • complete
  • dispatch
  • fail
  • hold
  • mark_no_show
  • mark_packed
  • mark_picked
  • mark_preparing
  • mark_ready
  • release_hold
  • schedule
  • start
terminal_atstring

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

typeenumRequired

How the items are delivered: shipment, pickup, local delivery, digital delivery, or service.

  • shipment
  • pickup
  • local_delivery
  • digital
  • service
  • handover
updated_atstringRequired

When the fulfillment was last updated, in RFC3339 format.

versionintegerRequired

Monotonic fulfillment version for expected_version checks.

JSON
{
  "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_behaviorenumRequired

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

  • send
  • suppress
created_atstringRequired

Timeline entry creation timestamp.

current_statusenum

Subject status after the recorded transition.

  • pending
  • on_hold
  • in_progress
  • ready
  • completed
  • canceled
  • failed
  • scheduled
  • accepted
  • preparing
  • picked
  • packed
  • dispatched
  • no_show
  • created
  • shipped
  • in_transit
  • out_for_delivery
  • delivered
  • delivery_attempted
  • exception
  • returned
  • voided
custom_detailsmap of string

Free-form details attached to the event.

event_typeenumRequired

The delivery or fulfillment event recorded by this entry.

  • carrier_scan
  • status_changed
  • shipped
  • in_transit
  • out_for_delivery
  • delivered
  • delivery_attempted
  • tracking_updated
  • exception
  • returned
  • custom
external_event_idstring

Event identifier assigned by that integration.

external_statusstring

Status supplied by that integration before mapping to Flint's public status.

external_systemstring

Integration that supplied the event.

fulfillment_event_idstringRequired

Unique identifier for this fulfillment event, prefixed `fev_`.

fulfillment_idstringRequired

ID of the fulfillment the event belongs to.

location_descriptionstring

Where the event happened, such as `Louisville, KY`.

messagestring

Human-readable text describing the event.

occurred_atstring

Provider event timestamp.

orderobject or null

Present only when `expand` includes `order`; `null` when expanded and there is no related order.

order_idstringRequired

ID of the order the fulfillment belongs to.

package_idstring

ID of the package the event is attached to. Absent when it isn't attached to a package.

previous_statusenum

Subject status before the recorded transition.

  • pending
  • on_hold
  • in_progress
  • ready
  • completed
  • canceled
  • failed
  • scheduled
  • accepted
  • preparing
  • picked
  • packed
  • dispatched
  • no_show
  • created
  • shipped
  • in_transit
  • out_for_delivery
  • delivered
  • delivery_attempted
  • exception
  • returned
  • voided
quantity_effectenum

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

  • preserve
  • fulfill
  • release
reasonenum

Why the fulfillment was paused or an appointment was missed, when the transition recorded a reason.

  • address_issue
  • customer_no_show
  • customer_request
  • fraud_review
  • inventory_issue
  • location_unavailable
  • other
  • payment_review
  • provider_issue
  • provider_no_show
  • scheduling_error
  • scheduling_issue
reason_messagestring

The note supplied when this action was requested.

received_atstring

Flint receive timestamp.

shipment_idstring

ID of the shipment the event is attached to. Absent when it isn't attached to a shipment.

subject_typeenumRequired

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

  • fulfillment
  • shipment
  • package
JSON
{
  "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

channelenumRequired

How Flint sends this notification. - `email`: Sends the notification to recipient_email.

  • email
created_atstringRequired

RFC3339 timestamp.

external_reference_idstring

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

failed_atstring

RFC3339 timestamp.

fulfillment_event_idstring

ID of the fulfillment event that triggered the notification.

fulfillment_idstringRequired

ID of the fulfillment the notification is about.

fulfillment_notification_idstringRequired

Unique identifier for this fulfillment notification, prefixed `fnt_`.

metadatamap of string

Stored caller-owned key-value data. See `MetadataInput` for key, value, and size rules.

notification_typeenumRequired

The 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_ready
  • fulfillment_dispatched
  • fulfillment_completed
  • fulfillment_canceled
  • fulfillment_failed
  • fulfillment_no_show
  • fulfillment_shipped
  • fulfillment_delivered
  • shipment_shipped
  • shipment_out_for_delivery
  • shipment_delivered
  • shipment_delivery_attempted
  • shipment_exception
  • shipment_returned
orderobject or null

Present only when `expand` includes `order`; `null` when expanded and there is no related order.

order_idstringRequired

ID of the order the notification is about.

package_idstring

ID of the package the notification is about, when it concerns a package.

recipient_customer_idstring

ID of the customer the notification was sent to.

recipient_emailstring

Email address the notification was sent to.

sent_atstring

RFC3339 timestamp.

shipment_idstring

ID of the shipment the notification is about, when it concerns a shipment.

statusenumRequired

Whether the notification's email is waiting to send, was sent, failed, or was suppressed.

  • pending
  • sent
  • failed
  • suppressed
suppression_reasonenum

Why 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_suppressed
  • default_suppressed
  • recipient_missing
  • template_not_configured
  • merchant_managed_email
  • recipient_unsubscribed
  • sandbox_daily_limit_reached
trigger_typeenumRequired

What created this notification. - `fulfillment_status_updated`: Created by a fulfillment status transition. - `fulfillment_event_created`: Created by a fulfillment timeline event.

  • fulfillment_status_updated
  • fulfillment_event_created
updated_atstringRequired

RFC3339 timestamp.

JSON
{
  "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

carrierstring

Carrier transporting the package.

created_atstringRequired

Creation timestamp.

delivered_atstring

Package delivery timestamp.

dimensionsobject

Physical length, width, and height of the package.

expected_delivery_atstring or null

When 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_idstring

Caller-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_systemstring

Name 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_idstringRequired

Fulfillment whose items are in the package.

label_urlstring

HTTPS 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 string

Caller-owned key-value metadata associated with the package.

Not returned with a checkout credential or a customer session

orderobject or null

Order 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_idstringRequired

Order whose items are in the package.

package_idstringRequired

Stable identifier of the package.

return_idstring

Return this package belongs to. Present only on packages of return shipments.

return_line_itemsarray of object

Return line quantities allocated to this parcel. Present only on packages of return shipments.

service_codestring

Carrier service used for the package.

shipment_idstringRequired

Shipment carrying this package.

shipped_atstring

Package handoff timestamp.

statusenumRequired

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

  • created
  • packed
  • shipped
  • in_transit
  • out_for_delivery
  • delivered
  • delivery_attempted
  • exception
  • returned
  • voided
status_reasonstring

Additional explanation of the package's current status.

Not returned with a checkout credential or a customer session

supported_actionsarray of enumRequired

Lifecycle 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_delivered
  • mark_delivery_attempted
  • mark_exception
  • mark_in_transit
  • mark_out_for_delivery
  • mark_packed
  • mark_returned
  • mark_shipped
  • void
tracking_numberstring

Omitted for a checkout session credential that doesn't act for the customer the buyer verified.

tracking_urlstring

Absolute 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_atstringRequired

Last update timestamp.

versionintegerRequired

Monotonic package version for expected_version checks.

weightobject

Physical weight of the package.

JSON
{
  "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_atstringRequired

Creation timestamp.

delivered_atstring

When the shipment was delivered, in RFC3339 format.

directionenumRequired

Whether the shipment sends items to the buyer or returns items to the merchant.

  • outbound
  • return
external_reference_idstring

Caller-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_systemstring

Name 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_idstringRequired

Fulfillment associated with this shipment.

handed_off_atstring

Carrier 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 string

Caller-owned key-value metadata associated with the shipment.

Not returned with a checkout credential or a customer session

orderobject or null

Order 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_idstringRequired

Order whose items are transported by the shipment.

package_countintegerRequired

Total number of packages attached to the shipment, including voided packages.

packagesarray of object

Summaries 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_idstring

Return associated with this shipment, when its direction is return.

return_line_itemsarray of object

Return lines and quantities allocated to this return shipment.

shipment_idstringRequired

Stable identifier of the shipment.

shipped_atstring

When the shipment was shipped, in RFC3339 format.

statusenumRequired

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

  • created
  • packed
  • shipped
  • in_transit
  • out_for_delivery
  • delivered
  • delivery_attempted
  • exception
  • returned
  • voided
supported_actionsarray of enumRequired

Lifecycle 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_atstringRequired

Last update timestamp.

versionintegerRequired

Monotonic shipment version for expected_version checks.

JSON
{
  "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#

GET/v1/fulfillment-events

Requires 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_idstring

Optional fulfillment ID filter.

shipment_idstring

Optional shipment ID filter.

package_idstring

Optional package ID filter.

order_idstring

Optional order ID filter.

page_sizeinteger

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

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

event_typearray of enum

Filter 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_scan
  • status_changed
  • shipped
  • in_transit
  • out_for_delivery
  • delivered
  • delivery_attempted
  • tracking_updated
  • exception
  • returned
  • custom
external_systemstring

Filter by external system identifier.

external_event_idstring

Filter by external provider event ID.

occurred_afterstring

Inclusive lower bound on occurred_at.

occurred_beforestring

Exclusive upper bound on occurred_at.

sort_byenum

Field to sort by. Defaults to received_at; ties are broken by fulfillment_event_id.

  • received_at
  • occurred_at
sort_directionenum

Sort direction. Defaults to desc.

  • asc
  • desc
expandarray of enum

Include 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 objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

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

Fulfillment events for the fulfillment.

JSON
{
  "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#

POST/v1/fulfillment-eventsIdempotent

Requires 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 string

Free-form details attached to the event.

event_typeenumRequired

What kind of event this records.

  • carrier_scan
  • custom
external_event_idstring

Event identifier assigned by that integration. Flint records a repeated pair of `external_system` and `external_event_id` once.

external_statusstring

Status supplied by that integration.

external_systemstring

Integration that supplied the event.

fulfillment_idstringRequired

Fulfillment that owns this event.

location_descriptionstring

Where the event happened, such as `Louisville, KY`.

messagestring

Human-readable text describing the event.

occurred_atstring

Provider event timestamp.

package_idstring

Nested package associated with this observational event. Flint resolves and validates its shipment and fulfillment ownership.

shipment_idstring

Nested shipment associated with this observational event. Flint validates that it belongs to fulfillment_id.

Response · 201

The newly recorded fulfillment event.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

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#

GET/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_idstringRequired

Flint 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 enum

Include 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 event.

Same response as Create fulfillment event.

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.

JSON
{
  "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#

GET/v1/fulfillment-notifications

Requires 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_idstring

Optional fulfillment ID filter.

order_idstring

Optional order ID filter.

fulfillment_event_idstring

Optional fulfillment event ID filter.

page_sizeinteger

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

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

channelarray of enum

Filter 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 enum

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

  • pending
  • sent
  • failed
  • suppressed
notification_typearray of enum

Filter 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_canceled
  • fulfillment_completed
  • fulfillment_delivered
  • fulfillment_dispatched
  • fulfillment_failed
  • fulfillment_no_show
  • fulfillment_ready
  • fulfillment_shipped
  • shipment_delivered
  • shipment_delivery_attempted
  • shipment_exception
  • shipment_out_for_delivery
  • shipment_returned
  • shipment_shipped
expandarray of enum

Include 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 objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

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

Fulfillment notifications for the fulfillment.

JSON
{
  "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#

GET/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_idstringRequired

Flint 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 enum

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

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/fulfillment-notifications/fnt_01KEZF7C00QD91RXQH2E7H9K5E \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The fulfillment notification.

JSON
{
  "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#

GET/v1/fulfillments

Requires 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_sizeinteger

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

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

expandarray of enum

Include related objects in the response. Supported expansions: order. Expansion requires commerce.orders.read. Limits: at most 10 unique expand paths per request.

  • order
order_idstring

Filter by order ID.

customer_idstring

Exact match on customer_id.

external_reference_idstring

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

idempotency_keystring

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

querystring

Search 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 enum

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

  • pending
  • on_hold
  • in_progress
  • ready
  • completed
  • canceled
  • failed
  • scheduled
  • accepted
  • preparing
  • picked
  • packed
  • dispatched
  • no_show
typearray of enum

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

  • shipment
  • pickup
  • local_delivery
  • digital
  • service
  • handover
location_idstring

Filter by assigned Location ID.

created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

updated_afterstring

Inclusive lower bound on updated_at.

updated_beforestring

Exclusive upper bound on updated_at.

sort_byenum

Field 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_at
  • scheduled_start_at
  • terminal_at
  • due_at
sort_directionenum

Sort direction. Defaults to desc.

  • asc
  • desc

Response · 200

Fulfillments for the order.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

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

Fulfillments for the order.

JSON
{
  "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#

POST/v1/fulfillmentsKey required

Requires 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_idstring

Customer receiving this fulfillment, when one is set.

device_idstring

Device used for this fulfillment. It must be active. When location_id is also set, the device must belong to that Location.

external_reference_idstring

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

line_itemsarray of objectRequired

Order line items, with the quantity of each, that this fulfillment covers.

location_idstring

Merchant location responsible for this fulfillment.

metadatamap of string

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

order_idstringRequired

Paid order whose quantities this fulfillment delivers.

recipientobject

Who receives the fulfillment.

shipmentone of

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

typeenumRequired

The kind of fulfillment.

  • shipment

Response · 201

The created fulfillment. Includes the created shipment and package when shipment input is provided.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/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#

GET/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_idstringRequired

Flint 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 enum

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

  • order
  • packages
  • shipments

Response · 200

The requested fulfillment.

Same response as Create fulfillment.

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

The requested fulfillment.

JSON
{
  "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#

PATCH/v1/fulfillments/{fulfillment_id}Idempotent

Requires 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_idstringRequired

Flint 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 null

Completion 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 null

Send null to clear it.

device_idstring or null

Device 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 null

Details of a `digital` fulfillment, such as the download link.

expected_versioninteger

Optional resource version last read by the caller.

external_reference_idstring or null

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

local_delivery_detailsobject or null

Details of a `local_delivery` fulfillment, such as the courier's tracking link.

location_idstring or null

Send null to clear it.

metadatamap of string or null

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

pickup_detailsobject or null

Details of a `pickup` fulfillment.

recipientobject or null

Who receives the fulfillment.

service_detailsobject or null

Details of a `service` fulfillment.

Response · 200

The fulfillment.

Same response as Create 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#

POST/v1/fulfillments/{fulfillment_id}/acceptIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/cancelIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/completeIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/dispatchIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/failIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

release_quantitybooleanRequired

Whether the failed fulfillment releases its quantities for another fulfillment. false preserves the allocation.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/holdIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reasonenumRequired

Why fulfillment work is paused or the service appointment was missed.

  • inventory_issue
  • address_issue
  • customer_request
  • provider_issue
  • scheduling_issue
  • fraud_review
  • other
reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/mark-no-showIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reasonenumRequired

Why fulfillment work is paused or the service appointment was missed.

  • customer_no_show
  • provider_no_show
  • location_unavailable
  • scheduling_error
  • other
reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/mark-packedIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/mark-pickedIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/mark-preparingIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/mark-readyIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/release-holdIdempotent

Requires 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_idstringRequired

Flint 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_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/scheduleIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

scheduled_end_atstringRequired

End of the service appointment window, after scheduled_start_at, as an RFC 3339 timestamp.

scheduled_start_atstringRequired

Start of the service appointment window, as an RFC 3339 timestamp.

timezonestring

IANA timezone of the service appointment.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

POST/v1/fulfillments/{fulfillment_id}/startIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the action occurred, as an RFC 3339 timestamp. On complete, also records completion evidence.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The fulfillment with its resulting status.

Same response as Create fulfillment.

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#

GET/v1/packages

Requires 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_idstring

Optional shipment ID filter.

fulfillment_idstring

Optional fulfillment ID filter.

order_idstring

Optional order ID filter.

page_sizeinteger

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

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

external_systemstring

Filter by external system identifier.

external_reference_idstring

Exact match on the package's `external_reference_id`.

querystring

Search 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_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

statusarray of enum

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

  • created
  • packed
  • shipped
  • in_transit
  • out_for_delivery
  • delivered
  • delivery_attempted
  • exception
  • returned
  • voided
tracking_numberstring

Byte-sensitive full tracking-number match. Whitespace and commas are literal; combine with carrier to identify a carrier-specific tracking number.

carrierstring

Byte-sensitive full carrier match. Whitespace and commas are literal.

updated_afterstring

Inclusive lower bound on updated_at.

updated_beforestring

Exclusive upper bound on updated_at.

expandarray of enum

Include 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 objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

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

Packages for the shipment.

JSON
{
  "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#

POST/v1/packagesIdempotent

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

carrierstring

Carrier that handles the package.

dimensionsobject

Dimensions of the package.

expected_delivery_atstring or null

When 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_versioninteger

Optional version of the owning fulfillment. If the version changed, Flint refuses the request before creating any records.

external_reference_idstring

Caller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries.

external_systemstring

Name of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries.

itemsarray of object

Independent 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_urlstring

HTTPS shipping-label URL supplied by your integration. Non-Flint URLs require external_system for provenance. Flint does not host the label file.

metadatamap of string

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

pack_fulfillment_itemsenum

Put every item in the fulfillment into this outbound package. Use with status shipped and a single package. Omit items.

  • true
return_line_itemsarray of object

Required for a package on a return shipment: allocates quantities from the shipment's return_line_items to this parcel. Rejected on outbound shipments.

service_codestring

Carrier's code for the shipping service used.

shipment_idstringRequired

Shipment that owns this package.

statusenumRequired

Outbound 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_reasonstring

Additional explanation of the package's starting status.

tracking_numberstring

Carrier tracking number for the package.

tracking_urlstring

Absolute HTTPS carrier tracking URL. Embedded URL credentials are rejected.

weightobject

Weight of the package.

Response · 201

The newly created package.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/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#

GET/v1/packages/{package_id}

Requires scope commerce.orders.read or commerce.orders.write

Rate limit: read

Retrieves one package by ID.

Path parameters

package_idstringRequired

Flint 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 enum

Include 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 package.

Same response as Create package.

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

The package.

JSON
{
  "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#

PATCH/v1/packages/{package_id}Idempotent

Requires 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_idstringRequired

Flint 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 null

Send null to clear it.

dimensionsobject or null

Dimensions of the package.

expected_delivery_atstring or null

When 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_versioninteger

Optional resource version last read by the caller.

external_reference_idstring or null

Caller-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 null

Name 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 null

HTTPS 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 null

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

service_codestring or null

Send null to clear it.

status_reasonstring or null

Send null to clear it.

tracking_numberstring or null

Send null to clear it.

tracking_urlstring or null

Absolute HTTPS carrier tracking URL. Embedded URL credentials are rejected. Send null to clear it.

weightobject or null

Weight of the package.

Response · 200

The updated package.

Same response as Create 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#

GET/v1/packages/{package_id}/items

Requires 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_idstringRequired

Flint 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_sizeinteger

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

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

expandarray of enum

Include 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 objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/packages/pkg_01KEZF7C00ZZA16BJCEJBWKJ5R/items \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Package items for the package.

JSON
{
  "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#

POST/v1/packages/{package_id}/itemsIdempotent

Requires 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_idstringRequired

Flint 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 null

Bundle 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 string

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

order_line_item_idstringRequired

Order line whose quantity is allocated.

quantityintegerRequired

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

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/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#

GET/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_idstringRequired

Flint 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_idstringRequired

Flint 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 enum

Include 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 package item.

Same response as Create package item.

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.

JSON
{
  "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#

PATCH/v1/packages/{package_id}/items/{package_item_id}Idempotent

Requires scope commerce.orders.write

Rate limit: write

Updates a package item quantity or metadata while the package is still mutable.

Path parameters

package_idstringRequired

Flint 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_idstringRequired

Flint 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 null

Bundle 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_versioninteger

Version 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 null

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

quantityinteger

Whole-number quantity; fractional quantities are not supported.

Response · 200

The updated package item.

Same response as Create package item.

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#

DELETE/v1/packages/{package_id}/items/{package_item_id}Idempotent

Requires scope commerce.orders.write

Rate limit: write

Removes an order line quantity from a package while the package is still mutable.

Path parameters

package_idstringRequired

Flint 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_idstringRequired

Flint 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_versioninteger

Optional item version last read by the caller.

Response · 200

The deleted package item.

Same response as Create package item.

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#

POST/v1/packages/{package_id}/mark-deliveredIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the carrier scan or package action occurred, as an RFC 3339 timestamp.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The package with its resulting status.

Same response as Create package.

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#

POST/v1/packages/{package_id}/mark-delivery-attemptedIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the carrier scan or package action occurred, as an RFC 3339 timestamp.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The package with its resulting status.

Same response as Create package.

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#

POST/v1/packages/{package_id}/mark-exceptionIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the carrier scan or package action occurred, as an RFC 3339 timestamp.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The package with its resulting status.

Same response as Create package.

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#

POST/v1/packages/{package_id}/mark-in-transitIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_delivery_atstring or null

When 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_versioninteger

Resource version the caller last read.

occurred_atstring

When the carrier scan or package action occurred, as an RFC 3339 timestamp.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The package with its resulting status.

Same response as Create package.

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#

POST/v1/packages/{package_id}/mark-out-for-deliveryIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_delivery_atstring or null

When 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_versioninteger

Resource version the caller last read.

occurred_atstring

When the carrier scan or package action occurred, as an RFC 3339 timestamp.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The package with its resulting status.

Same response as Create package.

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#

POST/v1/packages/{package_id}/mark-packedIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the carrier scan or package action occurred, as an RFC 3339 timestamp.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The package with its resulting status.

Same response as Create package.

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#

POST/v1/packages/{package_id}/mark-returnedIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
expected_versioninteger

Resource version the caller last read.

occurred_atstring

When the carrier scan or package action occurred, as an RFC 3339 timestamp.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

Response · 200

The package with its resulting status.

Same response as Create package.

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#

POST/v1/packages/{package_id}/mark-shippedIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

Whether to send or suppress the buyer notification for this action.

  • send
  • suppress
carrierstring

Carrier handling this package.

expected_delivery_atstring or null

When 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_versioninteger

Resource version the caller last read.

occurred_atstring

When the carrier scan or package action occurred, as an RFC 3339 timestamp.

reason_messagestring

Your internal note explaining this transition. Not included in buyer emails.

service_codestring

Carrier service used for this package.

tracking_numberstring

Carrier tracking number for this package.

tracking_urlstring

Absolute HTTPS carrier tracking URL. Embedded URL credentials are rejected.

Response · 200

The package with its resulting status.

Same response as Create package.

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#

POST/v1/packages/{package_id}/voidIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

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

  • send
  • suppress
expected_versioninteger

Optional resource version last read by the caller.

occurred_atstring

Void event timestamp.

reason_messagestring

Your internal note explaining this action. Not included in buyer emails.

Response · 200

The voided package.

Same response as Create package.

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#

GET/v1/shipments

Requires 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_idstring

Optional order ID filter.

fulfillment_idstring

Optional fulfillment ID filter.

page_sizeinteger

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

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

external_systemstring

Filter by external system identifier.

external_reference_idstring

Exact match on the shipment's `external_reference_id`.

querystring

Search 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_idstring

Filter by linked Return ID.

handed_off_afterstring

Inclusive lower bound on handed_off_at.

handed_off_beforestring

Exclusive upper bound on handed_off_at.

created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

statusarray of enum

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

  • created
  • packed
  • shipped
  • in_transit
  • out_for_delivery
  • delivered
  • delivery_attempted
  • exception
  • returned
  • voided
directionarray of enum

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

  • outbound
  • return
updated_afterstring

Inclusive lower bound on updated_at.

updated_beforestring

Exclusive upper bound on updated_at.

expandarray of enum

Include 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 objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

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

Shipments for the fulfillment.

JSON
{
  "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#

POST/v1/shipmentsIdempotent

Requires 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`.

directionenumRequired

Whether the shipment sends items to the buyer or returns items to the merchant.

  • outbound
expected_fulfillment_versioninteger

Optional version of the owning fulfillment. If the version changed, Flint refuses the request before creating any records.

external_reference_idstring

Caller-owned identifier for this resource in an external system. Requires external_system. External references are not unique. Use Idempotency-Key for retries.

external_systemstring

Name of the external system that external_reference_id belongs to. External references are not unique. Use Idempotency-Key for retries.

fulfillment_idstringRequired

Shipment fulfillment that owns an outbound shipment. Required when direction is outbound; forbidden when direction is return.

metadatamap of string

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

packagesarray of one of

Creates packages atomically with an outbound shipment. Items are optional per package. Created packages are included in the response.

Response · 201

The newly created shipment.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/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#

GET/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_idstringRequired

Flint 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 enum

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

  • order
  • packages

Response · 200

The shipment.

Same response as Create shipment.

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

The shipment.

JSON
{
  "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#

PATCH/v1/shipments/{shipment_id}Idempotent

Requires 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_idstringRequired

Flint 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_versioninteger

Optional resource version last read by the caller.

external_reference_idstring or null

Caller-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 null

Name 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 null

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

Response · 200

The updated shipment.

Same response as Create shipment.

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#

POST/v1/shipments/{shipment_id}/voidIdempotent

Requires 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_idstringRequired

Flint 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_behaviorenum

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

  • send
  • suppress
expected_versioninteger

Optional resource version last read by the caller.

occurred_atstring

Void event timestamp.

reason_messagestring

Your internal note explaining this action. Not included in buyer emails.

Response · 200

The voided shipment and all affected packages.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/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?