curl -b cookies.txt -c cookies.txt \
-H "Content-Type: application/json" \
-d '{"action":"get_profile"}' \
https://apitest.tunimobile.com/v1/user/do_action
{
"status": "success",
"code": 200,
"message": "OK",
"data": {
"id": 123,
"roles": ["ROLE_SHOP", "ROLE_USER"],
"username": "myshop",
"displayName": "My Shop",
"type": "SHOP",
"isActive": true,
"avatar": "/images/avatars/123.webp",
"location": "Avenue Habib Bourguiba, Tunis",
"lat": "36.8000",
"lng": "10.1800",
"phone": "+21620000000",
"cin": "01234567",
"dateOfBirth": "1990-01-31",
"taxNumber": "1234567/A/M/000",
"NometprenonOuRaisonsociale": "My Shop SARL",
"taxpayerCategory": null,
"maxCreditRequestValue": 1000,
"buyPrices": { "tt_1": 0.95, "tt_5": 4.75, "orange_1": 0.95, "orange_5": 4.75, "ooredoo_1": 0.95, "ooredoo_5": 4.75 },
"isVerified": true,
"verificationStatus": "verified",
"isPhoneVerified": true,
"phoneVerifiedAt": "2026-01-15 10:22:00",
"createdBy": { "id": 7, "username": "salesman1" },
"attatchments": [
{ "url": "https://api.tunimobile.com/files/...", "file": "cin.pdf", "size": 120334, "type": "application/pdf" }
],
"shopId": 45,
"shopName": "My Shop",
"barcodes": { "tt": { "1dt": "...", "5dt": "..." } },
"sellPrices": { "tt_1": 1, "tt_5": 5 },
"salesman": { "id": 7, "username": "salesman1" },
"grade": { },
"isFixedGrade": false
}
}
Account
Get the profile
Read the logged-in shop’s profile, prices and verification state.
curl -b cookies.txt -c cookies.txt \
-H "Content-Type: application/json" \
-d '{"action":"get_profile"}' \
https://apitest.tunimobile.com/v1/user/do_action
{
"status": "success",
"code": 200,
"message": "OK",
"data": {
"id": 123,
"roles": ["ROLE_SHOP", "ROLE_USER"],
"username": "myshop",
"displayName": "My Shop",
"type": "SHOP",
"isActive": true,
"avatar": "/images/avatars/123.webp",
"location": "Avenue Habib Bourguiba, Tunis",
"lat": "36.8000",
"lng": "10.1800",
"phone": "+21620000000",
"cin": "01234567",
"dateOfBirth": "1990-01-31",
"taxNumber": "1234567/A/M/000",
"NometprenonOuRaisonsociale": "My Shop SARL",
"taxpayerCategory": null,
"maxCreditRequestValue": 1000,
"buyPrices": { "tt_1": 0.95, "tt_5": 4.75, "orange_1": 0.95, "orange_5": 4.75, "ooredoo_1": 0.95, "ooredoo_5": 4.75 },
"isVerified": true,
"verificationStatus": "verified",
"isPhoneVerified": true,
"phoneVerifiedAt": "2026-01-15 10:22:00",
"createdBy": { "id": 7, "username": "salesman1" },
"attatchments": [
{ "url": "https://api.tunimobile.com/files/...", "file": "cin.pdf", "size": 120334, "type": "application/pdf" }
],
"shopId": 45,
"shopName": "My Shop",
"barcodes": { "tt": { "1dt": "...", "5dt": "..." } },
"sellPrices": { "tt_1": 1, "tt_5": 5 },
"salesman": { "id": 7, "username": "salesman1" },
"grade": { },
"isFixedGrade": false
}
}
Requires login.
The example values are illustrative.
Body
string
required
get_profileResponse
Thedata object contains the full profile. The fields you will usually need:
integer
User id.
integer
Shop id.
boolean
true when verificationStatus is verified.string
pending, hasAttachment, verified or rejected.object
Price debited from the balance per voucher, keyed
<operator>_<value> (for example orange_5).object
Recommended selling price per voucher, same keys as
buyPrices.object[]
Uploaded account documents. Only present when the account has uploaded documents.
Errors
| HTTP | error.details | Meaning |
|---|---|---|
404 | user not found | The logged-in user no longer exists |
curl -b cookies.txt -c cookies.txt \
-H "Content-Type: application/json" \
-d '{"action":"get_profile"}' \
https://apitest.tunimobile.com/v1/user/do_action
{
"status": "success",
"code": 200,
"message": "OK",
"data": {
"id": 123,
"roles": ["ROLE_SHOP", "ROLE_USER"],
"username": "myshop",
"displayName": "My Shop",
"type": "SHOP",
"isActive": true,
"avatar": "/images/avatars/123.webp",
"location": "Avenue Habib Bourguiba, Tunis",
"lat": "36.8000",
"lng": "10.1800",
"phone": "+21620000000",
"cin": "01234567",
"dateOfBirth": "1990-01-31",
"taxNumber": "1234567/A/M/000",
"NometprenonOuRaisonsociale": "My Shop SARL",
"taxpayerCategory": null,
"maxCreditRequestValue": 1000,
"buyPrices": { "tt_1": 0.95, "tt_5": 4.75, "orange_1": 0.95, "orange_5": 4.75, "ooredoo_1": 0.95, "ooredoo_5": 4.75 },
"isVerified": true,
"verificationStatus": "verified",
"isPhoneVerified": true,
"phoneVerifiedAt": "2026-01-15 10:22:00",
"createdBy": { "id": 7, "username": "salesman1" },
"attatchments": [
{ "url": "https://api.tunimobile.com/files/...", "file": "cin.pdf", "size": 120334, "type": "application/pdf" }
],
"shopId": 45,
"shopName": "My Shop",
"barcodes": { "tt": { "1dt": "...", "5dt": "..." } },
"sellPrices": { "tt_1": 1, "tt_5": 5 },
"salesman": { "id": 7, "username": "salesman1" },
"grade": { },
"isFixedGrade": false
}
}