Products
Get a product
Retrieve a product by ID for the authenticated account.
get/v1/products/{id}
Request
- Base URLhttps://api.paymongo.com
- URLhttps://api.paymongo.com/v1/products/{id}
- AuthHTTP basic
Path parameters
idstring required
Product ID
Query parameters
images_format'id' | 'url'
How to return the images field: id returns file IDs (default), url returns HTTPS URLs. An image without a URL is left out.
Response
Product
Example response
{
"data": {
"account_id": "acct_abc123",
"coin_price": 500,
"created_at": 1752000000,
"currency": "PHP",
"description": "100% cotton, unisex",
"external_code": "sku-001",
"id": "prdct_abc123",
"livemode": true,
"name": "Premium T-Shirt",
"options": [
{
"id": "prdopt_abc123",
"name": "Size",
"position": 1,
"values": [
"S",
"M",
"L"
]
}
],
"price": 150000,
"status": "active",
"type": "physical",
"updated_at": 1752000000,
"variants": [
{
"coin_price": 500,
"created_at": 1752000000,
"currency": "PHP",
"external_code": "sku-001-m",
"id": "prdvar_abc123",
"image": "file_abc123",
"position": 1,
"price": 150000,
"product_id": "prdct_abc123",
"status": "active",
"title": "M",
"updated_at": 1752000000
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.