invoiceUpdate

Update an invoice. The invoiceUpdate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: billing:write

For a complete list of input attributes see the InvoiceAttributes type

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

ArgumentsLink to Arguments section

{
  "id": "456123",
  "attributes": {
    "poNumber": "",
    "notes": "",
    "internalNotes": ""
  }
}
Name Type Description
id ID  
attributes InvoiceAttributes  

ResponseLink to Response section

Name Type Description
errors List (String)  
invoice Invoice