Skip to content
Select theme
Light
Dark
Auto
Select language
English
فارسی

Fulfillment

Object

A delivery company.

ID!

No description.

String!

IRAN_POST, TIPAX, CHAPAR, MAHEX, ALOPEYK, MIARE, SNAPP_BOX.

String!

No description.

Image

No description.

Boolean!

Whether the platform can book and track with this carrier’s API.

Boolean!

Whether it can produce a printable label.

Boolean!

Whether it will collect cash on delivery.

Object

When something should arrive. Both bounds may be null when a carrier will not commit.

DateTime

No description.

DateTime

No description.

Int

Business days, as the carrier states it.

Object

A parcel that was actually sent.

ID!

No description.

Order!

No description.

Location!

No description.

FulfillmentStatus!

No description.

[FulfillmentLine!]!

What is in it, and how many of each.

Shipment

The shipment, when it is going by a carrier. Null for a collection.

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.

Boolean!

Whether the buyer was told. Some merchants notify by hand instead.

DateTime!

No description.

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.

ArgumentTypeMeaning
drawBoolean! · default falseNo description.
Input

A parcel to create.

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.

TrackingInput

Tracking, when the merchant has it. It frequently arrives later.

MoneyInput

What the courier is to collect. Required on a cash-on-delivery order.

Boolean

Whether to SMS the buyer. Defaults true.

Object

Why a fulfillment order is held.

FulfillmentHoldReason!

No description.

String

The merchant’s own explanation, shown to staff and never to the buyer.

StaffMember

No description.

DateTime!

No description.

Input

Why a fulfillment order is being held.

FulfillmentHoldReason!

No description.

String

No description.

Enum

Why a merchant is not shipping yet.

ValueMeaning
AWAITING_PAYMENTThe money has not arrived, or has not been verified.
AWAITING_RECEIPT_APPROVALA card-to-card receipt is uploaded and not yet approved.
AWAITING_STOCKThe stock is not here yet.
RISK_REVIEWThe order tripped a risk signal and a person is looking at it.
CUSTOMER_REQUESTThe buyer asked to delay it.
OTHERNo description.
Object

How much of one order line is in a parcel.

OrderLine!

No description.

Int!

No description.

Input

How much of one line is in a parcel.

ID!

No description.

Int!

No description.

Object

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!

No description.

Order!

No description.

Location!

Where this work is to be done from.

FulfillmentOrderStatus!

No description.

[FulfillmentOrderLine!]!

What has to be shipped, and how much of it is left.

DeliveryMethodType!

What the buyer chose at checkout, and what it will cost to honour.

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.

DateTime

When the merchant said they would ship it.

DateTime!

No description.

DateTime!

No description.

Object

A page of fulfillment orders.

[FulfillmentOrderEdge!]!

No description.

[FulfillmentOrder!]!

No description.

PageInfo!

No description.

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.

Object

One fulfillment order, with its cursor.

String!

No description.

FulfillmentOrder!

No description.

Input

A filter on the fulfillment queue.

[FulfillmentOrderStatus!]

No description.

ID

No description.

[FulfillmentHoldReason!]

Held work, so a merchant can see what is stuck and why.

Boolean

Work whose promised ship date has passed.

[DeliveryMethodType!]

No description.

Object

One line of work within a fulfillment order.

ID!

No description.

OrderLine!

No description.

Int!

How many this fulfillment order is responsible for.

Int!

How many are still to ship.

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.

Object

What the fulfillment-order mutations return.

FulfillmentOrder

No description.

Order

No description.

[UserError!]!

No description.

Enum

Where a fulfillment order has got to.

ValueMeaning
OPENReady to be worked.
IN_PROGRESSPartly shipped.
ON_HOLDHeld. See hold.
CLOSEDEverything shipped.
INCOMPLETEAbandoned with work outstanding — the order was cancelled, or the lines were moved to another location.
CANCELLEDNo description.
Object

What the fulfillment mutations return.

Fulfillment

No description.

FulfillmentOrder

No description.

Order

No description.

[UserError!]!

No description.

Enum

Where a fulfillment has got to.

ValueMeaning
PENDINGCreated; not yet handed to a carrier.
SUCCESSWith the carrier, or collected.
CANCELLEDCancelled before it left.
ERRORThe carrier reported a problem. Shipment.status says what.
Object

Goods coming back — مرجوعی.

ID!

No description.

Version!

No description.

Order!

No description.

String!

Merchant-facing, and what the buyer quotes.

ReturnStatus!

No description.

[ReturnLine!]!

No description.

String

Why, in the buyer’s words when they gave a reason.

String

No description.

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.

ReturnShippingPayer!

Who pays to send it back.

Shipment

The inbound parcel, when the merchant arranged one.

DateTime!

No description.

DateTime

No description.

DateTime

No description.

DateTime

No description.

Enum

What condition something came back in.

ValueMeaning
SELLABLEResellable as new.
OPENEDOpened, resellable at a discount.
DAMAGEDNot resellable. Written off as shrinkage.
MISSINGNever arrived, though the buyer says it was sent.
Object

A page of returns.

[ReturnEdge!]!

No description.

[Return!]!

No description.

PageInfo!

No description.

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.

Input

A return the merchant is opening on the buyer’s behalf.

ID!

No description.

[ReturnLineInput!]!

No description.

String

No description.

ReturnShippingPayer

No description.

Boolean

Whether to SMS the buyer with instructions.

Object

One return, with its cursor.

String!

No description.

Return!

No description.

Object

One line coming back.

OrderLine!

No description.

Int!

No description.

Int

How many actually arrived. Null until received.

ReturnReason!

No description.

ReturnCondition

What condition it arrived in. Decides whether it can be resold.

Boolean!

Whether it went back into sellable stock.

Input

One line the buyer is sending back.

ID!

No description.

Int!

No description.

ReturnReason!

No description.

Object

What the return mutations return.

Return

No description.

Order

No description.

[InventoryAdjustment!]!

The stock movements a receipt produced, so the client can show what it did rather than making the merchant go and look.

[UserError!]!

No description.

Enum

Why a buyer is sending something back.

ValueMeaning
SIZEIt does not fit — the commonest reason in apparel by a wide margin.
NOT_AS_DESCRIBEDIt is not what the listing showed.
DAMAGEDNo description.
DEFECTIVENo description.
WRONG_ITEMThe merchant sent the wrong thing.
CHANGED_MINDThe buyer changed their mind, inside the withdrawal window.
ARRIVED_LATENo description.
OTHERNo description.
Input

What actually came back, and what to do with it.

[ReturnReceiveLineInput!]!

No description.

Input

One line as received.

ID!

No description.

Int!

No description.

ReturnCondition!

No description.

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.

Enum

Who pays to send goods back.

ValueMeaning
MERCHANTNo description.
CUSTOMERNo description.
NOT_APPLICABLENeither — the buyer brings it to a location.
Enum

Where a return has got to.

ValueMeaning
REQUESTEDThe buyer has asked. Nothing has moved.
APPROVEDThe merchant agreed. The buyer may send it.
DECLINEDRefused, with a reason on staffNote.
IN_TRANSITOn its way back.
RECEIVEDNo description.
CLOSEDFinished. Any refund is a separate record, made with refundCreate.
CANCELLEDNo description.
Object

A parcel in the carrier’s hands.

ID!

No description.

Carrier

No description.

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.

URL

No description.

ShipmentStatus!

No description.

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.

DeliveryWindow

When it is expected.

DateTime

No description.

DateTime

No description.

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

Object

One report from a carrier.

ShipmentStatus!

No description.

String

The carrier’s own wording, untranslated. It is what support will quote.

String

No description.

DateTime!

No description.

Enum

Where a parcel has got to.

ValueMeaning
PENDINGNo description.
IN_TRANSITNo description.
OUT_FOR_DELIVERYNo description.
DELIVEREDNo description.
ATTEMPTED_DELIVERYThe carrier tried and could not deliver.
REFUSEDThe 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.
RETURNEDNo description.
FAILURENo description.
Input

Carrier and tracking details.

String

No description.

String

No description.

URL

Overrides the carrier’s own tracking page, for a carrier that has none.