Zum Inhalt springen
aYOUne
← payments API

PaymentMethods

Singular: PaymentMethod — Base-URL: https://payments-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

Jetzt ausprobieren beta

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": "6ac47a69876fb3b18d0ecdff",
    "isDefault": false,
    "status": "active",
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-10-06T04:34:49.044Z",
    "updatedAt": "2026-10-06T04:34:49.044Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://payments-api.ayoune.app/paymentmethods/6ac47a69876fb3b18d0ecdff",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Consumers",
        "title": "MODEL_CONSUMER",
        "href": "https://api.ayoune.app/crm/consumers",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.consumers"
      },
      {
        "rel": "Websites",
        "title": "MODEL_WEBSITE",
        "href": "https://api.ayoune.app/cms/websites",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.websites"
      }
    ],
    "debugId": "6ac47a69876fb3b18d0ece47",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_PAYMENTMETHOD",
        "href": "https://api.ayoune.app/payments/paymentmethods/6ac47a69876fb3b18d0ecdff/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_PAYMENTMETHOD",
        "href": "https://api.ayoune.app/payments/paymentmethods/6ac47a69876fb3b18d0ecdff",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.10.0",
      "core": "2026.364.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9958",
      "reset": "1791264883",
      "resetDate": "Tue Oct 06 2026"
    },
    "responseTime": 96.548871,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /paymentmethods Liste mit Filtern/Paginierung payments.paymentmethods.view
GET /paymentmethods/:id Einzelner Datensatz payments.paymentmethods.view
POST /paymentmethods Neuen Datensatz erstellen payments.paymentmethods.new
PUT /paymentmethods Datensatz aktualisieren payments.paymentmethods.edit
DELETE /paymentmethods/:id Datensatz löschen payments.paymentmethods.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.payments.paymentMethods.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.payments.paymentMethods.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.payments.paymentMethods.create({ name: 'Foo' });

Weiterführend