Pircel public API
Pircel provides you with APIs that you can use for processes involving your store and your partner carriers. For a procedure such as "Create Voucher", we provide you with an API call for all delivery companies.
How to send a request?
const response = await fetch("https://test-api.pircel.com", {
method: "POST",
mode: "cors",
headers: new Headers({
"Content-Type": "application/json",
// replace '1234' with your API key
apikey: "1234"
}),
body: JSON.stringify({
query: `mutation createVoucher(: String, : String!, : Int!, : Date){
createVoucher(notes: , orderId: , packagesQuantity: , pickupDate: ){
voucherPrintDocuments
vouchers
}
}`,
variables: {
notes: "Fragile packages",
orderId: "14317",
packagesQuantity: 2,
pickupDate: "2023-10-03",
}
})
});
With JavaScript, it is possible to just use a template literal and simplify the API call body.
const response = await fetch('https://test-api.pircel.com', {
method: 'POST',
mode: 'cors',
headers: new Headers({
'Content-Type': 'application/json',
// replace '1234' with your API key
apikey: '1234',
}),
body: JSON.stringify({
query: `mutation {
createVoucher(
notes: "Fragile",
orderId: "A1",
packagesQuantity: 1,
pickupDate: "2023-03-06",
) {
vouchers
voucherPrintDocuments
}
}`
}),
});
You can find a working example on codesandbox.
We are using GraphQL API.
GraphQL is a query language and server-side runtime for application programming interfaces (APIs) that prioritizes giving clients exactly the data they request and no more. GraphQL is designed to make APIs fast, flexible, and developer-friendly.
API are separate in two categories query & mutation:
query: When we want to read an information that is already stored.
structure:
{
field(arg: "value") {
subField
}
}
mutation: When we want to change information (create, update, delete).
structure:
mutation {
field (arg: "value") {
subField
}
}
You can go to https://test-api.pircel.com and have access to try all the queries/mutations (API) we provide to you.
To try any of the API first you should add a shipment.
Follow the link and run the default mutation that we provide to you. 
The following error messages were suggested:
'addShipment.invalidPostcode' ⇒ Μη έγκυρος ταχυδρομικός κώδικας
'addShipment.orderIdAlreadyExists' ⇒ Η παραγγελία υπάρχει ήδη
'authenticate.invalidSession' ⇒ Μη έγκυρο session, παρακαλώ συνδεθείτε ξανά
'cancelVoucher.eshopNotFound' ⇒ Δεν βρέθηκε ηλεκτρονικό κατάστημα
'cancelVoucher.orderNotFound' ⇒ Δεν βρέθηκε η παραγγελία
'createPickupList.invalidDeliveryCompany' ⇒ Μη έγκυρη μεταφορική εταιρεία
'createPickupList.noShipmentsForSelectedDeliveryCompanies' ⇒ Δεν βρέθηκαν οι αποστολές για τις επιλεγμένες μεταφορικές εταιρείες
'createPickupList.noShipmentsFound' ⇒ Δεν βρέθηκαν οι αποστολές
'createPickupList.unprintedVouchers' ⇒ Βρέθηκαν μη εκτυπωμένα παραστατικά
'createVoucher.invalidDeliveryCompany' ⇒ Μη έγκυρη μεταφορική εταιρεία
'createVoucher.invalidPickupDate' ⇒ Μη έγκυρη ημερομηνία παραλαβής
'createVoucher.newArgsCancelFirstExistingVouchers' ⇒ Αδυναμία δημιουργίας ή λήψης νέου παραστατικού. Το παραστατικό έχει ήδη δημιουργηθεί για αυτή την παραγγελία. Παρακαλούμε για να προβείτε σε νέα δημιουργία ακυρώστε πρώτα το προηγούμενο παραστατικό.
'createVoucher.orderNotFound' ⇒ Δεν βρέθηκε παραγγελία
'forbidden'⇒ Απαγορεύεται η πρόσβαση
'invalidpickuDateType', ⇒ Μη έγκυρη μορφή ημερομηνίας παραλαβής
'login.userNotFound' ⇒ Δεν βρέθηκε ο χρήστης
'pintVoucher.canceledVouchersFound' ⇒ Βρέθηκαν ακυρωμένα παραστατικά
'printVoucher.orderNotFound' ⇒ Δεν βρέθηκε η παραγγελία
'printVoucher.vouchersNotFound' ⇒ Δεν βρέθηκαν παραστατικά
'updateShipment.invalidPostcode' ⇒ Μη έγκυρος ταχυδρομικός κώδικας
'updateShipment.orderIdCannotChange' ⇒ Ο κωδικός της παραγγελίας δεν μπορεί να αλλάξει
'updateShipment.shipmentCannotChange' ⇒ Η παραγγελία δεν μπορεί να αλλάξει γιατι έχουν ήδη δημιουργηθεί παραστατικά
'speedex.apiInaccessible' ⇒ Το API της Speedex δεν είναι διαθέσιμο
'speedex.cannotCreateSession' ⇒ Το API της Speedex δεν είναι διαθέσιμο
'createVoucher.speedex.invalidPostcode' ⇒ Μη έγκυρος ταχυδρομικός κώδικας
'speedex.noResponse' ⇒ Το API της Speedex δεν είναι διαθέσιμο
'printPickupList.speedex.noPickupListNumber' ⇒ Δεν υπάρχει αριθμός λίστας παραλαβής
'printVoucher.speedex.noVoucher' ⇒ Δεν βρέθηκε παραστατικό
API Endpoints
# Test (Currently offline):
https://test-api.pircel.com
# Production:
https://api.pircel.com
Headers
# Your API token from the dashboard. Must be included in all API calls.
apikey: <YOUR_TOKEN_HERE>
Queries
deliveryCompanies
Description
Get delivery companies with optional filtering
Response
Returns [DeliveryCompany]
Arguments
| Name | Description |
|---|---|
companies - [DeliveryCompanyIDOrSlugInput]
|
Specific delivery companies to retrieve by ID or slug |
eshopId - String
|
Filter delivery companies by eshop ID |
forCheckout - Boolean
|
Only return companies visible at checkout |
tags - [String]
|
Filter by tags |
withApiIntegration - Boolean
|
Only return companies with API integration |
Example
Query
query DeliveryCompanies(
$companies: [DeliveryCompanyIDOrSlugInput],
$eshopId: String,
$forCheckout: Boolean,
$tags: [String],
$withApiIntegration: Boolean
) {
deliveryCompanies(
companies: $companies,
eshopId: $eshopId,
forCheckout: $forCheckout,
tags: $tags,
withApiIntegration: $withApiIntegration
) {
_id
createdAt
credentialFields {
isRequired
isSecret
key
label
type
}
defaultConfig {
displayAtCheckout
minimumPrice
priceMultiplier
roundingIncrement
}
description
hasAction
hasApiIntegration
internalOnly
isEnabled
isVisibleAtCheckout
logo {
alt
path
}
minimumWeight
name
pickupTimeOptions {
closeOptions
fixedOptions
mode
readyOptions
}
services
slug
supportedActions
tags
trackingUrlInformation {
baseUrl
exampleUrl
parameterName
supportsDeepLink
urlType
}
updatedAt
usesAccountShipperAddress
}
}
Variables
{
"companies": [DeliveryCompanyIDOrSlugInput],
"eshopId": "abc123",
"forCheckout": true,
"tags": ["xyz789"],
"withApiIntegration": false
}
Response
{
"data": {
"deliveryCompanies": [
{
"_id": "4",
"createdAt": "2007-12-03T10:15:30Z",
"credentialFields": [CredentialField],
"defaultConfig": DeliveryCompanyDefaultConfig,
"description": "xyz789",
"hasAction": true,
"hasApiIntegration": false,
"internalOnly": true,
"isEnabled": true,
"isVisibleAtCheckout": false,
"logo": Logo,
"minimumWeight": 123.45,
"name": "abc123",
"pickupTimeOptions": PickupTimeOptions,
"services": ["abc123"],
"slug": "xyz789",
"supportedActions": ["CANCEL_VOUCHER"],
"tags": ["abc123"],
"trackingUrlInformation": TrackingUrlInformation,
"updatedAt": "2007-12-03T10:15:30Z",
"usesAccountShipperAddress": false
}
]
}
}
eshop
Description
Get eshop details
Example
Query
query Eshop($_id: ObjectID) {
eshop(_id: $_id) {
_id
address
addressBook {
_id
address {
...AddressFragment
}
contact {
...ContactFragment
}
isDefault
name
}
apikey
brandAssets {
logos {
...BrandLogosFragment
}
}
city
deliveryCompanies {
config {
...EshopDeliveryCompanyConfigFragment
}
deliveryCompany {
...DeliveryCompanyFragment
}
isEnabled
}
name
packageInsurance
pageCustomization {
colorScheme {
...ColorSchemeFragment
}
}
phone
postcode
securityValue
slug
storeConnections {
_id
expiresAt
externalId
lastSyncedAt
platform
pluginVersion
scopes
status
storeDomain
}
}
}
Variables
{"_id": "5e5677d71bdc2ae76344968c"}
Response
{
"data": {
"eshop": {
"_id": "5e5677d71bdc2ae76344968c",
"address": "abc123",
"addressBook": [AddressBookEntryType],
"apikey": "xyz789",
"brandAssets": BrandAssets,
"city": "xyz789",
"deliveryCompanies": [EshopDeliveryCompany],
"name": "abc123",
"packageInsurance": 987.65,
"pageCustomization": PageCustomization,
"phone": "abc123",
"postcode": "abc123",
"securityValue": 987.65,
"slug": "abc123",
"storeConnections": [StoreConnection]
}
}
}
eshopBranding
Description
Get public branding information for an eshop, can be used for branded pages (tracking, returns portal, etc.).
Response
Returns an EshopBranding
Arguments
| Name | Description |
|---|---|
eshopId - ObjectID!
|
Eshop identifier |
Example
Query
query EshopBranding($eshopId: ObjectID!) {
eshopBranding(eshopId: $eshopId) {
_id
colorScheme {
accent
background
primary
secondary
}
customization {
_placeholder
}
logos {
horizontal {
...LogoFragment
}
icon {
...LogoFragment
}
primary {
...LogoFragment
}
}
name
}
}
Variables
{"eshopId": "5e5677d71bdc2ae76344968c"}
Response
{
"data": {
"eshopBranding": {
"_id": "5e5677d71bdc2ae76344968c",
"colorScheme": BrandColorScheme,
"customization": CustomizationExtensions,
"logos": BrandLogos,
"name": "abc123"
}
}
}
trackShipment
Description
Track an order based on eshop ID and shipment ID
Response
Returns a TrackingResult
Example
Query
query TrackShipment(
$eshopId: ObjectID!,
$shipmentId: ObjectID!
) {
trackShipment(
eshopId: $eshopId,
shipmentId: $shipmentId
) {
parcels {
_id
billableWeight
contents {
...ParcelContentsFragment
}
dimensions {
...ParcelDimensionsFragment
}
volumetricWeight
weight
}
products {
_id
category
countryOfOrigin
description
dimensions {
...ProductDimensionsFragment
}
externalId
extraAttributes
harmonizedSystemCode
image
metadata
price
quantity
size
sku
title
weight
}
recipient {
address {
...AddressFragment
}
contact {
...ContactFragment
}
}
trackingDetails {
carrierTrackingUrl
deliveredAt
deliveryCompany {
...DeliveryCompanyFragment
}
eshopTrackingUrl
estimatedDelivery
events {
...TrackingEventFragment
}
isActive
lastStatus
lastSyncedAt
lastUpdated
nextPollAt
returnToSender
slaTier
voucherCode
}
}
}
Variables
{
"eshopId": "5e5677d71bdc2ae76344968c",
"shipmentId": "5e5677d71bdc2ae76344968c"
}
Response
{
"data": {
"trackShipment": {
"parcels": [Parcel],
"products": [Product],
"recipient": Recipient,
"trackingDetails": TrackingDetails
}
}
}
trackVoucher
Response
Returns [VoucherTracking]
Arguments
| Name | Description |
|---|---|
code - String
|
Voucher code |
Example
Query
query TrackVoucher($code: String) {
trackVoucher(code: $code) {
checkpointAction
checkpointDateTime
checkpointLocation
checkpointNotes
code
shipmentId
}
}
Variables
{"code": "xyz789"}
Response
{
"data": {
"trackVoucher": [
{
"checkpointAction": "abc123",
"checkpointDateTime": "2007-12-03T10:15:30Z",
"checkpointLocation": "abc123",
"checkpointNotes": "xyz789",
"code": "abc123",
"shipmentId": "5e5677d71bdc2ae76344968c"
}
]
}
}
validateTrackingRequest
Description
Validate a tracking request for a shipment
Response
Returns a ValidateTrackingResult
Example
Query
query ValidateTrackingRequest(
$email: String!,
$eshopId: ObjectID!,
$orderId: String!
) {
validateTrackingRequest(
email: $email,
eshopId: $eshopId,
orderId: $orderId
) {
isValid
shipmentId
}
}
Variables
{
"email": "abc123",
"eshopId": "5e5677d71bdc2ae76344968c",
"orderId": "abc123"
}
Response
{
"data": {
"validateTrackingRequest": {
"isValid": false,
"shipmentId": "5e5677d71bdc2ae76344968c"
}
}
}
Mutations
addShipment
Description
Add a shipment.
Response
Returns a Shipment
Arguments
| Name | Description |
|---|---|
buyerNotes - String
|
Customer's notes. |
eshopId - ObjectID
|
Required if the user belongs to or owns multiple eshops. Admins must specify an eshop. Not required for eshop integrations. |
geniki - GenikiInput
|
Geniki delivery company specific fields |
includeVat - Boolean
|
Whether to include VAT in the calculated shipping prices. Defaults to true if not specified. |
isB2BInvoice - Boolean
|
Indicates if the shipment is for a B2B invoice (true) or B2C invoice (false). False by default. |
orderId - String
|
Order's id. Must be provided for the prod-test environment |
parcels - [ParcelInput!]!
|
List of parcels in this shipment (minimum 1 required). Each parcel includes dimensions, weight, and optional product distribution. |
paymentMethod - ShipmentPaymentMethodEnum
|
Customer's payment method. |
products - [ProductInput]!
|
List of products. |
productsQuantity - Int!
|
Products quantity. |
recipient - RecipientCreateInput!
|
Recipient details including address and contact information. |
recipientLogistics - RecipientLogisticsInput
|
Customer-provided logistics company details when using recipient-logistics. |
selectedRate - SelectedRateInput
|
The selected service and rate for the shipment |
senderNotes - String
|
Sender's notes. |
shipper - ShipperInput
|
Shipper details including address and contact information. |
source - ShipmentSourceEnum
|
Source of the shipment creation. |
status - ShipmentStatusEnum
|
Shipment's status. For non-admin users, the only valid option is NEW, MANUALLY_CREATED or CHECKOUT_COMPLETE. |
Example
Query
mutation AddShipment(
$buyerNotes: String,
$eshopId: ObjectID,
$geniki: GenikiInput,
$includeVat: Boolean,
$isB2BInvoice: Boolean,
$orderId: String,
$parcels: [ParcelInput!]!,
$paymentMethod: ShipmentPaymentMethodEnum,
$products: [ProductInput]!,
$productsQuantity: Int!,
$recipient: RecipientCreateInput!,
$recipientLogistics: RecipientLogisticsInput,
$selectedRate: SelectedRateInput,
$senderNotes: String,
$shipper: ShipperInput,
$source: ShipmentSourceEnum,
$status: ShipmentStatusEnum
) {
addShipment(
buyerNotes: $buyerNotes,
eshopId: $eshopId,
geniki: $geniki,
includeVat: $includeVat,
isB2BInvoice: $isB2BInvoice,
orderId: $orderId,
parcels: $parcels,
paymentMethod: $paymentMethod,
products: $products,
productsQuantity: $productsQuantity,
recipient: $recipient,
recipientLogistics: $recipientLogistics,
selectedRate: $selectedRate,
senderNotes: $senderNotes,
shipper: $shipper,
source: $source,
status: $status
) {
_id
actions {
info
time
type
}
availableRates {
deliveryCompany {
...DeliveryCompanyFragment
}
error
rating
services {
...ServiceFragment
}
}
buyerNotes
costSummary {
deliveryCost
productsTotal
totalCost
totalCostVatInclusive
}
createdAt
eshop {
_id
address
addressBook {
...AddressBookEntryTypeFragment
}
apikey
brandAssets {
...BrandAssetsFragment
}
city
deliveryCompanies {
...EshopDeliveryCompanyFragment
}
name
packageInsurance
pageCustomization {
...PageCustomizationFragment
}
phone
postcode
securityValue
slug
storeConnections {
...StoreConnectionFragment
}
}
geniki {
chargeCode
jobId
}
isB2BInvoice
orderId
otherDocuments {
documentType
encodedDocument
externalId
}
parcels {
_id
billableWeight
contents {
...ParcelContentsFragment
}
dimensions {
...ParcelDimensionsFragment
}
volumetricWeight
weight
}
paymentMethod
pickupAddress {
address
addressBookEntry
city
country
countryCode
name
postcode
}
pickupDate
products {
_id
category
countryOfOrigin
description
dimensions {
...ProductDimensionsFragment
}
externalId
extraAttributes
harmonizedSystemCode
image
metadata
price
quantity
size
sku
title
weight
}
productsQuantity
recipient {
address {
...AddressFragment
}
contact {
...ContactFragment
}
}
recipientLogistics {
companyName
email
phone
}
selectedRate {
costs {
...CostsFragment
}
deliveryCompany {
...DeliveryCompanyFragment
}
priceComponents {
...PricingComponentFragment
}
rating
serviceCode
serviceName
transitTime {
...TransitTimeFragment
}
}
senderNotes
shipmentPurpose
shipper {
address {
...AddressFragment
}
addressBookEntry
contact {
...ContactFragment
}
}
shippingRegionType
status
trackingDetails {
carrierTrackingUrl
deliveredAt
deliveryCompany {
...DeliveryCompanyFragment
}
eshopTrackingUrl
estimatedDelivery
events {
...TrackingEventFragment
}
isActive
lastStatus
lastSyncedAt
lastUpdated
nextPollAt
returnToSender
slaTier
voucherCode
}
vatDetails {
valueAddedTaxIncluded
vatRate
}
voucherPrintDocuments {
encodedDocument
status
}
vouchers {
code
status
type
}
}
}
Variables
{
"buyerNotes": "xyz789",
"eshopId": "5e5677d71bdc2ae76344968c",
"geniki": GenikiInput,
"includeVat": true,
"isB2BInvoice": true,
"orderId": "xyz789",
"parcels": [ParcelInput],
"paymentMethod": "BANK_DEPOSIT",
"products": [ProductInput],
"productsQuantity": 123,
"recipient": RecipientCreateInput,
"recipientLogistics": RecipientLogisticsInput,
"selectedRate": SelectedRateInput,
"senderNotes": "abc123",
"shipper": ShipperInput,
"source": "CHECKOUT",
"status": "CANCELED"
}
Response
{
"data": {
"addShipment": {
"_id": "5e5677d71bdc2ae76344968c",
"actions": [ShipmentAction],
"availableRates": [DeliveryRate],
"buyerNotes": "abc123",
"costSummary": CostSummary,
"createdAt": "2007-12-03T10:15:30Z",
"eshop": Eshop,
"geniki": GenikiFields,
"isB2BInvoice": true,
"orderId": "xyz789",
"otherDocuments": [OtherDocument],
"parcels": [Parcel],
"paymentMethod": "BANK_DEPOSIT",
"pickupAddress": PickupAddress,
"pickupDate": "2007-12-03",
"products": [Product],
"productsQuantity": 123,
"recipient": Recipient,
"recipientLogistics": RecipientLogistics,
"selectedRate": SelectedRate,
"senderNotes": "xyz789",
"shipmentPurpose": "GIFT",
"shipper": Shipper,
"shippingRegionType": "DOMESTIC",
"status": "CANCELED",
"trackingDetails": TrackingDetails,
"vatDetails": VatDetails,
"voucherPrintDocuments": [VoucherPrintDocument],
"vouchers": [Voucher]
}
}
}
cancelVoucher
Description
To cancel all vouchers of a specific order
Response
Returns a CanceledVouchers
Arguments
| Name | Description |
|---|---|
eshopId - ObjectID
|
Required if the user belongs to or owns multiple eshops. Admins must specify an eshop. Not required for eshop integrations. |
orderId - String
|
The order id. Either orderId or shipmentId must be provided |
shipmentId - ObjectID
|
The shipment id. Either orderId or shipmentId must be provided |
Example
Query
mutation CancelVoucher(
$eshopId: ObjectID,
$orderId: String,
$shipmentId: ObjectID
) {
cancelVoucher(
eshopId: $eshopId,
orderId: $orderId,
shipmentId: $shipmentId
) {
canceledVouchers
}
}
Variables
{
"eshopId": "5e5677d71bdc2ae76344968c",
"orderId": "xyz789",
"shipmentId": "5e5677d71bdc2ae76344968c"
}
Response
{
"data": {
"cancelVoucher": {
"canceledVouchers": ["abc123"]
}
}
}
createPickupList
Description
Create pickup lists for all delivery companies which had been chosen for this pickup date
Response
Returns a CreatePickupListReturn
Arguments
| Name | Description |
|---|---|
eshopId - ObjectID
|
Optional if user belongs to single eshop; required for admins or multiple eshops |
pickupDate - String!
|
Date "YYYY-MM-DD" that the delivery companies should pick up shipments |
pickupTimes - [PickupTimeInput!]!
|
List of per-company pickup time inputs |
Example
Query
mutation CreatePickupList(
$eshopId: ObjectID,
$pickupDate: String!,
$pickupTimes: [PickupTimeInput!]!
) {
createPickupList(
eshopId: $eshopId,
pickupDate: $pickupDate,
pickupTimes: $pickupTimes
) {
lists {
closeTime
code
deliveryCompany {
...DeliveryCompanyFragment
}
printDocument
readyTime
}
}
}
Variables
{
"eshopId": "5e5677d71bdc2ae76344968c",
"pickupDate": "abc123",
"pickupTimes": [PickupTimeInput]
}
Response
{
"data": {
"createPickupList": {"lists": [PickupListsList]}
}
}
createVoucher
Description
To create one or more vouchers for your order
Response
Returns a CreateVoucherReturn
Arguments
| Name | Description |
|---|---|
eshopId - ObjectID
|
Required if the user belongs to or owns multiple eshops. Admins must specify an eshop. Not required for eshop integrations. |
generateCommercialInvoice - Boolean
|
Whether to generate a commercial invoice. Defaults to true for international shipments. |
notes - String
|
Notes/comments for the delivery company |
orderId - String
|
The id of the order. Either orderId or shipmentId must be provided |
pickupDate - String
|
Date "YYYY-MM-DD" that the delivery company should receive the package from the shop. Defaults to today. |
shipmentId - ObjectID
|
The id of the shipment. Either orderId or shipmentId must be provided |
shipmentPurpose - ShipmentPurposeEnum
|
The purpose of the shipment |
Example
Query
mutation CreateVoucher(
$eshopId: ObjectID,
$generateCommercialInvoice: Boolean,
$notes: String,
$orderId: String,
$pickupDate: String,
$shipmentId: ObjectID,
$shipmentPurpose: ShipmentPurposeEnum
) {
createVoucher(
eshopId: $eshopId,
generateCommercialInvoice: $generateCommercialInvoice,
notes: $notes,
orderId: $orderId,
pickupDate: $pickupDate,
shipmentId: $shipmentId,
shipmentPurpose: $shipmentPurpose
) {
voucherPrintDocuments
vouchers
}
}
Variables
{
"eshopId": "5e5677d71bdc2ae76344968c",
"generateCommercialInvoice": false,
"notes": "abc123",
"orderId": "xyz789",
"pickupDate": "xyz789",
"shipmentId": "5e5677d71bdc2ae76344968c",
"shipmentPurpose": "GIFT"
}
Response
{
"data": {
"createVoucher": {
"voucherPrintDocuments": ["abc123"],
"vouchers": ["xyz789"]
}
}
}
printVoucher
Description
Print a voucher
Response
Returns a VoucherPrintDocuments
Arguments
| Name | Description |
|---|---|
eshopId - ObjectID
|
Required if the user belongs to or owns multiple eshops. Admins must specify an eshop. Not required for eshop integrations. |
orderId - String
|
The order id. Either orderId or shipmentId must be provided |
shipmentId - ObjectID
|
The shipment id. Either orderId or shipmentId must be provided |
Example
Query
mutation PrintVoucher(
$eshopId: ObjectID,
$orderId: String,
$shipmentId: ObjectID
) {
printVoucher(
eshopId: $eshopId,
orderId: $orderId,
shipmentId: $shipmentId
) {
voucherPrintDocuments
}
}
Variables
{
"eshopId": "5e5677d71bdc2ae76344968c",
"orderId": "abc123",
"shipmentId": "5e5677d71bdc2ae76344968c"
}
Response
{
"data": {
"printVoucher": {
"voucherPrintDocuments": ["xyz789"]
}
}
}
Types
Address
Fields
| Field Name | Description |
|---|---|
addressLine1 - String
|
Address line 1. |
addressLine2 - String
|
Address line 2. |
addressLine3 - String
|
Address line 3. |
addressType - AddressTypeEnum
|
Type of address location (residential, business, mixed) from Google Places API |
city - String
|
City. |
coordinates - Coordinates
|
Geographic coordinates from Google Places API |
country - String
|
Country. |
countryCode - String
|
Country code in ISO 3166-1 alpha-2 format. |
county - String
|
County. |
isCanonical - Boolean
|
Flag indicating if this address was successfully canonicalized via Google Places API |
placeId - String
|
Google Places API unique place identifier for future lookups |
postcode - String
|
Postcode. |
rawInput - RawAddressInput
|
Original user input before canonicalization |
Example
{
"addressLine1": "abc123",
"addressLine2": "xyz789",
"addressLine3": "abc123",
"addressType": "BUSINESS",
"city": "abc123",
"coordinates": Coordinates,
"country": "xyz789",
"countryCode": "xyz789",
"county": "abc123",
"isCanonical": true,
"placeId": "abc123",
"postcode": "abc123",
"rawInput": RawAddressInput
}
AddressBookEntryType
AddressInput
Fields
| Input Field | Description |
|---|---|
addressLine1 - String
|
Address line 1. |
addressLine2 - String
|
Address line 2. |
addressLine3 - String
|
Address line 3. |
city - String
|
City. |
country - String
|
Country. |
countryCode - String
|
Country code in ISO 3166-1 alpha-2 format. |
county - String
|
County. |
postcode - String
|
Postcode. |
Example
{
"addressLine1": "abc123",
"addressLine2": "xyz789",
"addressLine3": "abc123",
"city": "xyz789",
"country": "xyz789",
"countryCode": "xyz789",
"county": "abc123",
"postcode": "abc123"
}
AddressTypeEnum
Description
Type of address location from Google Places API
Values
| Enum Value | Description |
|---|---|
|
|
Business address (offices, stores, commercial buildings) |
|
|
Mixed-use address (both residential and business) |
|
|
Residential address (homes, apartments) |
Example
"BUSINESS"
Boolean
Description
The Boolean scalar type represents true or false.
BrandAssets
Fields
| Field Name | Description |
|---|---|
logos - BrandLogos
|
Example
{"logos": BrandLogos}
BrandColorScheme
Description
Color scheme for UI theming
Example
{
"accent": "abc123",
"background": "xyz789",
"primary": "abc123",
"secondary": "abc123"
}
BrandLogos
CanceledVouchers
Fields
| Field Name | Description |
|---|---|
canceledVouchers - [String]
|
The voucher codes that have been canceled (all voucher codes associated with this orderId) |
Example
{"canceledVouchers": ["abc123"]}
ColorScheme
ConnectionStatus
Values
| Enum Value | Description |
|---|---|
|
|
Store connection is active and working |
|
|
Store connection has an error |
|
|
Store connection has been revoked |
Example
"ACTIVE"
Contact
Example
{
"companyName": "xyz789",
"email": "xyz789",
"firstname": "abc123",
"lastname": "abc123",
"phone": "xyz789"
}
ContactInput
Fields
| Input Field | Description |
|---|---|
companyName - String
|
Company name. Either company name OR first and last name is required. |
email - String
|
Email address. |
firstname - String
|
First name. Either first and last name OR company name is required. |
lastname - String
|
Last name. Either first and last name OR company name is required. |
phone - String
|
Phone number. |
Example
{
"companyName": "xyz789",
"email": "xyz789",
"firstname": "xyz789",
"lastname": "abc123",
"phone": "abc123"
}
Coordinates
CostSummary
Example
{
"deliveryCost": 123.45,
"productsTotal": 123.45,
"totalCost": 987.65,
"totalCostVatInclusive": 123.45
}
Costs
Description
Cost breakdown for a service
Fields
| Field Name | Description |
|---|---|
basePrice - Float
|
Base price before any surcharges, fees, or taxes |
codSurcharge - Float
|
Cash on delivery surcharge |
feesTotal - Float
|
Total of all fees |
finalPrice - Float
|
Final price after all fees, surcharges and taxes with multiplier and minimum price constraints applied |
priceMultiplier - Float
|
Multiplier applied to the price |
surchargesTotal - Float
|
Total of all surcharges |
taxesAndDutiesTotal - Float
|
Total of all taxes and duties |
totalPriceBeforeMultiplier - Float
|
Total price before multiplier and minimum price constraints applied |
vatAmount - Float
|
VAT amount included in the prices (when VAT is included) |
Example
{
"basePrice": 987.65,
"codSurcharge": 123.45,
"feesTotal": 987.65,
"finalPrice": 123.45,
"priceMultiplier": 123.45,
"surchargesTotal": 123.45,
"taxesAndDutiesTotal": 987.65,
"totalPriceBeforeMultiplier": 123.45,
"vatAmount": 987.65
}
CostsInput
Description
Input for cost breakdown
Fields
| Input Field | Description |
|---|---|
basePrice - Float
|
Base price before any surcharges, fees, or taxes |
codSurcharge - Float
|
Cash on delivery surcharge |
feesTotal - Float
|
Total of all fees |
finalPrice - Float
|
Final price after all fees, surcharges and taxes with multiplier and minimum price constraints applied |
priceMultiplier - Float
|
Multiplier applied to the price |
surchargesTotal - Float
|
Total of all surcharges |
taxesAndDutiesTotal - Float
|
Total of all taxes and duties |
totalPriceBeforeMultiplier - Float
|
Total price before multiplier and minimum price constraints applied |
vatAmount - Float
|
VAT amount included in the prices (when VAT is included) |
Example
{
"basePrice": 123.45,
"codSurcharge": 987.65,
"feesTotal": 987.65,
"finalPrice": 987.65,
"priceMultiplier": 987.65,
"surchargesTotal": 987.65,
"taxesAndDutiesTotal": 987.65,
"totalPriceBeforeMultiplier": 987.65,
"vatAmount": 123.45
}
CreatePickupListReturn
Fields
| Field Name | Description |
|---|---|
lists - [PickupListsList]
|
Example
{"lists": [PickupListsList]}
CreateVoucherReturn
CredentialField
Fields
| Field Name | Description |
|---|---|
isRequired - Boolean!
|
|
isSecret - Boolean
|
|
key - String!
|
|
label - String!
|
|
type - CredentialFieldTypeEnum!
|
Example
{
"isRequired": true,
"isSecret": true,
"key": "xyz789",
"label": "abc123",
"type": "ACCOUNT"
}
CredentialFieldTypeEnum
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"ACCOUNT"
CustomizationExtensions
Description
Extension point for future customization features
Fields
| Field Name | Description |
|---|---|
_placeholder - Boolean
|
Placeholder field for future extensions |
Example
{"_placeholder": false}
Date
Description
A date string, such as 2007-12-03, compliant with the full-date format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
Example
"2007-12-03"
DateTime
Description
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the date-time format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
Example
"2007-12-03T10:15:30Z"
DeliveryCompany
Fields
| Field Name | Description |
|---|---|
_id - ID!
|
|
createdAt - DateTime!
|
|
credentialFields - [CredentialField!]!
|
|
defaultConfig - DeliveryCompanyDefaultConfig!
|
|
description - String
|
|
hasAction - Boolean!
|
|
Arguments
|
|
hasApiIntegration - Boolean!
|
|
internalOnly - Boolean!
|
|
isEnabled - Boolean!
|
|
isVisibleAtCheckout - Boolean!
|
|
logo - Logo
|
|
minimumWeight - Float!
|
|
name - String!
|
|
pickupTimeOptions - PickupTimeOptions!
|
|
services - [String!]!
|
|
slug - String!
|
|
supportedActions - [DeliveryCompanyApiActionEnum!]!
|
|
tags - [String!]!
|
|
trackingUrlInformation - TrackingUrlInformation
|
|
updatedAt - DateTime!
|
|
usesAccountShipperAddress - Boolean!
|
|
Example
{
"_id": 4,
"createdAt": "2007-12-03T10:15:30Z",
"credentialFields": [CredentialField],
"defaultConfig": DeliveryCompanyDefaultConfig,
"description": "abc123",
"hasAction": true,
"hasApiIntegration": true,
"internalOnly": false,
"isEnabled": true,
"isVisibleAtCheckout": true,
"logo": Logo,
"minimumWeight": 123.45,
"name": "abc123",
"pickupTimeOptions": PickupTimeOptions,
"services": ["xyz789"],
"slug": "abc123",
"supportedActions": ["CANCEL_VOUCHER"],
"tags": ["abc123"],
"trackingUrlInformation": TrackingUrlInformation,
"updatedAt": "2007-12-03T10:15:30Z",
"usesAccountShipperAddress": true
}
DeliveryCompanyApiActionEnum
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"CANCEL_VOUCHER"
DeliveryCompanyDefaultConfig
DeliveryCompanyIDOrSlugInput
DeliveryRate
Description
Available rates for a delivery company with all available service options
Fields
| Field Name | Description |
|---|---|
deliveryCompany - DeliveryCompany
|
Delivery company providing this rate |
error - String
|
Error message if rate retrieval failed for this delivery company |
rating - Float
|
Rating of the delivery company |
services - [Service]
|
Available services from this carrier |
Example
{
"deliveryCompany": DeliveryCompany,
"error": "xyz789",
"rating": 123.45,
"services": [Service]
}
EncryptedFieldEntry
Eshop
Fields
| Field Name | Description |
|---|---|
_id - ObjectID
|
|
address - String
|
|
addressBook - [AddressBookEntryType]
|
|
apikey - String
|
|
brandAssets - BrandAssets
|
|
city - String
|
|
deliveryCompanies - [EshopDeliveryCompany]
|
|
Arguments
|
|
name - String
|
|
packageInsurance - Float
|
|
pageCustomization - PageCustomization
|
|
phone - String
|
|
postcode - String
|
|
securityValue - Float
|
|
slug - String
|
|
storeConnections - [StoreConnection]
|
|
Example
{
"_id": "5e5677d71bdc2ae76344968c",
"address": "abc123",
"addressBook": [AddressBookEntryType],
"apikey": "abc123",
"brandAssets": BrandAssets,
"city": "abc123",
"deliveryCompanies": [EshopDeliveryCompany],
"name": "abc123",
"packageInsurance": 987.65,
"pageCustomization": PageCustomization,
"phone": "xyz789",
"postcode": "xyz789",
"securityValue": 123.45,
"slug": "xyz789",
"storeConnections": [StoreConnection]
}
EshopAuthConfig
Fields
| Field Name | Description |
|---|---|
addressBookEntry - ObjectID
|
Reference to an address book entry from the Eshop address book. |
credentials - [EncryptedFieldEntry]
|
Example
{
"addressBookEntry": "5e5677d71bdc2ae76344968c",
"credentials": [EncryptedFieldEntry]
}
EshopBranding
Description
Public branding information for an eshop to render branded pages
Fields
| Field Name | Description |
|---|---|
_id - ObjectID!
|
Eshop identifier |
colorScheme - BrandColorScheme
|
Color scheme for UI theming |
customization - CustomizationExtensions
|
Extension point for future customization features |
logos - BrandLogos
|
Brand logos for different usage contexts |
name - String!
|
Eshop display name |
Example
{
"_id": "5e5677d71bdc2ae76344968c",
"colorScheme": BrandColorScheme,
"customization": CustomizationExtensions,
"logos": BrandLogos,
"name": "abc123"
}
EshopDeliveryCompany
Fields
| Field Name | Description |
|---|---|
config - EshopDeliveryCompanyConfig
|
|
deliveryCompany - DeliveryCompany
|
|
isEnabled - Boolean
|
Example
{
"config": EshopDeliveryCompanyConfig,
"deliveryCompany": DeliveryCompany,
"isEnabled": true
}
EshopDeliveryCompanyConfig
Example
{
"authConfigs": [EshopAuthConfig],
"displayAtCheckout": true,
"enabledServices": ["abc123"],
"minimumPrice": 123.45,
"paperType": "xyz789",
"priceMultiplier": 987.65,
"roundingIncrement": 123.45,
"rules": [Rule]
}
Float
Description
The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.
Example
987.65
GenikiFields
GenikiInput
ID
Description
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.
Example
"4"
Int
Description
The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
123
Logo
ObjectID
Description
A field whose value conforms with the standard mongodb object ID as described here: https://docs.mongodb.com/manual/reference/method/ObjectId/#ObjectId. Example: 5e5677d71bdc2ae76344968c
Example
"5e5677d71bdc2ae76344968c"
OtherDocument
Fields
| Field Name | Description |
|---|---|
documentType - OtherDocumentTypeEnum
|
Type of the document. |
encodedDocument - String
|
Base64 encoded document content. |
externalId - String
|
External identifier for the document. |
Example
{
"documentType": "COMMERCIAL_INVOICE",
"encodedDocument": "xyz789",
"externalId": "xyz789"
}
OtherDocumentTypeEnum
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"COMMERCIAL_INVOICE"
PageCustomization
Fields
| Field Name | Description |
|---|---|
colorScheme - ColorScheme
|
Example
{"colorScheme": ColorScheme}
Parcel
Fields
| Field Name | Description |
|---|---|
_id - ObjectID
|
Unique identifier for this parcel within the shipment, automatically generated |
billableWeight - Float
|
Parcel's billable weight in kilograms. (The weight used for the price calculation. The greater of actual weight or volumetric weight) |
contents - [ParcelContents]
|
Products contained in this parcel with their quantities, enabling proper distribution across multiple parcels |
dimensions - ParcelDimensions
|
|
volumetricWeight - Float
|
Parcel's volumetric weight in kilograms. The overall size of a parcel measured in volumetric kilograms. |
weight - Float
|
Parcel's weight in kilograms. |
Example
{
"_id": "5e5677d71bdc2ae76344968c",
"billableWeight": 987.65,
"contents": [ParcelContents],
"dimensions": ParcelDimensions,
"volumetricWeight": 987.65,
"weight": 987.65
}
ParcelContents
ParcelContentsInput
ParcelDimensions
ParcelInput
Fields
| Input Field | Description |
|---|---|
contents - [ParcelContentsInput]
|
Products contained in this parcel (optional, defaults to all products in first parcel if not specified) |
height - Float
|
Parcel height in centimeters (optional) |
length - Float
|
Parcel length in centimeters (optional) |
weight - Float!
|
Parcel weight in kilograms (required) |
width - Float
|
Parcel width in centimeters (optional) |
Example
{
"contents": [ParcelContentsInput],
"height": 123.45,
"length": 123.45,
"weight": 987.65,
"width": 987.65
}
PickupAddress
Example
{
"address": "abc123",
"addressBookEntry": "5e5677d71bdc2ae76344968c",
"city": "abc123",
"country": "abc123",
"countryCode": "xyz789",
"name": "abc123",
"postcode": "xyz789"
}
PickupListsList
Fields
| Field Name | Description |
|---|---|
closeTime - String
|
The time "HH:MM" representing the latest time for pickup |
code - String
|
Pickup list number |
deliveryCompany - DeliveryCompany
|
Delivery company for this pickup list |
printDocument - String
|
Pickup list document content or URL |
readyTime - String
|
The time "HH:MM" when the shipment(s) are ready for pickup |
Example
{
"closeTime": "xyz789",
"code": "xyz789",
"deliveryCompany": DeliveryCompany,
"printDocument": "xyz789",
"readyTime": "abc123"
}
PickupTimeInput
Fields
| Input Field | Description |
|---|---|
closeTime - String
|
The latest time "HH:MM" that the shipment(s) can be picked up |
deliveryCompany - DeliveryCompanyIDOrSlugInput!
|
Delivery company to generate pickup list for (by ID or slug) |
readyTime - String
|
The time "HH:MM" when the shipment(s) are ready for pickup |
Example
{
"closeTime": "xyz789",
"deliveryCompany": DeliveryCompanyIDOrSlugInput,
"readyTime": "xyz789"
}
PickupTimeModeEnum
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
Example
"FIXED"
PickupTimeOptions
Fields
| Field Name | Description |
|---|---|
closeOptions - [String]
|
|
fixedOptions - [String]
|
|
mode - PickupTimeModeEnum!
|
|
readyOptions - [String]
|
Example
{
"closeOptions": ["abc123"],
"fixedOptions": ["xyz789"],
"mode": "FIXED",
"readyOptions": ["abc123"]
}
Platform
Values
| Enum Value | Description |
|---|---|
|
|
Example
"WOOCOMMERCE"
PricingComponent
Description
A single pricing component like a surcharge, tax, or fee
Fields
| Field Name | Description |
|---|---|
amount - Float
|
Amount of the pricing component |
category - PricingComponentCategory
|
Category of the pricing component |
code - String
|
Carrier-specific code for this component, if available |
description - String
|
Description of the pricing component |
name - String
|
Human-readable name of the pricing component |
surchargeType - SurchargeType
|
Type of surcharge, applicable when category is SURCHARGE |
Example
{
"amount": 987.65,
"category": "BASE",
"code": "xyz789",
"description": "xyz789",
"name": "abc123",
"surchargeType": "ADDITIONAL_HANDLING"
}
PricingComponentCategory
Description
Categories of pricing components
Values
| Enum Value | Description |
|---|---|
|
|
Base shipping charge |
|
|
Import/export duties |
|
|
Processing or service fees |
|
|
Other fees/charges that don't fit other categories |
|
|
Additional charges applied to shipment |
|
|
Government taxes (VAT, sales tax, etc.) |
Example
"BASE"
PricingComponentInput
Description
Input for defining a pricing component in the complete rate structure
Fields
| Input Field | Description |
|---|---|
amount - Float
|
Amount of the pricing component |
category - PricingComponentCategory
|
Category of the pricing component |
code - String
|
Carrier-specific code for this component (optional) |
description - String
|
Description of the pricing component |
name - String
|
Human-readable name of the pricing component |
surchargeType - SurchargeType
|
Type of surcharge, applicable when category is SURCHARGE |
Example
{
"amount": 987.65,
"category": "BASE",
"code": "abc123",
"description": "xyz789",
"name": "abc123",
"surchargeType": "ADDITIONAL_HANDLING"
}
Product
Fields
| Field Name | Description |
|---|---|
_id - ObjectID
|
Unique identifier for this product within the shipment, automatically generated |
category - String
|
The category of the product |
countryOfOrigin - String
|
The country of origin of the product |
description - String
|
A brief description of the product. |
dimensions - ProductDimensions
|
The dimensions of the product |
externalId - String
|
The external ID of the product from the e-shop platform |
extraAttributes - [ProductExtraAttributesEnumType]
|
List of extra attributes for the product, e.g., gift. |
harmonizedSystemCode - String
|
The harmonized system code of the product |
image - String
|
Full URL to the product's image |
metadata - String
|
Additional metadata from the e-shop platform |
price - Float!
|
The price of the product. |
quantity - Int!
|
The quantity of the product. |
size - ProductSizeEnumType
|
The size of the product. Not required if the shipment's dimensions and weight are provided. |
sku - String
|
The stock keeping unit (SKU) to identify the product. |
title - String
|
The title or name of the product. |
weight - Float
|
The weight of the product in kilograms |
Example
{
"_id": "5e5677d71bdc2ae76344968c",
"category": "xyz789",
"countryOfOrigin": "xyz789",
"description": "abc123",
"dimensions": ProductDimensions,
"externalId": "abc123",
"extraAttributes": ["GIFT"],
"harmonizedSystemCode": "abc123",
"image": "abc123",
"metadata": "abc123",
"price": 123.45,
"quantity": 123,
"size": "L",
"sku": "xyz789",
"title": "abc123",
"weight": 987.65
}
ProductDimensions
ProductDimensionsInput
ProductExtraAttributesEnumType
Values
| Enum Value | Description |
|---|---|
|
|
The product is marked as a gift item |
Example
"GIFT"
ProductInput
Fields
| Input Field | Description |
|---|---|
category - String
|
The category of the product |
countryOfOrigin - String
|
The country of origin of the product |
description - String
|
A brief description of the product. |
dimensions - ProductDimensionsInput
|
The dimensions of the product |
externalId - String
|
The external ID of the product from the e-shop platform |
extraAttributes - [ProductExtraAttributesEnumType]
|
List of extra attributes for the product, e.g., gift. |
harmonizedSystemCode - String
|
The harmonized system code of the product |
image - String
|
Full URL to the product's image |
metadata - String
|
Additional metadata from the e-shop platform |
price - Float!
|
The price of the product. |
quantity - Int!
|
The quantity of the product. |
size - ProductSizeEnumType
|
The size of the product. Not required if the shipment's dimensions and weight are provided. |
sku - String
|
The stock keeping unit (SKU) to identify the product. |
title - String
|
The title or name of the product. |
weight - Float
|
The weight of the product in kilograms |
Example
{
"category": "abc123",
"countryOfOrigin": "abc123",
"description": "abc123",
"dimensions": ProductDimensionsInput,
"externalId": "xyz789",
"extraAttributes": ["GIFT"],
"harmonizedSystemCode": "xyz789",
"image": "abc123",
"metadata": "xyz789",
"price": 987.65,
"quantity": 987,
"size": "L",
"sku": "abc123",
"title": "xyz789",
"weight": 123.45
}
ProductSizeEnumType
Values
| Enum Value | Description |
|---|---|
|
|
Large size classification for quick shipping estimation and package planning |
|
|
Medium size classification for quick shipping estimation and package planning |
|
|
Small size classification for quick shipping estimation and package planning |
|
|
Extra Large size classification for quick shipping estimation and package planning |
|
|
Extra Small size classification for quick shipping estimation and package planning |
|
|
Double Extra Large size classification for quick shipping estimation and package planning |
Example
"L"
RawAddressInput
Fields
| Field Name | Description |
|---|---|
addressLine1 - String
|
Original primary address line as entered by user |
city - String
|
Original city name as entered by user |
country - String
|
Original country name as entered by user |
county - String
|
Original county/state/province as entered by user |
postcode - String
|
Original postal/ZIP code as entered by user |
Example
{
"addressLine1": "xyz789",
"city": "abc123",
"country": "xyz789",
"county": "abc123",
"postcode": "xyz789"
}
Recipient
RecipientAddressCreateInput
Description
Input type for recipient address used for shipment creation.
Fields
| Input Field | Description |
|---|---|
addressLine1 - String!
|
Address line 1. |
addressLine2 - String
|
Address line 2. |
addressLine3 - String
|
Address line 3. |
city - String!
|
City. |
country - String!
|
Country. |
countryCode - String
|
Country code in ISO 3166-1 alpha-2 format. |
county - String
|
County. |
postcode - String!
|
Postcode. |
Example
{
"addressLine1": "abc123",
"addressLine2": "abc123",
"addressLine3": "abc123",
"city": "xyz789",
"country": "abc123",
"countryCode": "xyz789",
"county": "abc123",
"postcode": "abc123"
}
RecipientContactCreateInput
Description
Input type for recipient contact used for shipment creation.
Fields
| Input Field | Description |
|---|---|
companyName - String
|
Company name. Either company name OR first and last name is required. |
email - String
|
Email address. |
firstname - String
|
First name. Either first and last name OR company name is required. |
lastname - String
|
Last name. Either first and last name OR company name is required. |
phone - String
|
Phone number. |
Example
{
"companyName": "abc123",
"email": "abc123",
"firstname": "abc123",
"lastname": "xyz789",
"phone": "abc123"
}
RecipientCreateInput
Description
Input type for recipient details used for shipment creation.
Fields
| Input Field | Description |
|---|---|
address - RecipientAddressCreateInput!
|
Recipient address. |
contact - RecipientContactCreateInput!
|
Recipient contact. |
Example
{
"address": RecipientAddressCreateInput,
"contact": RecipientContactCreateInput
}
RecipientLogistics
Description
Customer-provided logistics company details when using recipient-logistics delivery option.
Example
{
"companyName": "xyz789",
"email": "abc123",
"phone": "xyz789"
}
RecipientLogisticsInput
Description
Input for customer-provided logistics company details when using recipient-logistics.
Example
{
"companyName": "xyz789",
"email": "abc123",
"phone": "xyz789"
}
Rule
SelectedRate
Description
The selected service and rate for a shipment
Fields
| Field Name | Description |
|---|---|
costs - Costs
|
Cost breakdown for the selected service |
deliveryCompany - DeliveryCompany
|
Selected delivery company |
priceComponents - [PricingComponent]
|
Detailed pricing components for the selected service |
rating - Float
|
Rating of the selected service |
serviceCode - String
|
Selected service code |
serviceName - String
|
Selected service name |
transitTime - TransitTime
|
Delivery time information |
Example
{
"costs": Costs,
"deliveryCompany": DeliveryCompany,
"priceComponents": [PricingComponent],
"rating": 987.65,
"serviceCode": "abc123",
"serviceName": "abc123",
"transitTime": TransitTime
}
SelectedRateInput
Description
Input for selecting a shipping rate. Can reference available rates (by serviceCode) or provide complete rate data directly
Fields
| Input Field | Description |
|---|---|
costs - CostsInput
|
Optional cost breakdown. If not provided, will be fetched from available rates based on serviceCode |
deliveryCompany - DeliveryCompanyIDOrSlugInput!
|
The carrier providing the service (by ID or slug) |
priceComponents - [PricingComponentInput]
|
Optional detailed breakdown of price components. If not provided, will be fetched from available rates based on serviceCode |
serviceCode - String!
|
The specific service code to select from the available rates |
serviceName - String
|
Optional service name. If not provided, will use serviceCode or fetch from available rates |
transitTime - TransitTimeInput
|
Optional delivery time information. If not provided, will be fetched from available rates based on serviceCode |
Example
{
"costs": CostsInput,
"deliveryCompany": DeliveryCompanyIDOrSlugInput,
"priceComponents": [PricingComponentInput],
"serviceCode": "xyz789",
"serviceName": "xyz789",
"transitTime": TransitTimeInput
}
Service
Description
A carrier service option with pricing details
Fields
| Field Name | Description |
|---|---|
costs - Costs
|
Cost breakdown for this service |
priceComponents - [PricingComponent]
|
Detailed breakdown of all price components |
serviceCode - String
|
Carrier-specific service code (e.g. FEDEX_GROUND, UPS_NEXT_DAY_AIR) |
serviceName - String
|
Human-readable service name |
transitTime - TransitTime
|
Delivery time information |
Example
{
"costs": Costs,
"priceComponents": [PricingComponent],
"serviceCode": "xyz789",
"serviceName": "xyz789",
"transitTime": TransitTime
}
Shipment
Fields
| Field Name | Description |
|---|---|
_id - ObjectID
|
Shipment's id. |
actions - [ShipmentAction]
|
History of actions performed on this shipment. |
availableRates - [DeliveryRate]
|
Available delivery rates from all carriers with their services |
buyerNotes - String
|
Buyer's notes. |
costSummary - CostSummary
|
Summary of costs associated with the shipment. |
createdAt - DateTime
|
The date and time when the shipment was created. |
eshop - Eshop
|
Reference to the eshop that created this shipment. |
geniki - GenikiFields
|
Geniki delivery company specific fields |
isB2BInvoice - Boolean
|
Indicates if the shipment is for a B2B invoice (true) or B2C invoice (false). False by default. |
orderId - String
|
The unique order id |
otherDocuments - [OtherDocument]
|
Additional documents related to the shipment, like invoices. |
parcels - [Parcel]
|
List of parcels in this shipment, each with their own dimensions, weights, and product distribution. |
paymentMethod - ShipmentPaymentMethodEnum
|
Customer's payment method. |
pickupAddress - PickupAddress
|
The address where the package should be picked up from. |
pickupDate - Date
|
Date "YYYY-MM-DD" that the delivery company should receive the package from the shop. Defaults to today |
products - [Product]
|
List of products in the shipment. |
productsQuantity - Int
|
Products quantity. |
recipient - Recipient!
|
Recipient details including address and contact information. |
recipientLogistics - RecipientLogistics
|
Customer-provided logistics company details when using recipient-logistics delivery option. |
selectedRate - SelectedRate
|
The selected service and rate for this shipment |
senderNotes - String
|
Sender's notes. |
shipmentPurpose - ShipmentPurposeEnum
|
The purpose of the shipment. |
shipper - Shipper
|
Shipper details including address and contact information. |
shippingRegionType - ShippingRegionTypeEnum
|
The type of shipping region. |
status - ShipmentStatusEnum
|
Transction's status. |
trackingDetails - TrackingDetails
|
Tracking details for the shipment. |
vatDetails - VatDetails
|
VAT preferences and information for this shipment. |
voucherPrintDocuments - [VoucherPrintDocument]
|
The document of the signed voucher that can be printed and put on the package(s) |
vouchers - [Voucher]
|
The shipment's voucher based on the selected delivery company. |
Example
{
"_id": "5e5677d71bdc2ae76344968c",
"actions": [ShipmentAction],
"availableRates": [DeliveryRate],
"buyerNotes": "xyz789",
"costSummary": CostSummary,
"createdAt": "2007-12-03T10:15:30Z",
"eshop": Eshop,
"geniki": GenikiFields,
"isB2BInvoice": false,
"orderId": "abc123",
"otherDocuments": [OtherDocument],
"parcels": [Parcel],
"paymentMethod": "BANK_DEPOSIT",
"pickupAddress": PickupAddress,
"pickupDate": "2007-12-03",
"products": [Product],
"productsQuantity": 123,
"recipient": Recipient,
"recipientLogistics": RecipientLogistics,
"selectedRate": SelectedRate,
"senderNotes": "xyz789",
"shipmentPurpose": "GIFT",
"shipper": Shipper,
"shippingRegionType": "DOMESTIC",
"status": "CANCELED",
"trackingDetails": TrackingDetails,
"vatDetails": VatDetails,
"voucherPrintDocuments": [VoucherPrintDocument],
"vouchers": [Voucher]
}
ShipmentAction
Fields
| Field Name | Description |
|---|---|
info - String
|
Additional information about the action. |
time - DateTime
|
When the action occurred. |
type - ShipmentActionType
|
Type of action. |
Example
{
"info": "abc123",
"time": "2007-12-03T10:15:30Z",
"type": "CANCEL_SHIPMENT"
}
ShipmentActionType
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"CANCEL_SHIPMENT"
ShipmentPaymentMethodEnum
Values
| Enum Value | Description |
|---|---|
|
|
The customer will pay for the order by bank deposit. |
|
|
The customer will pay for the order by card. |
|
|
The customer will pay for the order by cash on delivery. |
|
|
The customer will not be charged for the order. |
|
|
The customer will pay for the order by PayPal. |
Example
"BANK_DEPOSIT"
ShipmentPurposeEnum
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
"GIFT"
ShipmentSourceEnum
Values
| Enum Value | Description |
|---|---|
|
|
Checkout process |
|
|
Manual entry |
Example
"CHECKOUT"
ShipmentStatusEnum
Values
| Enum Value | Description |
|---|---|
|
|
When the shipment has been canceled. |
|
|
When the customer has completed the checkout process. |
|
|
When the shipment has been manually created. |
|
|
When the shipment is just created and the customer still edit the delivery form |
|
|
When a pickup list has been created for the shipment. |
|
|
When a voucher has been canceled for the shipment. |
|
|
Step 1: The shipping label for the shipment has been created. |
|
|
Step 4 (Optional): The shipment is undergoing customs clearance. |
|
|
Step 6: The shipment has been successfully delivered. |
|
|
Exception: The delivery of the shipment has been canceled. |
|
|
Exception: An exception occurred during shipment delivery. |
|
|
Step 3: The shipment is currently in transit. |
|
|
Step 5: The shipment is out for delivery. |
|
|
Step 2: The shipment has been picked up by the delivery company. |
|
|
Exception: The shipment has been returned. |
Example
"CANCELED"
ShipmentTrackingEventStatusEnum
Values
| Enum Value | Description |
|---|---|
|
|
Step 4 (Optional): The shipment is undergoing customs clearance. |
|
|
Step 6: The shipment has been successfully delivered. |
|
|
Exception: The delivery of the shipment has been canceled. |
|
|
Exception: An exception occurred during shipment delivery. |
|
|
Step 3: The shipment is currently in transit. |
|
|
Step 5: The shipment is out for delivery. |
|
|
Step 2: The shipment has been picked up by the delivery company. |
|
|
Exception: The shipment has been returned. |
|
|
Step 1: The shipping label for the shipment has been created. |
Example
"CUSTOMS_CLEARANCE"
Shipper
Description
Shipper details including address and contact information.
Example
{
"address": Address,
"addressBookEntry": "5e5677d71bdc2ae76344968c",
"contact": Contact
}
ShipperInput
Description
Input type for shipper details.
Fields
| Input Field | Description |
|---|---|
address - AddressInput
|
Shipper address. |
addressBookEntryId - ObjectID
|
Reference to an address book entry from the Eshop address book. |
contact - ContactInput
|
Shipper contact. |
Example
{
"address": AddressInput,
"addressBookEntryId": "5e5677d71bdc2ae76344968c",
"contact": ContactInput
}
ShippingRegionTypeEnum
Description
Enum representing the type of shipping region.
Values
| Enum Value | Description |
|---|---|
|
|
Shipping within the same country. |
|
|
Shipping between countries in different regions. |
|
|
Shipping between African countries. |
|
|
Shipping between ASEAN member countries. |
|
|
Shipping between Asian countries. |
|
|
Shipping between European countries. |
|
|
Shipping between Middle Eastern countries. |
|
|
Shipping between non-EU European countries. |
|
|
Shipping between North American countries. |
|
|
Shipping between Oceanian countries. |
|
|
Shipping between South American countries. |
|
|
Shipping between USMCA member countries (US, Mexico, Canada). |
|
|
Other shipping region type not covered by other categories. |
Example
"DOMESTIC"
SlaTier
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
Example
"TIER_1"
StoreConnection
Fields
| Field Name | Description |
|---|---|
_id - ObjectID
|
|
expiresAt - DateTime
|
|
externalId - String
|
|
lastSyncedAt - DateTime
|
|
platform - Platform
|
|
pluginVersion - String
|
|
scopes - [StoreConnectionScope]
|
|
status - ConnectionStatus
|
|
storeDomain - String
|
Example
{
"_id": "5e5677d71bdc2ae76344968c",
"expiresAt": "2007-12-03T10:15:30Z",
"externalId": "abc123",
"lastSyncedAt": "2007-12-03T10:15:30Z",
"platform": "WOOCOMMERCE",
"pluginVersion": "abc123",
"scopes": ["READ_ORDERS"],
"status": "ACTIVE",
"storeDomain": "abc123"
}
StoreConnectionScope
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
Example
"READ_ORDERS"
String
Description
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.
Example
"abc123"
SurchargeType
Description
Types of surcharges
Values
| Enum Value | Description |
|---|---|
|
|
Additional handling surcharge |
|
|
Cash on delivery surcharge |
|
|
Delivery area surcharge |
|
|
Fuel surcharge |
|
|
Other surcharge type |
|
|
Saturday delivery surcharge |
Example
"ADDITIONAL_HANDLING"
TrackingDetails
Fields
| Field Name | Description |
|---|---|
carrierTrackingUrl - String
|
External tracking URL provided by the delivery company |
deliveredAt - DateTime
|
When the shipment was delivered |
deliveryCompany - DeliveryCompany
|
Reference to the delivery company |
eshopTrackingUrl - String
|
Eshop tracking URL |
estimatedDelivery - DateTime
|
Estimated delivery date |
events - [TrackingEvent]
|
List of tracking events |
isActive - Boolean
|
Whether this tracking detail is active |
lastStatus - ShipmentTrackingEventStatusEnum
|
Last tracking status |
lastSyncedAt - DateTime
|
When the tracking information was last synced with carrier |
lastUpdated - DateTime
|
When the tracking information was last updated |
nextPollAt - DateTime
|
When to next poll for tracking updates |
returnToSender - Boolean
|
Whether the shipment is being returned to sender |
slaTier - SlaTier
|
Service level agreement tier |
voucherCode - String
|
The voucher code for this tracking detail |
Example
{
"carrierTrackingUrl": "abc123",
"deliveredAt": "2007-12-03T10:15:30Z",
"deliveryCompany": DeliveryCompany,
"eshopTrackingUrl": "xyz789",
"estimatedDelivery": "2007-12-03T10:15:30Z",
"events": [TrackingEvent],
"isActive": true,
"lastStatus": "CUSTOMS_CLEARANCE",
"lastSyncedAt": "2007-12-03T10:15:30Z",
"lastUpdated": "2007-12-03T10:15:30Z",
"nextPollAt": "2007-12-03T10:15:30Z",
"returnToSender": false,
"slaTier": "TIER_1",
"voucherCode": "xyz789"
}
TrackingEvent
Fields
| Field Name | Description |
|---|---|
deliveryCompany - DeliveryCompany
|
Reference to the delivery company ID or delivery company object |
description - String
|
Human-readable description of the tracking event |
location - TrackingLocation
|
Location information for the tracking event |
status - ShipmentTrackingEventStatusEnum!
|
Status code or description for the tracking event |
timestamp - DateTime
|
When the tracking event occurred |
Example
{
"deliveryCompany": DeliveryCompany,
"description": "xyz789",
"location": TrackingLocation,
"status": "CUSTOMS_CLEARANCE",
"timestamp": "2007-12-03T10:15:30Z"
}
TrackingLocation
Fields
| Field Name | Description |
|---|---|
address - TrackingLocationAddress
|
|
coordinates - TrackingLocationCoordinates
|
Example
{
"address": TrackingLocationAddress,
"coordinates": TrackingLocationCoordinates
}
TrackingLocationAddress
TrackingLocationCoordinates
TrackingResult
Fields
| Field Name | Description |
|---|---|
parcels - [Parcel!]
|
List of parcels in the shipment |
products - [Product!]
|
List of products in the shipment |
recipient - Recipient!
|
Recipient information for the shipment |
trackingDetails - TrackingDetails!
|
Tracking details for the shipment |
Example
{
"parcels": [Parcel],
"products": [Product],
"recipient": Recipient,
"trackingDetails": TrackingDetails
}
TrackingUrlInformation
Fields
| Field Name | Description |
|---|---|
baseUrl - String
|
|
exampleUrl - String
|
|
parameterName - String
|
|
supportsDeepLink - Boolean
|
|
urlType - TrackingUrlTypeEnum
|
Example
{
"baseUrl": "abc123",
"exampleUrl": "abc123",
"parameterName": "abc123",
"supportsDeepLink": true,
"urlType": "PATH"
}
TrackingUrlTypeEnum
Values
| Enum Value | Description |
|---|---|
|
|
|
|
|
Example
"PATH"
TransitTime
Description
Delivery time information
Example
{
"estimatedDeliveryDate": "2007-12-03",
"guaranteed": true,
"maxDays": 123,
"minDays": 123
}
TransitTimeInput
Description
Input for delivery time information
Example
{
"estimatedDeliveryDate": "2007-12-03",
"guaranteed": true,
"maxDays": 123,
"minDays": 123
}
ValidateTrackingResult
VatDetails
Voucher
Fields
| Field Name | Description |
|---|---|
code - String
|
The voucher code |
status - VoucherStatusEnum
|
|
type - VouchertypeEnum
|
Example
{
"code": "xyz789",
"status": "ACTIVE",
"type": "MAIN"
}
VoucherPrintDocument
Fields
| Field Name | Description |
|---|---|
encodedDocument - String
|
Base64 encoded document content. |
status - VoucherStatusEnum
|
Example
{
"encodedDocument": "abc123",
"status": "ACTIVE"
}
VoucherPrintDocuments
Fields
| Field Name | Description |
|---|---|
voucherPrintDocuments - [String]
|
The documents of the signed vouchers that can be printed and put on the package(s) |
Example
{"voucherPrintDocuments": ["abc123"]}
VoucherStatusEnum
Values
| Enum Value | Description |
|---|---|
|
|
The voucher is active |
|
|
The voucher is canceled |
Example
"ACTIVE"
VoucherTracking
Example
{
"checkpointAction": "abc123",
"checkpointDateTime": "2007-12-03T10:15:30Z",
"checkpointLocation": "xyz789",
"checkpointNotes": "xyz789",
"code": "abc123",
"shipmentId": "5e5677d71bdc2ae76344968c"
}
VouchertypeEnum
Values
| Enum Value | Description |
|---|---|
|
|
The main voucher |
|
|
A sub voucher |
Example
"MAIN"