Upsert fulfillment options
Fulfillment
Upsert fulfillment options
Create or update fulfillment type definitions from your POS or RMS in Fire spark.
PUT
Upsert fulfillment options
Creates or updates one or more fulfillment options for the authenticated merchant. Use this endpoint to sync fulfillment names, type codes, and status from your operational stack into Fire spark.
Each array element is matched by
id. When no fulfillment option exists with that id for the merchant, Fire spark creates it. When one already exists, Fire spark updates the writable fields below. Omitted fields keep their current values on update.
Requires an access token with the
fulfillment:write scope. See
Authorize to obtain a token.Request
Send a JSON array. Each element represents one fulfillment option. Includeid on every element — it is the stable external identifier and the upsert key. It cannot be changed after the option is created.
Request fields
| Field | Type | Description |
|---|---|---|
id | string | Required. External fulfillment identifier. Alphanumeric characters, _, and - only. 1–64 characters. Unique per merchant. Used as the upsert key. Cannot be changed after the option is created. |
name | string | Display name. 1–100 characters. |
type | string | Required on create. Fulfillment type code. 1–100 characters. Unique per merchant among active records. Common values: DELIVERY, PICKUP, DINE_IN. Custom codes such as DRIVE_THRU are supported. |
status | string | ACTIVE or INACTIVE. |
Each merchant can have at most one active fulfillment option per
type code.
Attempting to create or update a second active record with the same type
returns a validation error.Response
Error responses
| Status | Description |
|---|---|
400 | Request body failed validation. Check field constraints above. |
401 | Missing or invalid access token. |
403 | Token does not include the fulfillment:write scope. |
422 | Business rule violation — for example attempting to change a fulfillment id, or duplicate id, name, or type for the merchant among active records. |
Validation error