حساب، کیف پول و پرداخت | مرجع API
← همهٔ بخشهای مرجع · آدرس پایه: https://trendism.ir/api/v3
GET /balance
موجودی کیف پول
Wallet balance (the test wallet for test keys)
دسترسی لازم: read
| نام | نوع | توضیح |
|---|---|---|
object * | string (balance) | |
livemode * | boolean | |
balance_irr * | integer (int64) | |
credit_limit_irr * | integer (int64) | |
available_irr * | integer (int64) |
POST /coupons/redeem
ثبت کد هدیه یا پاداش شارژ
Redeem a voucher (credited now) or a deposit coupon (applied to the next deposit)
دسترسی لازم: payments
| نام | نوع | توضیح |
|---|---|---|
Idempotency-Key (header) | string | A unique string (for example a UUID). Replays the stored response for 24 hours. |
| نام | نوع | توضیح |
|---|---|---|
code * | string |
| نام | نوع | توضیح |
|---|---|---|
object * | string (coupon_redemption) | |
kind * | string (voucher | deposit_bonus) | |
credited_irr * | integer (int64) | Credited now (vouchers); deposit coupons apply to the next deposit |
GET /me
مشخصات کاربر و کلید فعلی
The signed-in user and the current credential
دسترسی لازم: read
| نام | نوع | توضیح |
|---|---|---|
object * | string (user) | |
id * | integer (int64) | |
phone * | string | |
display_name * | string | null | |
email * | string | null | |
tier * | Tier | |
ref_code * | string | |
credential * | Credential | |
created_at * | string (date-time) |
GET /notifications
اعلانهای داخل پنل
In-app notifications, newest first
دسترسی لازم: read
| نام | نوع | توضیح |
|---|---|---|
limit (query) | integer | 1–100, default 25 |
cursor (query) | string | The next_cursor of the previous page (opaque) |
| نام | نوع | توضیح |
|---|---|---|
object * | string (list) | |
data * | Notification[] | |
next_cursor * | string | null | |
unread * | integer (int64) |
POST /notifications/read
خوانده شدن اعلانها
Mark one notification (id) or all of them read
دسترسی لازم: read
| نام | نوع | توضیح |
|---|---|---|
Idempotency-Key (header) | string | A unique string (for example a UUID). Replays the stored response for 24 hours. |
| نام | نوع | توضیح |
|---|---|---|
id | integer (int64) | Omit to mark everything read |
| نام | نوع | توضیح |
|---|---|---|
object * | string (notifications_read) | |
marked * | integer (int64) |
POST /payments
شروع شارژ کیف پول از درگاه
Start a wallet top-up through the gateway
دسترسی لازم: payments
| نام | نوع | توضیح |
|---|---|---|
Idempotency-Key (header) | string | A unique string (for example a UUID). Replays the stored response for 24 hours. |
| نام | نوع | توضیح |
|---|---|---|
amount_irr * | integer (int64) | |
gateway | string | |
return_url | string | null | Where to send the user after paying (https) |
| نام | نوع | توضیح |
|---|---|---|
object * | string (payment) | |
id * | integer (int64) | |
status * | string | created, redirected, verified, credited, failed, expired |
gateway * | string | |
amount_irr * | integer (int64) | |
redirect_url * | string | null | Open this in the user's browser (only while unpaid) |
return_url * | string | null | |
created_at * | string (date-time) | |
updated_at * | string (date-time) | |
verified_at * | string (date-time) | null |
GET /payments/{id}
وضعیت یک پرداخت
A payment
دسترسی لازم: read
| نام | نوع | توضیح |
|---|---|---|
id (path) * | integer (int64) |
| نام | نوع | توضیح |
|---|---|---|
object * | string (payment) | |
id * | integer (int64) | |
status * | string | created, redirected, verified, credited, failed, expired |
gateway * | string | |
amount_irr * | integer (int64) | |
redirect_url * | string | null | Open this in the user's browser (only while unpaid) |
return_url * | string | null | |
created_at * | string (date-time) | |
updated_at * | string (date-time) | |
verified_at * | string (date-time) | null |
GET /referrals
معرفی دوستان و پاداشها
Your referral link, totals and recent commissions
دسترسی لازم: read
| نام | نوع | توضیح |
|---|---|---|
object * | string (referrals) | |
link * | string | |
ref_code * | string | |
commission_bps * | integer (int64) | |
hold_days * | integer | |
held_irr * | integer (int64) | |
released_irr * | integer (int64) | |
commissions * | Commission[] |
GET /request-logs
گزارش درخواستهای API شما
Your API request log (writes and errors, 14 days)
دسترسی لازم: read
| نام | نوع | توضیح |
|---|---|---|
limit (query) | integer | 1–100, default 25 |
cursor (query) | string | The next_cursor of the previous page (opaque) |
| نام | نوع | توضیح |
|---|---|---|
object * | string (list) | |
data * | RequestLog[] | |
next_cursor * | string | null |
GET /transactions
تراکنشهای کیف پول
Wallet ledger lines, newest first
دسترسی لازم: read
| نام | نوع | توضیح |
|---|---|---|
kind (query) | string | |
created_after (query) | string (date-time) | |
created_before (query) | string (date-time) | |
limit (query) | integer | 1–100, default 25 |
cursor (query) | string | The next_cursor of the previous page (opaque) |
| نام | نوع | توضیح |
|---|---|---|
object * | string (list) | |
data * | Transaction[] | |
next_cursor * | string | null |