Product Details
get complete details of a product

Get Product Details

get
โ€Ž
https://<domain>/<api prefix>/<version>/commerce/product/product-details/

Sample Code

Node

1
var request = require('request');
2
var options = {
3
'method': 'GET',
4
'url': 'https://<domain>/<api prefix>/<version>/commerce/product/product-details/',
5
'headers': {
6
'apikey': '<apikey>',
7
'Authorization': 'Bearer <access token>'
8
}
9
};
10
request(options, function (error, response) {
11
if (error) throw new Error(error);
12
console.log(response.body);
13
});
Copied!

PHP

1
<?php
2
โ€‹
3
$curl = curl_init();
4
โ€‹
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://<domain>/<api prefix>/<version>/commerce/product/product-details/',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'GET',
14
CURLOPT_HTTPHEADER => array(
15
'apikey: <apikey>',
16
'Authorization: Bearer <access token>'
17
),
18
));
19
โ€‹
20
$response = curl_exec($curl);
21
โ€‹
22
curl_close($curl);
23
echo $response;
24
โ€‹
Copied!

Error Responses

Status Code
Error Type
Field
Description
400
Validation Error
bundle_id
Bundle id is required.
Bundle does not exist.
Last modified 1mo ago
Copy link