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

Shipping

Object

What a buyer is told to expect.

Int!

Business days, as the merchant or carrier states it.

Int!

No description.

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.

Input

A delivery estimate, as supplied.

Int!

No description.

Int!

No description.

Boolean

No description.

Object

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.

Input

One band, as supplied.

Decimal!

No description.

Decimal

Omit on the last band to leave it open-ended.

MoneyInput!

No description.

Object

What shippingCoverage returns.

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

[String!]!

Provinces covered by more than one zone, where the first match wins.

[ShippingRate!]!

Rates whose bands leave a gap, which quotes nothing for carts inside it.

Boolean!

Whether the shop can quote a price to every province.

Object

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!

No description.

String!

No description.

Boolean!

Whether this is the profile everything falls back to. Exactly one is.

ProductConnection!

Which products it covers. Empty on the default profile, which covers the rest.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.

Int!

No description.

[ShippingZone!]!

No description.

DateTime!

No description.

DateTime!

No description.

Input

A shipping profile to create.

String!

No description.

[ID!]

Products this profile covers. Ignored on the default profile.

Object

What the shipping-profile mutations return.

ShippingProfile

No description.

[UserError!]!

No description.

Object

What delivery costs in one zone.

ID!

No description.

Version!

No description.

ShippingZone!

No description.

String!

What the buyer sees at checkout — «پست پیشتاز»، «تیپاکس».

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

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.

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.

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.

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.

DeliveryEstimate

What the buyer is told to expect.

Boolean!

Whether buyers can choose it. A rate is disabled, not deleted, off-season.

Int!

Where it sits in the list a buyer chooses from.

Input

A rate to create or change. Partial on update.

ID

No description.

String

No description.

String

No description.

ShippingRateKind

No description.

MoneyInput

No description.

[ShippingBandInput!]

Required for a banded kind. Must be contiguous; a gap quotes nothing.

String

No description.

Float

No description.

MoneyInput

No description.

DeliveryEstimateInput

No description.

Boolean

No description.

Int

No description.

Enum

How a rate’s price is decided.

ValueMeaning
FLATOne price, whatever is in the cart.
FREEFree. Distinct from a zero flat rate so a storefront can label it.
WEIGHT_BANDEDBy total weight. What Iran Post and Tipax actually charge on.
PRICE_BANDEDBy cart subtotal. What merchants use when they do not weigh anything.
ITEM_BANDEDBy item count. Simple, and common for small uniform goods.
CARRIER_CALCULATEDAsked of the carrier at checkout. Needs an integrated carrier.
Object

What the rate mutations return.

ShippingRate

No description.

ShippingZone

No description.

[UserError!]!

No description.

Object

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!

No description.

String!

No description.

ShippingProfile!

No description.

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

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

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.

DateTime!

No description.

Input

A zone to create or change. Partial on update.

ID

No description.

String

No description.

[String!]

Empty means everywhere not covered by another zone in the same profile.

[String!]

Empty means the whole province.

Boolean

No description.

Object

What the zone mutations return.

ShippingZone

No description.

ShippingProfile

No description.

[UserError!]!

No description.