Base URL
Every path in this documentation is relative to the base URL of the environment:
Example: Log in on test is
POST https://apitest.tunimobile.com/v1/login_check.
Request format
- All endpoints use
POST, except Log out, which usesGET. - Send the body as JSON with
Content-Type: application/json. - Several endpoints are action endpoints (
/user/do_action,/terminal/do_action,/voucher/do_action). Theactionfield in the body picks the operation.
Response format
Most responses are wrapped in the same envelope.- On errors,
error.detailsholds a short message: sometimes a code likevoucher_not_found, sometimes a French sentence meant for display, likeSolde de la boutique insuffisant. See the error reference. - Exceptions: login, token refresh and authentication errors (expired or invalid token) are not wrapped. They return a flat object such as
{"code": 401, "message": "Invalid credentials."}.