Edit Refund Receipt
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
PUT
{{subdomain}}/api2
Last modified:2025-03-23 23:11:40
Maintainer:Not configured
id
: Refund Receipt ID (required)date
(string): Refund receipt date (YYYY-MM-DD)notes
(string): Refund receipt notes/reasonpayment_method
(string): Method of refund (e.g., "Bank Transfer", "Credit Card")treasury_id
(integer): ID of the treasury/cash accountid
along with the fields to updateid
field and include required item fields{
"result": "success",
"code": 200,
"data": {
"RefundReceipt": {
"id": 456,
// Updated refund receipt fields...
}
},
"message": "Refund receipt updated successfully"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{subdomain}}/api2/api2/refund_receipts/{{id}}.json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"RefundReceipt": {
"date": "2023-03-24",
"notes": "Updated refund receipt for service cancellation",
"payment_method": "Wire Transfer",
"InvoiceItem": [
{
"id": 789,
"quantity": 1,
"unit_price": 150
}
]
}
}'
Response Response Example
200 - Success Response
{
"result": "success",
"code": 200,
"data": {
"RefundReceipt": {
"id": 456,
"number": "RF-2023-001",
"client_id": 15,
"date": "2023-03-24",
"total": 200,
"notes": "Updated refund receipt",
"modified": "2023-03-23 16:45:22"
}
},
"message": "Refund receipt updated successfully"
}
Request
Body Params text/plain