API v2 Reference
The MyPayIndia API v2 uses session-based authentication via Bearer tokens. All requests and
responses are JSON. If you have a question or issue, ask in #dev on our Discord.
Conventions
Authentication
Log in viaPOST /api/v2/auth/login to receive a session ID. Pass it
as Authorization: Bearer <session_id> on all authenticated
requests. (You will still get a cookie from this endpoint, like in v1, and can use it instead if you want)
Money
All amounts are integers in paisa100 = 1.00 INR10000 = 100.00 INRTimestamps
All timestamps are ISO 8601 with UTC offset2026-05-05T14:30:00+00:00Response Shape
Success:{"success": true, "data": { ... }}Error:
{"success": false, "error": 1001, "message": "..."}Error Codes
Error codes identify the error type. Themessage field is human readable but should not be parsed programatically as it can change
over time.Maintenance Mode
Any endpoint may return503 with error code 9003 during maintenenace mode.Authentication
Authenticate and receive a session ID.
Request Body
| Parameter | Type | Description |
|---|---|---|
| username | string required | Username or email address |
| password | string required | Account password |
| totp_code | string optional | TOTP authenticator code (required if 2FA is enabled) |
Response
{
"success": true,
"data": {
"session_id": "a1b2c3d4e5f6...",
"user": {
"id": 123,
"username": "johnpayment",
"role": "user"
}
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1005 | 401 | Invalid username/email or password |
| 1002 | 401 | 2FA code required but not provided |
| 1010 | 401 | Invalid 2FA code |
| 1003 | 403 | Account is suspended |
| 1016 | 403 | Password sign-in is turned off, so the app must update and use /api/v2/auth/oauth |
session_id as Authorization: Bearer <session_id> on all authenticated requests.Authenticate using a MyPayIndia Identity access token to receive a session ID. The app needs full account access turned on in its developer settings.
Request Body
| Parameter | Type | Description |
|---|---|---|
| access_token | string required | Access token from /oauth/token with a granted session scope |
Response
{
"success": true,
"data": {
"session_id": "a1b2c3d4e5f6...",
"user": {
"id": 123,
"username": "johnpayment",
"role": "user"
}
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1008 | 400 | No access token was sent |
| 1006 | 401 | The access token is unknown, expired, revoked or already exchanged |
| 1014 | 403 | The token lacks the session scope, or its app may not create sessions: full account access is off or paused, the app is disabled, or the app is unreviewed and the user is not its developer |
| 1003 | 403 | Account is suspended |
Authorization header. Each access token can be exchanged once. The returned session_id is identical to the one you'd get from /api/v2/auth/login.Scan a QR login code shown on another device and get the details of the device asking to log in.
Request Body
| Parameter | Type | Description |
|---|---|---|
| token | string required | The scanned QR code contents, either the full mpi-login:v1:... text or the token after the prefix |
Response
{
"success": true,
"data": {
"token": "Zk3v9Q...",
"requester": {
"device": "Windows",
"ip": "1.50.100.200",
"location": "Mumbai, Maharashtra, India",
"requested_at": "Monday, October 26th, 2026 2:05:00 PM"
}
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing token, or the code is not a MyPayIndia login code |
| 1001 | 401 | Not authenticated |
| 1014 | 403 | The session belongs to a third-party app, which cannot approve logins |
| 9005 | 404 | The code is unknown, expired or already scanned |
| 9006 | 429 | Too many scans in a short time |
mpi-login:v1:. After scanning, the other device shows the account name and waits. Show the user the requester details together with a warning to approve only if they are logging in on a screen in front of them, then call /api/v2/auth/qr/approve or /api/v2/auth/qr/deny. A code expires two minutes after it was shown.Approve a scanned QR login, logging the other device into this account.
Request Body
| Parameter | Type | Description |
|---|---|---|
| token | string required | The token returned by /api/v2/auth/qr/scan |
| totp_code | string optional | TOTP authenticator code (required if 2FA is enabled) |
Response
{
"success": true
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing or malformed token |
| 1001 | 401 | Not authenticated |
| 1002 | 401 | 2FA code required but not provided |
| 1010 | 401 | Invalid 2FA code |
| 1014 | 403 | The session belongs to a third-party app, which cannot approve logins |
| 9005 | 404 | The code expired, or was not scanned by this session |
| 9005 | 410 | The device showing the code cancelled the login, so nothing was approved |
| 9006 | 429 | Too many 2FA attempts |
Deny a scanned QR login. The other device shows that the login was denied.
Request Body
| Parameter | Type | Description |
|---|---|---|
| token | string required | The token returned by /api/v2/auth/qr/scan |
Response
{
"success": true
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing or malformed token |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | The code expired, or was not scanned by this session |
| 9005 | 410 | The device showing the code cancelled the login, so nothing was approved |
User
Get profile and balance information for the authenticated user.
Response
{
"success": true,
"data": {
"id": 11,
"username": "johnpayment",
"first_name": "John",
"last_name": "Payment",
"email": "[email protected]",
"balance": 1234500,
"role": "user",
"created": "2025-12-01T12:05:00+00:00",
"mfa_enabled": true
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
Get active restrictions on the authenticated user's account.
Response
{
"success": true,
"data": {
"restrictions": {
"frozen": {
"active": true,
"value": null,
"expires_at": "2026-06-01T00:00:00+00:00",
"label": "Account Frozen",
"description": "You cannot receive or send funds."
}
},
"restrictions_list": [
{
"id": "frozen",
"active": true,
"value": null,
"expires_at": "2026-06-01T00:00:00+00:00",
"label": "Account Frozen",
"description": "You cannot receive or send funds."
}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
restrictions and restrictions_list carry the same restrictions in two shapes: an object keyed by restriction id, and an array where the id is a field. Pick whichever suits your client. With no active restrictions, restrictions is {} and restrictions_list is []. label is a short title for the restriction and description a sentence explaining it.List active and recently invalidated sessions for the authenticated user.
Response
{
"success": true,
"data": {
"sessions": [
{
"id": "a1b2c3...",
"device_info": "macOS",
"ip": "1.50.100.200",
"created_at": "2026-05-01T10:00:00+00:00",
"last_active": "2026-05-05T14:30:00+00:00",
"invalidated": false,
"invalidated_at": null,
"current": true,
"login_method": null,
"oauth_app": {
"id": "9d3f2a1e-5b7c-4e8a-a6f0-1c2d3e4f5a6b",
"name": "MyPayIndia 2"
}
}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
oauth_app is not null, the session was initiated and is most likely being used by the app. login_method is "qr" for sessions started by approving a QR code, "password" for website logins, and null otherwise.Invalidate (log out) a specific session.
Request Body
| Parameter | Type | Description |
|---|---|---|
| session_id | string required | The session ID to invalidate |
Response
{
"success": true
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Invalid input or missing session_id |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Session not found or already invalidated |
Send a verification email to the authenticated user's email address.
Response
{
"success": true
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1013 | 400 | Email already verified |
| 1001 | 401 | Not authenticated |
| 9006 | 429 | Rate limited (60 second cooldown) |
Transactions
Transfer funds to another user.
Request Body
| Parameter | Type | Description |
|---|---|---|
| recipient | string|integer required | Recipient username or user ID |
| amount | integer required | Amount in paisa |
| note | string optional | Optional transfer note |
Response
{
"success": true,
"data": {
"transaction_id": "TXN-1234567890-09af",
"status": "confirmed"
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Invalid or missing input |
| 2001 | 400 | Insufficient balance |
| 2003 | 400 | Cannot transfer to yourself |
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
| 1004 | 403 | Sender or recipient account is frozen |
| 2005 | 403 | Sender or recipient is restricted from receiving or making transactions |
| 1012 | 403 | Unverified sender above the unverified transfer limit, or unverified recipient who would exceed the unverified balance limit |
| 2002 | 404 | Recipient not found |
Get details of a specific transaction.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string|integer required | Transaction database ID or transaction ID (TXN-xxx) |
Response
{
"success": true,
"data": {
"id": 456,
"transaction_id": "TXN-1234567890-09af",
"sender": {
"id": 123,
"username": "johnpayment"
},
"recipient": {
"id": 456,
"username": "timpurchase"
},
"amount": 10000,
"note": "Thanks for the Yuri",
"status": "confirmed",
"created": "2026-05-01T12:33:00+00:00"
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing id or invalid identifier format |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Transaction not found |
Get transaction history for the authenticated user.
Response
{
"success": true,
"data": {
"transactions": [
{
"id": 456,
"transaction_id": "TXN-1234567890-09af",
"sender": { "id": 123, "username": "johnpayment" },
"recipient": { "id": 456, "username": "timpurchase" },
"amount": 10000,
"status": "confirmed",
"created": "2026-05-01T12:00:00+00:00",
"note": "Thanks for the Yuri"
}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
Payment Links
Create a payment link. Deducts the amount from your balance immediately.
Request Body
| Parameter | Type | Description |
|---|---|---|
| amount | integer required | Amount in paisa |
| note | string optional | Optional note |
Response
{
"success": true,
"data": {
"id": 123,
"token": "a1b2c3d4...",
"amount": 10000,
"note": "yuri",
"url": "https://mypayindia.com/pay/link?token=a1b2c3d4..."
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 2001 | 400 | Insufficient balance |
| 9004 | 400 | Invalid input or missing amount |
| 1001 | 401 | Not authenticated |
| 1012 | 403 | Account email is not verified |
| 1003 | 403 | Account is suspended |
| 1004 | 403 | Account is frozen |
| 2005 | 403 | Account is restricted from creating payment links |
List all payment links created by the authenticated user.
Response
{
"success": true,
"data": {
"links": [
{
"id": 123,
"token": "a1b2c3d4...",
"amount": 10000,
"note": "yuri",
"created": "2026-05-01T12:00:00+00:00",
"status": "active",
"url": "https://mypayindia.com/pay/link?token=a1b2c3d4..."
}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
Get details of a payment link by its token.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| token | string required | Payment link token |
Response
{
"success": true,
"data": {
"amount": 10000,
"creator": {
"username": "johnpayment"
},
"note": "yuri",
"created": "2026-05-01T12:00:00+00:00"
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing token parameter |
| 3002 | 400 | Payment link already claimed |
| 3003 | 400 | Payment link cancelled |
| 3001 | 404 | Payment link not found or invalid token |
Claim a payment link and receive the funds.
Request Body
| Parameter | Type | Description |
|---|---|---|
| token | string required | Payment link token |
Response
{
"success": true,
"data": {
"transaction_id": "TXN-1234567890-09af"
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Invalid input or missing token |
| 3004 | 400 | Payment link already used |
| 3005 | 400 | Cannot claim your own payment link |
| 1001 | 401 | Not authenticated |
| 1012 | 403 | Unverified account claiming above the unverified limit |
| 1003 | 403 | Account is suspended |
| 3001 | 404 | Payment link not found |
Cancel your own payment link and refund the amount to your balance.
Request Body
| Parameter | Type | Description |
|---|---|---|
| token | string required | Payment link token |
Response
{
"success": true
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Invalid input or missing token |
| 3002 | 400 | Payment link was already claimed |
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
| 1014 | 403 | Not your payment link |
| 1015 | 403 | Would exceed account fund limits if refunded |
| 3001 | 404 | Payment link not found |
Subscriptions
List the authenticated user's subscriptions.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| status | string optional | Filter by status: active, trialing, past_due, cancelled, expired |
Response
{
"success": true,
"data": {
"subscriptions": [
{
"subscription_id": "sub_a1b2c3d4e5f6...",
"plan_name": "MyPayIndia Premium",
"business_name": "MyPayIndia",
"amount": 25000,
"interval": "monthly",
"interval_count": 1,
"status": "active",
"cancel_at_period_end": false,
"current_period_start": "2026-06-04T10:00:00+00:00",
"current_period_end": "2026-07-04T10:00:00+00:00",
"cancelled_at": null,
"created_at": "2026-06-04T10:00:00+00:00"
}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
Cancel a subscription at the end of the current billing period.
Request Body
| Parameter | Type | Description |
|---|---|---|
| subscription_id | string required | The subscription ID (sub_xxx) |
Response
{
"success": true,
"data": {
"subscription_id": "sub_a1b2c3d4e5f6...",
"cancel_at_period_end": true
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing subscription_id, or the subscription is already cancelled/scheduled for cancellation |
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
| 9005 | 404 | No such subscription for this user |
Undo a pending cancellation and resume a subscription.
Request Body
| Parameter | Type | Description |
|---|---|---|
| subscription_id | string required | The subscription ID (sub_xxx) |
Response
{
"success": true,
"data": {
"subscription_id": "sub_a1b2c3d4e5f6...",
"cancel_at_period_end": false
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing subscription_id, or the subscription is not pending cancellation |
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
| 9005 | 404 | No such subscription for this user |
cancel_at_period_end: true). Cannot resume already cancelled or expired subscriptions.Agent
Get the current conversation with MyAgentIndia
Response
{
"success": true,
"data": {
"agent": {
"name": "Nancy C \"Quechua Juandres \"Eggball\" Marley\" Sizzem",
"short_name": "Nancy",
"avatar": "https://mypayindia.com/images/nancy.png"
},
"max_length": 300,
"greeting": "I am Nancy C \"Quechua Juandres \"Eggball\" Marley\" Sizzem. What can I help you with?",
"transcript": [
{
"id": "MSG-1793980800-3fa9c21e",
"role": "user",
"text": "what is my balance"
},
{
"id": "MSG-1793980800-b04d7e16",
"role": "agent",
"text": "",
"confirmable": false,
"steps": [],
"results": [
{
"ok": true,
"message": "You have 12,345.00 INR",
"writes": false,
"kind": null,
"cards": []
}
]
}
],
"awaiting_confirmation": false,
"awaiting_answer": false,
"suggestions": [
"what is my balance",
"send 100 to mypayindia"
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
awaiting_confirmation means a change is planned and waiting on /api/v2/agent/confirm.
awaiting_answer means the agent asked for a missing detail and reads the next message as the answer.
Every message has a unique id in the form MSG-<unix time>-<hex>, where the middle part is when the message was sent, in seconds.
Every other agent endpoint returns this same object.Say something to MyAgentIndia
Request Body
| Parameter | Type | Description |
|---|---|---|
| message | string required | What the user said (max 300 chars) |
Response
{
"success": true,
"data": {
"greeting": "...",
"transcript": ["..."],
"awaiting_confirmation": true,
"awaiting_answer": false,
"suggestions": ["..."],
"reply": [
{
"id": "MSG-1793980800-c81f02ab",
"role": "agent",
"text": "Confirm this action:",
"confirmable": true,
"steps": [
{
"status": "ready",
"label": "Send money",
"description": "Recipient: @johnpayment / Amount: 100.00",
"note": null
}
],
"results": []
}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing or empty message |
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
reply is what the agent said back this turn, so you can append it without having to reapply the whole transcript.
Refusals come back as results[].ok: false, not an error response.
text may contain *emphasis* and [label](/path) links, render or strip them.
A result with a kind carries cards to draw as a list instead of a sentence:
payment-links
(token, amount, note, status, created, url), transactions
(id, reference, other_party, sent, amount, status, created)
and weather
(place, flag, label, icon, temperature, feels_like, humidity).Carry out the action MyAgentIndia is waiting on.
Response
{
"success": true,
"data": {
"greeting": "...",
"transcript": ["..."],
"awaiting_confirmation": false,
"awaiting_answer": false,
"suggestions": ["..."],
"reply": [
{
"id": "MSG-1793980812-07de55c4",
"role": "agent",
"text": "",
"confirmable": false,
"steps": [],
"results": [
{
"ok": true,
"message": "Sent 100.00 INR to @johnpayment.",
"writes": true,
"kind": null,
"cards": []
}
]
}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
Turn down the action MyAgentIndia is waiting on.
Response
{
"success": true,
"data": {
"greeting": "...",
"transcript": ["..."],
"awaiting_confirmation": false,
"awaiting_answer": false,
"suggestions": ["..."],
"reply": [
{
"id": "MSG-1793980812-e2a7914d",
"role": "agent",
"text": "Okay, I won't do that then",
"confirmable": false,
"steps": [],
"results": []
}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
Start a new conversation.
Response
{
"success": true,
"data": {
"greeting": "...",
"transcript": [],
"awaiting_confirmation": false,
"awaiting_answer": false,
"suggestions": ["..."]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
App
Check the latest and minimum supported app version for a platform.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| platform | string required | App platform, either "android", "ios" or "ios-legacy" |
Response
{
"success": true,
"data": {
"latest_version": 26050100,
"min_supported_version": 26040200,
"update_url": "https://mypayindia.com/app/android"
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing or invalid platform (must be android, ios or ios-legacy) |
min_supported_version.Public
Get users ranked by balance.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| limit | integer optional | Number of users to return (default 10, maximum 100) |
Response
{
"success": true,
"data": {
"leaderboard": [
{
"username": "johnpayment",
"balance": 1234500
}
]
}
} Get the list of MyPayIndia team members.
Response
{
"success": true,
"data": {
"team": [
{
"name": "John Payment",
"role": "Intern 5",
"avatar": "https://mypayindia.com/siteassets/images/team/johnpayment.webp",
"joined": "2025-12-01T08:36:00+00:00",
"socials": {
"Website": "https://mypayindia.com",
"GitHub": "https://github.com/mypayindiadevs"
},
"status": "current",
"country": "US",
"country_name": "United States",
"country_flag": "πΊπΈ",
"role_history": [
{
"role": "Intern 5",
"start_date": "2025-12-01",
"end_date": null
}
],
"contributions": [
"January redesign",
"MyPWAIndia"
],
"quote": "Online banking of the future",
"pride_flags": ["rainbow", "trans"]
}
]
}
} status is one of current, past, or special_thanks. country/country_name/country_flag, quote, and pride_flags are null or an empty array/object if not set for that member. pride_flags entries are one of: rainbow, trans, bisexual, pansexual, nonbinary, lesbian, mlm, asexual, genderfluid, aromantic, agender, intersex.Profiles
List the public profiles and shops shown in Discover
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| q | string optional | Username search text |
| verified | boolean optional | Set to 1 to return verified profiles only |
| tab | string optional | Set to following when authenticated to list profiles you follow |
| page | integer optional | Page number, with 24 profiles per page |
Response
{
"success": true,
"data": {
"profiles": [
{
"username": "tiago",
"url": "https://mypayindia.com/@tiago",
"avatar_url": "https://mypayindia.com/storage/profiles/avatars/a.webp",
"avatar_flag": "trans",
"avatar_accessory": "cat_ears_black",
"pronouns": "he/him",
"status": {"emoji": "π±", "text": "Restocking this weekend", "expires_at": "2026-10-02T18:00:00+00:00"},
"bio": "I sell cool stuff here.",
"followers": 42,
"listed_items": 3,
"verified": true
},
{
"username": "exerinity",
"url": "https://mypayindia.com/@exerinity",
"avatar_url": "https://mypayindia.com/storage/profiles/avatars/a.webp",
"avatar_flag": null,
"avatar_accessory": null,
"pronouns": "he/him",
"status": {"emoji": "π€", "text": "theres a science in my love for you", "expires_at": null},
"bio": "viva la horde",
"followers": 5,
"listed_items": 1,
"verified": true
}
],
"page": 1,
"last_page": 4
}
} Fetch a public profile: bio, images, balance (if shown), social links and the visible sections in display order.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| username | string required | Profile to fetch |
Response
{
"success": true,
"data": {
"username": "tiago",
"url": "https://mypayindia.com/@tiago",
"visibility": "public",
"locked": false,
"private": false,
"bio": "I sell cool stuff here.",
"pronouns": "he/him",
"pride_flags": ["rainbow", "trans"],
"avatar_flag": "trans",
"avatar_accessory": "cat_ears_black",
"country": "PT",
"country_name": "Portugal",
"accent": "teal",
"status": {"emoji": "π±", "text": "Restocking this weekend", "expires_at": "2026-10-02T18:00:00+00:00"},
"verified": true,
"badges": ["MyPayIndia team", "Developer"],
"avatar_url": "https://mypayindia.com/storage/profiles/avatars/a.webp",
"banner_url": null,
"balance": 5050000,
"balance_visible": true,
"followers": 42,
"seller_rating": {"average": 4.7, "count": 18},
"links": [{"platform": "github", "label": "GitHub", "url": "https://github.com/tiago"}],
"sections": [{"type": "shop", "title": "Shop", "visible": true, "config": {"title": "Shop"}}],
"member_since": "2026-09-20T19:10:00+00:00"
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing username |
| 1009 | 404 | No such profile |
private: true with every other field nulled or empty, unless the caller is its owner. locked is true when staff banned the user from public profiles, which makes the profile private and read-only for its owner. seller_rating averages every review left on the shop items of this user, and is {"average": 0, "count": 0} with no reviews. accent is one of brand, rose, amber, green, teal, blue, violet or slate. status is null when unset or expired, and expires_at is null for a status that never clears. Money is in paisa. Section types: shop, stats, revenue_chart, recent_sales, top_items, supporters, goal, updates, faq, text. The goal section counts only confirmed donations made with /api/v2/profile/donate or the Donate button, anonymous ones included. supporters ranks donors who chose to show their name, plus shop customers minus refunds when its config has include_shop: true (the default). Ordinary transfers never count toward either.Your own profile, including hidden sections and their configuration.
Response
{ "success": true, "data": { "username": "tiago", "visibility": "public", "sections": [] } } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
Change your bio, visibility, balance visibility, social links or section layout. Only the fields you send are changed.
Request Body
| Parameter | Type | Description |
|---|---|---|
| bio | string optional | Up to 500 characters |
| pronouns | string optional | Up to 40 characters, empty to clear |
| pride_flags | array optional | Flag slugs shown next to your name; replaces the current list |
| avatar_flag | string optional | Flag slug drawn behind your profile picture, empty for none |
| avatar_accessory | string optional | cat_ears_black, cat_ears_white, cat_ears_orange or cat_ears_gray, empty for none |
| country | string optional | ISO 3166 country code, empty for none |
| accent | string optional | brand, rose, amber, green, teal, blue, violet or slate |
| status_emoji | string optional | One emoji, empty to clear |
| status_text | string optional | Up to 80 characters, empty to clear |
| status_expiry | string optional | 1h, 1d, 1w or never. A changed status without it clears after 1 day |
| visibility | string optional | private, or anything else for public |
| balance_visible | boolean optional | Show your balance on the profile |
| links | array optional | List of {platform, url}; replaces the current list |
| layout | array optional | List of {type, visible, config}; replaces the section order |
Response
{ "success": true, "data": { "username": "tiago", "bio": "New bio", "visibility": "private" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Bio too long or a link is not valid for its platform |
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
| 1014 | 403 | Profile was locked by staff |
Latest updates (short posts) on a profile.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| username | string required | Profile to read |
| limit | integer optional | 1 to 50, default 20 |
Response
{
"success": true,
"data": {
"updates": [
{"id": 7, "body": "New drop tomorrow", "image_url": null, "link": "https://example.com", "score": 3, "vote": 0, "likes": 3, "liked": false, "created": "2026-09-20T19:10:00+00:00"}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1014 | 403 | Profile is private |
| 1009 | 404 | No such profile |
score is likes minus dislikes and can be negative. vote is your own vote: 1, -1 or 0, and null when not authenticated. likes and liked are kept for older clients and mirror score and vote === 1.Post an update on your profile.
Request Body
| Parameter | Type | Description |
|---|---|---|
| body | string required | Up to 500 characters |
| link | string optional | http(s) URL |
Response
{ "success": true, "data": { "id": 8, "body": "Hello", "score": 0, "vote": 0, "likes": 0, "liked": false } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Empty body or bad link |
| 1001 | 401 | Not authenticated |
Delete one of your updates.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Update id |
Response
{ "success": true } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not your update |
Like or dislike an update. Sending the same vote again removes it.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Update id |
| value | integer required | 1 to like, -1 to dislike |
Response
{ "success": true, "data": { "vote": -1, "score": 2 } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | value is not 1 or -1, or the update is yours |
| 1001 | 401 | Not authenticated |
| 1014 | 403 | Profile is private or its owner blocked you |
| 9005 | 404 | No such update |
| 9006 | 429 | More than 60 votes in a minute |
Toggle your like on an update. Same as voting 1.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Update id |
Response
{ "success": true, "data": { "liked": true, "likes": 4, "vote": 1, "score": 4 } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | The update is yours |
| 1001 | 401 | Not authenticated |
| 1014 | 403 | Profile is private or its owner blocked you |
| 9005 | 404 | No such update |
| 9006 | 429 | More than 60 votes in a minute |
/api/v2/profile/updates/vote.Report a profile to the MyPayIndia team.
Request Body
| Parameter | Type | Description |
|---|---|---|
| username | string required | Profile to report |
| reason | string required | scam, impersonation, inappropriate, spam or other |
| details | string optional | Required when reason is other |
Response
{ "success": true, "data": { "id": 3 } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Bad reason, own profile, or an open report already exists |
| 1001 | 401 | Not authenticated |
| 9006 | 429 | More than 5 reports in an hour |
Follow a profile, or unfollow it if you already follow it. Followers get a notification when the profile posts an update.
Request Body
| Parameter | Type | Description |
|---|---|---|
| username | string required | Profile to follow or unfollow |
Response
{ "success": true, "data": { "following": true, "followers": 43 } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing username, or following yourself |
| 1001 | 401 | Not authenticated |
| 1014 | 403 | Profile is private, or its owner blocked you |
| 1009 | 404 | No such profile |
| 9006 | 429 | More than 30 follow or block toggles in a minute |
Block a profile, or unblock it if it is already blocked.
Request Body
| Parameter | Type | Description |
|---|---|---|
| username | string required | Profile to block or unblock |
Response
{ "success": true, "data": { "blocked": true } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing username, or blocking yourself |
| 1001 | 401 | Not authenticated |
| 1014 | 403 | Profile is private |
| 1009 | 404 | No such profile |
| 9006 | 429 | More than 30 follow or block toggles in a minute |
Donate to a profile from your balance.
Request Body
| Parameter | Type | Description |
|---|---|---|
| username | string required | Profile to donate to |
| amount | integer required | Amount in paisa, at least 100 |
| message | string optional | Up to 200 characters, shown to the recipient in their notifications and transaction history |
| public | boolean optional | Show your name in the profile's supporters. Defaults to true. Anonymous donations still count toward the donation goal |
Response
{ "success": true, "data": { "transaction_id": "DON-1789932793-1f9f", "status": "confirmed", "amount": 50000, "public": true } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing username, bad amount, or a message that is too long or has blocked words |
| 2001 | 400 | Your balance is too low |
| 2003 | 400 | Donating to yourself |
| 1001 | 401 | Not authenticated |
| 1014 | 403 | The profile is private or locked, or its owner blocked you |
| 1003 | 403 | Your account is suspended |
| 2005 | 403 | Sending or receiving is restricted, or a fund limit would be passed |
| 1009 | 404 | No such profile |
| 9006 | 429 | More than 10 donations in a minute |
| 2004 | 503 | Transfers are turned off |
DON- transaction id, so it goes through every check a normal transfer does and shows up in both parties' transaction history. Large or unusual donations return status: "pending" and only count on the profile once staff confirm them. The recipient always sees who sent a donation.Shop
Items listed in a user's shop.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| username | string required | Shop owner |
Response
{
"success": true,
"data": {
"items": [
{
"id": 2,
"seller": "tiago",
"name": "Hand-drawn cat portrait",
"description": "I draw your cat.",
"image_url": "https://mypayindia.com/storage/shop/items/x.webp",
"price": 120000,
"stock": 5,
"sold_out": false,
"delivery": "manual",
"options": [
{"key": "cat_name", "label": "Your cat's name", "type": "text", "required": true},
{"key": "frame", "label": "Frame", "type": "select", "required": false, "choices": [{"label": "None", "price": 0}, {"label": "Wooden", "price": 30000}]}
],
"sold": 2,
"created": "2026-09-20T19:10:00+00:00"
}
]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1014 | 403 | Profile is private |
| 1009 | 404 | No such profile |
stock is null for unlimited stock. Option types: checkbox (adds price when ticked), select (each choice carries its own price), text (free input). Prices are in paisa and add to the unit price.One item. Owners also get its status and instant-delivery content.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Item id |
Response
{ "success": true, "data": { "id": 2, "name": "Hand-drawn cat portrait", "price": 120000 } } Errors
| Code | HTTP | Description |
|---|---|---|
| 1014 | 403 | Shop is private |
| 9005 | 404 | No such item, or it is hidden or archived |
Your own items, including hidden ones.
Response
{ "success": true, "data": { "items": [ { "id": 2, "status": "active", "instant_type": null, "instant_content": null } ] } } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
Add an item to your shop.
Request Body
| Parameter | Type | Description |
|---|---|---|
| name | string required | Up to 100 characters |
| price | integer required | Unit price in paisa |
| pwyw | boolean optional | Let buyers pay what they want, with price as the minimum |
| description | string optional | Up to 2000 characters |
| stock | integer|null optional | Units available; null or omitted for unlimited |
| delivery | string required | instant or manual |
| instant_type | string optional | text or url (instant delivery only) |
| instant_content | string optional | What the buyer receives (instant delivery only) |
| hidden | boolean optional | Keep it off your profile |
| options | array optional | Buyer fields: [{label, type, required, price?, choices?: [{label, price}]}] |
Response
{ "success": true, "data": { "id": 3, "name": "Sticker pack", "price": 5000, "status": "active" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Validation failed, or the shop is at its item limit |
| 1001 | 401 | Not authenticated |
| 1003 | 403 | Account is suspended |
Change an item. Takes the same fields as create plus id; fields you leave out keep their value.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Item id |
Response
{ "success": true, "data": { "id": 3, "name": "Sticker pack v2" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Validation failed |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not your item |
Set stock, and optionally hide or show the item.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Item id |
| stock | integer|null optional | New stock; null or omitted for unlimited |
| hidden | boolean optional | Hide from or show on your profile |
Response
{ "success": true, "data": { "id": 3, "stock": 40, "status": "active" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Negative stock |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not your item |
Take an item off sale for good. Past orders keep referring to it.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Item id |
Response
{ "success": true } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not your item |
Buy an item. The total is transferred to the seller at once; instant items are delivered in the response.
Request Body
| Parameter | Type | Description |
|---|---|---|
| item_id | integer required | Item id |
| quantity | integer optional | Default 1 |
| options | object optional | Answers keyed by field key: true for a checkbox, the choice index for a select, a string for text |
| discount_code | string optional | Discount code created by the seller, case-insensitive |
| gift_to | string optional | Username to send the item to as a gift |
| amount | integer optional | Pay what you want items only: the unit amount in paisa, at least the price plus option extras. Defaults to that minimum. Quantity must be 1. Discounts apply to this amount |
Response
{
"success": true,
"data": {
"id": 12,
"order_id": "ORD-1789932793-5B7CF1",
"item_id": 2,
"item_name": "Hand-drawn cat portrait",
"buyer": "alice",
"seller": "tiago",
"recipient": null,
"side": "buyer",
"quantity": 2,
"unit_price": 150000,
"subtotal": 300000,
"discount_code": "SUMMER10",
"discount_amount": 30000,
"total": 270000,
"selections": [{"key": "frame", "label": "Frame", "value": "Wooden", "price": 30000}],
"delivery": "manual",
"status": "pending",
"delivery_type": null,
"delivery_content": null,
"attachment_url": null,
"transaction_id": "SHP-1789932793-1f9f",
"refund_transaction_id": null,
"created": "2026-09-20T19:33:00+00:00",
"fulfilled_at": null
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing required field, bad quantity, out of stock, invalid discount code, or a gift recipient that cannot receive it |
| 2001 | 400 | Insufficient balance |
| 2003 | 400 | Buying from your own shop |
| 1001 | 401 | Not authenticated |
| 1004 | 403 | Your account or the seller's is frozen |
| 1014 | 403 | The seller blocked you, or the shop is private |
| 9005 | 404 | Item is not for sale |
| 2002 | 404 | No user matches gift_to |
| 9006 | 429 | More than 10 purchases in a minute |
status: in_review: the buyer has paid, the seller is credited and the order delivered only once staff approve it, and the buyer can cancel it for a full refund until then with /api/v2/shop/purchases/cancel. A fulfilled instant order carries delivery_type and delivery_content; image deliveries expose attachment_url instead, which needs the same session. subtotal is the price before the discount and total is what was charged. With gift_to, the order goes to recipient: the delivery is only shown to the recipient, so the buyer always sees delivery_type, delivery_content and attachment_url as null.Orders placed in your shop, newest first, 25 per page.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| status | string optional | in_review, pending, fulfilled or refunded |
| page | integer optional | Page number |
Response
{ "success": true, "data": { "orders": [], "page": 1, "last_page": 1 } } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
Items you bought or were gifted, newest first, 25 per page. Delivered content stays available here for good.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| status | string optional | in_review, pending, fulfilled or refunded |
| page | integer optional | Page number |
Response
{ "success": true, "data": { "orders": [], "page": 1, "last_page": 1 } } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
One order you bought, sold or received as a gift.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Order id (numeric, not the ORD- reference) |
Response
{ "success": true, "data": { "id": 12, "status": "fulfilled", "delivery_type": "text", "delivery_content": "CODE-1234" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not your order |
side is seller, buyer or recipient. On a gift, only the seller and the recipient see the delivery.Messages on an order, oldest first. The buyer, the seller and a gift recipient can read them.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Order id (numeric, not the ORD- reference) |
Response
{
"success": true,
"data": {
"messages": [{"id": 4, "author": "alice", "body": "Can you make it blue?", "created": "2026-09-20T19:40:00+00:00"}]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not your order |
Send a message on an order. Every other party gets a notification.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Order id |
| body | string required | Up to 1000 characters |
Response
{ "success": true, "data": { "id": 5, "author": "tiago", "body": "Sure, done!", "created": "2026-09-20T19:42:00+00:00" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Empty or too long message |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not your order |
| 9006 | 429 | More than 20 messages in 10 minutes |
Star rating summary and the latest reviews of an item.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Item id |
| limit | integer optional | 1 to 50, default 20 |
Response
{
"success": true,
"data": {
"summary": {"average": 4.5, "count": 2},
"reviews": [{"id": 3, "order_id": 12, "item_id": 2, "buyer": "alice", "rating": 5, "body": "Lovely work!", "created": "2026-09-21T10:00:00+00:00", "updated": "2026-09-21T10:00:00+00:00"}]
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1014 | 403 | Shop is private |
| 9005 | 404 | No such item |
Rate a delivered order you bought. Sending it again edits your review.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Order id |
| rating | integer required | 1 to 5 stars |
| body | string optional | Up to 500 characters |
Response
{ "success": true, "data": { "id": 3, "order_id": 12, "item_id": 2, "buyer": "alice", "rating": 5, "body": "Lovely work!", "created": "2026-09-21T10:00:00+00:00", "updated": "2026-09-21T10:00:00+00:00" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Missing or out of range rating, order not delivered yet, or a body that is too long or inappropriate |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | You did not buy this order |
| 9006 | 429 | More than 10 reviews in a minute |
Deliver a pending order from your shop. The buyer is notified and emailed.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Order id |
| type | string required | text or url |
| content | string required | What the buyer receives, up to 5000 characters |
Response
{ "success": true, "data": { "id": 12, "status": "fulfilled", "delivery_type": "url", "delivery_content": "https://example.com/art" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Already handled, empty content, or bad URL |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not an order in your shop |
Refund a pending order. The money goes back to the buyer and the stock to the item.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Order id |
Response
{ "success": true, "data": { "id": 12, "status": "refunded", "refund_transaction_id": "RFD-1789932800-ab12" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Order is not pending |
| 2001 | 400 | You no longer hold the amount |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not an order in your shop |
Cancel one of your orders while its payment is still in review. The money comes straight back.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Order id |
Response
{ "success": true, "data": { "id": 12, "status": "refunded" } } Errors
| Code | HTTP | Description |
|---|---|---|
| 9004 | 400 | Order is not in review |
| 1001 | 401 | Not authenticated |
| 9005 | 404 | Not your order |
Shop notifications (sales, orders, deliveries, refunds), newest first, 25 per page.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| page | integer optional | Page number |
Response
{
"success": true,
"data": {
"unread": 1,
"notifications": [
{"id": 5, "kind": "order", "message": "@alice ordered Hand-drawn cat portrait (Γ2). It is waiting for you to fulfill it.", "order_id": 12, "read": false, "created": "2026-09-20T19:33:00+00:00"}
],
"page": 1,
"last_page": 1
}
} Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
sold, order, pending, delivered, refunded. Listing does not mark anything read; call /api/v2/shop/notifications/read for that.Mark every shop notification as read.
Response
{ "success": true } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
List the items you saved, newest first. You get a restock notification when a saved item comes back in stock.
Response
{ "success": true, "data": { "items": [{ "id": 3, "seller": "tiago", "name": "Sticker pack", "price": 5000, "pwyw": false, "stock": 0, "sold_out": true }] } } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
Save an item, or remove it if it is already saved. Limited to 30 calls a minute.
Request Body
| Parameter | Type | Description |
|---|---|---|
| id | integer required | Item id |
Response
{ "success": true, "data": { "saved": true } } Errors
| Code | HTTP | Description |
|---|---|---|
| 1001 | 401 | Not authenticated |
| 1014 | 403 | The seller blocked you |
| 9005 | 404 | Item not found or not for sale |
| 9006 | 429 | Too many requests |
