curl --request GET \
  --url https://api.splose.com/v1/credit-notes \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 1,
      "customNum": "CN-0001",
      "invoiceId": 1,
      "patientId": 1,
      "subtotal": 193.99,
      "tax": 0,
      "total": 193.99,
      "sentStatus": "Sent",
      "creditNoteItems": [
        {
          "id": 1,
          "invoiceItemId": 1,
          "unitPrice": 193.99,
          "quantity": 0.5,
          "discount": "$20.00"
        }
      ],
      "creditAllocations": [],
      "description": "Some description",
      "createdAt": "2023-07-30T09:00:00.000Z",
      "updatedAt": "2023-07-30T09:00:00.000Z",
      "deletedAt": "2023-07-30T09:00:00.000Z"
    }
  ],
  "links": {
    "previousPage": "/v1/${object_type}?id_gt=200",
    "nextPage": "/v1/${object_type}?id_lt=100"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id_gt
integer | null

The starting object id of the next page

Example:

200

id_lt
integer | null

The starting object id of the previous page

Example:

100

update_gt

Search for objects updated after this date time

Example:

"2023-07-30T09:00:00.000Z"

update_lt

Search for objects updated before this date time

Example:

"2023-07-30T09:00:00.000Z"

include_archived
enum<string> | null
default:false

Whether archived objects should be retrieved, default is false

Available options:
true,
false
patientId
number | null

Search for credit notes of this patient

Example:

1

invoiceId
number | null

Search for credit notes of this invoice

Example:

1

practitionerId
number | null

Search for credit notes created by this practitioner

Example:

1

sentStatus
enum<string> | null

Search for credit notes of this sent status

Available options:
Sent,
Viewed
Example:

"Sent"

Response

200 - application/json

A paged array of credit-notes

The response is of type object.