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
: 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"
}
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
}
]
}
}'
{
"result": "success",
"code": 200,
"data": {
"RefundReceipt": {
"id": 456,
"number": "RF-2023-001",
"client_id": 15,
"date": "2023-03-24",
"total": 200.00,
"notes": "Updated refund receipt",
"modified": "2023-03-23 16:45:22"
}
},
"message": "Refund receipt updated successfully"
}