Menu
fulfilmentOptionById
Find a FulfilmentOption entity.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the fulfilmentOptionById action (under Fulfilment).
- Fill in the fields below, then reference the result from later steps as
{{fulfilmentoptionbyid.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query FulfilmentOptionById($id: ID!) {
fulfilmentOptionById(id: $id) {
address {
addressLine1
addressLine2
city
companyName
country
latitude
longitude
name
postcode
state
}
attributes {
name
type
value
}
createdOn
id
locationRef
orderType
products {
catalogueRef
productRef
requestedQuantity
}
ref
retailerId
status
trackingCode
type
updatedOn
workflowRef
workflowVersion
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"id": "string"
}
Response
Read the result with {{fulfilmentoptionbyid.response.data.data.fulfilmentOptionById}}. If the API returns errors, the step fails and they are at {{fulfilmentoptionbyid.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?