Search product
GET
https://us-central1-appgregator.cloudfunctions.net/stripe/products/search/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
stripe-1
limit
1
query
String
active:'true'
Headers
Name
Type
Description
x-api-key*
String
XXX
{
"object": "search_result",
"data": [
{
"id": "008",
"object": "product",
"active": true,
"attributes": [],
"created": 1675756122,
"default_price": "price_1MYluwIyq0PiFIhUg3U1E3bH",
"description": "webinar",
"images": [],
"livemode": false,
"metadata": {},
"name": "webinar7",
"package_dimensions": null,
"shippable": null,
"statement_descriptor": null,
"tax_code": null,
"type": "service",
"unit_label": null,
"updated": 1675756122,
"url": null
}
],
"has_more": true,
"next_page": "WzE2NzU3NTYxMjIuODI4OTU1N10=",
"url": "/v1/products/search"
}
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/stripe/products/search?name=ft-4&connection_name=stripe-1&query=active:'\''true'\''&limit=1' \
--header 'x-api-key: XXX'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://us-central1-appgregator.cloudfunctions.net/stripe/products/search?name=ft-4&connection_name=stripe-1&query=active:\'true\'&limit=1',
headers: {
'x-api-key': 'XXX'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/stripe/products/search?name=ft-4&connection_name=stripe-1&query=active:\'true\'&limit=1',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: XXX'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated