- drafts
- test 23
- Welcome
- Getting Started
- Authorization
- OverView
- Sample APIs
- Client
- Product
- Category
- Invoices
- Clients
- Products
- Suppliers
- Taxes
- General Listing
- Site Info
- Staff
- Authentication
- Api V2
- Last
- Full Version
- Invoices
- Estimates
- Credit Notes
- Refund Receipts
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Staff
- Client Attendance
- Client Appointments
- Invoice Appointments
- Estimate Appointments
- Work Order Appointments
- Notes
- Products
- Time Tracking
- Work Orders
- Product Categories
- Taxes
- Invoice Payments
- Client Payments
- Expenses
- Incomes
- Stores
- Treasuries
- Stock Transactions
- Journals
- Journal Accounts
- Journal Categories
- Follow Up Statuses
- Follow Up Actions
- General Listing
- Site Info
- Authentication
- Documentation
- tests
- Authentication
- Site Information
- Invoices
- Estimates
- Credit Notes
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Products
- General Listings
- Edit Estimate
- Delete Estimate
- Edit Credit Note
- Delete Credit Note
- Edit Refund Receipt
- Delete Refund Receipt
- Edit Purchase Order
- Delete Purchase Order
- Edit Purchase Refund
- Delete Purchase Refund
- Edit Client
- Delete Client
- Edit Supplier
- Delete Supplier
- Edit Product
- Delete Product
- Docs
- Untitled Doc
- Invoices
- Estimates
- Credit Notes
- Refund Receipts
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Staff
- Client Attendance
- Client Appointments
- Invoice Appointments
- Estimate Appointments
- Work Order Appointments
- Notes
- Products
- Time Tracking
- Work Orders
- Product Categories
- Taxes
- Invoice Payments
- Client Payments
- Expenses
- Incomes
- Stores
- Treasuries
- Stock Transactions
- Journals
- Journal Accounts
- Journal Categories
- Follow Up Statuses
- Follow Up Actions
- General Listing
- Site Info
- Authentication
- Documentation
- ttt
- Authentication
- Site Information
- Invoices
- Estimates
- Credit Notes
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Products
- General Listings
- Edit EstimatePUT
- Delete EstimateDELETE
- Edit Credit NotePUT
- Delete Credit NoteDELETE
- Edit Refund ReceiptPUT
- Delete Refund ReceiptDELETE
- Edit Purchase OrderPUT
- Delete Purchase OrderDELETE
- Edit Purchase RefundPUT
- Delete Purchase RefundDELETE
- Edit ClientPUT
- Delete ClientDELETE
- Edit SupplierPUT
- Delete SupplierDELETE
- Edit ProductPUT
- Delete ProductDELETE
- Authentication
Edit Credit Note
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
PUT
{{subdomain}}/api2
Last modified:2025-04-20 12:10:30
Maintainer:Not configured
id
: Credit Note ID (required)date
(string): Credit note date (YYYY-MM-DD)notes
(string): Credit note notes/reasonid
along with the fields to updateid
field and include required item fields{
"result": "success",
"code": 200,
"data": {
"CreditNote": {
"id": 345,
// Updated credit note fields...
}
},
"message": "Credit note updated successfully"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{subdomain}}/api2/api2/credit_notes/{{id}}.json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"CreditNote": {
"date": "2023-03-24",
"notes": "Updated credit note for damaged products",
"InvoiceItem": [
{
"id": 678,
"quantity": 2,
"unit_price": 45
},
{
"product_id": 3,
"quantity": 1,
"unit_price": 25,
"description": "Additional return item"
}
]
}
}'
Response Response Example
200 - Success Response
{
"result": "success",
"code": 200,
"data": {
"CreditNote": {
"id": 345,
"number": "CN-2023-001",
"client_id": 15,
"date": "2023-03-24",
"total": 50,
"notes": "Updated credit note",
"modified": "2023-03-23 16:45:22"
}
},
"message": "Credit note updated successfully"
}
Request
Body Params text/plain
Examples
Responses
🟢200Success Response
application/json
Body
result
stringÂ
required
code
integerÂ
required
data
objectÂ
required
CreditNote
objectÂ
required
message
stringÂ
required
🟠404Error - Not Found