Skip to main content

Get a product by ID

GET 

https://core-prod.malipopay.co.tz/api/v1/product/:productId

Returns a single product document by its MongoDB ID

Request

Path Parameters

    productId stringrequired

    Product document ID

Responses

Product fetched successfully

Schema
    _idstring
    Example: 64d3ef701b4c8f2a0e6b3d92
    namestring
    Example: Website Design Package
    descriptionstring
    Example: Full responsive website with 5 pages
    pricenumber
    Example: 1500000
    currencystring
    Example: TZS
    categorystring
    Example: Digital Services
    unitstring
    Example: project
    taxableboolean
    Example: true
    activeboolean
    Example: true
    projectstring

    Project ID this product belongs to

    Example: 63db68a6c5f3e7682e23c2ca
    deletedboolean
    Example: false
    createdAtdate-time
    Example: 2024-03-01T10:00:00.000Z
    updatedAtdate-time
    Example: 2024-03-01T10:00:00.000Z

Authorization: apiToken

name: apiTokentype: apiKeyin: headerdescription: Project API key. Get yours from the Malipopay dashboard under Settings → API Keys.
curl -L 'https://core-prod.malipopay.co.tz/api/v1/product/:productId' \
-H 'Accept: application/json' \
-H 'apiToken: <apiToken>'
Request
Base URL
https://core-prod.malipopay.co.tz
Auth
Parameters
— pathrequired
Response

Click the Send API Request button above and see the response here!