Fetches an object given its ID
Arguments
ID of the object
Return type
Nodequery node($id: ID!) {
node(id: $id) {
id
}
}
{ "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }
{ "data": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" } }
List orders for a given customer
Arguments
Returns the first n elements from the list.
Returns the elements in the list that come after the specified cursor
Returns the last n elements from the list.
Returns the elements in the list that come before the specified cursor
Return type
OrdersInformation to aid in pagination.
A list of edges.
query orders(
$input: OrderFilter!
$first: Int
$after: String
$last: Int
$before: String
) {
orders(
input: $input
first: $first
after: $after
last: $last
before: $before
) {
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
edges {
node {
additionalFields {
__typename
# ...BooleanAdditionalFieldValueFragment
}
businessId
canCancel
canEvaluate
commercialId
createdDate
currency
customer {
__typename
# ...OrderCustomerFragment
}
customerDebitedDate
customerDirectlyPaysSeller
deliveryDate {
__typename
# ...DeliveryDateTimeIntervalFragment
}
documents {
__typename
# ...OrderDocumentsFragment
}
evaluation {
__typename
# ...EvaluationFragment
}
fullyRefunded
hasIncident
hasInvoice
invoiceDetails {
__typename
# ...OrderInvoiceFragment
}
id
lastUpdateDate
orderLines {
__typename
# ...OrderLineFragment
}
orderTaxMode
paymentDestination {
__typename
# ...IbanOrderPaymentDestinationFragment
}
paymentDuration
paymentType
paymentWorkflow
price
promotions {
__typename
# ...OrderComputedPromotionsFragment
}
references {
__typename
# ...OrderReferenceFragment
}
shipping {
__typename
# ...OrderShippingFragment
}
shipments {
__typename
# ...ShipmentFragment
}
shop {
__typename
# ...ShopFragment
}
status {
__typename
# ...OrderStatusFragment
}
totalPrice
threads(
# Arguments Here
) {
__typename
# ...ThreadConnectionFragment
}
}
}
}
}
{ "input": { "customerId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "commercialId": "Example String", "businessId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" }, "first": 40, "after": "Example String", "last": 40, "before": "Example String" }
{ "data": { "pageInfo": { "endCursor": "Example String", "hasNextPage": true, "hasPreviousPage": true, "startCursor": "Example String" }, "edges": [ { "node": { "additionalFields": [ { "__typename": "BooleanAdditionalFieldValue" } ], "businessId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "canCancel": true, "canEvaluate": true, "commercialId": "Example String", "createdDate": "Example Custom Scalar", "currency": "Example Custom Scalar", "customer": { "__typename": "OrderCustomer" }, "customerDebitedDate": "Example Custom Scalar", "customerDirectlyPaysSeller": true, "deliveryDate": { "__typename": "DeliveryDateTimeInterval" }, "documents": { "__typename": "OrderDocuments" }, "evaluation": { "__typename": "Evaluation" }, "fullyRefunded": true, "hasIncident": true, "hasInvoice": true, "invoiceDetails": { "__typename": "OrderInvoice" }, "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "lastUpdateDate": "Example Custom Scalar", "orderLines": [ { "__typename": "OrderLine" } ], "orderTaxMode": "Example String", "paymentDestination": { "__typename": "IbanOrderPaymentDestination" }, "paymentDuration": 40, "paymentType": "Example String", "paymentWorkflow": "Example String", "price": 40, "promotions": { "__typename": "OrderComputedPromotions" }, "references": { "__typename": "OrderReference" }, "shipping": { "__typename": "OrderShipping" }, "shipments": [ { "__typename": "Shipment" } ], "shop": { "__typename": "Shop" }, "status": { "__typename": "OrderStatus" }, "totalPrice": 40, "threads": { "__typename": "ThreadConnection" } } } ] } }
List shops
Arguments
Shop's identifiers to retrieve
Returns the first n elements from the list.
Returns the elements in the list that come after the specified cursor
Returns the last n elements from the list.
Returns the elements in the list that come before the specified cursor
Return type
ShopA list of edges.
Information to aid in pagination.
query shops(
$ids: [ID!]
$first: Int
$after: String
$last: Int
$before: String
) {
shops(
ids: $ids
first: $first
after: $after
last: $last
before: $before
) {
edges {
node {
additionalFields {
__typename
# ...BooleanAdditionalFieldValueFragment
}
approvalDelay
approvalRate
banner
businessId
closedFrom
closedTo
contactInformation {
__typename
# ...ShopContactInformationFragment
}
dateCreated
description
evaluations(
# Arguments Here
) {
__typename
# ...EvaluationConnectionFragment
}
freeShipping
grade
id
isProfessional
logo
name
offersCount
orderMessagesResponseDelay
ordersCount
producerIdentifiers {
__typename
# ...ProducerIdentifierFragment
}
recyclingPolicy
returnPolicy {
__typename
# ...ReturnPolicyFragment
}
shippings {
__typename
# ...ShopShippingConfigurationFragment
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
{ "ids": [ "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" ], "first": 40, "after": "Example String", "last": 40, "before": "Example String" }
{ "data": { "edges": [ { "node": { "additionalFields": [ { "__typename": "BooleanAdditionalFieldValue" } ], "approvalDelay": 40, "approvalRate": 40, "banner": "Example String", "businessId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "closedFrom": "Example Custom Scalar", "closedTo": "Example Custom Scalar", "contactInformation": { "__typename": "ShopContactInformation" }, "dateCreated": "Example Custom Scalar", "description": "Example String", "evaluations": { "__typename": "EvaluationConnection" }, "freeShipping": true, "grade": 40, "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "isProfessional": true, "logo": "Example String", "name": "Example String", "offersCount": 40, "orderMessagesResponseDelay": 40, "ordersCount": 40, "producerIdentifiers": [ { "__typename": "ProducerIdentifier" } ], "recyclingPolicy": "Example String", "returnPolicy": { "__typename": "ReturnPolicy" }, "shippings": [ { "__typename": "ShopShippingConfiguration" } ] } } ], "pageInfo": { "endCursor": "Example String", "hasNextPage": true, "hasPreviousPage": true, "startCursor": "Example String" } } }
List threads for a given customer
Arguments
Returns the first n elements from the list.
Returns the elements in the list that come after the specified cursor
Returns the last n elements from the list.
Returns the elements in the list that come before the specified cursor
Return type
ThreadA list of edges.
Information to aid in pagination.
query threads(
$input: ThreadFilter!
$first: Int
$after: String
$last: Int
$before: String
) {
threads(
input: $input
first: $first
after: $after
last: $last
before: $before
) {
edges {
node {
authorizedParticipants {
__typename
# ...ThreadParticipantFragment
}
businessId
currentParticipants {
__typename
# ...ThreadParticipantFragment
}
customerOrganization {
__typename
# ...ThreadCustomerOrganizationFragment
}
dateCreated
entities {
__typename
# ...ThreadEntityFragment
}
id
messages {
__typename
# ...ThreadMessageFragment
}
metadata {
__typename
# ...ThreadMetadataFragment
}
topic {
__typename
# ...ThreadTopicFragment
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
{ "input": { "customerId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "customerOrganizationId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "entityIds": [ "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" ], "entityType": "Example String", "channelCodes": [ "Example String" ] }, "first": 40, "after": "Example String", "last": 40, "before": "Example String" }
{ "data": { "edges": [ { "node": { "authorizedParticipants": [ { "__typename": "ThreadParticipant" } ], "businessId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "currentParticipants": [ { "__typename": "ThreadParticipant" } ], "customerOrganization": { "__typename": "ThreadCustomerOrganization" }, "dateCreated": "Example Custom Scalar", "entities": [ { "__typename": "ThreadEntity" } ], "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "messages": [ { "__typename": "ThreadMessage" } ], "metadata": { "__typename": "ThreadMetadata" }, "topic": { "__typename": "ThreadTopic" } } } ], "pageInfo": { "endCursor": "Example String", "hasNextPage": true, "hasPreviousPage": true, "startCursor": "Example String" } } }
List shipping charges of each offer, grouped by orders
Arguments
Return type
ShoppingList of the errors encountered when computing the shipping fees
List of shipping fees information per order
query shoppingCart($input: ShoppingCartInput!) {
shoppingCart(input: $input) {
errors {
__typename
# ...ShoppingCartErrorFragment
}
orders {
__typename
# ...ShoppingCartOrderFragment
}
}
}
{ "input": { "computeOrderTaxes": true, "customerCode": "Example String", "customerShippingAddress": { "__typename": "ShoppingCartCustomerShippingAddressInput" }, "offers": [ { "__typename": "ShoppingCartOfferInput" } ], "pricingChannelCode": "Example String", "pricingCustomerOrganizationId": "Example String", "promoCodes": [ "Example String" ], "shippingZoneCode": "Example String" } }
{ "data": { "errors": [ { "__typename": "ShoppingCartError" } ], "orders": [ { "__typename": "ShoppingCartOrder" } ] } }
Return type
[Reason!]Reason code
Indicate if reason is enabled to the customer
Indicate if reason is enabled to the operator
Indicate if reason is enabled to the shop
Reason label
Type of the reason
query reasons {
reasons {
code
customerRight
operatorRight
shopRight
label
type
}
}
{ "data": [ { "code": "Example String", "customerRight": true, "operatorRight": true, "shopRight": true, "label": "Example String", "type": "Example String" } ] }
Arguments
Returns the first n elements from the list.
Returns the elements in the list that come after the specified cursor
Returns the last n elements from the list.
Returns the elements in the list that come before the specified cursor
Return type
OffersA list of edges
Information to aid in pagination
query offers(
$input: OfferFilter!
$first: Int
$after: String
$last: Int
$before: String
) {
offers(
input: $input
first: $first
after: $after
last: $last
before: $before
) {
edges {
node {
id
businessId
active
allowQuoteRequests
availability {
__typename
# ...DateTimeRangeFragment
}
additionalFields {
__typename
# ...BooleanAdditionalFieldValueFragment
}
currency
description
ecoContributions {
__typename
# ...OfferEcoContributionFragment
}
fulfillment {
__typename
# ...OfferFulfillmentFragment
}
inactivityReasons {
__typename
# ...OfferInactivityReasonFragment
}
professional
leadTimeToShip
orderQuantity {
__typename
# ...OfferOrderQuantityFragment
}
minShipping {
__typename
# ...OfferMinShippingInformationFragment
}
shipping {
__typename
# ...OfferShippingInformationFragment
}
platformModel
nbEvaluations
packageQuantity
product {
__typename
# ...ProductFragment
}
shop {
__typename
# ...ShopFragment
}
prices {
__typename
# ...PriceFragment
}
totalPrice
state {
__typename
# ...OfferStateFragment
}
quantity
logisticClass {
__typename
# ...OfferLogisticClassFragment
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
{ "input": { "product": { "__typename": "OfferProductFilter" }, "premium": true, "active": true, "states": [ { "__typename": "OfferStateFilter" } ], "channels": [ { "__typename": "OfferChannelFilter" } ], "price": { "__typename": "OfferPriceFilter" } }, "first": 40, "after": "Example String", "last": 40, "before": "Example String" }
{ "data": { "edges": [ { "node": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "businessId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "active": true, "allowQuoteRequests": true, "availability": { "__typename": "DateTimeRange" }, "additionalFields": [ { "__typename": "BooleanAdditionalFieldValue" } ], "currency": "Example Custom Scalar", "description": "Example String", "ecoContributions": [ { "__typename": "OfferEcoContribution" } ], "fulfillment": { "__typename": "OfferFulfillment" }, "inactivityReasons": [ { "__typename": "OfferInactivityReason" } ], "professional": true, "leadTimeToShip": 40, "orderQuantity": { "__typename": "OfferOrderQuantity" }, "minShipping": { "__typename": "OfferMinShippingInformation" }, "shipping": { "__typename": "OfferShippingInformation" }, "platformModel": "Example String", "nbEvaluations": 40, "packageQuantity": 40, "product": { "__typename": "Product" }, "shop": { "__typename": "Shop" }, "prices": [ { "__typename": "Price" } ], "totalPrice": 40, "state": { "__typename": "OfferState" }, "quantity": 40, "logisticClass": { "__typename": "OfferLogisticClass" } } } ], "pageInfo": { "endCursor": "Example String", "hasNextPage": true, "hasPreviousPage": true, "startCursor": "Example String" } } }