aYOUne
← Affiliate API

AffiliatePayouts

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

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Endpoints

MethodPathDescriptionRight
GET /affiliatepayouts List with filters/pagination affiliate.payouts.view
GET /affiliatepayouts/:id Single record affiliate.payouts.view
POST /affiliatepayouts Create new record affiliate.payouts.new
PUT /affiliatepayouts Update record affiliate.payouts.edit
DELETE /affiliatepayouts/:id Delete record affiliate.payouts.delete

SDK

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

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

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

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

See also