Edit Purchase Refund
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
PUT
{{subdomain}}/api2
Last modified:2025-04-20 12:10:30
Maintainer:Not configured
id
: Purchase Refund ID (required)date
(string): Purchase refund date (YYYY-MM-DD)notes
(string): Purchase refund notes/reasonrefund_method
(string): Method of refund (e.g., "Credit", "Cash", "Bank Transfer")id
along with the fields to updateid
field and include required item fields{
"result": "success",
"code": 200,
"data": {
"PurchaseRefund": {
"id": 678,
// Updated purchase refund fields...
}
},
"message": "Purchase refund updated successfully"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{subdomain}}/api2/api2/purchase_refunds/{{id}}.json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"PurchaseRefund": {
"date": "2023-03-24",
"notes": "Updated notes for damaged item return",
"refund_method": "Bank Transfer",
"PurchaseOrderItem": [
{
"id": 901,
"quantity": 4,
"unit_price": 55
}
]
}
}'
Response Response Example
200 - Success Response
{
"result": "success",
"code": 200,
"data": {
"PurchaseRefund": {
"id": 678,
"number": "PR-2023-001",
"supplier_id": 1,
"date": "2023-03-24",
"total": 250,
"modified": "2023-03-23 16:45:22"
}
},
"message": "Purchase refund updated successfully"
}
Request
Body Params text/plain