aYOUne
← Affiliate API

AffiliatePayouts

Singular: AffiliatePayout — Base-URL: https://affiliate-api.ayoune.app — Zugriff: CRUD

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Endpunkte

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

SDK

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

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

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

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

Weiterführend