Shipping
DeliveryEstimate
Section titled “DeliveryEstimate”What a buyer is told to expect.
minDays
Section titled “minDays”Int!
Business days, as the merchant or carrier states it.
maxDays
Section titled “maxDays”Int!
No description.
excludeHolidays
Section titled “excludeHolidays”Boolean!
Whether the platform adjusts for holidays.
Nowruz is a fortnight in which nothing moves, and a shop promising two days through it is a shop taking complaints for a month.
DeliveryEstimateInput
Section titled “DeliveryEstimateInput”A delivery estimate, as supplied.
minDays
Section titled “minDays”Int!
No description.
maxDays
Section titled “maxDays”Int!
No description.
excludeHolidays
Section titled “excludeHolidays”Boolean
No description.
ShippingBand
Section titled “ShippingBand”One band of a banded rate.
Decimal!
The lower bound, inclusive. Grams, rial, or items, per the rate’s kind.
Decimal
The upper bound, exclusive. Null on the last band, which is open-ended.
Money!
No description.
ShippingBandInput
Section titled “ShippingBandInput”One band, as supplied.
Decimal!
No description.
Decimal
Omit on the last band to leave it open-ended.
MoneyInput!
No description.
ShippingCoverage
Section titled “ShippingCoverage”What shippingCoverage returns.
uncoveredProvinceCodes
Section titled “uncoveredProvinceCodes”[String!]!
Provinces no zone in this profile covers.
The check a merchant should run before going live: a buyer in an uncovered province reaches checkout, is quoted nothing, and leaves. Nothing else in the API would have told them.
overlappingProvinceCodes
Section titled “overlappingProvinceCodes”[String!]!
Provinces covered by more than one zone, where the first match wins.
ratesWithBandGaps
Section titled “ratesWithBandGaps”[ShippingRate!]!
Rates whose bands leave a gap, which quotes nothing for carts inside it.
isComplete
Section titled “isComplete”Boolean!
Whether the shop can quote a price to every province.
ShippingProfile
Section titled “ShippingProfile”A set of products, and the delivery rules that apply to them.
Every shop has a DEFAULT profile covering everything not named elsewhere.
Additional profiles exist for goods that do not ship like the rest — furniture,
anything fragile, anything a courier surcharges.
ID!
No description.
version
Section titled “version”Version!
No description.
String!
No description.
isDefault
Section titled “isDefault”Boolean!
Whether this is the profile everything falls back to. Exactly one is.
products
Section titled “products”ProductConnection!
Which products it covers. Empty on the default profile, which covers the rest.
| Argument | Type | Meaning |
|---|---|---|
first | Int | No description. |
after | String | No description. |
productCount
Section titled “productCount”Int!
No description.
[ShippingZone!]!
No description.
createdAt
Section titled “createdAt”DateTime!
No description.
updatedAt
Section titled “updatedAt”DateTime!
No description.
ShippingProfileInput
Section titled “ShippingProfileInput”A shipping profile to create.
String!
No description.
productIds
Section titled “productIds”[ID!]
Products this profile covers. Ignored on the default profile.
ShippingProfilePayload
Section titled “ShippingProfilePayload”What the shipping-profile mutations return.
profile
Section titled “profile”ShippingProfile
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
ShippingRate
Section titled “ShippingRate”What delivery costs in one zone.
ID!
No description.
version
Section titled “version”Version!
No description.
ShippingZone!
No description.
String!
What the buyer sees at checkout — «پست پیشتاز»، «تیپاکس».
description
Section titled “description”String
No description.
ShippingRateKind!
No description.
Money
The price, for a FLAT rate. Zero for FREE.
[ShippingBand!]!
The bands, for a banded rate. Ordered, contiguous, and the last may be open.
A gap between bands is a cart that gets quoted nothing, so the platform validates that they meet.
carrier
Section titled “carrier”Carrier
The carrier to ask, for a CARRIER_CALCULATED rate.
Only where Carrier.integrated is true. A carrier the platform cannot call is
one a merchant prices by hand.
When the carrier does not answer, the last successful quote for that zone
and weight band is used, and the option is marked estimated — see
CartDeliveryOption.isEstimated. The buyer always has a way to check out.
Rejected: hiding the option. If it is the merchant’s only rate for that
province the buyer is quoted nothing and leaves, which is the exact failure
shippingCoverage exists to prevent — and a carrier being briefly unreachable
is not the same as not shipping there. Being wrong by a few per cent on one
parcel is much cheaper than losing the sale.
quoteFallbackHours
Section titled “quoteFallbackHours”Int
How long a carrier quote may be reused when the carrier is unreachable.
Null uses the platform default. Zero refuses the fallback entirely, for a merchant whose margins will not survive a stale quote — which is how the hide-the-option behaviour remains available to anyone who wants it, without being the default that silently costs everyone else sales.
carrierMarkup
Section titled “carrierMarkup”Float
A markup on what the carrier quotes, as a fraction. 0.1 adds ten per cent.
Merchants routinely add one to cover packaging, and a rate that cannot express it is a rate they will replace with a flat guess.
freeAbove
Section titled “freeAbove”Money
Free above this cart subtotal. Null for a rate that is never free.
The most-used promotion in this market, and it belongs on the rate rather than in the discount engine: a merchant thinks of it as “free delivery over 500,000”, not as a shipping discount with conditions.
estimatedDays
Section titled “estimatedDays”DeliveryEstimate
What the buyer is told to expect.
isActive
Section titled “isActive”Boolean!
Whether buyers can choose it. A rate is disabled, not deleted, off-season.
position
Section titled “position”Int!
Where it sits in the list a buyer chooses from.
ShippingRateInput
Section titled “ShippingRateInput”A rate to create or change. Partial on update.
zoneId
Section titled “zoneId”ID
No description.
String
No description.
description
Section titled “description”String
No description.
ShippingRateKind
No description.
MoneyInput
No description.
[ShippingBandInput!]
Required for a banded kind. Must be contiguous; a gap quotes nothing.
carrierCode
Section titled “carrierCode”String
No description.
carrierMarkup
Section titled “carrierMarkup”Float
No description.
freeAbove
Section titled “freeAbove”MoneyInput
No description.
estimatedDays
Section titled “estimatedDays”DeliveryEstimateInput
No description.
isActive
Section titled “isActive”Boolean
No description.
position
Section titled “position”Int
No description.
ShippingRateKind
Section titled “ShippingRateKind”How a rate’s price is decided.
| Value | Meaning |
|---|---|
FLAT | One price, whatever is in the cart. |
FREE | Free. Distinct from a zero flat rate so a storefront can label it. |
WEIGHT_BANDED | By total weight. What Iran Post and Tipax actually charge on. |
PRICE_BANDED | By cart subtotal. What merchants use when they do not weigh anything. |
ITEM_BANDED | By item count. Simple, and common for small uniform goods. |
CARRIER_CALCULATED | Asked of the carrier at checkout. Needs an integrated carrier. |
ShippingRatePayload
Section titled “ShippingRatePayload”What the rate mutations return.
ShippingRate
No description.
ShippingZone
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
ShippingZone
Section titled “ShippingZone”Where a set of rules applies.
Provinces rather than free text, from the same maintained dataset addresses use. A zone named by typing “تهران” would not match an address that stored “طهران”, and the buyer would be quoted nothing at all.
ID!
No description.
version
Section titled “version”Version!
No description.
String!
No description.
profile
Section titled “profile”ShippingProfile!
No description.
provinceCodes
Section titled “provinceCodes”[String!]!
The provinces covered — استان codes.
Empty means everywhere not covered by another zone in this profile, which is how a merchant expresses “the rest of the country” without listing thirty entries.
cityCodes
Section titled “cityCodes”[String!]!
Cities within those provinces, when a merchant prices a capital differently from its province.
Empty means the whole province. Used mostly for Tehran, where same-day couriers reach the city and not the province around it.
[ShippingRate!]!
No description.
cashOnDeliveryAvailable
Section titled “cashOnDeliveryAvailable”Boolean!
Whether cash on delivery is offered here.
Its own field rather than inferred from the payment configuration, because the answer is genuinely per-zone: couriers will not collect cash everywhere, and offering it where it cannot be honoured produces an order the merchant has to cancel and eat the freight on.
createdAt
Section titled “createdAt”DateTime!
No description.
ShippingZoneInput
Section titled “ShippingZoneInput”A zone to create or change. Partial on update.
profileId
Section titled “profileId”ID
No description.
String
No description.
provinceCodes
Section titled “provinceCodes”[String!]
Empty means everywhere not covered by another zone in the same profile.
cityCodes
Section titled “cityCodes”[String!]
Empty means the whole province.
cashOnDeliveryAvailable
Section titled “cashOnDeliveryAvailable”Boolean
No description.
ShippingZonePayload
Section titled “ShippingZonePayload”What the zone mutations return.
ShippingZone
No description.
profile
Section titled “profile”ShippingProfile
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.