Pereiti prie pagrindinio turinio
credit_notes

Create /credit_notes

Create a credit note. Required: contact (client UUID), date, and items (at least one line). Optional: currency (tenant default when omitted), invoice, project, assignee, notes, addresses, organization. Returns record with the detail projection.

POST
/credit_notes
Authorizationstringheaderprivaloma

API key (Bearer token) created in Setup → API & MCP.

Turinys

application/json
adminnotestring

Internal admin note.

assigneestring

Assignee staff UUID.

billing_citystring

Billing city.

billing_countrystring

Billing country UUID.

billing_statestring

Billing state/region.

billing_streetstring

Billing street address.

billing_zipstring

Billing ZIP/postal code.

clientnotestring

Note visible to client.

contactstringprivaloma

Client UUID.

currencystring

Currency name (e.g. EUR). Uses tenant default when omitted on create.

custom_fieldsobject[]

Custom field values by slug.

datestringprivaloma

Credit note date (Y-m-d).

invoicestring

Related invoice UUID. When set on create, credit may be auto-applied to the invoice.

itemsobject[]privaloma

Credit note line items. At least one object is required.

organizationstring

Organization UUID.

projectstring

Related project UUID.

reference_nostring

Reference number.

shipping_citystring

Shipping city.

shipping_countrystring

Shipping country UUID.

shipping_statestring

Shipping state/region.

shipping_streetstring

Shipping street address.

shipping_zipstring

Shipping ZIP/postal code.

statusinteger

Credit note status code (1=open, 2=closed, 3=void).

termsstring

Terms and conditions.

Atsakymas

application/json

Success

recordobject

Fields enabled for this documentation instance (projection enabled: feature, option, subdomain, closures) plus account-level form field visibility. Role- and user-level field overrides are not applied here, so an API key whose staff user has such overrides may receive fewer fields. A disabled field is omitted from the response object entirely; a present key with a null value means the record simply has no value.