{"info":{"_postman_id":"8c1a0916-50e3-47b0-9399-32bfabd2859e","name":"TicketPlan API","description":"<html><head></head><body><h2 id=\"rest-api\"><strong>REST API</strong></h2>\n<p>The REST API is used for getting premium values (quotes) and for purchasing policies. A quote does not have to be generated in order to create a policy, if you already know the required information.</p>\n<h2 id=\"authentication\"><strong>Authentication</strong></h2>\n<p>In order to use the API, you will require your Distributor ID along with your API username and password. This information is specific to you and carry specific privilages, so ensure you keep the details secure to stop any unauthorized access to the API</p>\n<p>Failure to provide the correct authentication details will result in results being returned as<code>403 Forbidden</code></p>\n<p>API requests must be made over <a href=\"https://en.wikipedia.org/wiki/HTTPS\">HTTPS</a>. Calls made over HTTP will fail.</p>\n<h2 id=\"errors\">Errors</h2>\n<p>The API uses conventional <a href=\"https://en.wikipedia.org/wiki/List_of_HTTP_status_codes\">HTTP response</a> codes to indicate the success or failure of an API request. In general, codes in the <code>2xx</code> range indicate success, codes in the <code>4xx</code> range indicate an error that failed given the information provided (e.g. a required parameter was omitted), and codes in the <code>5xx</code> range indicate an internal error with the API.</p>\n<p><strong>200 OK</strong> - The request has succeeded. The client can read the result of the request in the body and the headers of the response.</p>\n<p><strong>400 Bad Request</strong> - The request could not be understood by the server due to malformed syntax. The message body will contain more information</p>\n<p><strong>401 Unauthorized</strong> - The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.</p>\n<p><strong>403 Forbidden</strong> - The server understood the request, but is refusing to fulfill it. The most common reason to receive this status code would be because your account doesn't have permission to view the selected resource.</p>\n<p><strong>404 Not Found</strong> - The requested resource could not be found. This error can be due to a temporary or permanent condition.</p>\n<p><strong>422 Unprocessable Entity</strong> - Response status code indicates that the server understands the content type of the request entity, and the syntax of the request entity is correct, but it was unable to process the contained instructions.</p>\n<p><strong>500 Internal Server Error</strong> - You should never receive this error but if you do please report it to us so we can investiage.</p>\n<h2 id=\"response\">Response</h2>\n<p>All API responses will response data as JSON objects.</p>\n<h2 id=\"distributorid\">DistributorID</h2>\n<p>All distributors have their own unique ID that links quotes and sales. The DistributorID would have been given to you as part of the onboarding process and must be sent with all API requests.</p>\n<h2 id=\"api-username-and-password\">API Username and Password</h2>\n<p>All API requests must be supplied with your API username and Password. Your credentials would have been given to you as part of the onboarding process.</p>\n<p>To send the API username / password, add an Authorization header to the API request with a value of username:password which needs to be base64-encoded</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"7294044","collectionId":"8c1a0916-50e3-47b0-9399-32bfabd2859e","publishedId":"2s9YeBdDiQ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-19T11:41:13.000Z"},"item":[{"name":"getpremium","id":"db88ae63-cfff-4c0b-b9a6-0693679498dd","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"GET","header":[{"key":"Authorization","value":"ZXZlbnR3b3Jrczp6dHd1UkxjYlY0MnI1Qzg3RlFEWkFU","description":"<p>Base64 encoded username:password</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"country\": \"MT\",\r\n    \"rate_type\": 1,\r\n    \"ticket_prices\": [\r\n        {\r\n            \"price\": 4000\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/getpremium/21FFD807-6080-454B-ABCD-5E77833F9C7C","description":"<p>This HTTP GET request is used to retrieve premium information to build a specific quote. The request should be made to the following endpoint: <code>https://api.ticketplan.com/api/v1/getpremium/{distributorID}</code></p>\n<h3 id=\"request\">Request</h3>\n<p>This request retrives specific distribution rates from the API.</p>\n<p>The following JSON is required to return the correct distribution rates:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"country\": \"\",\n    \"rate_type\": 0,\n    \"ticket_prices\": [\n        {\n            \"price\": 0\n        }\n    ]\n}\n\n</code></pre>\n<p>The request body includes the following properties:</p>\n<ul>\n<li><p>country: The 2 digit ISO country code for the rates to return.</p>\n</li>\n<li><p>rate_type: 1 for Banded prices or 2 for Unbanded prices.</p>\n</li>\n<li><p>ticket_prices: An array of objects representing individual ticket prices that you wish to retrive a premium for. Note if you require premiums for different countries, then these need to be sent as seperate requests. Each rate object include the following properties:</p>\n<ul>\n<li>price: The ticket price that you wish to retrive the premium for.</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response to this request will have a status code of 200, indicating a successful request. The response body will contain premium information for the quote. Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"quote_id\": \"58513880-30FB-462F-B96B-8F74257C1C51\",\n    \"total_price\": 2500,\n    \"total_premium\": 150,\n    \"total_ipt\": 38,\n    \"total_nett\": 112,\n    \"rates\": [\n        {\n            \"price\": 2500,\n            \"premium\": 150,\n            \"ipt\": 38,\n            \"nett\": 112\n        }\n    ]\n}\n\n</code></pre>\n<p>The response body includes the following properties:</p>\n<ul>\n<li><p><code>quote_id</code>: The unique ID of the quote.</p>\n</li>\n<li><p><code>total_price</code>: The total cost of all the tickets in the request.</p>\n</li>\n<li><p><code>total_premium</code>: The total premium amount for all the tickets quoted.</p>\n</li>\n<li><p><code>total_ipt</code>: The total Insurance Premium Tax for all the tickets quoted.</p>\n</li>\n<li><p><code>total_nett</code>: The total nett premium for all the tickets quoted.</p>\n</li>\n<li><p><code>rates</code>: An array of objects representing individual rates for the premium. Each rate object includes the following properties:</p>\n<ul>\n<li><p><code>price</code>: The price of the ticket.</p>\n</li>\n<li><p><code>premium</code>: The premium amount for the ticket.</p>\n</li>\n<li><p><code>ipt</code>: The insurance premium tax for the premium.</p>\n</li>\n<li><p><code>nett</code>: The nett premium.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Please note that the values in the example response are placeholders and may not reflect the actual values returned by the API.</p>\n","urlObject":{"protocol":"https","path":["api","v1","getpremium","21FFD807-6080-454B-ABCD-5E77833F9C7C"],"host":["api","ticketplan","com"],"query":[],"variable":[]}},"response":[{"id":"a145bc48-2e35-4009-a17f-cc8f9d8d7599","name":"GET","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"dGVzdDpXZWxjb21lMTIz","description":"Base64 encoded username:password","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"country\": \"DE\",\r\n    \"rate_type\": 1,\r\n    \"ticket_prices\": [\r\n        {\r\n            \"price\": 6500\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/getpremium/AD28CF2E-0054-4571-8E81-90873D7151BC"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"quote_id\": \"58513880-30FB-462F-B96B-8F74257C1C51\",\n    \"total_price\": 2500,\n    \"total_premium\": 150,\n    \"total_ipt\": 38,\n    \"total_nett\": 112,\n    \"rates\": [\n        {\n            \"price\": 2500,\n            \"premium\": 150,\n            \"ipt\": 38,\n            \"nett\": 112\n        }\n    ]\n}"}],"_postman_id":"db88ae63-cfff-4c0b-b9a6-0693679498dd"},{"name":"createpolicy","id":"5172afee-3b6e-4b44-9091-684e27097da1","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Authorization","value":"dGVzdDpXZWxjb21lMTIz","type":"text","description":"<p>Base64 encoded username:password</p>\n"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"quote_id\": \"\",\r\n    \"quote_country\": \"BE\",\r\n    \"booking_date\": \"2023-10-13\",\r\n    \"quantity\": 1,\r\n    \"order_number\": \"123456\",\r\n    \"booking_fee\": 750,\r\n    \"ticket_details\": [\r\n        {\r\n            \"ticket_ref\": \"TCX-TEST-001\",\r\n            \"price\": 6500,\r\n            \"premium\": 350\r\n        }\r\n    ],\r\n    \"customer_data\": {\r\n        \"firstname\": \"John\",\r\n        \"lastname\": \"Smith\",\r\n        \"email\": \"john.smith@pierinsurance.com\",\r\n        \"address_1\": \"101 High Street\",\r\n        \"address_2\": \"\",\r\n        \"city\": \"Southend On Sea\",\r\n        \"county\": \"Essex\",\r\n        \"postcocde\": \"SS1 1HZ\",\r\n        \"country\": \"United Kingdom\",\r\n        \"language\": \"EN\",\r\n        \"telephone_no\": \"01702 123456\"\r\n    },\r\n    \"event\": {\r\n        \"event_name\": \"Champions League Final\",\r\n        \"event_start_date\": \"2024-05-31\",\r\n        \"event_end_date\": \"2024-05-31\",\r\n        \"venue_name\": \"Wembley Stadium\",\r\n        \"venue_location\": \"London\",\r\n        \"venue_country\": \"GB\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/createpolicy/{DistributorID}","description":"<p>This API endpoint allows you to create a new policy by sending an HTTP POST request to the specified URL. The request should include the necessary parameters to create the policy.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: POST</li>\n<li>URL: <code>https://api.ticketplan.com/api/v1/createpolicy/{distributorID}</code></li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response of the last execution of this API request was as follows:</p>\n<ul>\n<li>Status: 200</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"policyid\": \"6303f099-d635-4d01-9326-20468b26cf78\",\n    \"total_premium\": 350,\n    \"total_ipt\": 30,\n    \"email_result\": {\n        \"sent\": false,\n        \"reason\":\"documents not required to be sent\"\n    }\n}\n\n</code></pre>\n<p>The response body contains the details of the newly created policy. The <code>policyid</code> field represents the unique identifier of the policy. The <code>total_premium</code> field indicates the total premium amount for the policy, while the <code>total_ipt</code> field represents the total insurance premium tax.</p>\n<p>Additionally, the <code>email_result</code> field provides information about the email sent as a result of creating the policy. The <code>sent</code> field is a boolean value indicating whether the email was successfully sent or not. The <code>reason</code> field provides any additional information or error message related to the email sending process.</p>\n<p>Please note that the specific values in the response may vary for each execution and should be retrieved from the response dynamically.</p>\n","urlObject":{"protocol":"https","path":["api","v1","createpolicy","{DistributorID}"],"host":["api","ticketplan","com"],"query":[],"variable":[]}},"response":[{"id":"e8f2eb8e-5d8f-484b-992a-e25d07783440","name":"POST","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"dGVzdDpXZWxjb21lMTIz","type":"text","description":"Base64 encoded username:password"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"quote_id\": \"\",\r\n    \"quote_country\": \"BE\",\r\n    \"booking_date\": \"2023-10-13\",\r\n    \"quantity\": 1,\r\n    \"order_number\": \"123456\",\r\n    \"booking_fee\": 750,\r\n    \"ticket_details\": [\r\n        {\r\n            \"ticket_ref\": \"TCX-TEST-001\",\r\n            \"price\": 6500,\r\n            \"premium\": 350\r\n        }\r\n    ],\r\n    \"customer_data\": {\r\n        \"firstname\": \"John\",\r\n        \"lastname\": \"Smith\",\r\n        \"email\": \"john.smith@pierinsurance.com\",\r\n        \"address_1\": \"101 High Street\",\r\n        \"address_2\": \"\",\r\n        \"city\": \"Southend On Sea\",\r\n        \"county\": \"Essex\",\r\n        \"postcocde\": \"SS1 1HZ\",\r\n        \"country\": \"United Kingdom\",\r\n        \"language\": \"EN\",\r\n        \"telephone_no\": \"01702 123456\"\r\n    },\r\n    \"event\": {\r\n        \"event_name\": \"Champions League Final\",\r\n        \"event_start_date\": \"2024-05-31\",\r\n        \"event_end_date\": \"2024-05-31\",\r\n        \"venue_name\": \"Wembley Stadium\",\r\n        \"venue_location\": \"London\",\r\n        \"venue_country\": \"GB\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/createpolicy/AD28CF2E-0054-4571-8E81-90873D7151BC"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"policyid\": \"6303f099-d635-4d01-9326-20468b26cf78\",\n    \"total_premium\": 350,\n    \"total_ipt\": 30,\n    \"email_result\": {\n        \"sent\": false,\n        \"reason\": \"documents not required to be sent\"\n    }\n}"}],"_postman_id":"5172afee-3b6e-4b44-9091-684e27097da1"},{"name":"amendpolicy","id":"15846749-529c-4fb3-bc1c-c4791d2dc1a0","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Authorization","value":"dGVzdDpXZWxjb21lMTIz","type":"text","description":"<p>Base64 encoded username:password</p>\n"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"quote_id\": \"\",\r\n    \"quote_country\": \"BE\",\r\n    \"booking_date\": \"2023-10-13\",\r\n    \"quantity\": 1,\r\n    \"order_number\": \"123456\",\r\n    \"booking_fee\": 750,\r\n    \"ticket_details\": [\r\n        {\r\n            \"ticket_ref\": \"TCX-TEST-001\",\r\n            \"price\": 6500,\r\n            \"premium\": 350\r\n        }\r\n    ],\r\n    \"customer_data\": {\r\n        \"firstname\": \"John\",\r\n        \"lastname\": \"Smith\",\r\n        \"email\": \"john.smith@pierinsurance.com\",\r\n        \"address_1\": \"101 High Street\",\r\n        \"address_2\": \"\",\r\n        \"city\": \"Southend On Sea\",\r\n        \"county\": \"Essex\",\r\n        \"postcocde\": \"SS1 1HZ\",\r\n        \"country\": \"United Kingdom\",\r\n        \"language\": \"EN\",\r\n        \"telephone_no\": \"01702 123456\"\r\n    },\r\n    \"event\": {\r\n        \"event_name\": \"Champions League Final\",\r\n        \"event_start_date\": \"2024-05-31\",\r\n        \"event_end_date\": \"2024-05-31\",\r\n        \"venue_name\": \"Wembley Stadium\",\r\n        \"venue_location\": \"London\",\r\n        \"venue_country\": \"GB\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/amendpolicy/{DistributorID}","description":"<p>This API endpoint allows you to amend an existing policy by sending an HTTP POST request to the specified URL. This endpoint will cancel the existing tickets based on the \"ticket_ref\" field(s) and setup the policy based on the details in the JSON with the new ticket details. If the existing policy that the tickets are attached too has no non-cancelled tickets on the policy, the policy will also be cancelled. The request should include the necessary parameters to create the policy.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Method: POST</li>\n<li>URL: <code>https://api.ticketplan.com/api/v1/amendpolicy/{distributorID}</code></li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response of the last execution of this API request was as follows:</p>\n<ul>\n<li>Status: 200</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"policyid\": \"6303f099-d635-4d01-9326-20468b26cf78\",\n    \"total_premium\": 350,\n    \"total_ipt\": 30,\n    \"email_result\": {\n        \"sent\": false,\n        \"reason\":\"documents not required to be sent\"\n    }\n}\n\n</code></pre>\n<p>The response body contains the details of the newly created policy. The <code>policyid</code> field represents the unique identifier of the policy. The <code>total_premium</code> field indicates the total premium amount for the policy, while the <code>total_ipt</code> field represents the total insurance premium tax.</p>\n<p>Additionally, the <code>email_result</code> field provides information about the email sent as a result of creating the policy. The <code>sent</code> field is a boolean value indicating whether the email was successfully sent or not. The <code>reason</code> field provides any additional information or error message related to the email sending process.</p>\n<p>Please note that the specific values in the response may vary for each execution and should be retrieved from the response dynamically.</p>\n","urlObject":{"protocol":"https","path":["api","v1","amendpolicy","{DistributorID}"],"host":["api","ticketplan","com"],"query":[],"variable":[]}},"response":[{"id":"3236ddd5-eed9-4f8c-887f-140abaaffd59","name":"POST","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"dGVzdDpXZWxjb21lMTIz","type":"text","description":"Base64 encoded username:password"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"quote_id\": \"\",\r\n    \"quote_country\": \"BE\",\r\n    \"booking_date\": \"2023-10-13\",\r\n    \"quantity\": 1,\r\n    \"order_number\": \"123456\",\r\n    \"booking_fee\": 750,\r\n    \"ticket_details\": [\r\n        {\r\n            \"ticket_ref\": \"TCX-TEST-001\",\r\n            \"price\": 6500,\r\n            \"premium\": 350\r\n        }\r\n    ],\r\n    \"customer_data\": {\r\n        \"firstname\": \"John\",\r\n        \"lastname\": \"Smith\",\r\n        \"email\": \"john.smith@pierinsurance.com\",\r\n        \"address_1\": \"101 High Street\",\r\n        \"address_2\": \"\",\r\n        \"city\": \"Southend On Sea\",\r\n        \"county\": \"Essex\",\r\n        \"postcocde\": \"SS1 1HZ\",\r\n        \"country\": \"United Kingdom\",\r\n        \"language\": \"EN\",\r\n        \"telephone_no\": \"01702 123456\"\r\n    },\r\n    \"event\": {\r\n        \"event_name\": \"Champions League Final\",\r\n        \"event_start_date\": \"2024-05-31\",\r\n        \"event_end_date\": \"2024-05-31\",\r\n        \"venue_name\": \"Wembley Stadium\",\r\n        \"venue_location\": \"London\",\r\n        \"venue_country\": \"GB\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/amendpolicy/AD28CF2E-0054-4571-8E81-90873D7151BC"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"policyid\": \"6303f099-d635-4d01-9326-20468b26cf78\",\n    \"total_premium\": 350,\n    \"total_ipt\": 30,\n    \"email_result\": {\n        \"sent\": false,\n        \"reason\": \"documents not required to be sent\"\n    }\n}"}],"_postman_id":"15846749-529c-4fb3-bc1c-c4791d2dc1a0"},{"name":"cancelpolicy","id":"128d3e3e-2886-46b2-864f-b7facb40e2f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"dGVzdDpXZWxjb21lMTIz","type":"text","description":"<p>Base64 encoded username:password</p>\n"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"policyid\": \"6303f099-d635-4d01-9326-20468b26cf78\",\r\n    \"tickets\": [\r\n        {\r\n            \"ticket_ref\": \"TCX-TEST-001\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/cancelpolicy/{DistributorID}","description":"<p>This API endpoint is used to cancel a policy by sending an HTTP POST request to the specified URL. The request should include the distributor ID in the URL.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <code>https://api.ticketplan.com/api/v1/cancelpolicy/{distributorID}</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response to this request will have a status code of 200, indicating a successful request. The response body will contain information for the requested cancellation. Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"ticket_ref\": \"TCX-TEST-001\",\n        \"result\": true,\n        \"reason\": \"\"\n    }\n]\n\n</code></pre>\n<p>The response is an array containing a single or multiple objects. The object has the following properties:</p>\n<ul>\n<li><p><code>ticket_ref</code> (string): The reference number of the ticket associated with the cancellation.</p>\n</li>\n<li><p><code>result</code> (boolean): Indicates whether the cancellation was successful (<code>true</code>) or not (<code>false</code>).</p>\n</li>\n<li><p><code>reason</code> (string): A description of the reason if the cancellation operation failed.</p>\n</li>\n</ul>\n<p>Please note that the actual values of <code>ticket_ref</code> and <code>reason</code> may vary in the response.</p>\n","urlObject":{"protocol":"https","path":["api","v1","cancelpolicy","{DistributorID}"],"host":["api","ticketplan","com"],"query":[],"variable":[]}},"response":[{"id":"92fcfaec-bff0-452b-bb50-82c88f0ab1b0","name":"cancelpolicy","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"dGVzdDpXZWxjb21lMTIz","type":"text","description":"Base64 encoded username:password"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"policyid\": \"6303f099-d635-4d01-9326-20468b26cf78\",\r\n    \"tickets\": [\r\n        {\r\n            \"ticket_ref\": \"TCX-TEST-001\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/cancelpolicy/AD28CF2E-0054-4571-8E81-90873D7151BC"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ticket_ref\": \"TCX-TEST-001\",\n        \"result\": true,\n        \"reason\": \"\"\n    }\n]"}],"_postman_id":"128d3e3e-2886-46b2-864f-b7facb40e2f8"},{"name":"uncancelpolicy","id":"5add65aa-29c9-42da-a7cd-d6cf8c08e394","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"dGVzdDpXZWxjb21lMTIz","description":"<p>Base64 encoded username:password</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"policyid\": \"6303f099-d635-4d01-9326-20468b26cf78\",\r\n    \"tickets\": [\r\n        {\r\n            \"ticket_ref\": \"TCX-TEST-001\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/uncancelpolicy/{DistributorID}","description":"<p>This API endpoint is used to uncancel a policy by sending an HTTP POST request to the specified URL. The request should include the distributor ID in the URL.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <code>https://api.ticketplan.com/api/v1/uncancelpolicy/{distributorID}</code></p>\n</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response to this request will have a status code of 200, indicating a successful request. The response body will contain information for the requested cancellation. Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"ticket_ref\": \"TCX-TEST-001\",\n        \"result\": true,\n        \"reason\": \"\"\n    }\n]\n\n</code></pre>\n<p>The response is an array containing a single or multiple objects. The object has the following properties:</p>\n<ul>\n<li><p><code>ticket_ref</code> (string): The reference number of the ticket associated with the uncancellation.</p>\n</li>\n<li><p><code>result</code> (boolean): Indicates whether the uncancellation was successful (<code>true</code>) or not (<code>false</code>).</p>\n</li>\n<li><p><code>reason</code> (string): A description of the reason if the uncancellation operation failed.</p>\n</li>\n</ul>\n<p>Please note that the actual values of <code>ticket_ref</code> and <code>reason</code> may vary in the response.</p>\n","urlObject":{"protocol":"https","path":["api","v1","uncancelpolicy","{DistributorID}"],"host":["api","ticketplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5add65aa-29c9-42da-a7cd-d6cf8c08e394"},{"name":"updatecustomerdetails","id":"ec755d2c-b804-46df-80fa-24ff39cc83ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"dGVzdDpXZWxjb21lMTIz","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"firstname\": \"Jurgen\",\r\n    \"lastname\": \"Klopp\",\r\n    \"email\": \"jurgen.klopp@me.com\",\r\n    \"address_1\": \"\",\r\n    \"address_2\": \"\",\r\n    \"city\": \"\",\r\n    \"county\": \"\",\r\n    \"postcocde\": \"\",\r\n    \"country\": \"\",\r\n    \"language\": \"\",\r\n    \"telephone_no\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.ticketplan.com/api/v1/updatecustomerdetails/{DistributorID}/{PolicyID}","description":"<p>This API endpoint is used to update customer policy details by sending an HTTP POST request to the specified URL. The request should include the distributor ID and the policy ID in the URL.</p>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li><p>Method: POST</p>\n</li>\n<li><p>URL: <code>https://api.ticketplan.com/api/v1/updatecustomerdetails/{distributorID}/{policyID}</code></p>\n</li>\n</ul>\n<p>Any of the fields in the JSON body can be used to update the clients details associated with the policy. If you do not with to update a field, simply set the value to an empty string.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response to this request will have a status code of 200, indicating a successful request. The response body will contain information for the requested update. Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"completed\": true,\n        \"errordesc\": \"\"     \n    }\n]\n\n</code></pre>\n<p>The response will indicate if the update has completed successfully or not and what error occured if the update failed.</p>\n","urlObject":{"protocol":"https","path":["api","v1","updatecustomerdetails","{DistributorID}","{PolicyID}"],"host":["api","ticketplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec755d2c-b804-46df-80fa-24ff39cc83ba"}]}