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.eyJzdWIiOjE3OSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc4MTI3OTQwMn0.AiB3aS45Po44rsP6H5cBzy_tiplniGucPqXSm_DhO-Y
Host: example.org
Cookie: 

Route

POST /api/rest/admin/payments

Body

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

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/"2727a45c882bf6877f7782187062a3ef"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6a40386f-4c2c-43c6-8ac8-070e32afc5fa
x-runtime: 0.016823
content-length: 522

Status

201 Created

Body

{
  "data": {
    "id": "34",
    "type": "payments",
    "links": {
      "self": "http://example.org/api/rest/admin/payments/34"
    },
    "attributes": {
      "created-at": "2026-06-12T15:40:02.446Z",
      "amount": "10.0",
      "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": "88"
        }
      }
    }
  }
}