PGPrints API Documentation
  • 😎Welcome to PGPrints API
  • πŸ”Authentication
  • Reference
    • βš™οΈAPI Reference
      • πŸ‡ΈπŸ‡¨Create Order
      • πŸ‡ΈπŸ‡¨Create Order Label
      • 🧁Update Order
      • 🧁Update Order Label
      • 🧁Cancel Order
      • πŸ“–Search Order
      • πŸ“–Search Product Tiktok
      • πŸ“–Search Product Normal
Powered by GitBook
On this page
  • Search Order
  • This is my code some language:
  1. Reference
  2. API Reference

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-Hmac-Sha256*

string

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);
});
PreviousSearch OrderNextSearch Product Normal

Last updated 1 month ago

see the authentication:

βš™οΈ
πŸ“–
https://pgprints.gitbook.io/api/authentication