πSearch Product Tiktok
Search Order
POST
https://app.pgprints.io/api/v1/productTiktoks/search
Headers
Name
Type
Description
Content-Type*
string
application/json
X-PGPrints-Store-Id*
string
use the Store ID taken from the Manage Keys
Request Body
Name
Type
Description
searchKey
String
page
Number
size
Number
{
"success": true,
"message": "OK",
"data": [
{
"name": "Test 21032024",
"mockupImages": [
"https://firebasestorage.googleapis.com/v0/b/hello-dat-fulfillment.appspot.com/o/media%2F61d270f584246b90c67938cf%2Fall%2F1710998171972_326983877_873781617185178_2679204581806148851_n.jpg?alt=media&token=95ba574b-3001-436d-956e-dd87c7532c65"
],
"sku": "TES",
"files": [
{
"id": "xjxIDG0r1Y",
"name": "a",
"size": "",
"note": ""
}
],
"options": [
{
"name": "Size",
"values": [
"One size"
]
}
],
"currencyCode": "USD",
"shipClass": "USPS Tiktok",
"types": [
"Label"
],
"variants": [
{
"sku": "TES-One_size",
"options": [
"One size"
],
"currencyCode": "USD"
}
]
}
],
"count": 26,
"pageHasNext": false,
"pageHasPre": false
}
// example body
{
"searchKey": "Hooded Baseball",
"size": 20,
"page": 1
}
This is my code some language:
//example nodejs with axios
var axios = require('axios');
var data = JSON.stringify({...body});
var config = {
method: 'post',
url: 'https://app.pgprints.io/api/v1/productTiktoks/search',
headers: {
'Content-Type': 'application/json',
'X-PGPrints-Store-Id': 'storeid',
'X-PGPrints-Hmac-Sha256': 'sha256'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Last updated