The balance correction resource allows you to modify account balance by applying **correction**. Correction may be negative or positive
| Name | Description |
|---|---|
| data[type] | Resource type (balance-correction) |
| data[id] | Account ID |
| data[attributes][correction] | Correction |
Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQ2LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzcyMjEyMDAwfQ.PQ7LRhFRROGWpCCTjQ518w3LUMLzC9Ds5wMidpzBVDg Host: example.org Cookie:
PUT /api/rest/admin/accounts/28/balance-correction
{"data":{"type":"balance-correction","id":28,"attributes":{"correction":"21"}}}
x-frame-options: SAMEORIGIN x-xss-protection: 0 x-content-type-options: nosniff x-permitted-cross-domain-policies: none referrer-policy: strict-origin-when-cross-origin content-type: application/vnd.api+json vary: Accept etag: W/"df88cddafd5a2b6c050c8ce456906f0d" cache-control: max-age=0, private, must-revalidate x-request-id: 838a22db-2ca5-4e19-8090-59176ff30d22 x-runtime: 0.017514 content-length: 171
200 OK
{
"data": {
"id": "28",
"type": "balance-correction",
"links": {
"self": "http://example.org/api/rest/admin/balance-correction"
},
"attributes": {
"name": "account8",
"balance": "121.0"
}
}
}