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.eyJzdWIiOjQ2LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzc2MzY1NzMzfQ.LzT3V_dw1-pUC9OcklyUip8Q-RvMNddvNiEGPQtOxaw 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: 4d8a00c1-3bd9-4038-bd4c-8bc3f4c65751 x-runtime: 0.015234 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"
}
}
}