← Inicio BuyUKeSIM

Código

Ejemplos ejecutables para nuestras API públicas. Copia un archivo, añade tu propia clave y funciona contra los endpoints reales.

README.md42 líneas · 1.3 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
X-Panel-Token: YOUR_PANEL_TOKEN

Clicks, orders, earnings and payout state. It takes your code plus the panel token rather than the API key (send the token in the header, not the URL, so it stays out of logs), 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.

Generado 2026-12-01