← payments API
PaymentTransactions
Singular: PaymentTransaction — Base-URL: https://payments-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Beispiel-Response (aufgezeichnet) Beispiel
Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.
{
"payload": {
"_id": "6ac47a6f876fb3b18d0ecfbb",
"status": "pending",
"createdBy": "6045f4d25704710012485569",
"shares": [],
"createdAt": "2026-10-06T04:34:55.546Z",
"updatedAt": "2026-10-06T04:34:56.129Z",
"modifiedBy": "6045f4d25704710012485569"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://payments-api.ayoune.app/paymenttransactions/6ac47a6f876fb3b18d0ecfbb",
"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": "6ac47a70876fb3b18d0ecff8",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_PAYMENTTRANSACTION",
"href": "https://api.ayoune.app/payments/paymenttransactions/6ac47a6f876fb3b18d0ecfbb/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_PAYMENTTRANSACTION",
"href": "https://api.ayoune.app/payments/paymenttransactions/6ac47a6f876fb3b18d0ecfbb",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.10.0",
"core": "2026.364.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9938",
"reset": "1791264883",
"resetDate": "Tue Oct 06 2026"
},
"responseTime": 86.244152,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /paymenttransactions |
Liste mit Filtern/Paginierung | payments.paymenttransactions.view |
| GET | /paymenttransactions/:id |
Einzelner Datensatz | payments.paymenttransactions.view |
| POST | /paymenttransactions |
Neuen Datensatz erstellen | payments.paymenttransactions.new |
| PUT | /paymenttransactions |
Datensatz aktualisieren | payments.paymenttransactions.edit |
| DELETE | /paymenttransactions/:id |
Datensatz löschen | payments.paymenttransactions.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.payments.paymentTransactions.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.payments.paymentTransactions.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.payments.paymentTransactions.create({ name: 'Foo' });