v1 - Customer Credits

List customer credits

Returns a paginated list of customer credits

get/v1/customer-credits

Request

  • Base URL
    https://light.inc (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Query parameters

sortstring

Sort string in the format field:direction. To provide multiple sort fields, separate them with commas.

Available directions: asc, desc.

Available fields: amount, businessPartnerName, documentDate, effectiveDocumentDate, postingDate, status.

Example:amount:desc,createdAt:asc
filterstring

Filter string in the format field:operator:value. To provide multiple filters, separate them with commas.

Available operators: eq, ne, in, not_in, gt, gte, lt, lte.

  • For in and not_in operators, provide multiple values separated by the pipe character (|).

Available fields: businessPartnerId, companyEntityId, currency, documentDate, effectiveDocumentDate, einvoiceStatus, id, postingDate, status, updatedAt.

Example:state:in:IN_DRAFT|SCHEDULED|PAID,amount:gte:500,vendorId:ne:null
limitinteger

Maximum number of items to return. Default is 50, maximum is 200.

cursorstring

The cursor position to start returning results from. To opt-in into cursor-based pagination, provide 0 for the initial request. For subsequent requests, use nextCursor and prevCursor from the previous response to navigate. Cursor values are opaque and should not be constructed manually.

includestring[]

Related objects to include on every customer credit. Supported value can be INVOICE_RECEIVABLE

Response

default response

hasMoreboolean

Boolean flag indicating if there are more records available

nextCursorstring nullable

Cursor for fetching the next page

prevCursorstring nullable

Cursor for fetching the previous page

Example response

{
  "records": [
    {
      "currency": "USD",
      "linkedInvoiceReceivable": {
        "currency": "USD"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.