Get Mango by ID
Get a single mango by its ID. Only returns mangoes owned by the creator.
Authorization
bearer In: header
Path Parameters
Mango(or Serivce/Product) id
Header Parameters
Host name of the dashboard, ex: mydomain.tagmango.com
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api-prod-new.tagmango.com/api/v1/external/mangos/66c4964c11e7fef26751f3a7" \ -H "x-whitelabel-host: string"{
"_id": "66a1390268a76f2f5c9f39a3",
"creator": "77b2390268a76f2f5c9f39a4",
"title": "Introduction to Coding",
"price": 500,
"currency": "USD",
"inrAmount": 500,
"usdAmount": 6,
"eurAmount": 5,
"description": "This is a comprehensive guide to coding.",
"isHidden": false,
"isDeleted": false,
"recurringType": "MONTHLY",
"isPublic": false,
"isFree": true,
"affiliateEnabled": true,
"zeroCostMango": false,
"createdAt": "2024-08-11T10:20:30Z",
"updatedAt": "2024-08-11T10:20:30Z",
"coverContents": [
"https://linktoimage.com/image.jpg",
"https://linktoimage.com/video.mp4"
]
}{
"code": 400,
"type": "Bad request",
"statusMessage": "BAD_REQUEST",
"message": "Invalid request",
"success": false
}{
"code": 401,
"type": "Unauthorized",
"statusMessage": "UNAUTHORIZED",
"message": "Invalid token",
"success": false
}{
"code": 404,
"type": "Not Found",
"statusMessage": "NOT_FOUND",
"errorCode": "MANGO_NOT_FOUND",
"message": "The mango does not exist, is deleted, or does not belong to this creator.",
"result": "The mango does not exist, is deleted, or does not belong to this creator.",
"success": false
}Create Mango POST
Create a new service (mango) for the creator. **Types:** `onetime` (single purchase), `recurring` (subscription), `free` (no payment). **Pricing:** Base price in creator's currency. For INR creators, minimum is ₹50. When `differentialPricing` is omitted, USD/EUR prices are auto-converted using real-time exchange rates. **Validation rules:** - `free` type must not include `price`, `differentialPricing`, or `includeGST`. - `recurring` type requires `recurringType` (monthly, quarterly, halfyearly, yearly). - `onetime` type must not include `recurringType`. - HTML tags are stripped from `title` and `description`.
Get Mango Subscriptions Count GET
Get subscription count for each mango or filtered mangoes from query params. - Currently only active and manually active subscriptions from dashboard are counted.