Skip to content
gist.link ↗

Shipping types

Type definitions referenced by Shipping queries and mutations.

Object.

Field Type Description
key String! —
version String! —
url String! —
acceptedAt String! —
acceptedBy String auth user uuid (null for IAM/service callers).
hostedByCarrier Boolean! Accepted inside the carrier’s hosted flow.

Object. A frozen address snapshot. Shipping never stores addresses: origins come from settings locations, recipients from crm addresses.

Field Type Description
name String —
company String —
line1 String! —
line2 String —
city String! —
region String —
postalCode String —
country String! —
phone String —
email String —
residential Boolean! —
source String! settings | crm | inline
sourceUuid ID The settings location uuid or crm address uuid (null for inline / the settings business address).
validationStatus String! unverified | valid | invalid | corrected
validationMessages [String!]! —

Input object.

Field Type Description
name String —
company String —
line1 String! —
line2 String —
city String! —
region String —
postalCode String —
country String! —
phone String —
email String —
residential Boolean —

Scalar. The Boolean scalar type represents true or false.

Object.

Field Type Description
code String! Stable code, e.g. usps, ups, fedex, dhl_express, canada_post, purolator, royal_mail, australia_post, dpd, japan_post.
name String! —
originMarkets [String!]! ISO countries the carrier can ship FROM.
destinationMarkets [String!]! ISO countries the carrier can ship TO; empty = worldwide.
serviceLevels [ServiceLevel!]! —
supportsMaster Boolean! Whether a GistLink master account exists for this carrier.
credentialFields [CredentialField!]! Fields a merchant enters for an account_number / api_key BYO connection (never a website login; empty for redirect methods).
labelFormats [String!]! —
availableInMarkets Boolean! True when one of the org’s origin addresses is inside originMarkets.
simulated Boolean! True when the carrier runs on the simulated adapter (no credentials configured).
connectMethod String! BYO connect method: oauth | partner_redirect | account_number | api_key | unavailable
byoAvailable Boolean! Whether the org can connect its own account for this carrier on this server.
byoUnavailableReason String —
byoSimulated Boolean! True when BYO connections run through the dev simulation (SHIPPING_SIMULATE_CARRIER_CONNECT).
accountNumberLabel String Label for the BYO account-number field; null = not collected.
accountNumberHelp String —
accountNumberRequired Boolean! —
terms [CarrierTerm!]! Carrier terms plus (for master-capable carriers) the GistLink Shipping Terms.

Object.

Field Type Description
uuid ID! —
carrier Carrier! —
mode String! master | byo
accountNumber String —
serviceLevels [String!]! Enabled service-level codes; empty = all.
active Boolean! —
testMode Boolean! —
configuredCredentials [String!]! Credential keys that are set (values are never returned).
createdAt String! —
connectedVia String! oauth | partner_redirect | account_number | api_key | master
authStatus String! connected | reauth_required | revoked
termsAccepted [AcceptedTerm!]! Latest accepted version of each term for this account.
termsCurrent Boolean! False when a term was updated since acceptance (re-accept with acceptCarrierTerms).

Object.

Field Type Description
uuid ID! —
method String! oauth | partner_redirect
authorizeUrl String! Browser destination
postFields JSON Non-null when the carrier requires a form POST
expiresAt String! —

Object.

Field Type Description
key String! —
title String! —
url String! —
version String! —
appliesTo String! byo | master | both
hostedByCarrier Boolean! Presented and accepted inside the carrier’s hosted sign-in/registration (BYO redirect methods).

Input object.

Field Type Description
state String! —
params JSON! Raw callback query params

Input object.

Field Type Description
carrier String! —
accountNumber String —
credentials JSON! The carrier’s credentialFields only (never a website username/password).
testMode Boolean —
serviceLevels [String!] —
acceptedTerms [String!]! Exactly the applicable BYO terms as “key@version”.

Input object.

Field Type Description
fromLocationUuid ID A settings ship-from location; omit (with no from) to use the default origin.
from AddressInput —
toCrmAddressUuid ID A crm address; or pass to.
to AddressInput —
rememberRecipient RememberRecipientInput Remember an inline to into crm.
parcels [ParcelInput!] Either parcels or a parcel template.
parcelTemplateUuid ID —
customs CustomsInput —
subtotal MoneyInput —
includeCustom Boolean —
carriers [String!] —
sourceApp String —
sourceRef String —

Object.

Field Type Description
key String! —
label String! —
secret Boolean! —
required Boolean! —
help String Where to find the value (and a reminder it is not a website login).

Object.

Field Type Description
uuid ID! —
name String! —
price Money! —
minSubtotal Money —
maxSubtotal Money —
estimatedDays Int —

Input object.

Field Type Description
name String! —
price MoneyInput! —
minSubtotal MoneyInput —
maxSubtotal MoneyInput —
estimatedDays Int —

Object.

Field Type Description
uuid ID! —
name String! —
countries [String!]! Destination countries; empty = rest of world.
rates [CustomRate!]! —

Object.

Field Type Description
contentsType String! merchandise | gift | documents | sample | return | other
incoterm String! DDU | DDP
items [CustomsItem!]! —
signer String —

Input object.

Field Type Description
contentsType String! —
incoterm String —
items [CustomsItemInput!]! —
signer String —

Object.

Field Type Description
description String! —
quantity Int! —
value Money! —
weightGrams Int! —
hsCode String —
originCountry String! —
sku String —

Input object.

Field Type Description
description String! —
quantity Int! —
value MoneyInput! —
weightGrams Int! —
hsCode String —
originCountry String! —
sku String —

Object.

Field Type Description
status String! —
service String! —

Scalar. The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Scalar. Arbitrary JSON payload (pass-through scalar).

Object.

Field Type Description
uuid ID! —
shipment Shipment! —
rate Rate! —
carrier String! —
serviceLevel String! —
trackingNumber String —
trackingUrl String —
format String! PDF | PNG | ZPL (requested); carriers may return EPL or HTML (served as an attachment)
status String! queued | purchased | failed | voided
trackingStatus String! pre_transit | in_transit | out_for_delivery | delivered | returned | failure | unknown
postage Money! —
platformFee Money! —
accountMode String! master | byo
failureMessage String —
trackingEvents [TrackingEvent!]! —
purchasedAt String —
voidedAt String —
createdAt String! —

Object.

Field Type Description
edges [LabelEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Label! —

Object.

Field Type Description
filename String! —
contentType String! —
base64 String! The file contents, base64-encoded.

Input object.

Field Type Description
status String —
trackingStatus String —
carrier String —
sourceApp String —
sourceRef String —
search String —

Object.

Field Type Description
amount Int! Integer minor units (e.g. cents).
currency String! ISO 4217 currency code.

Input object.

Field Type Description
amount Int! —
currency String! —

Object.

Field Type Description
hasNextPage Boolean! —
endCursor String —

Object.

Field Type Description
lengthMm Int! —
widthMm Int! —
heightMm Int! —
weightGrams Int! —

Input object.

Field Type Description
lengthMm Int! —
widthMm Int! —
heightMm Int! —
weightGrams Int! —

Object.

Field Type Description
uuid ID! —
name String! —
parcel Parcel! —
isDefault Boolean! —

Input object.

Field Type Description
rateUuid ID! —
format String PDF (default) | PNG | ZPL

Input object.

Field Type Description
fromLocationUuid ID A settings ship-from location; omit (with no from) to use the default origin.
from AddressInput —
toCrmAddressUuid ID A crm address; or pass to.
to AddressInput —
rememberRecipient RememberRecipientInput Remember an inline to into crm.
parcels [ParcelInput!]! —
customs CustomsInput —
subtotal MoneyInput Order subtotal used to gate custom rates (min/max subtotal).
includeCustom Boolean Include custom flat rates (default true).
carriers [String!] Restrict to carrier codes.
persist Boolean Persist as a shipment so a rate can later be purchased.
sourceApp String —
sourceRef String —

Object.

Field Type Description
uuid ID —
carrier String! Carrier code, or custom for custom flat rates.
carrierName String! —
carrierAccountUuid ID —
accountMode String! master | byo | custom
serviceLevel String! —
serviceName String! —
amount Money! —
platformFee Money Per-label platform fee billed through the shipping.labels meter (null for custom).
estimatedDays Int —
attributes [String!]! cheapest | fastest | best_value
expiresAt String —
purchasable Boolean! False for custom rates (no label can be bought).

Object.

Field Type Description
carrier String! —
message String! —

Object. Result of quoteRates (rates carry uuids only when persisted).

Field Type Description
shipmentUuid ID —
rates [Rate!]! —
messages [RateMessage!]! —

Input object. Save an inline recipient into crm (rememberAddress, deduplicated per owner).

Field Type Description
contactUuid ID —
companyUuid ID —
ownerHint JSON crm AddressOwnerHint {email, firstName, lastName, phone, companyName}; derived from the address when no owner is given.

Input object.

Field Type Description
uuid ID —
name String! —
countries [String!]! —
rates [CustomRateInput!]! —

Input object.

Field Type Description
uuid ID —
name String! —
parcel ParcelInput! —
isDefault Boolean —

Input object.

Field Type Description
uuid ID —
url String! —
events [String!]! —
active Boolean —

Object.

Field Type Description
code String! —
name String! —
scope String! domestic | international

Object.

Field Type Description
uuid ID! —
from Address! —
to Address! —
parcels [Parcel!]! —
customs Customs —
sourceApp String e.g. pay, shop, api, shipping
sourceRef String e.g. pay:invoice:<uuid>, shop:order:<uuid>
status String! draft | rated | purchased | voided
rates [Rate!]! —
messages [RateMessage!]! Carrier errors/skips encountered while rating (never fatal).
labels [Label!]! —
createdAt String! —

Object.

Field Type Description
edges [ShipmentEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Shipment! —

Input object.

Field Type Description
status String —
sourceApp String —
sourceRef String —
search String —

Object.

Field Type Description
labelCount Int! —
postage [Money!]! Postage spend per currency.
platformFees [Money!]! —
inTransit Int! —
delivered Int! —
exceptions Int! —

Enum. Sort direction for list queries.

Value Description
ASC —
DESC —

Input object. Generic sort specifier: a whitelisted field name plus a direction.

Field Type Description
field String! —
direction SortDirection! —

Input object.

Field Type Description
carrier String! —
testMode Boolean —
acceptedTerms [String!]! Exactly the applicable non-hosted BYO terms as “key@version”.
accountUuid ID Reconnect (re-authorize) an existing BYO account instead of creating a new one.

Scalar. The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Object.

Field Type Description
status String! —
description String! —
location String —
occurredAt String! —

Input object.

Field Type Description
active Boolean —
testMode Boolean —
serviceLevels [String!] —
credentials JSON Only keys present are replaced.
accountNumber String —

Object.

Field Type Description
uuid ID! —
url String! —
events [String!]! label.purchased | label.voided | tracking.updated
active Boolean! —
secret String Only returned once, on create.
createdAt String! —