Skip to Content
StoreOSv0.27.1
Storefront GraphQL APIReferenceObjects

Invoice

typeInvoice

Fields

  1. fields
_id*ID!
tenant?String
invoiceUID?String
shippingAddress?
note?String
rejectionReason?String
paymentStatus?PAYMENT_STATUS
Value inPROCESSINGPAIDCANCELLEDFAILEDUNATTEMPTEDEXPIRED
invoiceStatus?INVOICE_STATUS
Value inPENDINGPROCESSINGREJECTEDCANCELLEDSHIPMENT_IN_PROGRESSSHIPMENT_IN_TRANSITSHIPMENT_DELIVERED
paymentMethod?INVOICE_PAYMENT_METHOD
Value inCODONLINE
paymentProvider?PAYMENT_PROVIDER
Value inBKASHSSLCOMMERZ
paymentTransactionId?String
paymentSuccessUrl?String
paymentFailUrl?String
paymentCancelUrl?String
paidAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

customer?
vendor?
lineItems?
subTotalAmount?Float
netTotalAmount?Float
taxRate?Float
taxAmount?Float
deliveryCharge?Float
couponCode?String
couponDiscount?Float

Total of all discounts on the order. Kept for older clients; equals discountTotal.

discountApplications?
discountTotal?Float
shippingDiscount?Float

Part of discountTotal that came off the delivery charge.

deliveryArea?String
deliverySubArea?String
commits?
webhookEvent?String

Latest Graphland PGW webhook event as JSON string. Parse with JSON.parse on the client.

createdAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

updatedAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

shipment?
customFields?
SDL
type Invoice {  _id: ID!  tenant: String  invoiceUID: String  shippingAddress: LocationReference  note: String  rejectionReason: String  paymentStatus: PAYMENT_STATUS  invoiceStatus: INVOICE_STATUS  paymentMethod: INVOICE_PAYMENT_METHOD  paymentProvider: PAYMENT_PROVIDER  paymentTransactionId: String  paymentSuccessUrl: String  paymentFailUrl: String  paymentCancelUrl: String  paidAt: DateTime  customer: UserReference  vendor: VendorReference  lineItems: [LineItemReference!]  subTotalAmount: Float  netTotalAmount: Float  taxRate: Float  taxAmount: Float  deliveryCharge: Float  couponCode: String  couponDiscount: Float  discountApplications: [DiscountApplication!]  discountTotal: Float  shippingDiscount: Float  deliveryArea: String  deliverySubArea: String  commits: [ResourceCommitHistoryReference!]  webhookEvent: String  createdAt: DateTime  updatedAt: DateTime  shipment: Shipment  customFields: [CheckoutCustomFieldReference!]}