{"info":{"_postman_id":"328a2e18-6f58-4387-8e64-c86fe84b7a9b","name":"AVADA Marketing Automation API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"10585474","collectionId":"328a2e18-6f58-4387-8e64-c86fe84b7a9b","publishedId":"TVmPAHH9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-01-26T03:47:52.000Z"},"item":[{"name":"New Subcriber","id":"5e2b6a98-bdca-49b5-9b1e-7d7fe0f51b5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"email\":\"john@doe.io\",\r\n   \"firstName\":\"John\",\r\n   \"lastName\":\"Doe\",\r\n   \"tags\":\"new_subscriber,customer\",\r\n   \"segmentIds\":[\r\n      1,\r\n      2\r\n   ]\r\n}"},"url":"https://app.avada.io/app/api/v1/subscribers","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>email: string - required,  \nfirstName: string,  \nlastName: string,  \nphoneNumber: string,  \nphoneNumberCountry: string,  \ndescription: string,  \nstatus: string,  \nisSubscriber: bool,  \nsource: string - required,  \norderCount: number,  \ntotalSpent: number,  \ncountry: string,  \ncity: string,  \naddress: string,  \ntags: string\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","subscribers"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"fca0bf5c-595c-4a2e-844f-4540242226eb","name":"New Subcribed Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"email\":\"john@doe.io\",\r\n   \"firstName\":\"John\",\r\n   \"lastName\":\"Doe\",\r\n   \"tags\":\"new_subscriber,customer\",\r\n   \"segmentIds\":[\r\n      1,\r\n      2\r\n   ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/subscribers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"66"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"private"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"856vzytc6huk"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"8c211d0005e5525130bbcebdc636f633"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Thu, 31 Dec 2020 11:09:56 GMT"},{"key":"X-Served-By","value":"cache-hkg17928-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1609412996.150095,VS0,VE831"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create/update customers complete\"\n}"},{"id":"7b781df8-eff7-4e35-b3e6-6a8a904d2018","name":"New Subcriber","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"email\":\"john@doe.io\",\r\n   \"firstName\":\"John\",\r\n   \"lastName\":\"Doe\",\r\n   \"tags\":\"new_subscriber,customer\",\r\n   \"segmentIds\":[\r\n      1,\r\n      2\r\n   ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/subscribers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"66"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"d33i3wy6fvti"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"9b8a11e6aed478ea4397a6041910c8ac;o=1"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Sun, 23 May 2021 06:19:35 GMT"},{"key":"X-Served-By","value":"cache-hkg17920-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1621750774.449084,VS0,VE960"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create/update customers complete\"\n}"}],"_postman_id":"5e2b6a98-bdca-49b5-9b1e-7d7fe0f51b5b"},{"name":"Create Contact","id":"9a1cfe39-e33b-4f0c-a3ca-db4a5f7210b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"description":"<p>X-EmailMarketing-App-Id: App ID of your shop which retrieved from <a href=\"https://app.avada.io/manage/keys\">https://app.avada.io/manage/keys</a></p>\n","key":"X-EmailMarketing-App-Id","type":"text","value":"YaZMzC0gDXFKrqIGvKyl"},{"description":"<p>X-EmailMarketing-Hmac-Sha256: Authentication code message created by SHA-256 hash function and base64 output which generated from stringifed request body and shop secret key  at <a href=\"https://app.avada.io/manage/keys\">https://app.avada.io/manage/keys</a></p>\n","key":"X-EmailMarketing-Hmac-Sha256","type":"text","value":"l5+p+QCPChDN4DO/rquBYaCWNnVDyZLaP7Wv824jvD0="},{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\"data\":{\r\n  \"id\": 6280041398524,\r\n  \"email\": \"haidx6@mageplaza.com\",\r\n  \"accepts_marketing\": true,\r\n  \"created_at\": \"2022-06-02T05:55:42+02:00\",\r\n  \"updated_at\": \"2022-06-02T05:55:43+02:00\",\r\n  \"first_name\": \"qrf\",\r\n  \"popupCampaignId\": [\"PKJa04cw705Cs8P4R5Xr\"],\r\n  \"last_name\": \"qéd\",\r\n  \"orders_count\": 0,\r\n  \"state\": \"disabled\",\r\n  \"total_spent\": \"0.00\",\r\n  \"last_order_id\": null,\r\n  \"note\": \"\",\r\n  \"verified_email\": false,\r\n  \"multipass_identifier\": null,\r\n  \"tax_exempt\": false,\r\n  \"phone\": \"+49395936830\",\r\n  \"tags\": \"avada-email-marketing\",\r\n  \"last_order_name\": null,\r\n  \"currency\": \"EUR\",\r\n  \"source\": \"Shopify\",\r\n  \"addresses\": [\r\n    {\r\n      \"id\": 7750887080188,\r\n      \"customer_id\": 6280041398524,\r\n      \"first_name\": \"qrf\",\r\n      \"last_name\": \"qéd\",\r\n      \"company\": null,\r\n      \"address1\": null,\r\n      \"address2\": null,\r\n      \"city\": null,\r\n      \"province\": null,\r\n      \"country\": \"German\",\r\n      \"zip\": null,\r\n      \"phone\": null,\r\n      \"name\": \"qrf qéd\",\r\n      \"province_code\": null,\r\n      \"country_code\": \"DE\",\r\n      \"country_name\": \"German\",\r\n      \"default\": true\r\n    }\r\n  ],\r\n  \"countryCode\": \"DE\",\r\n    \"country\": \"DE\",\r\n  \"accepts_marketing_updated_at\": \"2022-06-02T05:55:42+02:00\",\r\n  \"marketing_opt_in_level\": null,\r\n  \"tax_exemptions\": [],\r\n  \"admin_graphql_api_id\": \"gid://shopify/Customer/6280041398524\",\r\n  \"default_address\": {\r\n    \"id\": 7750887080188,\r\n    \"customer_id\": 6280041398524,\r\n    \"first_name\": \"qrf\",\r\n    \"last_name\": \"qéd\",\r\n    \"company\": null,\r\n    \"address1\": null,\r\n    \"address2\": null,\r\n    \"city\": null,\r\n    \"province\": null,\r\n    \"country\": \"German\",\r\n    \"zip\": null,\r\n    \"phone\": null,\r\n    \"name\": \"qrf qéd\",\r\n    \"province_code\": null,\r\n    \"country_code\": \"DE\",\r\n    \"country_name\": \"German\",\r\n    \"default\": true\r\n  }\r\n}}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/customers","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>email: string - required,    \nfirstName: string,  \nlastName: string,  \nphoneNumber: string,  \nphoneNumberCountry: string,  \ndescription: string,  \nstatus: string,  \nisSubscriber: bool,  \nsource: string - required,  \norderCount: number,  \ntotalSpent: number,  \ncountry: string,  \ncity: string,  \naddress: string,  \ntags: string\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","customers"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"df19041b-38e9-46cf-87f7-73b8ccd9357a","name":"Create Contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"description":"X-EmailMarketing-App-Id: App ID of your shop which retrieved from https://app.avada.io/manage/keys","key":"X-EmailMarketing-App-Id","type":"text","value":"{{app_id}}"},{"description":"X-EmailMarketing-Hmac-Sha256: Authentication code message created by SHA-256 hash function and base64 output which generated from stringifed request body and shop secret key  at https://app.avada.io/manage/keys","key":"X-EmailMarketing-Hmac-Sha256","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": {\r\n        \"description\": \"ABC\",\r\n        \"email\": \"rainy@avada.io\",\r\n        \"firstName\": \"Pham\",\r\n        \"isSubscriber\": true,\r\n        \"lastName\": \"Rainy\",\r\n        \"phoneNumber\": \"+16194892038\",\r\n        \"phoneNumberCountry\": \"US\",\r\n        \"source\": \"magento\",\r\n        \"orderCount\": 0,\r\n        \"totalSpent\": 0,\r\n        \"country\": \"United States\",\r\n        \"countryCode\":\"US\",\r\n        \"city\": \"\",\r\n        \"address\": \"\",\r\n        \"tags\": \"Email Marketting\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/customers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"66"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"bw9cdmwp8pvi"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"9be0e6733d91618c58c3fc86f900fd20"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Fri, 09 Apr 2021 04:33:10 GMT"},{"key":"X-Served-By","value":"cache-hkg17921-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1617942789.435426,VS0,VE924"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create/update customers complete\"\n}"}],"_postman_id":"9a1cfe39-e33b-4f0c-a3ca-db4a5f7210b8"},{"name":"Update Contact","id":"7da92c08-f60c-4f48-a8e4-e48a0a19c100","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": {\r\n        \"description\": \"\",\r\n        \"email\": \"john@doe.io\",\r\n        \"firstName\": \"John\",\r\n        \"isSubscriber\": true,\r\n        \"lastName\": \"Doe\",\r\n        \"phoneNumber\": \"+123456789\",\r\n        \"phoneNumberCountry\": \"US\",\r\n        \"source\": \"magento\",\r\n        \"orderCount\": 0,\r\n        \"totalSpent\": 0,\r\n        \"country\": \"United States\",\r\n        \"countryCode\":\"US\",\r\n        \"city\": \"\",\r\n        \"address\": \"\",\r\n        \"tags\": \"Email Marketting\"\r\n    }\r\n}"},"url":"https://app.avada.io/app/api/v1/customers","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>email: string - required,  \nfirstName: string,  \nlastName: string,  \nphoneNumber: string,  \nphoneNumberCountry: string,  \ndescription: string,  \nstatus: string,  \nisSubscriber: bool,  \nsource: string - required,  \norderCount: number,  \ntotalSpent: number,  \ncountry: string,  \ncity: string,  \naddress: string,  \ntags: string\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","customers"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"e64e7f07-2853-438d-a28f-fdfe61a568f4","name":"Update Contact","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": {\r\n        \"description\": \"ABC\",\r\n        \"email\": \"rainy@avada.io\",\r\n        \"firstName\": \"Pham\",\r\n        \"isSubscriber\": true,\r\n        \"lastName\": \"Rainy\",\r\n        \"phoneNumber\": \"+16194892038\",\r\n        \"phoneNumberCountry\": \"US\",\r\n        \"source\": \"magento\",\r\n        \"orderCount\": 0,\r\n        \"totalSpent\": 0,\r\n        \"country\": \"United States\",\r\n        \"countryCode\":\"US\",\r\n        \"city\": \"\",\r\n        \"address\": \"\",\r\n        \"tags\": \"Email Marketting\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/customers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"66"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"lz6jzadrs3kt"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"e4ecf721d241273b068590d243fa3fe6"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 03:32:10 GMT"},{"key":"X-Served-By","value":"cache-hkg17927-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611631929.475577,VS0,VE1085"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create/update customers complete\"\n}"}],"_postman_id":"7da92c08-f60c-4f48-a8e4-e48a0a19c100"},{"name":"Bulk Import Contacts","id":"728d2e65-d2e1-44fd-8351-6a54b6f72cd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":[\r\n      {\r\n         \"description\":\"\",\r\n         \"email\":\"john@doe.io\",\r\n         \"firstName\":\"John\",\r\n         \"isSubscriber\":true,\r\n         \"lastName\":\"Doe\",\r\n         \"phoneNumber\":\"+123465789\",\r\n         \"phoneNumberCountry\":\"US\",\r\n         \"source\":\"magento\",\r\n         \"orderCount\":0,\r\n         \"totalSpent\":0,\r\n         \"country\":\"US\",\r\n         \"city\":\"\",\r\n         \"address\":\"\",\r\n         \"tags\":\"Email Marketting\"\r\n      },\r\n      {\r\n         \"description\":\"\",\r\n         \"email\":\"rainy@acme.io\",\r\n         \"firstName\":\"Rainy\",\r\n         \"isSubscriber\":true,\r\n         \"lastName\":\"Doe\",\r\n         \"phoneNumber\":\"+123465788\",\r\n         \"phoneNumberCountry\":\"US\",\r\n         \"source\":\"shopify\",\r\n         \"orderCount\":0,\r\n         \"totalSpent\":0,\r\n         \"country\":\"US\",\r\n         \"city\":\"\",\r\n         \"address\":\"\",\r\n         \"tags\":\"Email Marketting\"\r\n      }\r\n   ]\r\n}"},"url":"https://app.avada.io/app/api/v1/customers/bulk","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>email: string - required,  \nfirstName: string,  \nlastName: string,  \nphoneNumber: string,  \nphoneNumberCountry: string,  \ndescription: string,  \nstatus: string,  \nisSubscriber: bool,  \nsource: string - required,  \norderCount: number,  \ntotalSpent: number,  \ncountry: string,  \ncity: string,  \naddress: string,  \ntags: string\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","customers","bulk"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"f31e2431-61e2-4ef8-a818-e86022e5fcf4","name":"Bulk Import Customer Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":[\r\n      {\r\n         \"description\":\"\",\r\n         \"email\":\"john@doe.io\",\r\n         \"firstName\":\"John\",\r\n         \"isSubscriber\":true,\r\n         \"lastName\":\"Doe\",\r\n         \"phoneNumber\":\"+123465789\",\r\n         \"phoneNumberCountry\":\"US\",\r\n         \"source\":\"magento\",\r\n         \"orderCount\":0,\r\n         \"totalSpent\":0,\r\n         \"country\":\"US\",\r\n         \"city\":\"\",\r\n         \"address\":\"\",\r\n         \"tags\":\"Email Marketting\"\r\n      },\r\n      {\r\n         \"description\":\"\",\r\n         \"email\":\"rainy@acme.io\",\r\n         \"firstName\":\"Rainy\",\r\n         \"isSubscriber\":true,\r\n         \"lastName\":\"Doe\",\r\n         \"phoneNumber\":\"+123465788\",\r\n         \"phoneNumberCountry\":\"US\",\r\n         \"source\":\"shopify\",\r\n         \"orderCount\":0,\r\n         \"totalSpent\":0,\r\n         \"country\":\"US\",\r\n         \"city\":\"\",\r\n         \"address\":\"\",\r\n         \"tags\":\"Email Marketting\"\r\n      }\r\n   ]\r\n}"},"url":"https://app.avada.io/app/api/v1/customers/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"64"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"lz6j3uw06xh8"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"a6b1c555c82fb190108ad16a787df18a"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 03:39:35 GMT"},{"key":"X-Served-By","value":"cache-hkg17927-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611632375.775089,VS0,VE993"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create bulk customers complete\"\n}"}],"_postman_id":"728d2e65-d2e1-44fd-8351-6a54b6f72cd8"},{"name":"Create Checkout","id":"8856b2fa-cbb2-4946-9faa-86f955ac1543","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":166666666,\r\n      \"abandoned_checkout_url\":\"https://amce.io/mpsmtp/abandonedcart/recover/token/xxxxxxxxxx/\",\r\n      \"email\":\"john@doe.io\",\r\n      \"created_at\":\"2020-12-01 04:30:55\",\r\n      \"updated_at\":\"2020-12-01 04:30:55\",\r\n      \"completed_at\":\"2020-12-01 04:30:55\",\r\n      \"phone\":\"0123456789\",\r\n      \"customer_locale\":\"\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"simple\",\r\n            \"title\":\"T-shirt\",\r\n            \"price\":299,\r\n            \"quantity\":1,\r\n            \"sku\":\"t-shirt\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/tshirt.png\",\r\n            \"line_price\":299\r\n         }\r\n      ],\r\n      \"subtotal_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_price\":\"299\",\r\n      \"currency\":\"$\",\r\n      \"customer\":{\r\n         \"id\":0,\r\n         \"email\":null,\r\n         \"name\":\"\",\r\n         \"first_name\":\"null\",\r\n         \"last_name\":\"null\"\r\n      },\r\n      \"shipping_address\":{\r\n         \"name\":\"Jade \",\r\n         \"last_name\":\"Jack\",\r\n         \"phone\":\"0123456789\",\r\n         \"company\":\"AVADA\",\r\n         \"country_code\":\"100000\",\r\n         \"zip\":\" \",\r\n         \"address1\":\"\",\r\n         \"address2\":\" \",\r\n         \"city\":\"NY\",\r\n         \"province_code\":\"\",\r\n         \"province\":\"\"\r\n      }\r\n   }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/checkouts","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>id: number - required,  \n  abandoned_checkout_url: string - required,  \n  email: string,  \n  created_at: date - required,  \n  updated_at: date - required,  \n  completed_at: date,  \n  phone: string,  \n  customer_locale: string,  \n  line_items: array(\n    object - shape({\n      product_id: number - required,  \n      quantity: number - required,  \n      sku: string,  \n      image: string - required,  \n      frontend_link: string - required,  \n      price: string - required,  \n      line_price: string - required,  \n      title: string - required,  \n      variant_id: number,  \n      variant_title: string,  \n      variant_price: string,  \n      variant_image: string,  \n      bundle_items: array(\n          object - shape({\n            product_id: number - required,  \n            title: string - required,  \n            price: string - required,  \n            image: string - required,  \n            quantity: number - required,  \n            sku: string\n          })\n        )\n    })\n  ),  \n  subtotal_price: string - required,  \n  total_tax: string - required,  \n  total_price: string - required,  \n  currency: string - required,  \n  presentment_currency: string - required,  \n  customer: object(){\n      id: number,  \n      email: string,  \n      first_name: string,  \n      last_name: string,  \n      phone: string\n    })\n    ,  \n  shipping_address: object(){\n      name: string,  \n      last_name: string,  \n      phone: string,  \n      company: string,  \n      country_code: string,  \n      zip: string,  \n      address1: string,  \n      address2: string,  \n      city: string,  \n      province_code: string,  \n      province: string\n    })\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","checkouts"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"56abce5c-5c8a-4baa-a5f3-ea0cb21009cb","name":"Create Checkout Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":166666666,\r\n      \"abandoned_checkout_url\":\"https://amce.io/mpsmtp/abandonedcart/recover/token/xxxxxxxxxx/\",\r\n      \"email\":\"john@doe.io\",\r\n      \"created_at\":\"2020-12-01 04:30:55\",\r\n      \"updated_at\":\"2020-12-01 04:30:55\",\r\n      \"completed_at\":\"2020-12-01 04:30:55\",\r\n      \"phone\":\"0123456789\",\r\n      \"customer_locale\":\"\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"simple\",\r\n            \"title\":\"T-shirt\",\r\n            \"price\":299,\r\n            \"quantity\":1,\r\n            \"sku\":\"t-shirt\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/tshirt.png\",\r\n            \"line_price\":299\r\n         }\r\n      ],\r\n      \"subtotal_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_price\":\"299\",\r\n      \"currency\":\"$\",\r\n      \"customer\":{\r\n         \"id\":0,\r\n         \"email\":null,\r\n         \"name\":\"\",\r\n         \"first_name\":\"null\",\r\n         \"last_name\":\"null\"\r\n      },\r\n      \"shipping_address\":{\r\n         \"name\":\"Jade \",\r\n         \"last_name\":\"Jack\",\r\n         \"phone\":\"0123456789\",\r\n         \"company\":\"AVADA\",\r\n         \"country_code\":\"100000\",\r\n         \"zip\":\" \",\r\n         \"address1\":\"\",\r\n         \"address2\":\" \",\r\n         \"city\":\"NY\",\r\n         \"province_code\":\"\",\r\n         \"province\":\"\"\r\n      }\r\n   }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/checkouts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"66"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"1jw6uxxuta35"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"1c8c3b78038408102612a18ab1f33a40"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 08:37:55 GMT"},{"key":"X-Served-By","value":"cache-hkg17928-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611650275.149366,VS0,VE717"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create/update checkouts complete\"\n}"}],"_postman_id":"8856b2fa-cbb2-4946-9faa-86f955ac1543"},{"name":"Update Checkout","id":"d45f4722-29b8-4b29-afee-5f27a00995b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":166666666,\r\n      \"abandoned_checkout_url\":\"https://acme.io/mpsmtp/abandonedcart/recover/token/xxxxxxxx/\",\r\n      \"email\":\"john@doe.io\",\r\n      \"created_at\":\"2020-12-01 04:30:55\",\r\n      \"updated_at\":\"2020-12-01 04:30:55\",\r\n      \"completed_at\":\"2020-12-01 04:30:55\",\r\n      \"phone\":\"+12029674478\",\r\n      \"customer_locale\":\"\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"subtotal_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_price\":\"299\",\r\n      \"currency\":\"$\",\r\n      \"customer\":{\r\n         \"id\":0,\r\n         \"email\":null,\r\n         \"name\":\"\",\r\n         \"first_name\":\"null\",\r\n         \"last_name\":\"null\"\r\n      },\r\n      \"shipping_address\":{\r\n         \"name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\",\r\n         \"company\":\"AVADA\",\r\n         \"country_code\":\"100000\",\r\n         \"zip\":\" \",\r\n         \"address1\":\"\",\r\n         \"address2\":\" \",\r\n         \"city\":\"\",\r\n         \"province_code\":\"\",\r\n         \"province\":\"\"\r\n      }\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/checkouts","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>  id: number - required,  \n  abandoned_checkout_url: string - required,  \n  email: string,  \n  created_at: date - required,  \n  updated_at: date - required,  \n  completed_at: date,  \n  phone: string,  \n  customer_locale: string,  \n  line_items: array(\n    object - shape({\n      product_id: number - required,  \n      quantity: number - required,  \n      sku: string,  \n      image: string - required,  \n      frontend_link: string - required,  \n      price: string - required,  \n      line_price: string - required,  \n      title: string - required,  \n      variant_id: number,  \n      variant_title: string,  \n      variant_price: string,  \n      variant_image: string,  \n      bundle_items: array(\n          object - shape({\n            product_id: number - required,  \n            title: string - required,  \n            price: string - required,  \n            image: string - required,  \n            quantity: number - required,  \n            sku: string\n          })\n        )\n    })\n  ),  \n  subtotal_price: string - required,  \n  total_tax: string - required,  \n  total_price: string - required,  \n  currency: string - required,  \n  presentment_currency: string - required,  \n  customer: object(){\n      id: number,  \n      email: string,  \n      first_name: string,  \n      last_name: string,  \n      phone: string\n    })\n    ,  \n  shipping_address: object(){\n      name: string,  \n      last_name: string,  \n      phone: string,  \n      company: string,  \n      country_code: string,  \n      zip: string,  \n      address1: string,  \n      address2: string,  \n      city: string,  \n      province_code: string,  \n      province: string\n    })\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","checkouts"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"7f29773c-b4c2-436f-99c6-810c9fed279d","name":"Update Checkout Example","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":166666666,\r\n      \"abandoned_checkout_url\":\"https://acme.io/mpsmtp/abandonedcart/recover/token/xxxxxxxx/\",\r\n      \"email\":\"john@doe.io\",\r\n      \"created_at\":\"2020-12-01 04:30:55\",\r\n      \"updated_at\":\"2020-12-01 04:30:55\",\r\n      \"completed_at\":\"2020-12-01 04:30:55\",\r\n      \"phone\":\"+12029674478\",\r\n      \"customer_locale\":\"\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"subtotal_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_price\":\"299\",\r\n      \"currency\":\"$\",\r\n      \"customer\":{\r\n         \"id\":0,\r\n         \"email\":null,\r\n         \"name\":\"\",\r\n         \"first_name\":\"null\",\r\n         \"last_name\":\"null\"\r\n      },\r\n      \"shipping_address\":{\r\n         \"name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\",\r\n         \"company\":\"AVADA\",\r\n         \"country_code\":\"100000\",\r\n         \"zip\":\" \",\r\n         \"address1\":\"\",\r\n         \"address2\":\" \",\r\n         \"city\":\"\",\r\n         \"province_code\":\"\",\r\n         \"province\":\"\"\r\n      }\r\n   }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/checkouts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"66"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"1jw62xt7l3oc"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"ff9353431a153a33bd9b0da8e5855620"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 08:39:26 GMT"},{"key":"X-Served-By","value":"cache-hkg17928-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611650366.116349,VS0,VE728"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create/update checkouts complete\"\n}"}],"_postman_id":"d45f4722-29b8-4b29-afee-5f27a00995b0"},{"name":"Delete Checkout","id":"99119d15-b699-495a-a0aa-fe7a86d13dc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"data\":{}}"},"url":"https://app.avada.io/app/api/v1/checkouts?id=156226666","urlObject":{"protocol":"https","path":["app","api","v1","checkouts"],"host":["app","avada","io"],"query":[{"key":"id","value":"156226666"}],"variable":[]}},"response":[{"id":"a6a7b1d2-37d0-4e94-aba7-515f32b1a4f9","name":"Delete Checkout Example","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\"data\":{}}"},"url":{"raw":"https://app.avada.io/app/api/v1/checkouts?id=156226666","protocol":"https","host":["app","avada","io"],"path":["app","api","v1","checkouts"],"query":[{"key":"id","value":"156226666"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"private"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"g9flavvkj4xg"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"323e2eab059942d9a43ed05939d0aac4;o=1"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Fri, 04 Dec 2020 08:14:20 GMT"},{"key":"X-Served-By","value":"cache-hkg17924-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1607069660.517590,VS0,VE619"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook delete checkouts complete\"\n}"}],"_postman_id":"99119d15-b699-495a-a0aa-fe7a86d13dc0"},{"name":"Create Order ","id":"50e31804-3729-4c70-8661-b315479ce366","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.io/xxxxx/orders/xxxxx/authenticate?key=xxxxx\",\r\n      \"subtotal_price\":\"299\",\r\n      \"total_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_weight\":\"0\",\r\n      \"total_discounts\":\"0\"\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders","description":"<p>Required fields</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>+ customer: email \n+ id\n+ email, \n+ currency,\n+ created_at, \n+ updated_at}\n+ line_items: {\nproduct_id,\ntitle,\nname,\nprice,\nquantity,\nfrontend_link,\n  bundle_items:\n  { product_id,\n     title,\n     price,\n    quantity\n}\n+ total_price,\n+ subtotal_price,\n+ total_tax,\n+ total_weight\n</code></pre><p>When the new order is created and its status is usually pending</p>\n","urlObject":{"protocol":"https","path":["app","api","v1","orders"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"a39412d5-226d-4083-a503-541b337e28d1","name":"Create Order Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://linhnguyen11.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n      \"subtotal_price\":\"299\",\r\n      \"total_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_weight\":\"0\",\r\n      \"total_discounts\":\"0\"\r\n   }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"b2w1zm3h839x"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"00723899f46f798a295531241a357e44"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 02 Feb 2021 07:25:28 GMT"},{"key":"X-Served-By","value":"cache-hkg17920-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1612250726.246398,VS0,VE1792"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create orders complete\"\n}"}],"_postman_id":"50e31804-3729-4c70-8661-b315479ce366"},{"name":"Update Order","id":"53454f0c-4ca3-4cd4-8290-a7667f2b0dfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.myshopify.com/xxxxx/orders/xxxxx/authenticate?key=xxxxx\",\r\n      \"subtotal_price\":\"299\",\r\n      \"total_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_weight\":\"0\",\r\n      \"total_discounts\":\"0\"\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders","description":"<p>Required fields:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>- id\n- email\n- status\n- state\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","orders"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"6d56c660-f5aa-4fd3-982e-8ec887ccd664","name":"Update Order Example","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n      \"subtotal_price\":\"299\",\r\n      \"total_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_weight\":\"0\",\r\n      \"total_discounts\":\"0\"\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"private"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"g9flgnb8y6x3"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"bbfedf81a946fa79bbbdb402dab4c1a4;o=1"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Fri, 04 Dec 2020 08:16:35 GMT"},{"key":"X-Served-By","value":"cache-hkg17924-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1607069794.079605,VS0,VE1103"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook update orders complete\"\n}"}],"_postman_id":"53454f0c-4ca3-4cd4-8290-a7667f2b0dfc"},{"name":"Create Refund","id":"fa9af127-7159-4081-90b2-93da7f18f423","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-EmailMarketing-App-Id","type":"text","value":"{{app_id}}"},{"key":"X-EmailMarketing-Hmac-Sha256","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"order_id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.io/xxxxx/orders/xxxxx/authenticate?key=xxxxx\"\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/refund","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>  id: number - required,  \n  order_id: number - required,  \n  customer: object - shape(orderCustomerSchema),  \n  currency: string - required,  \n  created_at: date - required,  \n  updated_at: date - required,  \n  line_items: array(\n      object - shape({\n        product_id: number - required,  \n        title: string - required,  \n        price: string - required,  \n        quantity: number - required,  \n        sku: string - required,  \n        image: string - required,  \n        frontend_link: string - required,  \n        variant_id: number ,  \n        variant_title: string ,  \n        variant_price: string ,  \n        variant_image: string ,  \n        bundle_items: array(\n            object({\n              product_id: number - required,  \n              title: string - required,  \n              price: string - required,  \n              image: string - required,  \n              quantity: number - required,  \n              sku: string - required\n            })\n          )       \n      })\n    )\n    .required,  \n  order_status_url: string\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","orders","refund"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"f9e25304-97ba-417b-8790-ead28109284e","name":"Create Refund Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-EmailMarketing-App-Id","type":"text","value":"{{app_id}}"},{"key":"X-EmailMarketing-Hmac-Sha256","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"order_id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://linhnguyen11.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\"\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/refund"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"1jw60bedkpn1"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"27eaccaa90fe453ff06db56b4ad0a04c;o=1"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 08:52:15 GMT"},{"key":"X-Served-By","value":"cache-hkg17928-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611651135.173713,VS0,VE650"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook refund orders complete\"\n}"}],"_postman_id":"fa9af127-7159-4081-90b2-93da7f18f423"},{"name":"Create Invoice","id":"26feae9f-3b26-481a-9b28-cfac5cc50211","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-EmailMarketing-App-Id","type":"text","value":"{{app_id}}"},{"key":"X-EmailMarketing-Hmac-Sha256","type":"text","value":"{{hmac}}"},{"key":"X-AvadaPdfInvoice-App-Id","type":"text","value":"1"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"order_id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"pdf_invoice_url\":\"https://app.avada.io/customer/download/2241724614040380?shop=avada-demo.myshopify.com \",\r\n      \"pdf_invoice_file_name\":\"Invoice_PDF\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.myshopify.com/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.myshopify.com\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.myshopify.com/xxxxx/orders/xxxxx/authenticate?key=xxxxx\"\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/invoice","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>  id: string - required,    \n  order_id: number - required,    \n  name: string,    \n  fulfillment_status: string,    \n  financial_status: string,    \n  order_status_url: string,    \n  email: string - required,    \n  customer: object(orderCustomerSchema),    \n  line_items: array(\n      object({\n        product_id: number - required,    \n        title: string - required,    \n        name: string - required,    \n        type: string,    \n        price: string - required,    \n        quantity: number - required,    \n        sku: string,    \n        image: string,    \n        frontend_link: string,    \n        variant_id: number,    \n        variant_title: string,    \n        variant_price: string,    \n        variant_image: string,    \n        bundle_items: yup\n          .array()\n          .of(\n            object({\n              product_id: number - required,    \n              title: string - required,    \n              price: string - required,    \n              image: string - required,    \n              quantity: number - required,    \n              sku: string - required\n            })\n          )\n      })\n    )\n    .required,    \n  currency: string - required,    \n  created_at: date - required,    \n  updated_at: date - required,    \n  pdf_invoice_url: string,    \n  pdf_invoice_file_name: string\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","orders","invoice"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"b38443aa-01df-471d-803d-6c46b9196b90","name":"Create Invoice Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"},{"key":"X-AvadaPdfInvoice-App-Id","value":"1","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"order_id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"pdf_invoice_url\":\"https://app.avada.io/customer/download/2241724614040380?shop=avada-demo.myshopify.com \",\r\n      \"pdf_invoice_file_name\":\"Invoice_PDF\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\"\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/invoice"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"1jw65bf0z0d7"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"e6c6532719f513ed47f26327bb838d1d"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 08:56:10 GMT"},{"key":"X-Served-By","value":"cache-hkg17928-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611651369.773684,VS0,VE1319"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook invoice orders complete\"\n}"}],"_postman_id":"26feae9f-3b26-481a-9b28-cfac5cc50211"},{"name":" Order Complete","id":"9e0fc7e3-1705-4afb-8db3-e9c63ce3e148","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"X-EmailMarketing-App-Id","type":"text","value":"{{app_id}}"},{"key":"X-EmailMarketing-Hmac-Sha256","type":"text","value":"{{hmac}}"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n      \"subtotal_price\":\"299\",\r\n      \"total_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_weight\":\"0\",\r\n      \"total_discounts\":\"0\"\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/complete","description":"<p>When the order has payment status is paid and fulfillment status is fulfilled</p>\n","urlObject":{"protocol":"https","path":["app","api","v1","orders","complete"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"d7a924a3-9284-4f57-a7ab-c84c76c7c2d1","name":" Order Complete Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n      \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"name\":\"Sofa\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n      \"subtotal_price\":\"299\",\r\n      \"total_price\":\"299\",\r\n      \"total_tax\":\"0\",\r\n      \"total_weight\":\"0\",\r\n      \"total_discounts\":\"0\"\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/complete"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"1jw6yukjd18f"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"99e98bd4e644a8973e3f56d1cc963921;o=1"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 08:58:29 GMT"},{"key":"X-Served-By","value":"cache-hkg17928-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611651508.435708,VS0,VE964"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook complete orders complete\"\n}"}],"_postman_id":"9e0fc7e3-1705-4afb-8db3-e9c63ce3e148"},{"name":"Create Ship","id":"654363ae-7cd2-4236-a5e1-818ab87ecde0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":2937227935908,\r\n      \"order_id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-24T03:13:34-05:00\",\r\n      \"updated_at\":\"2020-11-29T21:51:56-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n      \"track\":{\r\n      },\r\n      \"tracking_company\":\"YunExpress\",\r\n      \"trackingNumber\":\"YT2023201271001806\",\r\n      \"trackingUrl\":\" https://www.yuntrack.com/Track/Detail/YT2023201271001806\",\r\n      \"destination\":{\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Holy\",\r\n         \"address1\":\"\",\r\n         \"city\":\"Chicago\",\r\n         \"zip\":\"12345\",\r\n         \"country\":\"USA\",\r\n         \"phone\":\"\"\r\n      }\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/ship","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>  id: number - required,  \n  order_id: number - required,  \n  email: string - required,  \n  customer: object(orderCustomerSchema),  \n  currency: string - required,  \n  order_status_url: string,  \n  tracks: yup\n    .array()\n    .of(\n      object({\n        company: string,  \n        number: string,  \n        url: string\n      })\n    ),  \n  trackingCompany: string,  \n  trackingNumber: string,  \n  trackingUrl: string,  \n  created_at: date - required,  \n  updated_at: date - required,  \n  line_items: yup\n    .array()\n    .of(\n      object({\n        product_id: number - required,  \n        title: string - required,  \n        price: string - required,  \n        quantity: number - required,  \n        sku: string - required,  \n        image: string - required,  \n        frontend_link: string - required,  \n        variant_id: number,  \n        variant_title: string,  \n        variant_price: string,  \n        variant_image: string,  \n        bundle_items: yup\n          .array()\n          .of(\n            object({\n              product_id: number - required,  \n              title: string - required,  \n              price: string - required,  \n              image: string - required,  \n              quantity: number - required,  \n              sku: string - required\n            })\n          ),  \n        destination: object().shape(addressSchema)\n      })\n    )\n    .required,  \n  destination: object().shape(addressSchema)\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","orders","ship"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"dd4c7287-eadd-48fb-b6b3-66ad7118d9b5","name":"Create Ship Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":{\r\n      \"id\":2937227935908,\r\n      \"order_id\":123,\r\n      \"email\":\"john@doe.io\",\r\n      \"status\":\"subcriber\",\r\n      \"customer\":{\r\n         \"id\":\"01\",\r\n         \"email\":\"john@doe.io\",\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Doe\",\r\n         \"phone\":\"+123456789\"\r\n      },\r\n      \"currency\":\"USD\",\r\n      \"created_at\":\"2020-11-24T03:13:34-05:00\",\r\n      \"updated_at\":\"2020-11-29T21:51:56-05:00\",\r\n      \"line_items\":[\r\n         {\r\n            \"type\":\"downloadable\",\r\n            \"title\":\"Affiliate Ultimate\",\r\n            \"price\":299,\r\n            \"quantity\":3,\r\n            \"sku\":\"m2-affiliate-ultimate\",\r\n            \"product_id\":\"29\",\r\n            \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n            \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n            \"line_price\":299,\r\n            \"bundle_items\":[\r\n               \r\n            ]\r\n         }\r\n      ],\r\n      \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n      \"track\":{\r\n      },\r\n      \"tracking_company\":\"YunExpress\",\r\n      \"trackingNumber\":\"YT2023201271001806\",\r\n      \"trackingUrl\":\" https://www.yuntrack.com/Track/Detail/YT2023201271001806\",\r\n      \"destination\":{\r\n         \"first_name\":\"John\",\r\n         \"last_name\":\"Holy\",\r\n         \"address1\":\"\",\r\n         \"city\":\"Chicago\",\r\n         \"zip\":\"12345\",\r\n         \"country\":\"USA\",\r\n         \"phone\":\"\"\r\n      }\r\n   }\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/ship"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"54"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"1jw6gmzm8xth"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"118e0c9fd3b6c9893144d73bcd470e19"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 09:00:11 GMT"},{"key":"X-Served-By","value":"cache-hkg17928-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611651611.370408,VS0,VE594"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook ship orders complete\"\n}"}],"_postman_id":"654363ae-7cd2-4236-a5e1-818ab87ecde0"},{"name":"Bulk Import Order","id":"f6e486d1-a0ae-4010-81a5-64105ea4c95f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":[\r\n      {\r\n         \"id\":123,\r\n         \"email\":\"john@doe.io\",\r\n         \"status\":\"subcriber\",\r\n         \"customer\":{\r\n            \"email\":\"john@doe.io\",\r\n            \"first_name\":\"John\",\r\n            \"last_name\":\"Doe\",\r\n            \"phone\":\"\"\r\n         },\r\n         \"currency\":\"USD\",\r\n         \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n         \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n         \"line_items\":[\r\n            {\r\n               \"type\":\"downloadable\",\r\n               \"title\":\"Affiliate Ultimate\",\r\n               \"name\":\"Sofa\",\r\n               \"price\":299,\r\n               \"quantity\":3,\r\n               \"sku\":\"m2-affiliate-ultimate\",\r\n               \"product_id\":\"29\",\r\n               \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n               \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n               \"line_price\":299,\r\n               \"bundle_items\":[\r\n                  \r\n               ]\r\n            }\r\n         ],\r\n         \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n         \"subtotal_price\":\"299\",\r\n         \"total_price\":\"299\",\r\n         \"total_tax\":\"0\",\r\n         \"total_weight\":\"0\",\r\n         \"total_discounts\":\"0\"\r\n      },\r\n      {\r\n         \"id\":124,\r\n         \"email\":\"john2@doe.io\",\r\n         \"status\":\"subcriber\",\r\n          \"customer\":{\r\n            \"email\":\"john2@doe.io\",\r\n            \"first_name\":\"John 2\",\r\n            \"last_name\":\"Doe\",\r\n            \"phone\":\"\"\r\n         },\r\n         \"currency\":\"USD\",\r\n         \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n         \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n         \"line_items\":[\r\n            {\r\n               \"type\":\"downloadable\",\r\n               \"title\":\"Affiliate Ultimate\",\r\n               \"name\":\"Sofa\",\r\n               \"price\":299,\r\n               \"quantity\":3,\r\n               \"sku\":\"m2-affiliate-ultimate\",\r\n               \"product_id\":\"29\",\r\n               \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n               \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n               \"line_price\":299,\r\n               \"bundle_items\":[\r\n                  \r\n               ]\r\n            }\r\n         ],\r\n         \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n         \"subtotal_price\":\"299\",\r\n         \"total_price\":\"299\",\r\n         \"total_tax\":\"0\",\r\n         \"total_weight\":\"0\",\r\n         \"total_discounts\":\"0\"\r\n      },\r\n   ]\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/bulk","urlObject":{"protocol":"https","path":["app","api","v1","orders","bulk"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"c6296af8-762f-4070-abdd-8b5fc623b484","name":"Bulk Import Order Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"data\":[\r\n      {\r\n         \"id\":123,\r\n         \"email\":\"john@doe.io\",\r\n         \"status\":\"subcriber\",\r\n         \"customer\":{\r\n            \"email\":\"john@doe.io\",\r\n            \"first_name\":\"John\",\r\n            \"last_name\":\"Doe\",\r\n            \"phone\":\"\"\r\n         },\r\n         \"currency\":\"USD\",\r\n         \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n         \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n         \"line_items\":[\r\n            {\r\n               \"type\":\"downloadable\",\r\n               \"title\":\"Affiliate Ultimate\",\r\n               \"name\":\"Sofa\",\r\n               \"price\":299,\r\n               \"quantity\":3,\r\n               \"sku\":\"m2-affiliate-ultimate\",\r\n               \"product_id\":\"29\",\r\n               \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n               \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n               \"line_price\":299,\r\n               \"bundle_items\":[\r\n                  \r\n               ]\r\n            }\r\n         ],\r\n         \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n         \"subtotal_price\":\"299\",\r\n         \"total_price\":\"299\",\r\n         \"total_tax\":\"0\",\r\n         \"total_weight\":\"0\",\r\n         \"total_discounts\":\"0\"\r\n      },\r\n      {\r\n         \"id\":124,\r\n         \"email\":\"john2@doe.io\",\r\n         \"status\":\"subcriber\",\r\n          \"customer\":{\r\n            \"email\":\"john2@doe.io\",\r\n            \"first_name\":\"John 2\",\r\n            \"last_name\":\"Doe\",\r\n            \"phone\":\"\"\r\n         },\r\n         \"currency\":\"USD\",\r\n         \"created_at\":\"2020-11-25T21:05:24-05:00\",\r\n         \"updated_at\":\"2020-11-25T21:05:25-05:00\",\r\n         \"line_items\":[\r\n            {\r\n               \"type\":\"downloadable\",\r\n               \"title\":\"Affiliate Ultimate\",\r\n               \"name\":\"Sofa\",\r\n               \"price\":299,\r\n               \"quantity\":3,\r\n               \"sku\":\"m2-affiliate-ultimate\",\r\n               \"product_id\":\"29\",\r\n               \"image\":\"https://acme.io/pub/media/catalog/product/a/f/affiliate_2.png\",\r\n               \"frontend_link\":\"https://acme.io/m2-affiliate-ultimate.html\",\r\n               \"line_price\":299,\r\n               \"bundle_items\":[\r\n                  \r\n               ]\r\n            }\r\n         ],\r\n         \"order_status_url\":\"https://acme.myshopify.com/44268093604/orders/7af1f488f1a488e49d78cbcb6f9b054f/authenticate?key=46909721ea600fdddaa9c837ee6135f5\",\r\n         \"subtotal_price\":\"299\",\r\n         \"total_price\":\"299\",\r\n         \"total_tax\":\"0\",\r\n         \"total_weight\":\"0\",\r\n         \"total_discounts\":\"0\"\r\n      },\r\n   ]\r\n}"},"url":"https://app.avada.io/app/api/v1/orders/bulk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"61"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"d8rnixogfchk"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"600796282593e9beefeb60f99d2609ea"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 09:03:36 GMT"},{"key":"X-Served-By","value":"cache-hkg17928-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611651815.146390,VS0,VE1022"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create bulk orders complete\"\n}"}],"_postman_id":"f6e486d1-a0ae-4010-81a5-64105ea4c95f"},{"name":"Get List Forms","id":"2fbf326b-985c-4842-b383-d8a26d82cff4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"url":"https://app.avada.io/app/api/v1/forms","urlObject":{"protocol":"https","path":["app","api","v1","forms"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"41167787-ecb8-4b67-a1f5-3f436e4ebf25","name":"Get List Forms Example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","type":"text"}],"url":"https://app.avada.io/app/api/v1/forms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"1034"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"natgh84uogop"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"c28888d126435a47042f626a8c884474"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Tue, 26 Jan 2021 11:13:21 GMT"},{"key":"X-Served-By","value":"cache-hkg17923-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1611659601.582951,VS0,VE811"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook get form list complete!\",\n    \"data\": [\n        {\n            \"id\": \"xxxxxxxxxxxxx\",\n            \"name\": \"Everyday Luck\",\n            \"thumbnail_url\": \"https://storage.googleapis.com/avadaio.appspot.com/popup/campaigns/screenshots/xxxxxxxxxxxxx/campaign-screenshot.png\",\n            \"url\": \"https://app.avada.io/popup/campaign/xxxxxxxxxxxxx\"\n        },\n        {\n            \"id\": \"xxxxxxxxxxxxx\",\n            \"name\": \"Avada\",\n            \"thumbnail_url\": \"https://storage.googleapis.com/avadaio.appspot.com/popup/campaigns/screenshots/xxxxxxxxxxxxx/campaign-screenshot.png\",\n            \"url\": \"https://app.avada.io/popup/campaign/xxxxxxxxxxxxx\"\n        },\n        {\n            \"id\": \"YBBpHzmUASDvgzaWtCUs\",\n            \"name\": \"Simple Light\",\n            \"thumbnail_url\": \"https://cdn1.avada.io/get-market/popup/presets/Template10.png\",\n            \"url\": \"https://app.avada.io/popup/campaign/xxxxxxxxxxxxx\"\n        },\n        {\n            \"id\": \"ohiDdZS1jS1Y4lhZ9u4K\",\n            \"name\": \"Simple Black\",\n            \"thumbnail_url\": \"https://storage.googleapis.com/avadaio.appspot.com/popup/campaigns/screenshots/xxxxxxxxxxxxx/campaign-screenshot.png\",\n            \"url\": \"https://app.avada.io/popup/campaign/xxxxxxxxxxxxx\"\n        }\n    ]\n}"}],"_postman_id":"2fbf326b-985c-4842-b383-d8a26d82cff4"},{"name":"Test Connect","id":"56eb8efe-b810-4c5d-8455-22860621c3fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","description":"<p>X-EmailMarketing-App-Id: App ID of your shop which retrieved from <a href=\"https://app.avada.io/manage/keys\">https://app.avada.io/manage/keys</a></p>\n","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","description":"<p>X-EmailMarketing-Hmac-Sha256: Authentication code message created by SHA-256 hash function and base64 output which generated from stringifed request body and shop secret key  at <a href=\"https://app.avada.io/manage/keys\">https://app.avada.io/manage/keys</a></p>\n","type":"text"},{"key":"X-EmailMarketing-Connection-Test","value":"true","type":"text"}],"body":{"mode":"raw","raw":"{}"},"url":"https://app.avada.io/app/api/v1/connects","urlObject":{"protocol":"https","path":["app","api","v1","connects"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"240c805f-2206-4fd1-af02-2b5ed5f0a5f3","name":"Test Connect Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","description":"X-EmailMarketing-App-Id: App ID of your shop which retrieved from https://app.avada.io/manage/keys","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","description":"X-EmailMarketing-Hmac-Sha256: Authentication code message created by SHA-256 hash function and base64 output which generated from stringifed request body and shop secret key  at https://app.avada.io/manage/keys","type":"text"},{"key":"X-EmailMarketing-Connection-Test","value":"true","type":"text"}],"body":{"mode":"raw","raw":"{}"},"url":"https://app.avada.io/app/api/v1/connects"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"47"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"aatujm8etb0b"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"df1646647603b95c522c0e473e63d64a"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Fri, 09 Apr 2021 02:54:24 GMT"},{"key":"X-Served-By","value":"cache-hkg17922-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1617936864.932562,VS0,VE349"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Test successfully!\"\n}"}],"_postman_id":"56eb8efe-b810-4c5d-8455-22860621c3fb"},{"name":"Submit Review","id":"ea430294-f5fc-4cb0-bcdc-144da93c6f78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","description":"<p>X-EmailMarketing-App-Id: App ID of your shop which retrieved from <a href=\"https://app.avada.io/manage/keys\">https://app.avada.io/manage/keys</a></p>\n","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","description":"<p>X-EmailMarketing-Hmac-Sha256: Authentication code message created by SHA-256 hash function and base64 output which generated from stringifed request body and shop secret key  at <a href=\"https://app.avada.io/manage/keys\">https://app.avada.io/manage/keys</a></p>\n","type":"text"},{"key":"X-AvadaTrigger-App-Id","value":"true","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": {\r\n        \"email\": \"john@doe.io\",\r\n        \"source\": \"avada_photo_review\", //Name your app\r\n        \"customer\": {\r\n            \"firstName\": \"Veronica\",\r\n            \"lastName\": \"Costello\",\r\n            \"reviewCount\": 12\r\n        },\r\n        \"review\": {\r\n            \"rating\": 5,\r\n            \"author\": \"Costello\",\r\n            \"title\": \"review product\",\r\n            \"content\": \"This is good product\",\r\n            \"productTitle\": \"black-bag-over-the-shoulder\",\r\n            \"productUrl\": \"https://avada-demostore.myshopify.com/products/black-bag-over-the-shoulder\",\r\n            \"productId\": \"5689441812646\",\r\n            \"productSku\": \"12345\",\r\n            \"orderId\": \"3748665983142\",\r\n            \"productImage\": [\r\n            \"https://cdn.shopify.com/s/files/1/0514/6722/3220/products/single-sprout-in-a-pot_925x_de08e14a-5fb2-4174-b210-e9608417e5c9_1024x1024@2x.jpg?v=1606815016\"\r\n          ],\r\n            \"updateReviewPhotoUrl\": \"https://thomas-photo-review-production.myshopify.com/products/clay-plant-pot\",\r\n            \"photoIncluded\": \"yes\",\r\n            \"photoUrl\": \"https://cdn.shopify.com/s/files/1/0457/4098/2438/products/black-bag-over-the-shoulder_925x_112781d2-f0b3-43de-97ea-121b020bf0a0_1024x1024@2x.jpg?v=1599548060\",\r\n            \"videoIncluded\": \"no\",\r\n            \"thumbnailUrl\": \"\",\r\n            \"videoUrl\": \"\"\r\n         \r\n        }\r\n    }\r\n}"},"url":"https://app.avada.io/app/api/v1/triggers/review_submit","description":"<p>You can push data to AVADA after customers submit reviews to send them follow up emails. Below are data and data type that supported in AVADA API:  </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> \"email\": \"email\"- required,   \n \"source\": \"string\"- required,   \n \"customer\": {      \n            \"firstName\": \"string\",    \n            \"lastName\": \"string\",       \n            \"reviewCount\": number,    \n        },   \n \"review\": {   \n            \"rating\": number,   \n            \"author\": \"string\",   \n            \"title\": \"string\",   \n            \"content\": \"string\",   \n            \"productTitle\": \"string\",   \n            \"productUrl\": \"url\",    \n            \"productId\": \"string\",   \n            \"productSku\": \"string\",   \n            \"productImage\": [\"array of url\"],   \n            \"orderId\": \"string\",   \n            \"photoIncluded\": \"string\"(accept value yes/no),     \n            \"photoUrl\": url,      \n            \"videoIncluded\": \"string\"(accept value yes/no),    \n            \"thumbnailUrl\": \"url\",    \n            \"videoUrl\": \"url\",     \n            \"updateReviewPhotoUrl\": \"url\"  \n              \n   }\n</code></pre>","urlObject":{"protocol":"https","path":["app","api","v1","triggers","review_submit"],"host":["app","avada","io"],"query":[],"variable":[]}},"response":[{"id":"44c97f20-e00d-45d9-be2b-ff6acb5a95ce","name":"Submit Review Example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"X-EmailMarketing-App-Id","value":"{{app_id}}","description":"X-EmailMarketing-App-Id: App ID of your shop which retrieved from https://app.avada.io/manage/keys","type":"text"},{"key":"X-EmailMarketing-Hmac-Sha256","value":"{{hmac}}","description":"X-EmailMarketing-Hmac-Sha256: Authentication code message created by SHA-256 hash function and base64 output which generated from stringifed request body and shop secret key  at https://app.avada.io/manage/keys","type":"text"},{"key":"X-AvadaTrigger-App-Id","value":"true","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": {\r\n        \"email\": \"john@doe.io\",\r\n        \"source\": \"avada_photo_review\", //Name your app\r\n        \"customer\": {\r\n            \"firstName\": \"Veronica\",\r\n            \"lastName\": \"Costello\",\r\n            \"reviewCount\": 12\r\n        },\r\n        \"review\": {\r\n            \"rating\": 5,\r\n            \"author\": \"Costello\",\r\n            \"title\": \"review product\",\r\n            \"content\": \"This is good product\",\r\n            \"productTitle\": \"black-bag-over-the-shoulder\",\r\n            \"productUrl\": \"https://avada-demostore.myshopify.com/products/black-bag-over-the-shoulder\",\r\n            \"productId\": \"5689441812646\",\r\n            \"productSku\": \"12345\",\r\n            \"orderId\": \"3748665983142\",\r\n            \"productImage\": [\r\n            \"https://cdn.shopify.com/s/files/1/0514/6722/3220/products/single-sprout-in-a-pot_925x_de08e14a-5fb2-4174-b210-e9608417e5c9_1024x1024@2x.jpg?v=1606815016\"\r\n          ],\r\n            \"updateReviewPhotoUrl\": \"https://thomas-photo-review-production.myshopify.com/products/clay-plant-pot\",\r\n            \"photoIncluded\": \"yes\",\r\n            \"photoUrl\": \"https://cdn.shopify.com/s/files/1/0457/4098/2438/products/black-bag-over-the-shoulder_925x_112781d2-f0b3-43de-97ea-121b020bf0a0_1024x1024@2x.jpg?v=1599548060\",\r\n            \"videoIncluded\": \"no\",\r\n            \"thumbnailUrl\": \"\",\r\n            \"videoUrl\": \"\"\r\n         \r\n        }\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://app.avada.io/app/api/v1/triggers/review_submit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"55"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Function-Execution-Id","value":"xson20tbtwo7"},{"key":"Server","value":"Google Frontend"},{"key":"X-Cloud-Trace-Context","value":"256397d1b4459a627a82a26d7be5b69e"},{"key":"X-Country-Code","value":"VN"},{"key":"X-Powered-By","value":"Express"},{"key":"Accept-Ranges","value":"bytes"},{"key":"Date","value":"Fri, 09 Apr 2021 03:02:20 GMT"},{"key":"X-Served-By","value":"cache-hkg17922-HKG"},{"key":"X-Cache","value":"MISS"},{"key":"X-Cache-Hits","value":"0"},{"key":"X-Timer","value":"S1617937334.070414,VS0,VE6261"},{"key":"Vary","value":"Origin,cookie,need-authorization, x-fh-requested-host, accept-encoding"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Hook create event complete\"\n}"}],"_postman_id":"ea430294-f5fc-4cb0-bcdc-144da93c6f78"}]}