legacyCreditNoteCreate

Graphql fields and variables for the legacyCreditNoteCreate mutation

Create a legacy credit note

Scope required: billing:write

For a complete list of input attributes see the LegacyCreditNoteAttributes type

mutation legacyCreditNoteCreate ($attributes: LegacyCreditNoteAttributes!) {
  legacyCreditNoteCreate (attributes: $attributes) {
      creditNote {
        accountId
        amount
        amountApplied
        amountUnapplied
        createdAt
        creditedInvoiceId
        currencyId
        description
        disputeReasonId
        entityId
        id
        isCredit
        isLegacy
        issuedAt
        number
        subtotal
        taxAmount
        updatedAt
        uuid
        warrenId
      }
      errors
  }
}

Arguments

{
  "attributes": {
    "accountId": "456123",
    "accountCode": "",
    "currencyId": "456123",
    "number": "",
    "amount": "1.00",
    "taxAmount": "1.00",
    "subtotal": "1.00",
    "baseCurrencyTotal": "1.00",
    "issuedAt": "2022-06-01",
    "poNumber": "",
    "pdfBlobUuid": "456123",
    "kind": "CreditNoteKind",
    "disputeReasonId": "456123",
    "creditedInvoiceId": "456123"
  }
}
Name
Type
Description

Response

Name
Type
Description

creditNote

errors

List (String)

Last updated

Was this helpful?