Shipping types
Type definitions referenced by Shipping queries and mutations.
AcceptedTerm
Section titled “AcceptedTerm”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. |
Address
Section titled “Address”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!]! |
— |
AddressInput
Section titled “AddressInput”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 |
— |
Boolean
Section titled “Boolean”Scalar. The Boolean scalar type represents true or false.
Carrier
Section titled “Carrier”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. |
CarrierAccount
Section titled “CarrierAccount”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). |
CarrierConnectionStart
Section titled “CarrierConnectionStart”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! |
— |
CarrierTerm
Section titled “CarrierTerm”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). |
CompleteCarrierConnectionInput
Section titled “CompleteCarrierConnectionInput”Input object.
| Field | Type | Description |
|---|---|---|
state |
String! |
— |
params |
JSON! |
Raw callback query params |
ConnectCarrierAccountInput
Section titled “ConnectCarrierAccountInput”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”. |
CreateShipmentInput
Section titled “CreateShipmentInput”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 |
— |
CredentialField
Section titled “CredentialField”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). |
CustomRate
Section titled “CustomRate”Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
name |
String! |
— |
price |
Money! |
— |
minSubtotal |
Money |
— |
maxSubtotal |
Money |
— |
estimatedDays |
Int |
— |
CustomRateInput
Section titled “CustomRateInput”Input object.
| Field | Type | Description |
|---|---|---|
name |
String! |
— |
price |
MoneyInput! |
— |
minSubtotal |
MoneyInput |
— |
maxSubtotal |
MoneyInput |
— |
estimatedDays |
Int |
— |
CustomRateTable
Section titled “CustomRateTable”Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
name |
String! |
— |
countries |
[String!]! |
Destination countries; empty = rest of world. |
rates |
[CustomRate!]! |
— |
Customs
Section titled “Customs”Object.
| Field | Type | Description |
|---|---|---|
contentsType |
String! |
merchandise | gift | documents | sample | return | other |
incoterm |
String! |
DDU | DDP |
items |
[CustomsItem!]! |
— |
signer |
String |
— |
CustomsInput
Section titled “CustomsInput”Input object.
| Field | Type | Description |
|---|---|---|
contentsType |
String! |
— |
incoterm |
String |
— |
items |
[CustomsItemInput!]! |
— |
signer |
String |
— |
CustomsItem
Section titled “CustomsItem”Object.
| Field | Type | Description |
|---|---|---|
description |
String! |
— |
quantity |
Int! |
— |
value |
Money! |
— |
weightGrams |
Int! |
— |
hsCode |
String |
— |
originCountry |
String! |
— |
sku |
String |
— |
CustomsItemInput
Section titled “CustomsItemInput”Input object.
| Field | Type | Description |
|---|---|---|
description |
String! |
— |
quantity |
Int! |
— |
value |
MoneyInput! |
— |
weightGrams |
Int! |
— |
hsCode |
String |
— |
originCountry |
String! |
— |
sku |
String |
— |
Health
Section titled “Health”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! |
— |
LabelConnection
Section titled “LabelConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[LabelEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
LabelEdge
Section titled “LabelEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Label! |
— |
LabelFile
Section titled “LabelFile”Object.
| Field | Type | Description |
|---|---|---|
filename |
String! |
— |
contentType |
String! |
— |
base64 |
String! |
The file contents, base64-encoded. |
LabelFilter
Section titled “LabelFilter”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. |
MoneyInput
Section titled “MoneyInput”Input object.
| Field | Type | Description |
|---|---|---|
amount |
Int! |
— |
currency |
String! |
— |
PageInfo
Section titled “PageInfo”Object.
| Field | Type | Description |
|---|---|---|
hasNextPage |
Boolean! |
— |
endCursor |
String |
— |
Parcel
Section titled “Parcel”Object.
| Field | Type | Description |
|---|---|---|
lengthMm |
Int! |
— |
widthMm |
Int! |
— |
heightMm |
Int! |
— |
weightGrams |
Int! |
— |
ParcelInput
Section titled “ParcelInput”Input object.
| Field | Type | Description |
|---|---|---|
lengthMm |
Int! |
— |
widthMm |
Int! |
— |
heightMm |
Int! |
— |
weightGrams |
Int! |
— |
ParcelTemplate
Section titled “ParcelTemplate”Object.
| Field | Type | Description |
|---|---|---|
uuid |
ID! |
— |
name |
String! |
— |
parcel |
Parcel! |
— |
isDefault |
Boolean! |
— |
PurchaseLabelInput
Section titled “PurchaseLabelInput”Input object.
| Field | Type | Description |
|---|---|---|
rateUuid |
ID! |
— |
format |
String |
PDF (default) | PNG | ZPL |
QuoteRatesInput
Section titled “QuoteRatesInput”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). |
RateMessage
Section titled “RateMessage”Object.
| Field | Type | Description |
|---|---|---|
carrier |
String! |
— |
message |
String! |
— |
RateQuote
Section titled “RateQuote”Object. Result of quoteRates (rates carry uuids only when persisted).
| Field | Type | Description |
|---|---|---|
shipmentUuid |
ID |
— |
rates |
[Rate!]! |
— |
messages |
[RateMessage!]! |
— |
RememberRecipientInput
Section titled “RememberRecipientInput”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. |
SaveCustomRateTableInput
Section titled “SaveCustomRateTableInput”Input object.
| Field | Type | Description |
|---|---|---|
uuid |
ID |
— |
name |
String! |
— |
countries |
[String!]! |
— |
rates |
[CustomRateInput!]! |
— |
SaveParcelTemplateInput
Section titled “SaveParcelTemplateInput”Input object.
| Field | Type | Description |
|---|---|---|
uuid |
ID |
— |
name |
String! |
— |
parcel |
ParcelInput! |
— |
isDefault |
Boolean |
— |
SaveWebhookEndpointInput
Section titled “SaveWebhookEndpointInput”Input object.
| Field | Type | Description |
|---|---|---|
uuid |
ID |
— |
url |
String! |
— |
events |
[String!]! |
— |
active |
Boolean |
— |
ServiceLevel
Section titled “ServiceLevel”Object.
| Field | Type | Description |
|---|---|---|
code |
String! |
— |
name |
String! |
— |
scope |
String! |
domestic | international |
Shipment
Section titled “Shipment”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! |
— |
ShipmentConnection
Section titled “ShipmentConnection”Object.
| Field | Type | Description |
|---|---|---|
edges |
[ShipmentEdge!]! |
— |
pageInfo |
PageInfo! |
— |
totalCount |
Int! |
— |
ShipmentEdge
Section titled “ShipmentEdge”Object.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
— |
node |
Shipment! |
— |
ShipmentFilter
Section titled “ShipmentFilter”Input object.
| Field | Type | Description |
|---|---|---|
status |
String |
— |
sourceApp |
String |
— |
sourceRef |
String |
— |
search |
String |
— |
ShippingSummary
Section titled “ShippingSummary”Object.
| Field | Type | Description |
|---|---|---|
labelCount |
Int! |
— |
postage |
[Money!]! |
Postage spend per currency. |
platformFees |
[Money!]! |
— |
inTransit |
Int! |
— |
delivered |
Int! |
— |
exceptions |
Int! |
— |
SortDirection
Section titled “SortDirection”Enum. Sort direction for list queries.
| Value | Description |
|---|---|
ASC |
— |
DESC |
— |
SortInput
Section titled “SortInput”Input object. Generic sort specifier: a whitelisted field name plus a direction.
| Field | Type | Description |
|---|---|---|
field |
String! |
— |
direction |
SortDirection! |
— |
StartCarrierConnectionInput
Section titled “StartCarrierConnectionInput”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. |
String
Section titled “String”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.
TrackingEvent
Section titled “TrackingEvent”Object.
| Field | Type | Description |
|---|---|---|
status |
String! |
— |
description |
String! |
— |
location |
String |
— |
occurredAt |
String! |
— |
UpdateCarrierAccountInput
Section titled “UpdateCarrierAccountInput”Input object.
| Field | Type | Description |
|---|---|---|
active |
Boolean |
— |
testMode |
Boolean |
— |
serviceLevels |
[String!] |
— |
credentials |
JSON |
Only keys present are replaced. |
accountNumber |
String |
— |
WebhookEndpoint
Section titled “WebhookEndpoint”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! |
— |