Credit

A credit is a type of accounting record representing a financial transaction in which one party extends credit to another in lieu of payment. Credit records are applicable only when a payables balance is tracked for each customer in addition to transactional invoices and payments. Examples of credits include gift cards, customer success credits, unused time credits, and service credits.

  • amount
    Type: number · Amount
    required
  • currencyCode
    Type: string · Currencycode
    required
  • date
    Type: string · DateFormat: date
    required

    full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

  • type
    Type: string · CreditTypeenum
    required
    values
    • Application
    • Issuance
    • Adjustment
  • customFields
    Type: object · CustomFieldsnullable

    The additional fields related to an accounting record. Custom fields are used to attach custom metadata to the objects to ingest into the system. Custom fields can be any valid JSON object.

    • propertyName
      Type: anything
  • description
    Type: string · Descriptionnullable
  • endDate
    Type: string · EnddateFormat: datenullable

    full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

  • exchangeRates
    Type: array object[] | null · Exchangeratesnullable
    • currencyCode
      Type: string · Currencycode
      required
    • rate
      Type: number · Rate
      required
  • startDate
    Type: string · StartdateFormat: datenullable

    full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21