Build payments into your product with MyTPE Pay. Start integrating →
Logo
API reference

API reference

Base URL, authentication, conventions, and the list of external API resources.

The MyTPE Pay external API is a REST API over HTTPS. It uses resource‑oriented URLs, returns JSON, and authenticates with an API key + secret pair.

Base URLhttps://api.mytpe.appp/api/ext
Local devhttp://localhost:8010/api/ext
AuthX-Api-Key + X-Api-Secret headers (details)
FormatJSON request and response bodies; multipart/form-data for uploads
IDsUUID strings
MoneyDecimal strings (e.g. "4500.00"), currency DZD unless noted

Conventions

  • Responses are wrapped in a data envelope; lists are paginated with links and meta. See Responses.
  • Errors use a consistent shape: { "error": "CODE", "message": "..." }. Validation errors (422) add a Laravel‑style errors map. See Responses → Errors.
  • Statuses & enums for every resource (KYC, instances, links, transactions, webhooks) are centralised in Statuses & enums. Each API page links to its relevant statuses.

Resources

ResourceUse it to
AuthenticationManage and send API credentials.
IdentificationsManage your KYC dossier.
BrandsManage customer‑facing brand identities.
Bank accountsManage settlement RIBs.
Payment instancesRequest and manage virtual TPEs.
Payment linksCreate and control shareable payment URLs.
FormsBuild forms collected at checkout.
WebhooksSubscribe to real‑time events.

All endpoints are scoped to the trader that owns the API key. You can only read and modify your own resources; requesting another trader's resource returns 404.

On this page