Sale__invoice
{ collectionName: 'sale__Invoice', permissions: ['*', 'read'], } Requires a signed-in staff user. Needs the `sale__Invoice` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
sale__invoice(where: CommonFindDocumentDto!): Invoice!{ collectionName: 'sale__Invoice', permissions: ['*', 'read'], } Requires a signed-in staff user. Needs the sale__Invoice read permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
where*Returns
- sale__invoice
_id*ID!commits?couponCode?StringcouponDiscount?FloatTotal of all discounts on the order. Kept for older clients; equals discountTotal.
createdAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
customFields?customer?deliveryArea?StringdeliveryCharge?FloatdeliverySubArea?StringdiscountApplications?discountTotal?FloatinvoiceStatus?INVOICE_STATUSCANCELLEDPENDINGPROCESSINGREJECTEDSHIPMENT_DELIVEREDSHIPMENT_IN_PROGRESSSHIPMENT_IN_TRANSITinvoiceUID?StringlineItems?netTotalAmount?Floatnote?StringpaidAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
paymentCancelUrl?StringpaymentFailUrl?StringpaymentMethod?INVOICE_PAYMENT_METHODCODONLINEpaymentProvider?PAYMENT_PROVIDERBKASHSSLCOMMERZpaymentStatus?PAYMENT_STATUSCANCELLEDEXPIREDFAILEDPAIDPROCESSINGUNATTEMPTEDpaymentSuccessUrl?StringpaymentTransactionId?StringrejectionReason?Stringshipment?shippingAddress?shippingDiscount?FloatPart of discountTotal that came off the delivery charge.
subTotalAmount?FloattaxAmount?FloattaxRate?Floattenant?StringupdatedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
vendor?webhookEvent?StringLatest Graphland PGW webhook event as JSON string. Parse with JSON.parse on the client.
query Sale__invoice($where: CommonFindDocumentDto!) { sale__invoice(where: $where) { _id commits { action commitedBy { email name phoneNumber referenceId } committedAt note } couponCode couponDiscount createdAt customFields { key value } deliveryArea deliveryCharge deliverySubArea discountTotal }}{ "where": { "and": [ { "and": [ { "and": [ { "and": [ {} ], "key": "string" } ], "key": "string" } ], "key": "string" } ], "key": "string" }}{ "data": { "sale__invoice": { "_id": "1", "commits": [ { "action": "string", "commitedBy": { "email": "string", "name": "string", "phoneNumber": "string", "referenceId": "1" }, "committedAt": "<DateTime>", "note": "string" } ], "couponCode": "string", "couponDiscount": 10.5, "createdAt": "<DateTime>", "customFields": [ { "key": "string", "value": "string" } ], "deliveryArea": "string", "deliveryCharge": 10.5, "deliverySubArea": "string", "discountTotal": 10.5 } }}Sale__discounts QUERY
{ collectionName: 'sale__Discount', permissions: ['*', 'read'], } Requires a signed-in staff user. Needs the `sale__Discount` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Sale__invoice Offers QUERY
Automatic Buy X Get Y offers an editable order qualifies for but doesn't have yet. { collectionName: 'sale__Invoice', permissions: ['*', 'read'], } Requires a signed-in staff user. Needs the `sale__Invoice` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).