legacyInvoiceCreate

Graphql fields and variables for the legacyInvoiceCreate mutation

Create a legacy invoice

Scope required: billing:write

For a complete list of input attributes see the LegacyInvoiceAttributes type

mutation legacyInvoiceCreate ($attributes: LegacyInvoiceAttributes!) {
  legacyInvoiceCreate (attributes: $attributes) {
      errors
      invoice {
        accountId
        amount
        amountDue
        amountPaid
        baseCurrencyId
        baseCurrencyTotal
        couponApplied
        createdAt
        credits
        currencyId
        description
        dueAt
        hasPaymentMethod
        id
        isLegacy
        issuedAt
        kind
        netPaymentDays
        notes
        number
        paidAt
        payableId
        paymentFailedAt
        paymentFailureReason
        poNumber
        portalUrl
        quoteId
        sendInvoiceTo
        smallUnitAmountDue
        subtotal
        taxAmount
        taxRate
        updatedAt
        url
        uuid
      }
  }
}

Arguments

{
  "attributes": {
    "accountId": "456123",
    "accountCode": "",
    "currencyId": "456123",
    "state": "InvoiceState",
    "number": "",
    "amount": "1.00",
    "taxAmount": "1.00",
    "subtotal": "1.00",
    "baseCurrencyTotal": "1.00",
    "dueAt": "2022-06-01",
    "netPaymentDays": 123,
    "poNumber": "",
    "pdfBlobUuid": "456123",
    "issuedAt": "2022-06-01"
  }
}
Name
Type
Description

Response

Name
Type
Description

errors

List (String)

invoice

Last updated

Was this helpful?