aYOUne
← Affiliate API

ImageBanners

Singular: ImageBanner — 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.

Example response (recorded) sample

A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.

{
  "payload": {
    "adPlace": "-",
    "subId": "-",
    "customId": "-",
    "customId2": "-",
    "_id": "65e07d7811cb6213d99d05f9",
    "adplace": "-",
    "sub_id": "-",
    "cust_id": "-",
    "cust_id2": "-",
    "note": "-",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T12:50:00.258Z",
    "updatedAt": "2024-02-29T12:50:00.258Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://affiliate-api.ayoune.app/imagebanners/65e07d7811cb6213d99d05f9",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "ImageBannerTemplates",
        "title": "MODEL_IMAGEBANNERTEMPLATE",
        "href": "https://api.ayoune.app/affiliate/imagebannertemplates",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "affiliate.imagebannertemplates"
      }
    ],
    "debugId": "6a62dbec138b05b510db22be",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_IMAGEBANNER",
        "href": "https://api.ayoune.app/affiliate/imagebanners/65e07d7811cb6213d99d05f9/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_IMAGEBANNER",
        "href": "https://api.ayoune.app/affiliate/imagebanners/65e07d7811cb6213d99d05f9/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.5.1",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2432",
      "reset": "1784867314",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 50.93958,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

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

SDK

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

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

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

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

See also