Payments API

create new entry

POST /api/rest/admin/payments

Parameters

Name Description
data[type] Resource type (payments)
data[attributes][amount] Amount
data[attributes][notes] Notes
data[relationships][account] Account

Request

Headers

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

Route

POST /api/rest/admin/payments

Body

{"data":{"type":"payments","attributes":{"amount":10},"relationships":{"account":{"data":{"type":"accounts","id":91}}}}}

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
location: http://example.org/api/rest/admin/payments/34
vary: Accept
etag: W/"3294fe8c5adc4a7a1ec3eebd397a95fd"
cache-control: max-age=0, private, must-revalidate
x-request-id: f3f63d81-a33c-4fc8-a79d-34663ff66096
x-runtime: 0.024519
content-length: 539

Status

201 Created

Body

{
  "data": {
    "id": "34",
    "type": "payments",
    "links": {
      "self": "http://example.org/api/rest/admin/payments/34"
    },
    "attributes": {
      "created-at": "2026-10-21T21:46:51.372Z",
      "amount": "10.0",
      "currency": "USD",
      "notes": null,
      "private-notes": null,
      "status": "completed",
      "type-name": "manual",
      "balance-before-payment": "0.0",
      "rolledback-at": null
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/admin/payments/34/relationships/account",
          "related": "http://example.org/api/rest/admin/payments/34/account"
        },
        "data": {
          "type": "accounts",
          "id": "91"
        }
      }
    }
  }
}