← payments API
PaymentTransactions
Singular: PaymentTransaction — Base URL: https://payments-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Example response (recorded) sample
A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.
{
"payload": {
"_id": "6affc69ef5437d5f180d5295",
"status": "pending",
"createdBy": "6045f4d25704710012485569",
"shares": [],
"createdAt": "2026-11-20T04:03:42.745Z",
"updatedAt": "2026-11-20T04:03:43.351Z",
"modifiedBy": "6045f4d25704710012485569"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://payments-api.ayoune.app/paymenttransactions/6affc69ef5437d5f180d5295",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Invoices",
"title": "MODEL_INVOICE",
"href": "https://api.ayoune.app/sale/invoices",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.invoices"
},
{
"rel": "CalendarEntries",
"title": "MODEL_CALENDARENTRY",
"href": "https://api.ayoune.app/crm/calendarentries",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.calendarentries"
},
{
"rel": "AdBookings",
"title": "MODEL_ADBOOKING",
"href": "https://api.ayoune.app/ads/adbookings",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ads.adbookings"
},
{
"rel": "Consumers",
"title": "MODEL_CONSUMER",
"href": "https://api.ayoune.app/crm/consumers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "crm.consumers"
}
],
"debugId": "6affc69ff5437d5f180d52e9",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_PAYMENTTRANSACTION",
"href": "https://api.ayoune.app/payments/paymenttransactions/6affc69ef5437d5f180d5295/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_PAYMENTTRANSACTION",
"href": "https://api.ayoune.app/payments/paymenttransactions/6affc69ef5437d5f180d5295",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.10.0",
"core": "2026.388.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9943",
"reset": "1795151010",
"resetDate": "Fri Nov 20 2026"
},
"responseTime": 106.00678,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /paymenttransactions |
List with filters/pagination | payments.paymenttransactions.view |
| GET | /paymenttransactions/:id |
Single record | payments.paymenttransactions.view |
| POST | /paymenttransactions |
Create new record | payments.paymenttransactions.new |
| PUT | /paymenttransactions |
Update record | payments.paymenttransactions.edit |
| DELETE | /paymenttransactions/:id |
Delete record | payments.paymenttransactions.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.payments.paymentTransactions.find().limit(10).exec();
// Single record
const one = await ay.payments.paymentTransactions.findById('OBJECT_ID').exec();
// Create
const created = await ay.payments.paymentTransactions.create({ name: 'Foo' });