TagMangoTagMango Docs
Mango

Get Mango by ID

GET
/api/v1/external/mangos/{mangoId}

Get a single mango by its ID. Only returns mangoes owned by the creator.

AuthorizationBearer <token>

In: header

Path Parameters

mangoId*string

Mango(or Serivce/Product) id

Header Parameters

x-whitelabel-host*string

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
}