Query
query GetPackageById($packageId: ID!) {
GetPackageById(packageId: $packageId) {
id
deliveryNoteId
weight
shippingDate
trackingNumber
}
}Variables
{
"packageId": "id"
}Response
{
"data": {
"GetPackageById": {
"id": "id",
"deliveryNoteId": "id",
"weight": "value",
"shippingDate": "value",
"trackingNumber": "string"
}
}
}Queries
GetPackageById
Returns a single package by its ID.
QUERY
GetPackageById(packageId: ID!): PackageArguments
packageId
ID!
required
Returns
id
ID!
This package's ID.
deliveryNoteId
ID!
The ID of the delivery note associated with this package.
weight
Decimal!
This package's weight.
shippingDate
DateTime
The shipping date, or null if this package has not yet been shipped.
trackingNumber
String
The tracking number, or null if the package has not yet been shipped or is being shipped without tracking.
Query
query GetPackageById($packageId: ID!) {
GetPackageById(packageId: $packageId) {
id
deliveryNoteId
weight
shippingDate
trackingNumber
}
}Variables
{
"packageId": "id"
}Response
{
"data": {
"GetPackageById": {
"id": "id",
"deliveryNoteId": "id",
"weight": "value",
"shippingDate": "value",
"trackingNumber": "string"
}
}
}Was this page helpful?