Главная BuyUKeSIM

Код

Готовые к запуску примеры для наших публичных API. Скопируйте файл, добавьте свой ключ, и он заработает с рабочими эндпоинтами.

README.md41 строк · 1.2 KB

Affiliate API

Two read-only endpoints for affiliates. This is the affiliate programme, which pays commission on referred sales. It is not the Partner API, which resells at wholesale against a prepaid balance. The two systems are separate and a code from one does not work in the other.

Catalogue

GET https://buyukesim.com/api/affiliate/catalog
Authorization: Bearer YOUR_AFFILIATE_API_KEY

Every sellable product with the commission you earn on it. Optional ?location_code=GB narrows it to one destination. The key is shown in your affiliate panel.

Panel stats

GET https://buyukesim.com/api/affiliate_panel?code=YOURCODE&token=YOUR_PANEL_TOKEN

Clicks, orders, earnings and payout state. It takes your code plus the panel token rather than the API key, and it is rate limited, because a public stats endpoint is otherwise an invitation to guess other people's codes.

Referral links

Add ?ref=YOURCODE to any page. The landing is recorded, and a first-party cookie plus local storage carries the code through checkout, so a buyer who leaves and comes back later still counts as yours.

https://buyukesim.com/en/uk-esim/?ref=YOURCODE

Commission is calculated on the final price the customer paid, after any discount your link applies.

Сгенерировано 2026-09-01