fulfillment_invoices
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
date_from | ISODateTime | No | ||
date_to | ISODateTime | No | ||
analyze | Boolean | No | If true, the query will only be analyzed (cost estimated) without executing it. |
Return Type
FulfillmentInvoicesQueryResult
Query
query fulfillment_invoices(
$date_from: ISODateTime,
$date_to: ISODateTime,
$analyze: Boolean
) {
fulfillment_invoices(
date_from: $date_from,
date_to: $date_to,
analyze: $analyze
) {
request_id
complexity
data {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
stripe_charge_id
stripe_invoice_id
stripe_invoice_number
stripe_invoice_status
stripe_invoice_url
stripe_next_payment_attempt
account_id
cc_info
amount
created_at
shipping_items {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
invoice_id
order_id
shipment_id
shipping_label_id
amount
shipping_rate
processing_fee
picking_fee
overcharge_fee
created_at
}
cursor
}
}
inbound_shipping_items {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
invoice_id
purchase_order_id
shipment_id
shipping_label_id
amount
cost
created_at
}
cursor
}
}
returns_items {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
invoice_id
order_id
rma_id
rma_label_id
amount
shipping_rate
picking_fee
inspection_fee
restocking_fee
created_at
}
cursor
}
}
returns_fulfillment_items {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
invoice_id
order_id
rma_id
rma_label_id
amount
sub_total_amount
picking_fee
inspection_fee
restocking_fee
fulfillment_taxes
created_at
}
cursor
}
}
storage_items {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
legacy_id
account_id
warehouse_id
invoice_id
amount
created_at
}
cursor
}
}
}
cursor
}
}
}
}Variables
{
"date_from": ISODateTime,
"date_to": ISODateTime,
"analyze": true
}Response
{
"data": {
"fulfillment_invoices": {
"request_id": "abc123",
"complexity": 987,
"data": FulfillmentInvoiceConnection
}
}
}