Fulfillment
Carrier
Section titled “Carrier”A delivery company.
ID!
No description.
String!
IRAN_POST, TIPAX, CHAPAR, MAHEX, ALOPEYK, MIARE, SNAPP_BOX.
String!
No description.
Image
No description.
integrated
Section titled “integrated”Boolean!
Whether the platform can book and track with this carrier’s API.
supportsLabels
Section titled “supportsLabels”Boolean!
Whether it can produce a printable label.
supportsCashOnDelivery
Section titled “supportsCashOnDelivery”Boolean!
Whether it will collect cash on delivery.
DeliveryWindow
Section titled “DeliveryWindow”When something should arrive. Both bounds may be null when a carrier will not commit.
DateTime
No description.
DateTime
No description.
businessDays
Section titled “businessDays”Int
Business days, as the carrier states it.
Fulfillment
Section titled “Fulfillment”A parcel that was actually sent.
ID!
No description.
Order!
No description.
location
Section titled “location”Location!
No description.
status
Section titled “status”FulfillmentStatus!
No description.
[FulfillmentLine!]!
What is in it, and how many of each.
shipment
Section titled “shipment”Shipment
The shipment, when it is going by a carrier. Null for a collection.
codAmount
Section titled “codAmount”Money
What the courier is to collect on delivery — مبلغ پسکرایه.
Set on a cash-on-delivery order and zero otherwise. It is not a payment: the
money is the courier’s until they settle, and the settlement is recorded
with cashCollectionRecord. This is what the merchant told the courier to
ask for.
notifiedCustomer
Section titled “notifiedCustomer”Boolean!
Whether the buyer was told. Some merchants notify by hand instead.
createdAt
Section titled “createdAt”DateTime!
No description.
packingSlip
Section titled “packingSlip”PrintedDocument
The parcel’s packing slip as a PDF — برگه بستهبندی: its lines and quantities by the titles they were bought under, where it is going, and the shop it is from. No price: a slip that went in a box with prices on it is a buyer’s gift showing what it cost.
Drawn once per version of the parcel, on request: draw: true draws it when
the current version has none, and every other read only says where it
stands. A cancelled parcel has none (UNAVAILABLE, CANCELLED). Admin
only: a buyer never sees a slip.
Null when the delivery service does not answer.
| Argument | Type | Meaning |
|---|---|---|
draw | Boolean! · default false | No description. |
FulfillmentCreateInput
Section titled “FulfillmentCreateInput”A parcel to create.
fulfillmentOrderId
Section titled “fulfillmentOrderId”ID!
Which fulfillment order this discharges.
[FulfillmentLineInput!]
What is in the parcel. Omit to ship everything remaining, which is the common case and the one a barcode scanner produces.
tracking
Section titled “tracking”TrackingInput
Tracking, when the merchant has it. It frequently arrives later.
codAmount
Section titled “codAmount”MoneyInput
What the courier is to collect. Required on a cash-on-delivery order.
notifyCustomer
Section titled “notifyCustomer”Boolean
Whether to SMS the buyer. Defaults true.
FulfillmentHold
Section titled “FulfillmentHold”Why a fulfillment order is held.
reason
Section titled “reason”FulfillmentHoldReason!
No description.
String
The merchant’s own explanation, shown to staff and never to the buyer.
heldBy
Section titled “heldBy”StaffMember
No description.
heldAt
Section titled “heldAt”DateTime!
No description.
FulfillmentHoldInput
Section titled “FulfillmentHoldInput”Why a fulfillment order is being held.
reason
Section titled “reason”FulfillmentHoldReason!
No description.
String
No description.
FulfillmentHoldReason
Section titled “FulfillmentHoldReason”Why a merchant is not shipping yet.
| Value | Meaning |
|---|---|
AWAITING_PAYMENT | The money has not arrived, or has not been verified. |
AWAITING_RECEIPT_APPROVAL | A card-to-card receipt is uploaded and not yet approved. |
AWAITING_STOCK | The stock is not here yet. |
RISK_REVIEW | The order tripped a risk signal and a person is looking at it. |
CUSTOMER_REQUEST | The buyer asked to delay it. |
OTHER | No description. |
FulfillmentLine
Section titled “FulfillmentLine”How much of one order line is in a parcel.
orderLine
Section titled “orderLine”OrderLine!
No description.
quantity
Section titled “quantity”Int!
No description.
FulfillmentLineInput
Section titled “FulfillmentLineInput”How much of one line is in a parcel.
orderLineId
Section titled “orderLineId”ID!
No description.
quantity
Section titled “quantity”Int!
No description.
FulfillmentOrder
Section titled “FulfillmentOrder”The work of fulfilling part of an order from one location.
Created when the order is placed, one per location the lines resolve to. A merchant with a single location has exactly one, which is why this object is invisible in the simple case and indispensable in every other.
ID!
No description.
version
Section titled “version”Version!
No description.
Order!
No description.
location
Section titled “location”Location!
Where this work is to be done from.
status
Section titled “status”FulfillmentOrderStatus!
No description.
[FulfillmentOrderLine!]!
What has to be shipped, and how much of it is left.
deliveryMethod
Section titled “deliveryMethod”DeliveryMethodType!
What the buyer chose at checkout, and what it will cost to honour.
requestedCarrier
Section titled “requestedCarrier”Carrier
No description.
FulfillmentHold
Why it is held, when it is.
A hold is not a failure state — it is how a merchant says “not yet” without losing the work. Awaiting a card-to-card receipt is the commonest reason here.
fulfillBy
Section titled “fulfillBy”DateTime
When the merchant said they would ship it.
createdAt
Section titled “createdAt”DateTime!
No description.
updatedAt
Section titled “updatedAt”DateTime!
No description.
FulfillmentOrderConnection
Section titled “FulfillmentOrderConnection”A page of fulfillment orders.
[FulfillmentOrderEdge!]!
No description.
[FulfillmentOrder!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int
How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.
FulfillmentOrderEdge
Section titled “FulfillmentOrderEdge”One fulfillment order, with its cursor.
cursor
Section titled “cursor”String!
No description.
FulfillmentOrder!
No description.
FulfillmentOrderFilter
Section titled “FulfillmentOrderFilter”A filter on the fulfillment queue.
status
Section titled “status”[FulfillmentOrderStatus!]
No description.
locationId
Section titled “locationId”ID
No description.
holdReason
Section titled “holdReason”[FulfillmentHoldReason!]
Held work, so a merchant can see what is stuck and why.
overdue
Section titled “overdue”Boolean
Work whose promised ship date has passed.
deliveryMethod
Section titled “deliveryMethod”[DeliveryMethodType!]
No description.
FulfillmentOrderLine
Section titled “FulfillmentOrderLine”One line of work within a fulfillment order.
ID!
No description.
orderLine
Section titled “orderLine”OrderLine!
No description.
totalQuantity
Section titled “totalQuantity”Int!
How many this fulfillment order is responsible for.
remainingQuantity
Section titled “remainingQuantity”Int!
How many are still to ship.
inStock
Section titled “inStock”Boolean!
Whether the stock is actually there.
False for a line the merchant accepted on backorder. Shown so a picker is not sent to a shelf that is empty.
FulfillmentOrderPayload
Section titled “FulfillmentOrderPayload”What the fulfillment-order mutations return.
fulfillmentOrder
Section titled “fulfillmentOrder”FulfillmentOrder
No description.
Order
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
FulfillmentOrderStatus
Section titled “FulfillmentOrderStatus”Where a fulfillment order has got to.
| Value | Meaning |
|---|---|
OPEN | Ready to be worked. |
IN_PROGRESS | Partly shipped. |
ON_HOLD | Held. See hold. |
CLOSED | Everything shipped. |
INCOMPLETE | Abandoned with work outstanding — the order was cancelled, or the lines were moved to another location. |
CANCELLED | No description. |
FulfillmentPayload
Section titled “FulfillmentPayload”What the fulfillment mutations return.
fulfillment
Section titled “fulfillment”Fulfillment
No description.
fulfillmentOrder
Section titled “fulfillmentOrder”FulfillmentOrder
No description.
Order
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
FulfillmentStatus
Section titled “FulfillmentStatus”Where a fulfillment has got to.
| Value | Meaning |
|---|---|
PENDING | Created; not yet handed to a carrier. |
SUCCESS | With the carrier, or collected. |
CANCELLED | Cancelled before it left. |
ERROR | The carrier reported a problem. Shipment.status says what. |
Return
Section titled “Return”Goods coming back — مرجوعی.
ID!
No description.
version
Section titled “version”Version!
No description.
Order!
No description.
number
Section titled “number”String!
Merchant-facing, and what the buyer quotes.
status
Section titled “status”ReturnStatus!
No description.
[ReturnLine!]!
No description.
customerNote
Section titled “customerNote”String
Why, in the buyer’s words when they gave a reason.
staffNote
Section titled “staffNote”String
No description.
withinWithdrawalPeriod
Section titled “withinWithdrawalPeriod”Boolean!
Whether the buyer is inside the statutory withdrawal window.
Iranian e-commerce law grants one, and whether a return is inside it decides who pays the freight. Computed by the platform so every merchant applies the same rule.
returnShippingPaidBy
Section titled “returnShippingPaidBy”ReturnShippingPayer!
Who pays to send it back.
shipment
Section titled “shipment”Shipment
The inbound parcel, when the merchant arranged one.
requestedAt
Section titled “requestedAt”DateTime!
No description.
approvedAt
Section titled “approvedAt”DateTime
No description.
receivedAt
Section titled “receivedAt”DateTime
No description.
closedAt
Section titled “closedAt”DateTime
No description.
ReturnCondition
Section titled “ReturnCondition”What condition something came back in.
| Value | Meaning |
|---|---|
SELLABLE | Resellable as new. |
OPENED | Opened, resellable at a discount. |
DAMAGED | Not resellable. Written off as shrinkage. |
MISSING | Never arrived, though the buyer says it was sent. |
ReturnConnection
Section titled “ReturnConnection”A page of returns.
[ReturnEdge!]!
No description.
[Return!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int
How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.
ReturnCreateInput
Section titled “ReturnCreateInput”A return the merchant is opening on the buyer’s behalf.
orderId
Section titled “orderId”ID!
No description.
[ReturnLineInput!]!
No description.
customerNote
Section titled “customerNote”String
No description.
returnShippingPaidBy
Section titled “returnShippingPaidBy”ReturnShippingPayer
No description.
notifyCustomer
Section titled “notifyCustomer”Boolean
Whether to SMS the buyer with instructions.
ReturnEdge
Section titled “ReturnEdge”One return, with its cursor.
cursor
Section titled “cursor”String!
No description.
Return!
No description.
ReturnLine
Section titled “ReturnLine”One line coming back.
orderLine
Section titled “orderLine”OrderLine!
No description.
quantity
Section titled “quantity”Int!
No description.
receivedQuantity
Section titled “receivedQuantity”Int
How many actually arrived. Null until received.
reason
Section titled “reason”ReturnReason!
No description.
condition
Section titled “condition”ReturnCondition
What condition it arrived in. Decides whether it can be resold.
restocked
Section titled “restocked”Boolean!
Whether it went back into sellable stock.
ReturnLineInput
Section titled “ReturnLineInput”One line the buyer is sending back.
orderLineId
Section titled “orderLineId”ID!
No description.
quantity
Section titled “quantity”Int!
No description.
reason
Section titled “reason”ReturnReason!
No description.
ReturnPayload
Section titled “ReturnPayload”What the return mutations return.
return
Section titled “return”Return
No description.
Order
No description.
adjustments
Section titled “adjustments”[InventoryAdjustment!]!
The stock movements a receipt produced, so the client can show what it did rather than making the merchant go and look.
userErrors
Section titled “userErrors”[UserError!]!
No description.
ReturnReason
Section titled “ReturnReason”Why a buyer is sending something back.
| Value | Meaning |
|---|---|
SIZE | It does not fit — the commonest reason in apparel by a wide margin. |
NOT_AS_DESCRIBED | It is not what the listing showed. |
DAMAGED | No description. |
DEFECTIVE | No description. |
WRONG_ITEM | The merchant sent the wrong thing. |
CHANGED_MIND | The buyer changed their mind, inside the withdrawal window. |
ARRIVED_LATE | No description. |
OTHER | No description. |
ReturnReceiveInput
Section titled “ReturnReceiveInput”What actually came back, and what to do with it.
[ReturnReceiveLineInput!]!
No description.
ReturnReceiveLineInput
Section titled “ReturnReceiveLineInput”One line as received.
orderLineId
Section titled “orderLineId”ID!
No description.
receivedQuantity
Section titled “receivedQuantity”Int!
No description.
condition
Section titled “condition”ReturnCondition!
No description.
restock
Section titled “restock”Boolean
Whether to put it back into sellable stock.
Defaults to true only for SELLABLE. Restocking damaged goods is how a shop
sells the same broken item twice.
ReturnShippingPayer
Section titled “ReturnShippingPayer”Who pays to send goods back.
| Value | Meaning |
|---|---|
MERCHANT | No description. |
CUSTOMER | No description. |
NOT_APPLICABLE | Neither — the buyer brings it to a location. |
ReturnStatus
Section titled “ReturnStatus”Where a return has got to.
| Value | Meaning |
|---|---|
REQUESTED | The buyer has asked. Nothing has moved. |
APPROVED | The merchant agreed. The buyer may send it. |
DECLINED | Refused, with a reason on staffNote. |
IN_TRANSIT | On its way back. |
RECEIVED | No description. |
CLOSED | Finished. Any refund is a separate record, made with refundCreate. |
CANCELLED | No description. |
Shipment
Section titled “Shipment”A parcel in the carrier’s hands.
ID!
No description.
carrier
Section titled “carrier”Carrier
No description.
trackingNumber
Section titled “trackingNumber”String
The tracking number — کد رهگیری مرسوله.
Iran Post’s is 24 digits; other carriers differ, and several give none at all. Show it selectable: it is the string a merchant reads down the phone.
trackingUrl
Section titled “trackingUrl”URL
No description.
status
Section titled “status”ShipmentStatus!
No description.
labelUrl
Section titled “labelUrl”URL
The printable label, when the carrier’s API produced one.
Null for a carrier the merchant books by hand, which is most of them here.
Money
What the carrier charged the merchant, once known.
estimatedDelivery
Section titled “estimatedDelivery”DeliveryWindow
When it is expected.
shippedAt
Section titled “shippedAt”DateTime
No description.
deliveredAt
Section titled “deliveredAt”DateTime
No description.
events
Section titled “events”[ShipmentEvent!]!
Where the carrier last reported it. Newest first.
Polled rather than pushed for most Iranian carriers, so entries can be hours apart and the absence of one means nothing.
ShipmentEvent
Section titled “ShipmentEvent”One report from a carrier.
status
Section titled “status”ShipmentStatus!
No description.
description
Section titled “description”String
The carrier’s own wording, untranslated. It is what support will quote.
location
Section titled “location”String
No description.
occurredAt
Section titled “occurredAt”DateTime!
No description.
ShipmentStatus
Section titled “ShipmentStatus”Where a parcel has got to.
| Value | Meaning |
|---|---|
PENDING | No description. |
IN_TRANSIT | No description. |
OUT_FOR_DELIVERY | No description. |
DELIVERED | No description. |
ATTEMPTED_DELIVERY | The carrier tried and could not deliver. |
REFUSED | The buyer refused it — مرجوعی. On a cash-on-delivery parcel this is the expensive case, and it feeds PRIOR_DELIVERY_REFUSAL on the buyer’s next order. |
RETURNED | No description. |
FAILURE | No description. |
TrackingInput
Section titled “TrackingInput”Carrier and tracking details.
carrierCode
Section titled “carrierCode”String
No description.
number
Section titled “number”String
No description.
URL
Overrides the carrier’s own tracking page, for a carrier that has none.