← Affiliate API
ImageBannerTemplates
Singular: ImageBannerTemplate — Base URL: https://affiliate-api.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
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": {
"imageFileName": "",
"imageFileUrl": "",
"targetUrl": "-",
"_id": "65e07d7711cb6213d99d05d2",
"type": "1",
"width": 1,
"height": 1,
"def": false,
"cat": "Standard",
"file": "default.png",
"product": "-",
"target": "-",
"locale": "de_DE",
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T12:49:59.105Z",
"updatedAt": "2024-02-29T12:49:59.105Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://affiliate-api.ayoune.app/imagebannertemplates/65e07d7711cb6213d99d05d2",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "ImageBannerCats",
"title": "MODEL_IMAGEBANNERCAT",
"href": "https://api.ayoune.app/affiliate/imagebannercats",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "affiliate.imagebannercats"
},
{
"rel": "Products",
"title": "MODEL_PRODUCT",
"href": "https://api.ayoune.app/pim/products",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pim.products"
},
{
"rel": "Images",
"title": "MODEL_IMAGE",
"href": "https://api.ayoune.app/cms/images",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.images"
}
],
"debugId": "6a62dbef138b05b510db23ef",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_IMAGEBANNERTEMPLATE",
"href": "https://api.ayoune.app/affiliate/imagebannertemplates/65e07d7711cb6213d99d05d2/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_IMAGEBANNERTEMPLATE",
"href": "https://api.ayoune.app/affiliate/imagebannertemplates/65e07d7711cb6213d99d05d2/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.5.1",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2415",
"reset": "1784867314",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 248.213149,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /imagebannertemplates |
List with filters/pagination | affiliate.imagebannertemplates.view |
| GET | /imagebannertemplates/:id |
Single record | affiliate.imagebannertemplates.view |
| POST | /imagebannertemplates |
Create new record | affiliate.imagebannertemplates.new |
| PUT | /imagebannertemplates |
Update record | affiliate.imagebannertemplates.edit |
| DELETE | /imagebannertemplates/:id |
Delete record | affiliate.imagebannertemplates.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.affiliate.imageBannerTemplates.find().limit(10).exec();
// Single record
const one = await ay.affiliate.imageBannerTemplates.findById('OBJECT_ID').exec();
// Create
const created = await ay.affiliate.imageBannerTemplates.create({ name: 'Foo' });