# Search Product Normal

## Search Order

<mark style="color:green;">`POST`</mark> `https://app.pgprints.io/api/v1/productNormals/search`

#### Headers

| Name                                                     | Type   | Description                                                                                                              |
| -------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------ |
| Content-Type<mark style="color:red;">\*</mark>           | string | application/json                                                                                                         |
| X-PGPrints-Hmac-Sha256<mark style="color:red;">\*</mark> | string | see the authentication: [https://pgprints.gitbook.io/api/authentication](https://pgprints.gitbook.io/api/authentication) |
| X-PGPrints-Store-Id<mark style="color:red;">\*</mark>    | string | use the Store ID taken from the Manage Keys                                                                              |

#### Request Body

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| searchKey | String |             |
| page      | Number |             |
| size      | Number |             |

{% tabs %}
{% tab title="200 - success " %}
```json
{
    "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",
	"shipClasses": [
		"Express",
		"Standard"
	],
	"types": [
		"Normal"
	],
	"variants": [
		{
			"sku": "TES-One_size",
			"options": [
				"One size"
			],
			"currencyCode": "USD"
		}
		]
	}
    ],
    "count": 26,
    "pageHasNext": false,
    "pageHasPre": false
}
```
{% endtab %}
{% endtabs %}

```
// example body
{
  "searchKey": "Hooded Baseball",
  "size": 20,
  "page": 1
}
```

## This is my code some language:

{% tabs %}
{% tab title="NodeJs" %}
<pre class="language-javascript"><code class="lang-javascript">//example nodejs with axios
var axios = require('axios');
var data = JSON.stringify({...body});

var config = {
<strong>  method: 'post',
</strong>  url: 'https://app.pgprints.io/api/v1/productNormals/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);
});
</code></pre>
{% endtab %}
{% endtabs %}
