{"info":{"_postman_id":"d77382f9-0e08-4635-b3b0-696006a144d9","name":"Wildfire API","description":"<html><head></head><body><p>For a walkthrough of this collection, check out our <a href=\"https://www.youtube.com/watch?v=CCE7H_one44\">Getting Started with the Wildfire Postman Collection</a> video.</p>\n<p>RESTful API for converting product and brand references into revenue. Request credentials at <a href=\"https://mailto:clientsuccess@wildfire-corp.com\">clientsuccess@wildfire-corp.com</a>.</p>\n<h1 id=\"key-terms-concepts\">Key Terms &amp; Concepts</h1>\n<p>Before getting started, it's helpful to know a few terms and a rough flow on your way to making your first request.</p>\n<p>* <strong>Client</strong>: With the exception of Admin Endpoints, Wildink's APIs are designed to receive requests on behalf of a user's device (the client). All requests are authenticated by a \"device token\" and this token usually represents the user's device.<br>* <strong>Application</strong>: An application represents a website or other product for a given partner. A partner may have multiple applications. Each application will have its own secret. All Applications owned by the same partner may make requests on behalf of devices from any of the partner's applications but each application may have an exclusive allowed scope. The most common case for this is an Admin Application that is only allowed to make global requests (i.e. for statistics, commission records) and a separate Client Application that is only allowed to make requests in the context of a single device.<br>* <strong>DeviceKey</strong>: A DeviceKey that you'll use to refer to the user's device. This value should be stored somewhere so that each session for a device is started with the same DeviceKey. If a Device Token expires, a new one will need to be generated using the same DeviceKey in order to persist a user's experience.<br>* <strong>Device ID</strong>: A Device ID is an integer value that acts as a reference to the user's device. Why have both a DeviceKey and Device ID? Because a DeviceKey is used for auth and is considered sensitive. A Device ID, by contrast, is only used as a reference in other API return data (i.e. the API call to get commission records for an application across all devices returns references to the Device ID as part of its return data). A Device ID cannot be used for auth and is considered less sensitive.<br>* <strong>Device Token</strong>: An ephemeral auth token that represents a user's device. A device token may expire for any reason at any time and, if expired, will result in a 403 error code. Every API request requires a device token (other than the initial request to create a device and receive a token). If a Device Token expires, a new one will need to be generated using the same DeviceKey in order to persist a user's experience.</p>\n<h1 id=\"api-authentication\">API Authentication</h1>\n<p>See the pre-request script of this collection for an example of authentication. The app ID and app secret are used with the request URL and timestamp to authenticate a request. The following is a standard auth flow:</p>\n<ol>\n<li><p>Request (create) a device by POSTing an empty device token value.</p>\n</li>\n<li><p>Receive and store the DeviceKey, Device ID and Device Token. Make subsequent requests using the Device Token.</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Key Terms & Concepts","slug":"key-terms-concepts"},{"content":"API Authentication","slug":"api-authentication"}],"owner":"24961","collectionId":"d77382f9-0e08-4635-b3b0-696006a144d9","publishedId":"RWgqVyV2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"6699CC"},"publishDate":"2018-10-11T18:30:05.000Z"},"item":[{"name":"Client Endpoints","item":[{"name":"Device","item":[{"name":"Create Device","event":[{"listen":"prerequest","script":{"id":"e2de0abd-be65-4d82-bed2-38fc30864fb0","exec":[""],"type":"text/javascript"}}],"id":"d96bcd5d-cad0-4e72-af91-9b00afceacc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{authorization_header}}"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}"}],"body":{"mode":"raw","raw":"{\n\t\"DeviceKey\": \"\"\n}"},"url":"https://api.wfi.re/v3/device","description":"<p>Only pass in the DeviceKey portion of the POST body if you're creating a new session for an existing device.  You must POST a DeviceKey that has previously been created (you cannot pass in an arbitrary DeviceKey value, only the Wildlink web service is allowed to create a DeviceKey).</p>\n","urlObject":{"protocol":"https","path":["v3","device"],"host":["api","wfi","re"],"query":[],"variable":[]}},"response":[],"_postman_id":"d96bcd5d-cad0-4e72-af91-9b00afceacc3"}],"id":"7179c464-3a0c-42a0-b036-8fb3e820d9b4","_postman_id":"7179c464-3a0c-42a0-b036-8fb3e820d9b4","description":""},{"name":"Vanity URL","item":[{"name":"Create Vanity URL","event":[{"listen":"prerequest","script":{"id":"e2de0abd-be65-4d82-bed2-38fc30864fb0","exec":[""],"type":"text/javascript"}}],"id":"7270bd71-9970-42dd-945f-3c1eb9ef9f9e","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{authorization_header}}"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}"}],"body":{"mode":"raw","raw":"{\n  \"URL\": \"https://www.walmart.com/ip/VIZIO-24-Class-HD-720P-LED-TV-D24hn-G9/782959488\"\n}"},"url":"https://api.wfi.re/v3/vanity","description":"<p>Create a wild.link URL like \"<a href=\"http://wild.link/walmart/fA31oV\">http://wild.link/walmart/fA31oV</a>\" from a URL like \"<a href=\"https://www.walmart.com/ip/VIZIO-24-Class-HD-720P-LED-TV-D24hn-G9/782959488\">https://www.walmart.com/ip/VIZIO-24-Class-HD-720P-LED-TV-D24hn-G9/782959488</a>\"</p>\n<p>Returns the VanityURL as well as the OriginalURL (in case multiple requests are made in parallel and you need to determine which repsonse maps to which request).</p>\n","urlObject":{"protocol":"https","path":["v3","vanity"],"host":["api","wfi","re"],"query":[],"variable":[]}},"response":[{"id":"59fdc45b-27fe-4463-aac5-4b7dc8c2d0a7","name":"Create Vanity URL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","disabled":false},{"key":"Authorization","value":"{{authorization_header}}","disabled":false},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}","disabled":false}],"body":{"mode":"raw","raw":"{\n  \"URL\": \"https://www.walmart.com/ip/VIZIO-24-Class-HD-720P-LED-TV-D24hn-G9/782959488\"\n}"},"url":"https://api.wfi.re/v2/vanity"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Alt-Svc","value":"clear","name":"Alt-Svc","description":"Custom header"},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Type","value":"application/json; charset=utf-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Wed, 17 Oct 2018 23:35:22 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"Vary","value":"Origin","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"Via","value":"1.1 google","name":"Via","description":"Informs the client of proxies through which the response was sent."},{"key":"X-Wf-Buildstamp","value":"2018-10-17T14:01:30Z","name":"X-Wf-Buildstamp","description":"Custom header"},{"key":"X-Wf-Devicetoken","value":"1a321825fa417adf6d964128ea288079e75f4f","name":"X-Wf-Devicetoken","description":"Custom header"},{"key":"X-Wf-Githash","value":"v1.0.14-245-gc6ed357","name":"X-Wf-Githash","description":"Custom header"}],"cookie":[],"responseTime":null,"body":"{\"OriginalURL\":\"https://www.walmart.com/ip/VIZIO-24-Class-HD-720P-LED-TV-D24hn-G9/782959488\",\"VanityURL\":\"http://wild.link/walmart/ANTPBg\"}"}],"_postman_id":"7270bd71-9970-42dd-945f-3c1eb9ef9f9e"}],"id":"3bdfc085-9ebe-47b5-a273-767c33947710","_postman_id":"3bdfc085-9ebe-47b5-a273-767c33947710","description":""}],"id":"e7632405-412c-412e-b019-43b13e000284","description":"<p>These API endpoints are to be used by a Partner's Client Applications and represent the context of a single device/install.</p>\n","event":[{"listen":"prerequest","script":{"id":"fbac1ba5-526e-48e7-82ec-21ed8eee6985","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b770b2f4-4d42-49d3-a383-65b2f8c4ac89","type":"text/javascript","exec":[""]}}],"_postman_id":"e7632405-412c-412e-b019-43b13e000284"},{"name":"Admin Endpoints","item":[{"name":"Device","item":[{"name":"Create Device","event":[{"listen":"prerequest","script":{"id":"e2de0abd-be65-4d82-bed2-38fc30864fb0","exec":[""],"type":"text/javascript"}}],"id":"b002c32a-71c8-4518-a869-fc2881bb197b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{authorization_header}}"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}"}],"body":{"mode":"raw","raw":"{\n\t\"DeviceKey\": \"\"\n}"},"url":"https://api.wfi.re/v3/device","description":"<p>Only pass in the DeviceKey portion of the POST body if you're creating a new session for an existing device.  You must POST a DeviceKey that has previously been created (you cannot pass in an arbitrary DeviceKey value, only the Wildlink web service is allowed to create a DeviceKey).</p>\n","urlObject":{"protocol":"https","path":["v3","device"],"host":["api","wfi","re"],"query":[],"variable":[]}},"response":[],"_postman_id":"b002c32a-71c8-4518-a869-fc2881bb197b"}],"id":"8f2e76c4-c435-477a-aa33-05091e623bae","_postman_id":"8f2e76c4-c435-477a-aa33-05091e623bae","description":""},{"name":"Commission","item":[{"name":"Get All Commissions","id":"5cc69c1d-fb39-4231-894e-7acf25487c6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization_header}}"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}"},{"key":"Content-Type","value":"application/json"}],"url":"https://api.wfi.re/v5/commission?limit=200&start_modified_date=2024-04-05T12:00:00Z&end_modified_date=2024-04-06T12:00:00Z&sort_by=modified_date&sort_order=asc","description":"<p>Get all commission records for all client devices associated with the authenticated application that have been modified since a given date. If there are multiple client applications (i.e. a Chrome extension application and a Mobile Safari extension application), then this call will return commission records for all client devices for all client applications.</p>\n<p>This call requires a <code>start_modified_date</code> (to filter based on \"modified since\") and takes optional parameters: <code>end_modified_date</code> and <code>limit</code></p>\n<p>The maximum allowed value for the <code>limit</code> parameter is 2,000.</p>\n<p>The default value for the <code>limit</code> is 100 (if not set explicitly).</p>\n<p>If the record count for the given date range exceeds the requested limit, a NextCursor value can be used to iterate through pages of data to obtain the complete data set. The NextCursor value is always present, even if there are no records on the next page of data. With each request for a new page, the previous date range parameters should be included with the NextPage cursor value.</p>\n<p>For example, a first page request might look like <code>https://api.wfi.re/v5/commission?limit=200&amp;start_modified_date=2023-03-01&amp;end_modified_date=2023-03-03</code> and a second page request may look like <code>https://api.wfi.re/v5/commission?limit=200&amp;start_modified_date=2023-03-01&amp;end_modified_date=2023-03-03&amp;cursor=AsgByAEA</code></p>\n<p>Note that this endpoint has multiple versions available:</p>\n<ul>\n<li><p>v4</p>\n<ul>\n<li><p>Adds user split details if Wildfire is handling payouts to users</p>\n</li>\n<li><p>Enables querying by a date-time value for start_modified_date and end_modified_date (i.e. <code>2023-11-16T12:00:00Z</code>) whereas previous versions only support date values (i.e. <code>2023-11-16</code>)</p>\n</li>\n</ul>\n</li>\n<li><p>v5</p>\n<ul>\n<li><p>Adds BaseCommissionAmount and BoostedCommissionAmount to describe parts of commission where Boosted Offers are in effect</p>\n</li>\n<li><p>Adds DeviceXID for partners that set a user reference (this value is usually the same as or a substring of the TrackingCode value)</p>\n</li>\n<li><p>Adds CouponCodes indicating coupon code(s) used. Because this is merchant-reported, it may be empty and may include multiple codes using various delimiters (commas, hyphens, etc.)</p>\n</li>\n<li><p>Adds ShoppingTripCode to indicate a shopping \"session\" associated with the commission record. Wildfire created ShoppingTripCode values when an offer is activated (either cashback EMA or Couponator). This value does not apply to API partners that have developed their own client software.</p>\n</li>\n<li><p>Removes the DISQUALIFIED status (this value was inconsistently being applied and can be easily interpreted from the commission amount).</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>If you would like your applications upgraded to a newer version of the API, please contact your Client Success manager.</p>\n<p><strong>IMPORTANT: This endpoint has a rate limit of 1 request per 5 seconds</strong>.</p>\n","urlObject":{"protocol":"https","path":["v5","commission"],"host":["api","wfi","re"],"query":[{"key":"limit","value":"200"},{"key":"start_modified_date","value":"2024-04-05T12:00:00Z"},{"key":"end_modified_date","value":"2024-04-06T12:00:00Z"},{"key":"sort_by","value":"modified_date"},{"key":"sort_order","value":"asc"},{"disabled":true,"key":"cursor","value":"AgEBAA"}],"variable":[]}},"response":[{"id":"a8eb0e9f-8a50-477d-9c1d-d45eff3ce49d","name":"Get All Commissions (v5)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization_header}}","type":"text"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.wfi.re/:version/commission?limit=2&start_modified_date=2022-09-28T12:00:00Z&end_modified_date=2022-09-29T12:00:00Z&sort_by=modified_date&sort_order=asc","protocol":"https","host":["api","wfi","re"],"path":[":version","commission"],"query":[{"key":"limit","value":"2"},{"key":"start_modified_date","value":"2022-09-28T12:00:00Z"},{"key":"end_modified_date","value":"2022-09-29T12:00:00Z"},{"key":"sort_by","value":"modified_date"},{"key":"sort_order","value":"asc"},{"key":"cursor","value":"AgJUAA","disabled":true}],"variable":[{"key":"version","value":"v5","description":"API version"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Wf-Buildstamp","value":"2022-10-24T18:54:42Z"},{"key":"X-Wf-Devicetoken","value":"d0941a24a66a2e41ddf5f6a17bc5b59b6a21d6d6"},{"key":"X-Wf-Githash","value":"v1.0.15-2963-g0ba6f2a7"},{"key":"Date","value":"Fri, 28 Oct 2022 17:24:54 GMT"},{"key":"Via","value":"1.1 google"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"Commissions\": [\n        {\n            \"CommissionID\": 14735357,\n            \"ApplicationID\": 3,\n            \"MerchantID\": 5483208,\n            \"DeviceID\": 13207430,\n            \"DeviceXID\": \"012345-6780a-bcdef0-74932\",\n            \"SaleAmount\": {\n                \"Amount\": \"195\",\n                \"Currency\": \"USD\"\n            },\n            \"Amounts\": [\n                {\n                    \"Amount\": \"0.975\",\n                    \"Currency\": \"USD\",\n                    \"SplitPart\": \"DEVICE\",\n                    \"BaseCommissionAmount\": \"0.542861\",\n                    \"BoostedCommissionAmount\": \"0\"\n                }\n            ],\n            \"Status\": \"PENDING\",\n            \"TrackingCode\": \"012345-6780a-bcdef0-74932\",\n            \"EventDate\": \"2022-09-27T23:37:28Z\",\n            \"LockingDate\": \"2022-10-08T05:00:00Z\",\n            \"CreatedDate\": \"2022-09-28T00:31:03.813088Z\",\n            \"ModifiedDate\": \"2022-09-28T00:31:03.813088Z\",\n            \"MerchantOrderID\": \"24-55839/CAR09272022\",\n            \"MerchantSKU\": \"\",\n            \"CouponCodes\": \"SUMMER\",\n            \"ShoppingTripCode\": \"d068d2e1-762c-414e-8beb-6fd76c68ee13\"\n        },\n        {\n            \"CommissionID\": 14735886,\n            \"ApplicationID\": 3,\n            \"MerchantID\": 5483208,\n            \"DeviceID\": 13207430,\n            \"SaleAmount\": {\n                \"Amount\": \"238\",\n                \"Currency\": \"USD\"\n            },\n            \"Amounts\": [\n                {\n                    \"Amount\": \"1.19\",\n                    \"Currency\": \"USD\",\n                    \"SplitPart\": \"DEVICE\"\n                }\n            ],\n            \"Status\": \"PENDING\",\n            \"TrackingCode\": \"abc123\",\n            \"EventDate\": \"2022-09-28T00:41:40Z\",\n            \"LockingDate\": \"2022-10-08T05:00:00Z\",\n            \"CreatedDate\": \"2022-09-28T01:33:16.798123Z\",\n            \"ModifiedDate\": \"2022-09-28T01:33:16.798123Z\",\n            \"MerchantOrderID\": \"46-51606/NY109282022\",\n            \"MerchantSKU\": \"00005D0925D29498\"\n        }\n    ],\n    \"PrevCursor\": null,\n    \"NextCursor\": \"AgICAA\"\n}"},{"id":"ff44d293-f5be-40b5-a60b-110444e261bf","name":"Get All Commissions (v4)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization_header}}","type":"text"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.wfi.re/:version/commission?limit=2&start_modified_date=2022-09-28T12:00:00Z&end_modified_date=2022-09-29T12:00:00Z&sort_by=modified_date&sort_order=asc","protocol":"https","host":["api","wfi","re"],"path":[":version","commission"],"query":[{"key":"limit","value":"2"},{"key":"start_modified_date","value":"2022-09-28T12:00:00Z"},{"key":"end_modified_date","value":"2022-09-29T12:00:00Z"},{"key":"sort_by","value":"modified_date","type":"text"},{"key":"sort_order","value":"asc","type":"text"},{"key":"cursor","value":"AgJUAA","disabled":true}],"variable":[{"key":"version","value":"v4","description":"API version"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Wf-Buildstamp","value":"2022-10-24T18:54:42Z"},{"key":"X-Wf-Devicetoken","value":"d0941a24a66a2e41ddf5f6a17bc5b59b6a21d6d6"},{"key":"X-Wf-Githash","value":"v1.0.15-2963-g0ba6f2a7"},{"key":"Date","value":"Fri, 28 Oct 2022 17:24:54 GMT"},{"key":"Via","value":"1.1 google"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"Commissions\": [\n        {\n            \"CommissionID\": 14735357,\n            \"ApplicationID\": 3,\n            \"MerchantID\": 5483208,\n            \"DeviceID\": 13207430,\n            \"SaleAmount\": {\n                \"Amount\": \"195\",\n                \"Currency\": \"USD\"\n            },\n            \"Amounts\": [\n                {\n                    \"Amount\": \"0.975\",\n                    \"Currency\": \"USD\",\n                    \"SplitPart\": \"DEVICE\"\n                }\n            ],\n            \"Status\": \"PENDING\",\n            \"TrackingCode\": \"012345-6780a-bcdef0-74932\",\n            \"EventDate\": \"2022-09-27T23:37:28Z\",\n            \"LockingDate\": \"2022-10-08T05:00:00Z\",\n            \"CreatedDate\": \"2022-09-28T00:31:03.813088Z\",\n            \"ModifiedDate\": \"2022-09-28T00:31:03.813088Z\",\n            \"MerchantOrderID\": \"24-55839/CAR09272022\",\n            \"MerchantSKU\": \"\"\n        },\n        {\n            \"CommissionID\": 14735886,\n            \"ApplicationID\": 3,\n            \"MerchantID\": 5483208,\n            \"DeviceID\": 13207430,\n            \"SaleAmount\": {\n                \"Amount\": \"238\",\n                \"Currency\": \"USD\"\n            },\n            \"Amounts\": [\n                {\n                    \"Amount\": \"1.19\",\n                    \"Currency\": \"USD\",\n                    \"SplitPart\": \"DEVICE\"\n                }\n            ],\n            \"Status\": \"PENDING\",\n            \"TrackingCode\": \"abc123\",\n            \"EventDate\": \"2022-09-28T00:41:40Z\",\n            \"LockingDate\": \"2022-10-08T05:00:00Z\",\n            \"CreatedDate\": \"2022-09-28T01:33:16.798123Z\",\n            \"ModifiedDate\": \"2022-09-28T01:33:16.798123Z\",\n            \"MerchantOrderID\": \"46-51606/NY109282022\",\n            \"MerchantSKU\": \"00005D0925D29498\"\n        }\n    ],\n    \"PrevCursor\": null,\n    \"NextCursor\": \"AgICAA\"\n}"},{"id":"b4ba3513-15df-4895-aa96-7c6641e062b5","name":"Get All Commissions (v3)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization_header}}","type":"text"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.wfi.re/:version/commission?limit=2&start_modified_date=2022-08-28&end_modified_date=2022-08-30&sort_by=modified_date&sort_order=asc","protocol":"https","host":["api","wfi","re"],"path":[":version","commission"],"query":[{"key":"limit","value":"2"},{"key":"start_modified_date","value":"2022-08-28"},{"key":"end_modified_date","value":"2022-08-30"},{"key":"sort_by","value":"modified_date","type":"text"},{"key":"sort_order","value":"asc","type":"text"},{"key":"cursor","value":"AgJUAA","disabled":true}],"variable":[{"key":"version","value":"v3","description":"API version"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Wf-Buildstamp","value":"2022-07-12T22:33:19Z"},{"key":"X-Wf-Devicetoken","value":"e7f4b3e3c889724e6121373cd6dbd647d4991a47"},{"key":"X-Wf-Githash","value":"v1.0.15-2598-gce4bfd1e"},{"key":"Date","value":"Mon, 29 Aug 2022 18:52:56 GMT"},{"key":"Via","value":"1.1 google"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"Commissions\": [\n        {\n            \"CommissionID\": 13400791,\n            \"ApplicationID\": 3,\n            \"MerchantID\": 71902,\n            \"DeviceID\": 1,\n            \"SaleAmount\": {\n                \"Amount\": \"0\",\n                \"Currency\": \"EUR\"\n            },\n            \"Amount\": {\n                \"Amount\": \"0\",\n                \"Currency\": \"USD\"\n            },\n            \"Status\": \"PENDING\",\n            \"EventDate\": \"2022-08-27T00:00:00Z\",\n            \"CreatedDate\": \"2022-08-28T00:20:09.35991Z\",\n            \"ModifiedDate\": \"2022-08-28T00:20:09.35991Z\",\n            \"MerchantOrderID\": \"1178011328\",\n            \"MerchantSKU\": \"\"\n        },\n        {\n            \"CommissionID\": 13400969,\n            \"ApplicationID\": 3,\n            \"MerchantID\": 5483208,\n            \"DeviceID\": 15848787,\n            \"SaleAmount\": {\n                \"Amount\": \"236\",\n                \"Currency\": \"USD\"\n            },\n            \"Amount\": {\n                \"Amount\": \"0\",\n                \"Currency\": \"USD\"\n            },\n            \"Status\": \"DISQUALIFIED\",\n            \"TrackingCode\": \"abc123\",\n            \"EventDate\": \"2022-08-28T00:43:30Z\",\n            \"CreatedDate\": \"2022-08-28T01:18:38.916892Z\",\n            \"ModifiedDate\": \"2022-08-28T01:18:38.916892Z\",\n            \"MerchantOrderID\": \"36-18724/FLO08282022\",\n            \"MerchantSKU\": \"0D005CB2A985F796\"\n        }\n    ],\n    \"PrevCursor\": null,\n    \"NextCursor\": \"AgICAA\"\n}"},{"id":"434e06b0-9f75-4977-83e4-ff605e0401f8","name":"Get All Commissions (v2)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization_header}}","type":"text"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.wfi.re/:version/commission?limit=2&start_modified_date=2022-08-28&end_modified_date=2022-08-30&sort_by=modified_date&sort_order=asc","protocol":"https","host":["api","wfi","re"],"path":[":version","commission"],"query":[{"key":"limit","value":"2"},{"key":"start_modified_date","value":"2022-08-28"},{"key":"end_modified_date","value":"2022-08-30"},{"key":"sort_by","value":"modified_date","type":"text"},{"key":"sort_order","value":"asc","type":"text"},{"key":"cursor","value":"AgJUAA","disabled":true}],"variable":[{"key":"version","value":"v2","description":"API version"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Wf-Buildstamp","value":"2022-07-12T22:33:19Z"},{"key":"X-Wf-Devicetoken","value":"335357ff1b274a488ba988763a27497740870a1f"},{"key":"X-Wf-Githash","value":"v1.0.15-2598-gce4bfd1e"},{"key":"Date","value":"Mon, 29 Aug 2022 18:52:11 GMT"},{"key":"Via","value":"1.1 google"},{"key":"Alt-Svc","value":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"Commissions\": [\n        {\n            \"ID\": 13400791,\n            \"ApplicationID\": 3,\n            \"MerchantID\": 71902,\n            \"DeviceID\": 1,\n            \"SaleAmount\": \"0\",\n            \"Amount\": \"0\",\n            \"Status\": \"PENDING\",\n            \"EventDate\": \"2022-08-27T00:00:00Z\",\n            \"CreatedDate\": \"2022-08-28T00:20:09.35991Z\",\n            \"ModifiedDate\": \"2022-08-28T00:20:09.35991Z\",\n            \"MerchantOrderID\": \"1178011328\",\n            \"MerchantSKU\": \"\"\n        },\n        {\n            \"ID\": 13400969,\n            \"ApplicationID\": 3,\n            \"MerchantID\": 5483208,\n            \"DeviceID\": 15848787,\n            \"SaleAmount\": \"236\",\n            \"Amount\": \"0\",\n            \"Status\": \"DISQUALIFIED\",\n            \"EventDate\": \"2022-08-28T00:43:30Z\",\n            \"TrackingCode\": \"abc123\",\n            \"CreatedDate\": \"2022-08-28T01:18:38.916892Z\",\n            \"ModifiedDate\": \"2022-08-28T01:18:38.916892Z\",\n            \"MerchantOrderID\": \"36-18724/FLO08282022\",\n            \"MerchantSKU\": \"0D005CB2A985F796\"\n        }\n    ],\n    \"PrevCursor\": null,\n    \"NextCursor\": \"AgICAA\"\n}"}],"_postman_id":"5cc69c1d-fb39-4231-894e-7acf25487c6f"},{"name":"Resend Commission Callback","id":"346d13d9-35dc-45bb-b200-3550cb988e0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization_header}}","type":"text"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://api.wfi.re/v3/commission/4681/send-callback","description":"<p>This method allows for resending the callback for a given commission. This is mostly used for testing/debugging a callback receiver script. To learn more about what callback data, see <a href=\"https://kb.wildfire-corp.com/article/kfgi-syncing-commission-data-via-api-and-callbacks\">https://kb.wildfire-corp.com/article/kfgi-syncing-commission-data-via-api-and-callbacks</a></p>\n","urlObject":{"protocol":"https","path":["v3","commission","4681","send-callback"],"host":["api","wfi","re"],"query":[{"disabled":true,"key":"","value":""},{"disabled":true,"key":"X-WF-DateTime","value":"2018-11-15T23:13:01.000Z"},{"disabled":true,"key":"User-Agent","value":"API-Client-PHP v1.0.9"},{"disabled":true,"key":"Content-Type","value":"application/json"}],"variable":[]}},"response":[{"id":"635c3c98-c308-4bec-8c94-54eb815cc85e","name":"Resend Commission Callback","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{authorization_header}}","type":"text"},{"key":"X-WF-DateTime","value":"{{wf_datetime_header}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://api.wfi.re/v2/commission/4681/send-callback","protocol":"https","host":["api","wfi","re"],"path":["v2","commission","4681","send-callback"],"query":[{"key":"","value":"","type":"text","disabled":true},{"key":"X-WF-DateTime","value":"2018-11-15T23:13:01.000Z","type":"text","disabled":true},{"key":"User-Agent","value":"API-Client-PHP v1.0.9","type":"text","disabled":true},{"key":"Content-Type","value":"application/json","type":"text","disabled":true}]}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Origin"},{"key":"X-Wf-Buildstamp","value":"2018-11-15T16:08:03Z"},{"key":"X-Wf-Devicetoken","value":"cfe4bf3c5a492ec10050d2fb6e59b167e7aecb"},{"key":"X-Wf-Githash","value":"v1.0.15-22-g6b76465"},{"key":"Date","value":"Mon, 19 Nov 2018 19:48:33 GMT"},{"key":"Via","value":"1.1 google"},{"key":"Alt-Svc","value":"clear"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"ID\": 4681,\n    \"ApplicationID\": 3,\n    \"MerchantID\": 5475784,\n    \"DeviceID\": 3451,\n    \"SaleAmount\": \"0\",\n    \"Amount\": \"0\",\n    \"Status\": \"DISQUALIFIED\",\n    \"EventDate\": \"2018-04-09T01:22:17Z\",\n    \"CreatedDate\": \"2018-04-09T07:00:19.598401Z\",\n    \"ModifiedDate\": \"2018-04-10T16:59:22.363036Z\"\n}"}],"_postman_id":"346d13d9-35dc-45bb-b200-3550cb988e0f"}],"id":"db50e1f9-4e38-4417-9f5f-b2a2717a1bc6","event":[{"listen":"prerequest","script":{"id":"9f621c64-b447-454e-91b1-c156749c77f8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a6bfc681-26ca-47fd-8b8c-4e8414095133","type":"text/javascript","exec":[""]}}],"_postman_id":"db50e1f9-4e38-4417-9f5f-b2a2717a1bc6","description":""}],"id":"f419f705-0cb7-4bca-b900-e4f47496bf0b","description":"<p>These API endpoints are to be used exclusively by backend applications and should be considered \"global\" to your partner account as opposed to client endpoints which have a device context.  These endpoints represent backend processes like resending commission callback requests and fetching all commission records for your partner account.</p>\n","event":[{"listen":"prerequest","script":{"id":"822e960f-0f02-4760-bae2-bd803fe4e97e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3b4e87ab-eed0-4d69-a0f0-dcf815241096","type":"text/javascript","exec":[""]}}],"_postman_id":"f419f705-0cb7-4bca-b900-e4f47496bf0b"}],"event":[{"listen":"prerequest","script":{"id":"c03c44f8-faee-43f0-9a33-b1fd024a1d5b","type":"text/javascript","exec":["// Wildfire API Authorization Pre-request Script","// Author: Sam Choukri","// Date: 2017-11-17","","if (!postman.getEnvironmentVariable(\"app_id\")){","    console.log('No app_id value set in environment');","    //postman.no_app_id_set_in_environment();","    return false;","}","","if (!postman.getEnvironmentVariable(\"app_secret\")){","    console.log('No app_secret value set in environment');","    //postman.no_app_secret_set_in_environment();","    return false;","}","","// fetch app credentials from env","var appID = postman.getEnvironmentVariable(\"app_id\").trim(); // contact support@wildlink.me if you need credentials","var appKey = postman.getEnvironmentVariable(\"app_secret\").trim();","","// get the device token if it's set in the env, otherwise we'll generate it (below)","var deviceToken = postman.getEnvironmentVariable(\"device_token\");","","// NOTE: senderToken is only used inside Wildfire for internal operations. Wildfire partners should set this to an empty string.","var senderToken = postman.getEnvironmentVariable(\"sender_token\");","var env = postman.getEnvironmentVariable(\"env\"); // for supporting auth against dev env","","if (!env){","    env = '';","    postman.setEnvironmentVariable(\"env\", env);","}","","// generate a time stamp for the request","var wfTime = new Date().toISOString();","","// get the DeviceKey for the device","var device_key = postman.getEnvironmentVariable(\"device_key\");","","// create the auth headers","var stringToSign = [wfTime, deviceToken, senderToken].join(\"\\n\") + \"\\n\";","var appSignature = CryptoJS.HmacSHA256(stringToSign, appKey).toString(CryptoJS.enc.Hex);","var authorization = \"WFAV1 \" + [appID, appSignature, deviceToken, senderToken].join(\":\");","","// store the auth headers  ","postman.setEnvironmentVariable(\"authorization_header\", authorization);","postman.setEnvironmentVariable(\"wf_datetime_header\", wfTime);","","// if we don't have a device token stored, let's generate and store one (note that the first-ever request will fail since we don't have a device token, but the second request and subsequent requests will succeed)","if (!deviceToken){","    const auth_string = \"Authorization:\" + authorization + \"\\nX-WF-DateTime: \" + wfTime + \"\\nUser-Agent: Postman WF REST example\\n\";","","    const echoPostRequest = {","      url: 'https://'+env+'api.wfi.re/v2/device',","      method: 'POST',","      header: auth_string,","      body: {","        mode: 'raw',","        raw: JSON.stringify({ DeviceKey: device_key })","      }","    };","    pm.sendRequest(echoPostRequest, function (err, res) {","      if (err){","        console.error(err);","      } else {","        postman.setEnvironmentVariable(\"device_token\", res.json().DeviceToken);","        postman.setEnvironmentVariable(\"device_key\", res.json().DeviceKey);","      }","    });","    ","}","",""]}},{"listen":"test","script":{"id":"26ce420b-85ad-41e4-a7bb-73fe2f038d87","type":"text/javascript","exec":[""]}}],"variable":[{"key":"app_id","value":""},{"key":"app_secret","value":""},{"key":"env","value":""}]}