This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
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"
}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"
      }
    ]
  }
}'{
  "result": "success",
  "code": 200,
  "data": {
    "CreditNote": {
      "id": 345,
      "number": "CN-2023-001",
      "client_id": 15,
      "date": "2023-03-24",
      "total": 50.00,
      "notes": "Updated credit note",
      "modified": "2023-03-23 16:45:22"
    }
  },
  "message": "Credit note updated successfully"
}