Balances correction API

The balance correction resource allows you to modify account balance by applying **correction**. Correction may be negative or positive

update values

PUT /api/rest/admin/accounts/:id/balance-correction

Parameters

Name Description
data[type] Resource type (balance-correction)
data[id] Account ID
data[attributes][correction] Correction

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQ2LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzcyMjEyMDAwfQ.PQ7LRhFRROGWpCCTjQ518w3LUMLzC9Ds5wMidpzBVDg
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/accounts/28/balance-correction

Body

{"data":{"type":"balance-correction","id":28,"attributes":{"correction":"21"}}}

Response

Headers

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

Status

200 OK

Body

{
  "data": {
    "id": "28",
    "type": "balance-correction",
    "links": {
      "self": "http://example.org/api/rest/admin/balance-correction"
    },
    "attributes": {
      "name": "account8",
      "balance": "121.0"
    }
  }
}