Menu
returnFulfilmentItem
Find a ReturnFulfilmentItem entity.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the returnFulfilmentItem action (under Return).
- Fill in the fields below, then reference the result from later steps as
{{returnfulfilmentitem.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 ReturnFulfilmentItem($ref: String!, $returnFulfilment: ReturnFulfilmentKey!) {
returnFulfilmentItem(ref: $ref, returnFulfilment: $returnFulfilment) {
attributes {
name
type
value
}
createdOn
id
product {
catalogue {
ref
}
ref
}
ref
returnOrderFulfilment {
attributes {
name
type
value
}
createdOn
destinationLocation {
ref
}
id
lodgedLocation {
ref
}
pickupAddress {
city
companyName
country
latitude
longitude
name
postcode
region
state
street
timeZone
}
ref
returnOrder {
attributes
createdOn
creditMemo
currency
customer
defaultTaxType
destinationLocation
exchangeOrder
id
lodgedLocation
order
pickupAddress
ref
retailer
returnAuthorisationDisposition
returnAuthorisationKey
returnAuthorisationKeyExpiry
status
subTotalAmount
totalAmount
totalTax
type
updatedOn
workflow
workflowRef
workflowVersion
}
status
type
updatedOn
workflow {
ref
version
}
workflowRef
workflowVersion
}
returnOrderItem {
attributes {
name
type
value
}
createdOn
id
itemAmount {
amount
scale
unscaledValue
}
itemTaxAmount {
amount
scale
unscaledValue
}
orderItem {
order
ref
}
product {
catalogue
ref
}
ref
returnCondition {
label
value
}
returnConditionComment
returnDispositionAction {
label
value
}
returnOrder {
attributes
createdOn
creditMemo
currency
customer
defaultTaxType
destinationLocation
exchangeOrder
id
lodgedLocation
order
pickupAddress
ref
retailer
returnAuthorisationDisposition
returnAuthorisationKey
returnAuthorisationKeyExpiry
status
subTotalAmount
totalAmount
totalTax
type
updatedOn
workflow
workflowRef
workflowVersion
}
returnPaymentAction {
label
value
}
returnReason {
label
value
}
returnReasonComment
status
unitAmount {
amount
scale
unscaledValue
}
unitQuantity {
quantity
unit
}
unitTaxType {
country
group
tariff
}
updatedOn
}
unitQuantity {
quantity
unit
}
updatedOn
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"ref": "string",
"returnFulfilment": {
"ref": "string",
"returnOrder": {
"ref": "string",
"retailer": {
"id": "string"
}
}
}
}
Response
Read the result with {{returnfulfilmentitem.response.data.data.returnFulfilmentItem}}. If the API returns errors, the step fails and they are at {{returnfulfilmentitem.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?