Skip to main content
PATCH
/
debitnotes
/
{id}
Partial update debit note
curl --request PATCH \
  --url https://api.piriod.com/debitnotes/{id}/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'x-simple-workspace: <x-simple-workspace>' \
  --data '
{
  "credit_note": 123,
  "document": 123,
  "date": "2023-12-25",
  "note": "<string>",
  "internal_note": "<string>"
}
'
{
  "credit_note": 123,
  "document": 123,
  "date": "2023-12-25",
  "id": 123,
  "number": 123,
  "note": "<string>",
  "internal_note": "<string>",
  "biller_status": "<string>",
  "tax_agency": {},
  "local_file": "<string>",
  "imported": true,
  "test_mode": true,
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://piriod-d406ac55.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use header Authorization: Token <api_token>. API tokens are obtained from the Piriod dashboard.

Headers

x-simple-workspace
string
required

Workspace (account) identifier. Required for every request.

x-piriod-test-mode
boolean
default:false

Whether to operate against test-mode data. Defaults to false.

Path Parameters

id
string
required

Resource identifier.

Body

application/json

Debit notes adjust a previously issued credit note (raising the amount again). They mirror the credit note's line structure and totals.

credit_note
integer
required

Credit-note ID this debit note adjusts.

document
integer
required

Debit-note document type.

date
string<date>
required
note
string | null
Maximum string length: 64
internal_note
string | null
Maximum string length: 1024

Response

200 - application/json

Updated debit note.

Debit notes adjust a previously issued credit note (raising the amount again). They mirror the credit note's line structure and totals.

credit_note
integer
required

Credit-note ID this debit note adjusts.

document
integer
required

Debit-note document type.

date
string<date>
required
id
integer
read-only
number
integer
read-only
note
string | null
Maximum string length: 64
internal_note
string | null
Maximum string length: 1024
biller_status
string
read-only
tax_agency
object
read-only
local_file
string<uri> | null
read-only
imported
boolean
read-only
test_mode
boolean
read-only
created
string<date-time>
read-only
updated
string<date-time>
read-only