Get a single credit-note
curl --request GET \
  --url https://api.splose.com/v1/credit-notes/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required
Required range: x > 0
Example:

1

Response

200 - application/json

Object with credit-note data.

id
integer
required

Credit note id

Required range: x > 0
Example:

1

customNum
string
required

Credit note custom number

Example:

"CN-0001"

invoiceId
integer
required

Invoice id

Required range: x > 0
Example:

1

patientId
integer
required

Patient id

Required range: x > 0
Example:

1

subtotal
number | null
required

Credit note subtotal amount

Example:

193.99

tax
number | null
required

Credit note tax amount

Example:

0

total
number | null
required

Credit note total amount

Example:

193.99

creditNoteItems
object[]
required
description
string | null
required

Credit note description

Example:

"Some description"

deletedAt
required

Object archived date time

Example:

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

sentStatus
enum<string> | null

Credit note status

Available options:
Sent,
Viewed
Example:

"Sent"

creditAllocations
object[]
createdAt

Object creation date time

Example:

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

updatedAt

Object update date time

Example:

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