Passthrough APIs

This page contains importable postman collection files which are ready to import into Postman for instant testing. This is in JSON format, please copy and save the text in JSON format before importing in Postman.

Passthrough APIs let you make raw HTTP requests to the underlying application. They are best used for endpoints we don't support in our unified/embedded model. They can also be used with endpoints we support when you need access to the raw response data.

This collection teaches you how to make passthrough requests to Shopify's APIs. You will need an end user's Alloy credentialId for the Shopify connector to proceed.

VariableDescriptionExample
API_VERSIONRepresents the version of the Alloy Unified API you intend to make calls to. API versions are dated and new versions are released quarterly (in March, June, September, and December).2024-03
apiKeyYour API key. Never share this with anyone.
shopifyCredentialIdThe credentialId used to make passthrough requests to Shopify

To make passthrough requests, hit the /passthrough endpoint. You'll need to specify the body values as seen below:

Figure 1.1 – GET Customers in Shopify

{
  "method": "GET",
  "path": "/admin/api/2023-10/customers.json",
  "body": null,
  "query": null,
  "extraHeaders": null
  }
  • The method key accepts GET, POST, UPDATE/PUT and DELETE.
  • The path key tells the passthrough endpoint where to make the request. In this case, we're using the customers.json endpoint in the Shopify API. Note that the .json extension is not required for all endpoints and is just a convention Shopify uses.
  • The body value allows you to pass JSON that might be needed in a POST or PUT/UPDATE request.
  • Similarly, the query value allows you to pass query string parameters in JSON format.
  • Lastly, the extraHeaders allows you to send along values you'd like appended to the HTTP headers.

Figure 1.1 above shows us how to make a GET request to the Shopify GET /customers.json endpoint. Let's say we wanted to make a POST request to create a new customer. We could do so by supplying a body as seen below:

curl --location 'https://embedded.runalloy.com/2024-03/passthrough?credentialId={{END_USER_SHOPIFY_CREDENTIAL_ID}}' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
  "method": "POST",
  "path": "/admin/api/2023-10/customers.json",
  "body": {
    "customer": {
    "id": 1073339469,
    "email": "[email protected]",
    "accepts_marketing": false,
    "created_at": "2023-12-11T10:28:27-05:00",
    "updated_at": "2023-12-11T10:28:27-05:00",
    "first_name": "Steve",
    "last_name": "Lastnameson",
    "orders_count": 0
    }
  },
  "query": null,
  "extraHeaders": null
}'

Download the Collection

Download the full collection below.

{
	"info": {
		"_postman_id": "1455edb2-afd2-4fa0-a93e-94c583bdc6fb",
		"name": "Alloy Integrations Passthrough",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "19112139",
		"_collection_link": "https://planetary-crater-495600.postman.co/workspace/Alloy-One-New~68c3616b-3ff3-473b-ba08-af2e97a835e5/collection/19112139-1455edb2-afd2-4fa0-a93e-94c583bdc6fb?action=share&source=collection_link&creator=19112139"
	},
	"item": [
		{
			"name": "Shopify",
			"item": [
				{
					"name": "Shopify Get Customers",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.have.property('customers');",
									"    pm.expect(jsonData.customers[0]).to.not.be.null;",
									"    pm.expect(jsonData.customers[0]).to.have.property('accepts_marketing');",
									"    pm.expect(jsonData.customers[0]).to.have.property('first_name');",
									"     pm.expect(jsonData.customers[0]).to.have.property('last_name');",
									"    pm.expect(jsonData.customers[0]).to.have.property('email');",
									"    pm.expect(jsonData.customers[0]).to.have.property('created_at');",
									"    pm.expect(jsonData.customers[0]).to.have.property('updated_at');",
									"    pm.expect(jsonData.customers[0]).to.have.property('phone');",
									"    pm.expect(jsonData.customers[0]).to.have.property('id');",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "e5a85cde-3ab3-4f94-bf9f-fa7cfcb6c128"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "35f677a1-65c9-4274-b1b2-0c29e9952081"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"method\": \"GET\",\n  \"path\": \"/admin/api/2023-10/customers.json\",\n  \"body\": null,\n  \"query\": null,\n  \"extraHeaders\": null\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{shopifyCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{shopifyCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Shopify Create Product",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] product was created correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.have.property('product');",
									"    pm.expect(jsonData.product).to.have.property('id');",
									"    pm.expect(jsonData.product).to.have.property('title');",
									"    pm.expect(jsonData.product.title).to.have.eq('Burton Custom Freestyle 151');",
									"    pm.expect(jsonData.product).to.have.property('body_html');",
									"    pm.expect(jsonData.product.body_html).to.have.eq('<strong>Good snowboard!</strong>');",
									"    pm.expect(jsonData.product).to.have.property('vendor');",
									"    pm.expect(jsonData.product.vendor).to.have.eq('Burton');",
									"    pm.expect(jsonData.product).to.have.property('product_type');",
									"    pm.expect(jsonData.product.product_type).to.have.eq('Snowboard');",
									"});",
									"",
									"const jsonData = JSON.parse(pm.response.body);",
									"pm.environment(\"productId\", jsonData.product.id);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						},
						{
							"listen": "prerequest",
							"script": {
								"exec": [
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "c21ebcec-70a6-4d0e-a976-04f690618469"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "b75e7980-a499-48de-8c35-e106c8c567ce"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"method\": \"POST\",\n  \"path\": \"/admin/api/2023-10/products.json\",\n  \"body\": {\"product\":{\"title\":\"Burton Custom Freestyle 151\",\"body_html\":\"<strong>Good snowboard!</strong>\",\"vendor\":\"Burton\",\"product_type\":\"Snowboard\",\"status\":\"draft\"}},\n  \"query\": null,\n  \"extraHeaders\": null\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{shopifyCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{shopifyCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Shopify Update Product",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] product is updated correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.have.property('product');",
									"    pm.expect(jsonData.product).to.not.be.null;",
									"    pm.expect(jsonData.product).to.have.property('updated_at');",
									"    pm.expect(jsonData.product).to.have.property('handle');",
									"    pm.expect(jsonData.product).to.have.property('status');",
									"    pm.expect(jsonData.product).to.have.property('created_at');",
									"    pm.expect(jsonData.product).to.have.property('product_type');",
									"    pm.expect(jsonData.product).to.have.property('title');",
									"    pm.expect(jsonData.product.title).to.eql(\"Hanis Shampoo\");",
									"    pm.expect(jsonData.product.body_html).to.eql(\"<strong>Good shampoo!</strong>\");",
									"    pm.expect(jsonData.product).to.have.property('id');",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "6456f97e-18b6-4bf0-8054-2fbabf8f4a97"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "7e596858-8609-4255-b1e4-954216725ee4"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"method\": \"PUT\",\n    \"path\": \"/admin/api/2023-10/products/{{productId}}.json\",\n    \"body\": {\n        \"product\": {\n            \"id\": {{productId}},\n            \"title\": \"Hanis Shampoo\",\n            \"body_html\": \"<strong>Good shampoo!</strong>\",\n            \"metafields\": [\n                {\n                    \"key\": \"new {{$randomAlphaNumeric}}\",\n                    \"value\": \"newvalue\",\n                    \"type\": \"single_line_text_field\",\n                    \"namespace\": \"global\"\n                }\n            ]\n        }\n    },\n    \"query\": null,\n    \"extraHeaders\": null\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{shopifyCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{shopifyCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Shopify Get Product",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] product is listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.have.property('product');",
									"    pm.expect(jsonData.product).to.not.be.null;",
									"    pm.expect(jsonData.product).to.have.property('updated_at');",
									"    pm.expect(jsonData.product).to.have.property('handle');",
									"    pm.expect(jsonData.product).to.have.property('status');",
									"    pm.expect(jsonData.product).to.have.property('created_at');",
									"    pm.expect(jsonData.product).to.have.property('product_type');",
									"    pm.expect(jsonData.product).to.have.property('title');",
									"    pm.expect(jsonData.product).to.have.property('id');",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "ee2c8cb1-a96d-45a5-bacb-a0b48a270909"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "e40ae367-7ffd-4f12-9d41-67d493e13d77"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"method\": \"GET\",\n  \"path\": \"/admin/api/2023-10/products/{{productId}}.json\",\n  \"body\": null,\n  \"query\": null,\n  \"extraHeaders\": null\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{shopifyCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{shopifyCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Shopify List Products",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.have.property('products');",
									"    pm.expect(jsonData.products[0]).to.not.be.null;",
									"    pm.expect(jsonData.products[0]).to.have.property('updated_at');",
									"    pm.expect(jsonData.products[0]).to.have.property('vendor');",
									"    pm.expect(jsonData.products[0]).to.have.property('created_at');",
									"    pm.expect(jsonData.products[0]).to.have.property('handle');",
									"    pm.expect(jsonData.products[0]).to.have.property('status');",
									"    pm.expect(jsonData.products[0]).to.have.property('id');",
									"    pm.expect(jsonData.products[0].variants).to.not.be.null;",
									"    pm.expect(jsonData.products[0].variants[0]).to.have.property('id');",
									"    pm.expect(jsonData.products[0].variants[0]).to.have.property('product_id');",
									"    pm.expect(jsonData.products[0].variants[0]).to.have.property('title');",
									"    pm.expect(jsonData.products[0].variants[0]).to.have.property('inventory_item_id');",
									"    pm.expect(jsonData.products[0].variants[0]).to.have.property('inventory_quantity');",
									"",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "efcc0eb2-c2e5-42b1-90fe-4c695da73235"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "934e3eac-f143-4ebe-9973-54b1a745a1c1"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"method\": \"GET\",\n  \"path\": \"/admin/api/2023-10/products.json\",\n  \"body\": null,\n  \"query\": null,\n  \"extraHeaders\": null\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{shopifyCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{shopifyCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Shopify Delete Product",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "7bb67f68-9d3e-4572-9c56-d9b35d76ab64"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "4ac51b15-796f-4a6e-af05-41773b1bbc78"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"method\": \"DELETE\",\n  \"path\": \"/admin/api/2023-10/products/{{productId}}.json\",\n  \"body\": null,\n  \"query\": null,\n  \"extraHeaders\": null\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{shopifyCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{shopifyCredentialId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "WooCommerce",
			"item": [
				{
					"name": "Get Customers",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData[0]).to.not.be.null;",
									"    pm.expect(jsonData[0]).to.have.property('date_created');",
									"    pm.expect(jsonData[0]).to.have.property('date_created_gmt');",
									"     pm.expect(jsonData[0]).to.have.property('date_modified');",
									"    pm.expect(jsonData[0]).to.have.property('date_modified_gmt');",
									"    pm.expect(jsonData[0]).to.have.property('email');",
									"    pm.expect(jsonData[0]).to.have.property('first_name');",
									"    pm.expect(jsonData[0]).to.have.property('last_name');",
									"    pm.expect(jsonData[0]).to.have.property('id');",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "ce9d4734-9887-476e-83d1-540bdd45a5a6"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "07531993-97b6-41dc-b260-35ba48cb71c5"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"method\": \"GET\",\n  \"path\": \"/customers\",\n  \"body\": null,\n  \"query\": null,\n  \"extraHeaders\": null\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{wooCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{wooCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Customer",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.not.be.null;",
									"    pm.expect(jsonData).to.have.property('date_created');",
									"    pm.expect(jsonData).to.have.property('date_created_gmt');",
									"     pm.expect(jsonData).to.have.property('date_modified');",
									"    pm.expect(jsonData).to.have.property('date_modified_gmt');",
									"    pm.expect(jsonData).to.have.property('email');",
									"    pm.expect(jsonData).to.have.property('first_name');",
									"    pm.expect(jsonData).to.have.property('last_name');",
									"    pm.expect(jsonData).to.have.property('id');",
									"});",
									"",
									"var jsonData = pm.response.json();",
									"let customerId = jsonData.id;",
									"pm.environment.set(\"customerId\", customerId);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "584dd872-2af9-4ad8-b07a-017fbd3b2cf8"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "8d907a73-6afc-4038-96a6-0bbdb3ca63d2"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"method\": \"POST\",\n    \"path\": \"/customers\",\n    \"body\": {\n        \"first_name\": \"Test\",\n        \"last_name\": \"Test\",\n        \"email\": \"test+{{$guid}}@runalloy.com\"\n    },\n    \"query\": null,\n    \"extraHeaders\": null\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{wooCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{wooCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Customer",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.not.be.null;",
									"    pm.expect(jsonData).to.have.property('date_created');",
									"    pm.expect(jsonData).to.have.property('date_created_gmt');",
									"     pm.expect(jsonData).to.have.property('date_modified');",
									"    pm.expect(jsonData).to.have.property('date_modified_gmt');",
									"    pm.expect(jsonData).to.have.property('email');",
									"    pm.expect(jsonData).to.have.property('first_name');",
									"    pm.expect(jsonData).to.have.property('last_name');",
									"    pm.expect(jsonData).to.have.property('id');",
									"});",
									"",
									"var jsonData = pm.response.json();",
									"let customerId = jsonData.id;",
									"pm.environment.set(\"customerId\", customerId);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "e798064e-f6e8-4ee1-9ce6-2ac66a896af2"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "27e4f377-221c-4c2b-ab32-d7302e748b97"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"method\": \"PUT\",\n    \"path\": \"/customers/{{customerId}}\",\n    \"body\": {\n        \"first_name\": \"Udpate\"\n    },\n    \"query\": null,\n    \"extraHeaders\": null\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{wooCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{wooCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Customer",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.not.be.null;",
									"    pm.expect(jsonData).to.have.property('date_created');",
									"    pm.expect(jsonData).to.have.property('date_created_gmt');",
									"     pm.expect(jsonData).to.have.property('date_modified');",
									"    pm.expect(jsonData).to.have.property('date_modified_gmt');",
									"    pm.expect(jsonData).to.have.property('email');",
									"    pm.expect(jsonData).to.have.property('first_name');",
									"    pm.expect(jsonData).to.have.property('last_name');",
									"    pm.expect(jsonData).to.have.property('id');",
									"});",
									"",
									"var jsonData = pm.response.json();",
									"let customerId = jsonData.id;",
									"pm.environment.set(\"customerId\", customerId);",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "e5d08cc0-bc64-402b-b7fc-bf3dc6306307"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "cabdb9a4-c5c9-4774-b94c-c02c45142d4f"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"method\": \"GET\",\n    \"path\": \"/customers/{{customerId}}\",\n    \"body\": null,\n    \"query\": null,\n    \"extraHeaders\": null\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{wooCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{wooCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Customer",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "210cdf81-313d-4613-91e5-9ce9bb67cb4c"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "d9b61f31-5f36-4450-85e4-4799c77de423"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"method\": \"DELETE\",\n    \"path\": \"/customers/{{customerId}}\",\n    \"body\": null,\n    \"query\": null,\n    \"extraHeaders\": null\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{wooCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{wooCredentialId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "BigCommerce",
			"item": [
				{
					"name": "Get Customers",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.have.property('data');",
									"    pm.expect(jsonData.data[0]).to.not.be.null;",
									"    pm.expect(jsonData.data[0]).to.have.property('company');",
									"    pm.expect(jsonData.data[0]).to.have.property('customer_group_id');",
									"    pm.expect(jsonData.data[0]).to.have.property('notes');",
									"    pm.expect(jsonData.data[0]).to.have.property('phone');",
									"    pm.expect(jsonData.data[0]).to.have.property('email');",
									"    pm.expect(jsonData.data[0]).to.have.property('first_name');",
									"    pm.expect(jsonData.data[0]).to.have.property('last_name');",
									"    pm.expect(jsonData.data[0]).to.have.property('id');",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "5fd16fc9-d87c-4983-b9e1-067e6686f780"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "354ed3b8-b45f-4706-8fd3-18d16bd974c6"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"method\": \"GET\",\n  \"path\": \"v3/customers\",\n  \"body\": null,\n  \"query\": null,\n  \"extraHeaders\": null\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{bigcommerceCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{bigcommerceCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Create Customer",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.not.be.null;",
									"    pm.expect(jsonData).to.have.property('company');",
									"    pm.expect(jsonData).to.have.property('customer_group_id');",
									"    pm.expect(jsonData).to.have.property('notes');",
									"    pm.expect(jsonData).to.have.property('phone');",
									"    pm.expect(jsonData).to.have.property('email');",
									"    pm.expect(jsonData).to.have.property('first_name');",
									"    pm.expect(jsonData).to.have.property('last_name');",
									"    pm.expect(jsonData).to.have.property('id');",
									"});",
									"",
									"var jsonData = pm.response.json();",
									"let customerId = jsonData.id;",
									"pm.environment.set(\"customerId\", customerId);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "9893c375-3824-4f15-8937-de163d9d27e2"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "567b6d88-c1f0-4cfe-b60f-b955bd717c3b"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"method\": \"POST\",\n    \"path\": \"v2/customers\",\n    \"body\": {\n        \"first_name\": \"Test\",\n        \"last_name\": \"Test\",\n        \"email\": \"test+{{$guid}}@runalloy.com\"\n    },\n    \"query\": null,\n    \"extraHeaders\": null\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{bigcommerceCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{bigcommerceCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Customer",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.not.be.null;",
									"    pm.expect(jsonData).to.have.property('company');",
									"    pm.expect(jsonData).to.have.property('customer_group_id');",
									"    pm.expect(jsonData).to.have.property('notes');",
									"    pm.expect(jsonData).to.have.property('phone');",
									"    pm.expect(jsonData).to.have.property('email');",
									"    pm.expect(jsonData).to.have.property('first_name');",
									"    pm.expect(jsonData).to.have.property('last_name');",
									"    pm.expect(jsonData).to.have.property('id');",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "1f7e38f9-c95c-470d-a9cf-64593ed8560c"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "5f435fa5-63c3-409b-8960-81903c08915b"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"method\": \"PUT\",\n    \"path\": \"v2/customers/{{customerId}}\",\n    \"body\": {\n        \"first_name\": \"Udpate\"\n    },\n    \"query\": null,\n    \"extraHeaders\": null\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{bigcommerceCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{bigcommerceCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Customer",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									"",
									"pm.test(\"[Shopify] customers are listed correctly\", function () {",
									"    var jsonData = pm.response.json();",
									"    pm.expect(jsonData).to.not.be.null;",
									"    pm.expect(jsonData).to.have.property('company');",
									"    pm.expect(jsonData).to.have.property('customer_group_id');",
									"    pm.expect(jsonData).to.have.property('notes');",
									"    pm.expect(jsonData).to.have.property('phone');",
									"    pm.expect(jsonData).to.have.property('email');",
									"    pm.expect(jsonData).to.have.property('first_name');",
									"    pm.expect(jsonData).to.have.property('last_name');",
									"    pm.expect(jsonData).to.have.property('id');",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "90907bbe-3cdc-4036-9c8f-b73f74e511a1"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "3c9b9fa8-a5eb-45ee-8eb6-f28ae6c1b359"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"method\": \"GET\",\n    \"path\": \"v2/customers/{{customerId}}\",\n    \"body\": null,\n    \"query\": null,\n    \"extraHeaders\": null\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{bigcommerceCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{bigcommerceCredentialId}}"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Customer",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"pm.test(\"Status code is 200\", function () {",
									"    pm.response.to.have.status(200);",
									"});",
									"",
									"pm.test(\"Content-Type is present\", function () {",
									"    pm.response.to.have.header(\"Content-Type\");",
									"});",
									"",
									"pm.test(\"Content-Type is application/json\", function () {",
									"    pm.expect(pm.response.headers[\"Content-Type\"]).equal(\"application/json\");",
									"});",
									"",
									"console.log(pm.response.headers);",
									"console.log(pm.response.body);",
									"",
									"pm.test(\"response should be okay to process\", function () {",
									"    pm.response.to.have.status(200);",
									"    pm.response.to.not.be.error;",
									"    pm.response.to.not.have.jsonBody(\"error\");",
									"});",
									""
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"protocolProfileBehavior": {
						"disabledSystemHeaders": {
							"accept": true
						}
					},
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{apiKey}}",
								"uuid": "36be24d6-9049-415e-94eb-34c6da168800"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"uuid": "9ef8d93a-07ad-42f0-a52b-55a4d47f8efb"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"method\": \"DELETE\",\n    \"path\": \"v2/customers/{{customerId}}\",\n    \"body\": null,\n    \"query\": null,\n    \"extraHeaders\": null\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{embedded_api_base_url}}/{{API_VERSION}}/passthrough?credentialId={{bigcommerceCredentialId}}",
							"host": [
								"{{embedded_api_base_url}}"
							],
							"path": [
								"{{API_VERSION}}",
								"passthrough"
							],
							"query": [
								{
									"key": "cursor",
									"value": "",
									"disabled": true
								},
								{
									"key": "pageSize",
									"value": "2",
									"disabled": true
								},
								{
									"key": "firstNameContains",
									"value": "Test",
									"disabled": true
								},
								{
									"key": "sampleData",
									"value": "true",
									"disabled": true
								},
								{
									"key": "credentialId",
									"value": "{{bigcommerceCredentialId}}"
								}
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"auth": {
		"type": "bearer",
		"bearer": [
			{
				"key": "token",
				"value": "{{API_KEY}}",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}