{"info":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","description":"<html><head></head><body><img src=\"https://smshosting.s3.eu-west-3.amazonaws.com/cover-progetto.jpg\">\n\n<p>Thanks to the REST API you can integrate your software with our gateway in a <strong>simple</strong> and <strong>fast</strong> way.</p>\n<p>The REST API are based on HTTP methods so for the integration you can use an HTTP Client written in <strong>any programming language</strong>.</p>\n<p>Through the REST API you can perform the following operations:</p>\n<ul>\n<li><p>send single sms and campaigns</p>\n</li>\n<li><p>send email campaigns</p>\n</li>\n<li><p>search and show the details of sent sms</p>\n</li>\n<li><p>search and visualize the sms received with the reception service</p>\n</li>\n<li><p>display your Smshosting.it profile data</p>\n</li>\n<li><p>manage contacts and groups of the address book</p>\n</li>\n<li><p>manage Fidelity Cards</p>\n</li>\n<li><p>manage coupons</p>\n</li>\n</ul>\n<h2 id=\"before-you-begin\">Before you begin</h2>\n<p>If you haven't already done so, <a href=\"https://cloud.smshosting.it/sms/signupInit.ic\">register to Smshosting.it</a> for free.</p>\n<h2 id=\"services-base-url\">Services base URL</h2>\n<p>The base URL to use to access the REST API is the following</p>\n<p><code>https://api.smshosting.it/rest/api</code></p>\n<p>or, for resellers</p>\n<p><code>https://api.smstools.it/rest/api</code></p>\n<hr>\n<p><strong>For security reasons, REST API only allows HTTPS connections (HTTP is not supported)</strong>.</p>\n<hr>\n<h1 id=\"make-a-request\">Make a request</h1>\n<h2 id=\"authentication\">Authentication</h2>\n<p>All requests to the REST API need to be authenticated using the <strong>HTTP Basic authentication</strong>.</p>\n<p>The username and password to be provided are the <strong>AUTH_KEY</strong> and <strong>AUTH_SECRET</strong> codes associated to your profile on <a href=\"https://www.smshosting.it\">Smshosting.it</a>. Visit the <a href=\"https://cloud.smshosting.it/sms/user/securityApiInit.ic\">API security management</a> section in your private area to retrieve them.</p>\n<p>You can test your credentials by simply calling from the <strong>browser</strong> the following URL:</p>\n<p><code>https://AUTH_KEY:AUTH_SECRET@api.smshosting.it/rest/api/user</code></p>\n<p>or by running from Linux shell the command</p>\n<p><code>curl --user AUTH_KEY:AUTH_SECRET https://api.smshosting.it/rest/api/user</code></p>\n<p>The HTTP error 401 will be received if the authentication fails.</p>\n<h2 id=\"econding-e-content-type\">Econding e Content-Type</h2>\n<p>All requests to the REST API <strong>must</strong> be UTF-8 encoded.</p>\n<p><strong>HTTP POST</strong> and <strong>HTTP PUT</strong> must have <strong>Content-Type</strong> in the header set as <code>application/x-www-form-urlencoded</code> unless otherwise indicated.</p>\n<h2 id=\"choose-the-response-format\">Choose the response format</h2>\n<p><a href=\"https://www.smshosting.it\">Smshosting.it</a> REST API can return information in either <strong>JSON</strong> (default) or <strong>XML</strong> format.</p>\n<p>To get the response in the desired format use the HTTP header \"<strong>Accept</strong>\" in your request.</p>\n<ul>\n<li><strong>Accept:application/json</strong> to get a JSON</li>\n</ul>\n<p><code>curl -H \"Accept: application/json\" --user AUTH_KEY:AUTH_SECRET https://api.smshosting.it/rest/api/user</code></p>\n<ul>\n<li><strong>Accept:application/xml</strong> to get an XML</li>\n</ul>\n<p><code>curl -H \"Accept: application/xml\" --user AUTH_KEY:AUTH_SECRET https://api.smshosting.it/rest/api/user</code></p>\n<h1 id=\"deprecation-of-tls-10-and-11\">Deprecation of TLS 1.0 and 1.1</h1>\n<p>We want to inform you that, in order to guarantee the highest security standards, <strong>we will no longer support TLS 1.0 and TLS 1.1 cryptography protocols since the 31st of March 2023</strong> allowing the access using only <strong>TLS 1.2 or higher</strong>.</p>\n<h1 id=\"response-handling\">Response handling</h1>\n<h2 id=\"response-codes-http-status-code\">Response Codes (HTTP Status Code)</h2>\n<p>For each request, the REST API returns one of the following <strong>HTTP Status Codes</strong>:</p>\n<ul>\n<li><p><code>200</code> - Request completed successfully</p>\n</li>\n<li><p><code>204</code> - Request completed successfully. Deleted Resource.</p>\n</li>\n<li><p><code>400</code> - Missing parameter</p>\n</li>\n<li><p><code>401</code> - Authentication failed</p>\n</li>\n<li><p><code>404</code> - Resource not found</p>\n</li>\n<li><p><code>405</code> - HTTP method not allowed</p>\n</li>\n<li><p><code>500</code> - Unexpected server error</p>\n</li>\n</ul>\n<h2 id=\"response-content\">Response Content</h2>\n<p>For every <strong>HTTP GET</strong> and <strong>HTTP POST</strong> request completed successfully (<strong>HTTP status equal to 200</strong>) the REST API returns a JSON/XML as content.</p>\n<p>In case of a successful <strong>HTTP PUT</strong> and <strong>HTTP DELETE</strong> call (<strong>HTTP status equal to 200 or 204</strong>) the content of the response will be empty.</p>\n<p>If a call terminates with an error (<strong>HTTP status other than 200 or 204</strong>), a JSON/XML explaining the error is returned:</p>\n<ul>\n<li><p><code>errorCode</code> - HTTP status code</p>\n</li>\n<li><p><code>errorMsg</code> - Detailed error code</p>\n</li>\n</ul>\n<p>For example, if the authentication fails the REST API will return a 401 HTTP Status Code and the following JSON as content:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n   \"errorMsg\":\"BAD_CREDENTIALS\",\n   \"errorCode\":401\n}\n\n</code></pre><h2 id=\"pagination\">Pagination</h2>\n<p>Some resources (sent or received sms search, contact search, etc.) return paginated results.</p>\n<p>For example the sent sms search returns the following JSON</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n   \"metadata\":{\n      \"count\":1,\n      \"offset\":0,\n      \"limit\":20\n   },\n   \"smsList\":[\n      {\n         \"id\":389395385,\n         \"to\":\"393480000000\",\n         \"text\":\"Test Sms\",\n         \"from\":\"mrossi\",\n         \"status\":\"DELIVERED\",\n         \"insertDate\":\"2014-01-13T15:01:35+0100\",\n         \"sentDate\":\"2014-01-13T15:01:37+0100\",\n         \"deliveryDate\":\"2014-01-13T15:01:40+0100\",\n         \"transactionId\":\"72810108d4114097b9edb42b255b273c\",\n         \"price\":0.0945\n      }\n   ]\n}\n\n</code></pre><p>The <code>metadata</code> field contains useful information for managing the pagination of results.</p>\n<p>The <code>count</code> property indicates the total number of results found for that search.</p>\n<p>The <code>offset</code> and <code>limit</code> fields indicate respectively the index of the first result and the number of results returned by the call.</p>\n<p><code>offset</code> and <code>limit</code> can be used as parameters in the request to control the range of results returned.</p>\n<p>For example, if a search finds 100 results and the page size is 20 elements</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n   \"metadata\":{\n      \"count\":100,\n      \"offset\":0,\n      \"limit\":20\n   },\n   .......\n}\n\n</code></pre><p>it will be possible to get 5 pages using the following values of <code>offset</code> and <code>limit</code>:</p>\n<ul>\n<li><p>page 1 - <code>offset=0&amp;limit=20</code></p>\n</li>\n<li><p>page 2 - <code>offset=20&amp;limit=20</code></p>\n</li>\n<li><p>page 3 - <code>offset=40&amp;limit=20</code></p>\n</li>\n<li><p>page 4 - <code>offset=60&amp;limit=20</code></p>\n</li>\n<li><p>page 5 - <code>offset=80&amp;limit=20</code></p>\n</li>\n</ul>\n<h1 id=\"libraries\">Libraries</h1>\n<h2 id=\"java\">Java</h2>\n<p>It allows you to integrate our services into your <em>Java</em> projects, adding the ability to send SMS, Email, manage customers and much more.<br><a href=\"https://github.com/smshosting/smshosting-api-java-client\">View Sources</a></p>\n<h2 id=\"php\">PHP</h2>\n<p>Integrate Smshosting functionality into your PHP project.<br><a href=\"https://github.com/smshosting/smshosting-api-php-client\">View Sources</a></p>\n<h2 id=\"c\">C#</h2>\n<p>C# library that allows you to integrate Smshosting in your projects: SMS, Email, customers management and much more. You can find it on <a href=\"https://github.com/smshosting/smshosting-api-cs-client\">Github</a> or <a href=\"https://www.nuget.org/packages?q=smshosting\">NuGet</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Make a request","slug":"make-a-request"},{"content":"Deprecation of TLS 1.0 and 1.1","slug":"deprecation-of-tls-10-and-11"},{"content":"Response handling","slug":"response-handling"},{"content":"Libraries","slug":"libraries"}],"owner":"1793341","collectionId":"26c7eb83-3738-43c5-889f-bef45346c9d8","publishedId":"UV5XhcrB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-10-19T09:42:35.000Z"},"item":[{"name":"Send SMS","item":[{"name":"Send SMS","id":"be77bcba-0752-42a9-b0f3-1d3f89c38f05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"from","value":"www.smshosting.it","description":"<p>[String] <em>(Optional)</em></p>\n<p>The sender of the SMS.</p>\n<p>It can be a validated phone number or an alphanumeric string of maximum 11 characters. If not specified, the default sender of your profile will be used.</p>\n<p>To use an alphanumeric sender it is mandatory to register it. This procedure can be done from our web panel or via API.</p>\n<p><strong>Unverified senders will be replaced with a random numeric sender</strong>.</p>\n","type":"text","disabled":true},{"key":"to","value":"393480000000","description":"<p>[String] <em>(Optional. One parameter between <strong>to</strong> and <strong>group</strong> must be set)</em></p>\n<p>The recipient of the message.</p>\n<p>It must be a cell phone number including country code.\nYou can specify <strong>multiple phone numbers</strong> (max 10 numbers) by separating them with the comma character \"<strong>,</strong>\".\nIf there are more than 10 recipients, we suggest to use the send bulk request.</p>\n<p>For example:</p>\n<p><code>393481234567</code> or <code>393481234567,393481234568,393481234568</code></p>\n<p>Each object must have the msisdn property valorized.\nThe other properties of these objects can be used to customize the text of the message (see the text field).</p>\n<p>For example:</p>\n<p><strong>[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]</strong></p>\n","type":"text"},{"key":"group","value":"gruppo","description":"<p>[String] <em>(Optional. One parameter between <strong>to</strong> and <strong>group</strong> must be set)</em></p>\n<p><strong>Id</strong> of the group in the Address Book to which you want to send the message.</p>\n<p>It is possible to specify multiple address book groups by separating them with the comma character \",\".</p>\n<p>For example, if in the address book there are the groups Friends (<code>id=1</code>) and School (<code>id=2</code>) it will be possible to indicate:</p>\n<p><strong>1</strong> or <strong>1,2</strong></p>\n","type":"text","disabled":true},{"key":"text","value":"sms di test","description":"<p>[String] <em>(Required)</em></p>\n<p>Text of the message.\nIf the message exceeds 160 characters, <a href=\"https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate\">multiple concatenated sms</a> up to a maximum of 7 are sent.</p>\n<p>Some <a href=\"https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate\">extended characters occupy 2 characters</a>. If an SMS exceed the standard length of 160 characters because of some extended characters, these will be replaced with simple characters in order to mantain the cost of a single SMS instead of the cost of 2 SMS.</p>\n<p>The text can contain <strong>placeholders</strong> that will be replaced by the values associated with the respective recipient when sending.\nThe placeholder must be specified with the syntax <strong>${property name}</strong>.</p>\n<p>In case the text contains <strong>placeholders</strong> the <strong>to</strong> field must be valorized with a JSON array and each object of the array must contain the property indicated in the placeholder.</p>\n<p>For example:\nto=[{msisdn:'393481234567',<strong>name:'Mario Rossi'</strong>},{msisdn:'393481234568',<strong>name:'Luigi Bianchi'</strong>}]\ntext=Test SMS to <strong>${name}</strong></p>\n","type":"text"},{"key":"date","value":"2017-03-24T00:00:00+0100","description":"<p>[String] <em>(Optional)</em></p>\n<p>Date (in <strong>yyyy-MM-ddTHH:mm:ssZ</strong> format) on which the message will be sent. If not specified, the message is sent immediately.\nThe <strong>Z</strong> character indicates the timezone in RFC 822 4-digit format. (For Italy +0200 during summer time and +0100 during the rest of the year).</p>\n<p>For example:\n<strong>2014-12-25T08:00:00+0200</strong> indicate the 25/12/2014 at 08:00:00 referring to GMT +2</p>\n","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"<p>[String] <em>(Optional)</em></p>\n<p>A personal identifier for the sending.</p>\n<p>Allows you to set an identifier to all SMS, so that you can use it to retrieve the status of all the SMS. <strong>Max 60 characters</strong>.</p>\n","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"<p>[String] <em>(Optional)</em></p>\n<p>Allows you to make the call without actually sending the message.\nUseful parameter when developing possible integrations with the REST API.</p>\n<p>Possible values <strong>true/false</strong></p>\n","type":"text"},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"<p>[String] <em>(Optional)</em></p>\n<p>URL to which a notification will be sent via HTTP/HTTPS with the status (Delivered, Not Delivered) of the SMS.</p>\n<p>See <a href=\"#b4c32b14-69b0-4546-9dcd-e1ea761c9b41\">SMS Status Callback management</a></p>\n","type":"text"},{"key":"encoding","value":"7BIT","description":"<p>[String] <em>(Optional)</em></p>\n<p>The encoding to be used for the message text.\nPossible values are:</p>\n<ul>\n<li><p><strong>7BIT</strong> - <strong>standard</strong> encoding for GSM messages. Maximum length for a single sms is <strong>160 characters</strong>.</p>\n</li>\n<li><p><strong>UCS2</strong> - 8-bit encoding for sending GSM messages with non-ASCII content. Maximum length for a single sms is <strong>70 characters</strong>.</p>\n</li>\n<li><p><strong>AUTO</strong> - The encoding to be used is automatically identified based on the content of the text field.</p>\n</li>\n</ul>\n<p><strong>Default : 7BIT</strong></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/send","description":"<h1 id=\"send-sms-description\">Send SMS Description</h1>\n<p>Send an sms to one or more individual recipients or to one or more groups in the address book.</p>\n<p>You can test the sending by setting the <code>sandbox</code> parameter to <code>true</code> in the request.</p>\n<p>The <code>statusCallback</code> parameter allows you to record a URL to which a notification will be sent via HTTP with the status (Delivered, Not Delivered, etc...) of the SMS.</p>\n<img src=\"https://smshosting.s3.eu-west-3.amazonaws.com/warning_en.png\" />\n\n<blockquote>\n<p>Pay special attention because the <strong>id</strong> of the SMS could be a <strong>64-bit integer</strong> (int64)<br /><strong>Check that your platform can handle it!</strong> </p>\n</blockquote>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>ok</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Parameters not valid  <br />Possible errorMsg are:  <br /><code>BAD_TRANSACTIONID</code> - transactionId parameter not valid  <br /><code>BAD_DATE</code> - scheduled date format not valid  <br /><code>BAD_TEXT</code> - text parameter not valid  <br /><code>BAD_TEXT_PLACEHOLDER</code> - text contains non-replaceable placeholders  <br /><code>BAD_CALLBACK</code> - statusCallback parameter not valid  <br /><code>BAD_ENCODING</code> - encoding parameter not valid  <br /><code>BAD_FROM</code> - from parameter not valid  <br /><code>BAD_GROUP</code> - group parameter not valid  <br /><code>NO_CREDIT</code> - Insufficient credit for sending  <br /><code>NO_VALID_RECIPIENT</code> - no valid recipient  <br /><code>GENERIC_ERROR</code> - server error  <br /><code>TEST_SMS_NOT_ALLOWED</code> - error sending test SMS to a number different from the one used for registration</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Not valid credentials</td>\n</tr>\n<tr>\n<td>405</td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>from</td>\n<td>Message sender.</td>\n</tr>\n<tr>\n<td>text</td>\n<td>Sms text</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>Sending identifier  <br />If not specified in the request a <strong>transactionId</strong> will be generated automatically by the REST API</td>\n</tr>\n<tr>\n<td>smsInserted</td>\n<td>Number of inserted Sms</td>\n</tr>\n<tr>\n<td>smsNotInserted</td>\n<td>Number of not inserted Sms</td>\n</tr>\n<tr>\n<td>sms</td>\n<td>Sms list.  <br />Every sms is described by the properties:  <br /><code>to</code> - phone number to which the message was sent  <br /><code>id</code> - <em>WARNING:</em> <strong>int64</strong> - Internal message id. Useful to request the status of the message with the Search Sms function  <br /><code>status</code> - Message status. It is set to <code>INSERTED</code> if the message is inserted correctly, to <code>NOT_INSERTED</code> otherwise.  <br /><code>statusDetail</code> - in case the message is not inserted (status = <code>NOT_INSERTED</code>) this field reports an explanatory message of the error. Possible values are:  <br /><code>BADNUMBERFORMAT</code> - Recipient number not valid  <br /><code>DUPLICATESMS</code> - Sms already inserted in the last 24 hours with identical recipient, sender and text.  <br /><code>BLACKLIST</code> - The recipient has been inserted in the blacklist.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","sms","send"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"65902464-eee2-4451-a0ab-b367ec612072","name":"Invio SMS OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"from","value":"www.smshosting.it","description":"[String] *Opzionale*\n\nIl mittente dell'SMS.\n\nPuò essere un numero di telefono validato oppure una stringa alfanumerica di massimo 11 caratteri. Se non specificato viene usato il mittente di default del proprio profilo.\n\nPer utilizzare un mittente alfanumerico è obbligatoria la registrazione dello stesso, questa procedura può essere effettuata dal nostro pannello web oppure via API.\n\n**I mittenti non verificati verranno rimpiazzati con un mittente numerico casuale**.","type":"text","disabled":true},{"key":"to","value":"393480000000","description":"[String] _Opzionale (valorizzare almeno uno tra **to** e **group**)_\n\nIl destinatario del messaggio.\n\nDeve essere un numero di cellulare compreso di prefisso internazionale.\nÈ possibile specificare **più numeri di telefono** (max 1000 numeri) separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n`393481234567` oppure `393481234567,393481234568,393481234568`\n\nAlternativamente il parametro può essere valorizzato con un array JSON contenente gli oggetti che descrivono il destinatario.\nOgni oggetto deve avere obbligatoriamente la propriertà msisdn valorizzata.\nLe altre proprietà di tali oggetti posso essere utilizzate per parametrizzare il testo del messaggio (vedi il campo text).\n\nAd esempio:\n\n**[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]**\n","type":"text"},{"key":"group","value":"gruppo","description":"[String] _Opzionale (valorizzare almeno uno tra **to** e **group**)_\n\n**Id** del gruppo in Rubrica al quale inviare\n\nÈ possibile specificare più gruppi della rubrica separandoli con il carattere virgola \",\".\n\nAd esempio se nellla rubrica sono presenti i gruppi Amici (`id=1`) e Scuola (`id=2`) sarà possibile indicare:\n\n**1** oppure **1,2**","type":"text","disabled":true},{"key":"text","value":"sms di test","description":"[String] *(Obbligatorio)*\n\nTesto del messaggio.\nSe il messaggio supera i 160 caratteri vengono inviati [più sms concatenati](https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate) fino ad una massimo di 7.\n\nIl testo può contenere dei **placeholder** che saranno sostituiti in fase di invio dai valori associati al rispettivo destinatario.\nIl placeholder va specificato con la sintassi **${nome proprietà}**\n\nNel caso il testo contenga dei **placeholder** il campo **to** deve essere valorizzato con un array JSON ed ogni oggetto dell'array deve contenere la proprietà indicata nel placeholder.\n\nAd esempio:\nto=[{msisdn:'393481234567',**nome:'Mario Rossi'**},{msisdn:'393481234568',**nome:'Luigi Bianchi'**}]\ntext=Invio sms di test a **${nome}**","type":"text"},{"key":"date","value":"2017-03-24T00:00:00+0100","description":"[String] *(Opzionale)*\n\nData (in formato **yyyy-MM-ddTHH:mm:ssZ**) nella quale sarà inviato il messaggio. Se non specificato, il messaggio è inviato immediatamente.\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit. (Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno).\n\nAd esempio:\n**2014-12-25T08:00:00+0200** indica il 25/12/2014 alle 08:00:00 riferito al GMT +2","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"[String] *(Opzionale)*\n\nUn identificatore personale dell'invio.\n\nConsente di assegnare a tutti gli sms inviati con una chiamata lo stesso identificatore in modo da utilizzare questo parametro per ricevere lo stato dei messaggi. **Massimo 60 caratteri**.","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"[String] *(Opzionale)*\n\nConsente di fare la chiamata senza inviare effettivamente il messaggio.\nParametro utile in fase di sviluppo di eventuali integrazioni con le REST API.\n\nPossibili valori **true/false**","type":"text"},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP/HTTPS una notifica con lo stato (Consegnato, Non Consegnato) dell'SMS.\n\nVedi [Gestione SMS Status Callback](#gestione-sms-status-callback)","type":"text"},{"key":"encoding","value":"7BIT","description":"[String] *(Opzionale)*\n\nL'encoding da utilizzare per il testo del messaggio.\nI possibili valori sono:\n\n* **7BIT** - Encoding **standard** per i messaggi GSM. La lunghezza massima per un singolo sms è di **160 caratteri**.\n\n* **UCS2** - Encoding a 8-bit per inviare messaggi GSM con contenuto non ASCII. La lunghezza massima per un singolo sms è di **70 caratteri**.\n\n* **AUTO** - L'encoding da utilizzare viene automaticamente identificato in base al contenuto del campo testo.\n\n**Default : 7BIT**","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"from\": \"mrossi\",\n    \"text\": \"Test Sms\",\n    \"transactionId\": \"d41ebeeb38b6a04818aa707818d3161e\",\n    \"smsInserted\": 1,\n    \"smsNotInserted\": 0,\n    \"sms\": [\n        {\n            \"id\": 389310742,\n            \"to\": \"393412345678\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"},{"id":"25fef9a7-9b5f-4b6c-a41f-819c571abbd4","name":"Invio SMS Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"from","value":"www.smshosting.it","description":"[String] *(Opzionale)*\n\nIl mittente dell'SMS.\n\nPuò essere un numero di telefono validato oppure una stringa alfanumerica di massimo 11 caratteri. Se non specificato viene usato il mittente di default del proprio profilo.\n\nPer utilizzare un mittente alfanumerico è obbligatoria la registrazione dello stesso, questa procedura può essere effettuata dal nostro pannello web oppure via API.\n\n**I mittenti non verificati verranno rimpiazzati con un mittente numerico casuale**.","type":"text","disabled":true},{"key":"to","value":"393480000000","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\nIl destinatario del messaggio.\n\nDeve essere un numero di cellulare compreso di prefisso internazionale.\nÈ possibile specificare **più numeri di telefono** (max 1000 numeri) separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n`393481234567` oppure `393481234567,393481234568,393481234568`\n\nAlternativamente il parametro può essere valorizzato con un array JSON contenente gli oggetti che descrivono il destinatario.\nOgni oggetto deve avere obbligatoriamente la propriertà msisdn valorizzata.\nLe altre proprietà di tali oggetti posso essere utilizzate per parametrizzare il testo del messaggio (vedi il campo text).\n\nAd esempio:\n\n**[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]**\n","type":"text","disabled":true},{"key":"group","value":"gruppo","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\n**Id** del gruppo in Rubrica al quale inviare\n\nÈ possibile specificare più gruppi della rubrica separandoli con il carattere virgola \",\".\n\nAd esempio se nellla rubrica sono presenti i gruppi Amici (`id=1`) e Scuola (`id=2`) sarà possibile indicare:\n\n**1** oppure **1,2**","type":"text","disabled":true},{"key":"text","value":"sms di test","description":"[String] *(Obbligatorio)*\n\nTesto del messaggio.\nSe il messaggio supera i 160 caratteri vengono inviati [più sms concatenati](https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate) fino ad una massimo di 7.\n\nIl testo può contenere dei **placeholder** che saranno sostituiti in fase di invio dai valori associati al rispettivo destinatario.\nIl placeholder va specificato con la sintassi **${nome proprietà}**\n\nNel caso il testo contenga dei **placeholder** il campo **to** deve essere valorizzato con un array JSON ed ogni oggetto dell'array deve contenere la proprietà indicata nel placeholder.\n\nAd esempio:\nto=[{msisdn:'393481234567',**nome:'Mario Rossi'**},{msisdn:'393481234568',**nome:'Luigi Bianchi'**}]\ntext=Invio sms di test a **${nome}**","type":"text"},{"key":"date","value":"2017-03-24T00:00:00+0100","description":"[String] *(Opzionale)*\n\nData (in formato **yyyy-MM-ddTHH:mm:ssZ**) nella quale sarà inviato il messaggio. Se non specificato, il messaggio è inviato immediatamente.\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit. (Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno).\n\nAd esempio:\n**2014-12-25T08:00:00+0200** indica il 25/12/2014 alle 08:00:00 riferito al GMT +2","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"[String] *(Opzionale)*\n\nUn identificatore personale dell'invio.\n\nConsente di assegnare a tutti gli sms inviati con una chiamata lo stesso identificatore in modo da utilizzare questo parametro per ricevere lo stato dei messaggi. **Massimo 60 caratteri**.","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"[String] *(Opzionale)*\n\nConsente di fare la chiamata senza inviare effettivamente il messaggio.\nParametro utile in fase di sviluppo di eventuali integrazioni con le REST API.\n\nPossibili valori **true/false**","type":"text"},{"key":"statusCallback","value":"http://user_callback","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP/HTTPS una notifica con lo stato (Consegnato, Non Consegnato) dell'SMS.\n\nVedi [Gestione SMS Status Callback](#gestione-sms-status-callback)","type":"text","disabled":true},{"key":"encoding","value":"7BIT","description":"[String] *(Opzionale)*\n\nL'encoding da utilizzare per il testo del messaggio.\nI possibili valori sono:\n\n* **7BIT** - Encoding **standard** per i messaggi GSM. La lunghezza massima per un singolo sms è di **160 caratteri**.\n\n* **UCS2** - Encoding a 8-bit per inviare messaggi GSM con contenuto non ASCII. La lunghezza massima per un singolo sms è di **70 caratteri**.\n\n* **AUTO** - L'encoding da utilizzare viene automaticamente identificato in base al contenuto del campo testo.\n\n**Default : 7BIT**","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/send"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"49"},{"key":"date","value":"Wed, 21 Apr 2021 08:29:31 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"errorMsg\": \"NO_VALID_RECIPIENT\",\n    \"errorCode\": 400\n}"},{"id":"24be3fb9-f0c0-45c4-b6a9-42b97d4116eb","name":"Invio SMS Error Encoding","originalRequest":{"method":"POST","header":[],"url":"{{BaseUrl}}/rest/api/sms/send"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"44"},{"key":"date","value":"Wed, 21 Apr 2021 08:32:09 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"errorMsg\": \"GENERIC_ERROR\",\n    \"errorCode\": 500\n}"},{"id":"c9154459-ac17-4c83-8974-0108114d5991","name":"Invio SMS Wrong Auth","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"from","value":"www.smshosting.it","description":"[String] *(Opzionale)*\n\nIl mittente dell'SMS.\n\nPuò essere un numero di telefono validato oppure una stringa alfanumerica di massimo 11 caratteri. Se non specificato viene usato il mittente di default del proprio profilo.\n\nPer utilizzare un mittente alfanumerico è obbligatoria la registrazione dello stesso, questa procedura può essere effettuata dal nostro pannello web oppure via API.\n\n**I mittenti non verificati verranno rimpiazzati con un mittente numerico casuale**.","type":"text","disabled":true},{"key":"to","value":"393480000000","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\nIl destinatario del messaggio.\n\nDeve essere un numero di cellulare compreso di prefisso internazionale.\nÈ possibile specificare **più numeri di telefono** (max 1000 numeri) separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n`393481234567` oppure `393481234567,393481234568,393481234568`\n\nAlternativamente il parametro può essere valorizzato con un array JSON contenente gli oggetti che descrivono il destinatario.\nOgni oggetto deve avere obbligatoriamente la propriertà msisdn valorizzata.\nLe altre proprietà di tali oggetti posso essere utilizzate per parametrizzare il testo del messaggio (vedi il campo text).\n\nAd esempio:\n\n**[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]**\n","type":"text"},{"key":"group","value":"gruppo","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\n**Id** del gruppo in Rubrica al quale inviare\n\nÈ possibile specificare più gruppi della rubrica separandoli con il carattere virgola \",\".\n\nAd esempio se nellla rubrica sono presenti i gruppi Amici (`id=1`) e Scuola (`id=2`) sarà possibile indicare:\n\n**1** oppure **1,2**","type":"text","disabled":true},{"key":"text","value":"sms di test","description":"[String] *(Obbligatorio)*\n\nTesto del messaggio.\nSe il messaggio supera i 160 caratteri vengono inviati [più sms concatenati](https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate) fino ad una massimo di 7.\n\nIl testo può contenere dei **placeholder** che saranno sostituiti in fase di invio dai valori associati al rispettivo destinatario.\nIl placeholder va specificato con la sintassi **${nome proprietà}**\n\nNel caso il testo contenga dei **placeholder** il campo **to** deve essere valorizzato con un array JSON ed ogni oggetto dell'array deve contenere la proprietà indicata nel placeholder.\n\nAd esempio:\nto=[{msisdn:'393481234567',**nome:'Mario Rossi'**},{msisdn:'393481234568',**nome:'Luigi Bianchi'**}]\ntext=Invio sms di test a **${nome}**","type":"text"},{"key":"date","value":"2017-03-24T00:00:00+0100","description":"[String] *(Opzionale)*\n\nData (in formato **yyyy-MM-ddTHH:mm:ssZ**) nella quale sarà inviato il messaggio. Se non specificato, il messaggio è inviato immediatamente.\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit. (Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno).\n\nAd esempio:\n**2014-12-25T08:00:00+0200** indica il 25/12/2014 alle 08:00:00 riferito al GMT +2","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"[String] *(Opzionale)*\n\nUn identificatore personale dell'invio.\n\nConsente di assegnare a tutti gli sms inviati con una chiamata lo stesso identificatore in modo da utilizzare questo parametro per ricevere lo stato dei messaggi. **Massimo 60 caratteri**.","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"[String] *(Opzionale)*\n\nConsente di fare la chiamata senza inviare effettivamente il messaggio.\nParametro utile in fase di sviluppo di eventuali integrazioni con le REST API.\n\nPossibili valori **true/false**","type":"text"},{"key":"statusCallback","value":"http://user_callback","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP/HTTPS una notifica con lo stato (Consegnato, Non Consegnato) dell'SMS.\n\nVedi [Gestione SMS Status Callback](#gestione-sms-status-callback)","type":"text","disabled":true},{"key":"encoding","value":"7BIT","description":"[String] *(Opzionale)*\n\nL'encoding da utilizzare per il testo del messaggio.\nI possibili valori sono:\n\n* **7BIT** - Encoding **standard** per i messaggi GSM. La lunghezza massima per un singolo sms è di **160 caratteri**.\n\n* **UCS2** - Encoding a 8-bit per inviare messaggi GSM con contenuto non ASCII. La lunghezza massima per un singolo sms è di **70 caratteri**.\n\n* **AUTO** - L'encoding da utilizzare viene automaticamente identificato in base al contenuto del campo testo.\n\n**Default : 7BIT**","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/send"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"www-authenticate","value":"Basic realm=\"REST API Authentication\""},{"key":"content-type","value":"application/json"},{"key":"content-length","value":"46"},{"key":"date","value":"Wed, 21 Apr 2021 08:34:59 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"errorMsg\": \"BAD_CREDENTIALS\",\n    \"errorCode\": 401\n}"}],"_postman_id":"be77bcba-0752-42a9-b0f3-1d3f89c38f05"},{"name":"Send SMS bulk","id":"b028364c-bd5a-4754-87ec-5923c85bb5db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"transactionCallback","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>URL to which a notification with the overall status of the sending will be sent via HTTP</p>\n<p>For more details see <a href=\"#b8baa8cf-2f66-43e1-b84c-cfc3dfa0434e\">Send Bulk Callback</a></p>\n","type":"text","disabled":true},{"key":"from","value":"www.SmsH.it","description":"<p>See <a href=\"#send-sms-description\">Send SMS</a></p>\n","type":"text","disabled":true},{"key":"to","value":"393480000000","description":"<p>See <a href=\"#send-sms-description\">Send SMS</a></p>\n","type":"text"},{"key":"group","value":"gruppo","description":"<p>See <a href=\"#send-sms-description\">Send SMS</a></p>\n","type":"text","disabled":true},{"key":"text","value":"sms di test","description":"<p>See <a href=\"#send-sms-description\">Send SMS</a></p>\n","type":"text"},{"key":"date","value":"2017-03-24T00:00:00+0100","description":"<p>See <a href=\"#send-sms-description\">Send SMS</a></p>\n","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"<p>See <a href=\"#send-sms-description\">Send SMS</a></p>\n","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"<p>See <a href=\"#send-sms-description\">Send SMS</a></p>\n","type":"text"},{"key":"statusCallback","value":"http://user_callback","description":"<p>See <a href=\"#send-sms-description\">Send SMS</a></p>\n","type":"text","disabled":true},{"key":"encoding","value":"7BIT","description":"<p>See <a href=\"#send-sms-description\">Send SMS</a></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/sendbulk","description":"<p>Asynchronous sms sending mode to be used with a high number of recipients (more than 10 recipients for each request).</p>\n<p>Once the request is sent, a <strong>transactionId</strong> is returned which is useful to identify the sms later on.</p>\n<p>In case the sending can't be completed because of an error, and email containing the error code will be sent.</p>\n<p><em><strong>Note</strong><strong>**</strong>**__: If you send up to 10 recipients for a single request we suggest to use the</em> <a href=\"#send-sms-description\"><i>Send SMS</i></a> function.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Parameters not valid  <br />Possible errorMsg are:  <br /><code>BAD_TRANSACTIONID</code> - <strong>transactionId</strong> parameter not valid  <br /><code>BAD_DATE</code> - scheduled date format not valid  <br /><code>BAD_TEXT</code> - <strong>text</strong> parameter not valid  <br /><code>BAD_TEXT_PLACEHOLDER</code> - <strong>text</strong> contains non-replaceable placeholders  <br /><code>BAD_CALLBACK</code> - <strong>statusCallback</strong> parameter not valid  <br /><code>BAD_ENCODING</code> - <strong>encoding</strong> parameter not valid  <br /><code>BAD_FROM</code> - <strong>from</strong> parameter not valid  <br /><code>BAD_GROUP</code> - <strong>group</strong> parameter not valid  <br /><code>NO_CREDIT</code> - insufficient credit for the sending  <br /><code>NO_VALID_RECIPIENT</code> - no valid recipient  <br /><code>GENERIC_ERROR</code> - internal server error  <br /><code>TEST_SMS_NOT_ALLOWED</code> - error sending test SMS to a number different from the one used for registration</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>from</td>\n<td>Sender of the message.</td>\n</tr>\n<tr>\n<td>text</td>\n<td>Sms text</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>Sending identifier  <br />If not specified in the request, a <strong>transactionId</strong> will be generated automatically by the REST API</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","sms","sendbulk"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"d9ffb858-801c-4f84-b160-7c5a08f42e17","name":"Invio SMS bulk","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"transactionCallback","value":"","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP una notifica con lo stato complessivo dell'invio\n\nPer i dettagli vedi [Send Bulk Callback](#send-bulk-callback)","type":"text","disabled":true},{"key":"from","value":"www.SmsH.it","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"to","value":"393480000000","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text"},{"key":"group","value":"gruppo","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"text","value":"sms di test","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text"},{"key":"date","value":"2017-03-24T00:00:00+0100","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text"},{"key":"statusCallback","value":"http://user_callback","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"encoding","value":"7BIT","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/sendbulk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"from\": \"mrossi\",\n    \"text\": \"Test Sms\",\n    \"transactionId\": \"e51ea840fc7276922ac61b733027301d\"\n}"}],"_postman_id":"b028364c-bd5a-4754-87ec-5923c85bb5db"},{"name":"Send Binary SMS","id":"9edba09e-b35e-43c8-862d-dd4c0e218e13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"text","value":"sms di test","description":"<p>[String] <em>(Required)</em></p>\n<p>Binary content of the message expressed as a hexadecimal string.\nEach byte must be represented by a two-character hexadecimal value.</p>\n<p>For example:\n<code>0fc24abf3413ba</code></p>\n","type":"text"},{"key":"udh","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>Optional field containing the UDH (<a href=\"https://en.wikipedia.org/wiki/User_Data_Header\">User Data Header</a>) of the message in a hexadecimal format.\nFor example:\n<code>00c34abf300311</code></p>\n","type":"text","disabled":true},{"key":"pid","value":"","description":"<p>[Number] <em>(Optional)</em></p>\n<p>Optional field containing the protocol ID (<a href=\"https://en.wikipedia.org/wiki/GSM_03.40#Protocol_Identifier\">Protocol identifier</a>) to use with a decimal format.</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/sendbinary","description":"<p>Send an SMS with binary content.</p>\n<p><em>Notes on the message length</em>:</p>\n<p>The maximum length of a single binary SMS is <strong>140 bytes</strong> (<strong>280 characters</strong> expressed in hexadecimal format).</p>\n<p>Specifying a longer text will send concatenated SMS. The space available for concatenated SMS is <strong>134 bytes</strong> for each SMS (<strong>268 characters</strong> expressed in hexadecimal format).</p>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Parameters not valid  <br />Possible errorMsg are:  <br /><code>BAD_TRANSACTIONID</code> - <strong>transactionId</strong> parameter not valid  <br /><code>BAD_DATE</code> - Scheduled date format not valid  <br /><code>BAD_TEXT</code> - <strong>text</strong> parameter not valid  <br /><code>BAD_CALLBACK</code> - <strong>statusCallback</strong> parameter not valid  <br /><code>BAD_ENCODING</code> - <strong>encoding</strong> parameter not valid  <br /><code>BAD_FROM</code> - <strong>from</strong> parameter not valid  <br /><code>BAD_GROUP</code> - <strong>group</strong> not valid  <br /><code>NO_CREDIT</code> - Insufficient credit for sending  <br /><code>NO_VALID_RECIPIENT</code> - no valid recipient  <br /><code>BAD_TEXT_HEX</code> - text doesn't contain a valid hexadecimal value  <br /><code>BAD_UDH_HEX</code> - udh doesn't contain a valid hexadecimal value.  <br /><code>BAD_PID</code> - pid doesn't contain a valid value  <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<p>The returned sending data is the same as the request <a href=\"#send-sms-description\">Send SMS</a>.</p>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","sms","sendbinary"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"b874de0c-a07a-41d3-a5ce-48f489a2fec4","name":"Invio SMS Binario","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"text","value":"sms di test","description":"[String] *(Obbligatorio)*\n\nContenuto binario del messaggio espresso come stringa esadecimale.\nOgni byte deve essere rappresentato con un valore esadecimale di due caratteri.\n\nAd esempio:\n`0fc24abf3413ba`","type":"text"},{"key":"udh","value":"","description":"[String] *(Opzionale)*\nCampo facoltativo contenente l'UDH ([User Data Header](https://en.wikipedia.org/wiki/User_Data_Header)) del messaggio in formato esadecimale.\nAd esempio:\n`00c34abf300311`","type":"text","disabled":true},{"key":"transactionCallback","value":"","description":"Vedi [Invio SMS](#descrizione-invio-sms)\n\nURL al quale sarà inviata via HTTP una notifica con lo stato complessivo dell'invio\n[Gestione notificationCallback](#sms-status-callback)","type":"text","disabled":true},{"key":"pid","value":"","description":"[Number] *(Opzionale)*\nCampo facoltativo contenente l'id protocollo ([Protocol identifier](https://en.wikipedia.org/wiki/GSM_03.40#Protocol_Identifier)) da utilizzare in formato decimale.","type":"text","disabled":true},{"key":"from","value":"www.SmsH.it","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"to","value":"393480000000","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text"},{"key":"group","value":"gruppo","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"date","value":"2017-03-24T00:00:00+0100","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text"},{"key":"statusCallback","value":"http://user_callback","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true},{"key":"encoding","value":"7BIT","description":"Vedi [Invio SMS](#descrizione-invio-sms)","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/sendbulk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n   \"from\":\"mrossi\",\n   \"text\":\"0fc24abf3413ba\",\n   \"transactionId\":\"e51ea840fc7276922ac61b733027301d\"\n}"}],"_postman_id":"9edba09e-b35e-43c8-862d-dd4c0e218e13"},{"name":"Search SMS","id":"e0c57ac8-8dd3-4125-986f-2182101c0054","protocolProfileBehavior":{"disabledSystemHeaders":{"accept":true},"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/sms/search?id&transactionId=123456789ABCDE&msisdn&fromDate&toDate&status&offset=0&limit=20","description":"<h1 id=\"search-sms-description\">Search SMS Description</h1>\n<p>Search for sent SMS.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Parameters not valid  <br />Possible errorMsg are:  <br /><code>NO_PARAMS</code> - No parameter valued  <br /><code>BAD_ID</code> - Id parameter not valid  <br /><code>TOO_MANY_IDS</code> - Too many ids passed to the request  <br /><code>BAD_MSISDN</code> - Msisdn not valid  <br /><code>BAD_DATE</code> - Date format not valid  <br /><code>BAD_STATUS</code> - Status parameter not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>smsList</code></td>\n<td>List of sent SMS  <br />Each SMS is described by the following properties:  <br /><code>id</code> - internal id of the message  <br /><code>to</code> - recipient of the message  <br /><code>text</code> - text of the message  <br /><code>from</code> - sender of the message  <br /><code>status</code> - status of the message. See the table below.  <br /><code>insertDate</code> - insert date of the message in the <strong>yyyy-MM-ddTHH:mm:ssZ</strong> format  <br /><code>sentDate</code> - sent date of the message in the <strong>yyyy-MM-ddTHH:mm:ssZ</strong> format  <br /><code>deliveryDate</code> - delivery date of the message in the <strong>yyyy-MM-ddTHH:mm:ssZ</strong> format  <br /><code>transactionId</code> - Sending identifier  <br /><code>price</code> - cost of the message</td>\n</tr>\n<tr>\n<td><code>metadata</code></td>\n<td>Metadata to handle the <a href=\"#response-handling\">pagination</a></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"notes-on-sms-search\">Notes on SMS search</h1>\n<p>Value at least one of the following parameters:</p>\n<ul>\n<li>id</li>\n<li>transactionId</li>\n<li>msisdn</li>\n<li>fromDate</li>\n<li>status</li>\n</ul>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","sms","search"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Internal ID of the sent message.</p>\n<p>It is possible to specify <strong>more ids</strong> by separating them with a comma character \"<strong>,</strong>\". (Maximum 2000 ids)</p>\n<p>For example:</p>\n<p><strong>12312</strong> or <strong>432432,543543,435435</strong></p>\n","type":"text/plain"},"key":"id","value":null},{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p><strong>transactionId</strong> assigned to the sending.</p>\n","type":"text/plain"},"key":"transactionId","value":"123456789ABCDE"},{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Number to which the SMS was sent </p>\n","type":"text/plain"},"key":"msisdn","value":null},{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Search the sms sent since this date (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>)</p>\n<p>The <strong>Z</strong> character indicates the timezone in RFC822 4-digit format.\nFor Italy +0200 during summer time and +0100 during the rest of the year_.</p>\n","type":"text/plain"},"key":"fromDate","value":null},{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Search the sms sent until this date (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>)</p>\n","type":"text/plain"},"key":"toDate","value":null},{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Status of the Sms </p>\n","type":"text/plain"},"key":"status","value":null},{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be returned.</p>\n<p>Example:\nIf the search finds 100 sms, the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10 the sms from 51 to 60 will be returned.\n<strong>Default : 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Number of retrieved results.\n<strong>Default: 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"20"}],"variable":[]}},"response":[{"id":"89e730e7-bc26-4217-85d4-7804fc280f35","name":"Cerca SMS","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/sms/search?id&transactionId=123456789ABCDE&msisdn&fromDate&toDate&status&offset=0&limit=20","host":["{{BaseUrl}}"],"path":["rest","api","sms","search"],"query":[{"key":"id","value":null,"description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nId interno del messaggio inviato.\n\nÈ possibile specificare **più id** separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n**12312** oppure **432432,543543,435435**"},{"key":"transactionId","value":"123456789ABCDE","description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\n**transactionId** assegnato all'invio."},{"key":"msisdn","value":null,"description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nNumero al quale è stato inviato il messaggio"},{"key":"fromDate","value":null,"description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nCerca gli sms stati inviati da questa data (formato **yyyy-MM-ddTHH:mm:ssZ**)\n\nIl carattere **Z** indica il timezone nel formato RFC822 4-digit. _Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno_."},{"key":"toDate","value":null,"description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nCerca gli sms stati inviati fino a questa data (formato **yyyy-MM-ddTHH:mm:ssZ**)"},{"key":"status","value":null,"description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nStato degli sms [Vedi valori] (#32ddccbd-f896-924a-b9df-7d716a8e4d9d)"},{"key":"offset","value":"0","description":"[Number] *(Opzionale [§note](#note-ricerca-sms))*\n\nPosizione del primo risultato che verrà restituito.\n\nEsempio:\nSe la ricerca trova 100 sms, il campo **offset** viene valorizzato a 50 ed il campo **limit** a 10 verranno restituiti gli sms da 51 a 60.\n**Default : 0**"},{"key":"limit","value":"20","description":"[Number] *(Opzionale [§note](#note-ricerca-sms))*\n\nNumero di risultati che verranno restituiti.\n**Default: 20**"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 20\n    },\n    \"smsList\": [\n        {\n            \"id\": 389395385,\n            \"to\": \"393480000000\",\n            \"text\": \"Test Sms\",\n            \"from\": \"mrossi\",\n            \"status\": \"DELIVERED\",\n            \"insertDate\": \"2014-01-13T15:01:35+0100\",\n            \"sentDate\": \"2014-01-13T15:01:37+0100\",\n            \"deliveryDate\": \"2014-01-13T15:01:40+0100\",\n            \"transactionId\": \"72810108d4114097b9edb42b255b273c\",\n            \"price\": 0.0945\n        }\n    ]\n}"}],"_postman_id":"e0c57ac8-8dd3-4125-986f-2182101c0054"},{"name":"Cancel SMS Sending","id":"78f07e00-a9a5-4809-85ea-1268f4bdf3a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"1","description":"<p>[Number] <em>(Optional)</em> -&gt; one parameter between <code>id</code> and <code>transactionId</code> must be set</p>\n<p>internal <code>id</code> of the sent message.</p>\n<p>You can specify <strong>multiple ids</strong> by separating them with the comma character \"<strong>,</strong>\".\nFor example:\n<strong>12312</strong> or <strong>432432,543543,435435</strong></p>\n","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"<p>[String] <em>(Optional)</em> -&gt; one parameter between <code>id</code> and <code>transactionId</code> must be set</p>\n<p><code>transactionId</code> assigned to the sending </p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/sms/cancel","description":"<p>Cancel the sending of an SMS <strong>not yet sent</strong> (<em>delayed sending</em>).</p>\n<h2 id=\"http-response-codes\">HTTP Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Parameters not valid<br />Possible errorMsg are:<br /><code>NO_PARAMS</code> - No valid parameter<br /><code>BAD_ID</code> - id format not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><p>The call returns the list of canceled text messages.</p>\n<h2 id=\"response-description\">Response Description</h2>\n<p>For details of the properties of each sms see the <em>Response Description</em> of the <a href=\"#search-sms-description\">Search Sms</a> function.</p>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","sms","cancel"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"ef5bb976-2368-4868-8bd4-e57db9cd72cb","name":"Annulla Invio SMS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"1","description":"[Number] *(Opzionale ¹)*\n\nId interno del messaggio inviato.\n\nÈ possibile specificare **più id** separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n**12312** oppure **432432,543543,435435**","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"[String] *(Opzionale ¹)*\n\n**transactionId** assegnato all'invio","type":"text"}]},"url":"{{BaseUrl}}/rest/api/sms/cancel"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 389451366,\n        \"to\": \"393480000000\",\n        \"text\": \"Test Sms\",\n        \"from\": \"mrossi\",\n        \"status\": \"NOSENT\",\n        \"insertDate\": \"2014-01-16T13:46:11+0100\",\n        \"transactionId\": \"1389876345449\",\n        \"price\": 0\n    }\n]"}],"_postman_id":"78f07e00-a9a5-4809-85ea-1268f4bdf3a0"},{"name":"SMS Sending Quotation","id":"4f9361c6-224f-4a6c-af9c-5959226127ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"from","value":"www.smshosting.it","description":"<p>[String] <em>Optional</em></p>\n<p>SMS sender.</p>\n<p>It can be a validated phone number or an alphanumeric string of maximum 11 characters. If not specified, the default sender of your profile is used.</p>\n","type":"text","disabled":true},{"key":"to","value":"393480000000","description":"<p>[String] <em>Optional (one parameter between <strong>to</strong> and <strong>group</strong> must be set)</em></p>\n<p>Message recipient.</p>\n<p>It must be a cell phone number including country code.</p>\n<p>You can specify <strong>multiple phone numbers</strong> (max 1000 numbers) by separating them with the comma character \"<strong>,</strong>\".</p>\n<p>For example:\n<code>393481234567</code> or <code>393481234567,393481234568,393481234568</code></p>\n","type":"text"},{"key":"group","value":"gruppo","description":"<p>[String] <em>Optional (one parameter between <strong>to</strong> and <strong>group</strong> must be set)</em></p>\n<p><strong>Id</strong> of the group in the phonebook to which the SMS has to be sent. \nYou can specify multiple groups by separating them with the comma character \",\".</p>\n<p>For example if in the address book there are the groups Friends (id=1) and School (id=2) it will be possible to indicate\n<strong>1</strong> or <strong>1,2</strong></p>\n","type":"text","disabled":true},{"key":"text","value":"sms di test","type":"text"},{"key":"encoding","value":"7BIT","description":"<p>[String] <em>(Optional)</em></p>\n<p>The encoding to use for the message text.\nPossible values are:</p>\n<ul>\n<li><strong>7BIT</strong> - <strong>standard</strong> encoding for GSM messages. The maximum length for a single sms is <strong>160 characters</strong>.\n<strong>UCS2</strong> - 8-bit encoding for sending GSM messages with non-ASCII content. Maximum length for a single sms is <strong>70 characters</strong>.\n<strong>AUTO</strong> - The encoding to be used is automatically identified according to the content of the text field.</li>\n</ul>\n<p><strong>Default : 7BIT</strong></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/estimate","description":"<p>Calculation of the credit needed for an SMS sending (single or multiple sending).</p>\n<blockquote>\n<p><em>The \"Content-Type\" for this POST request must be \"application/x-www-form-urlencoded\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>cost</code></td>\n<td>Cost of the sending</td>\n</tr>\n<tr>\n<td><code>userCredit</code></td>\n<td>Remaining user credit</td>\n</tr>\n<tr>\n<td><code>smsCount</code></td>\n<td>Number of sms to send</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","sms","estimate"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"cc76923c-7cd9-4791-850b-dadb42a2bb34","name":"Preventivo Invio SMS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"from","value":"www.smshosting.it","type":"text","disabled":true},{"key":"to","value":"393480000000","type":"text"},{"key":"group","value":"gruppo","type":"text","disabled":true},{"key":"text","value":"sms di test","type":"text"},{"key":"encoding","value":"7BIT","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/sms/estimate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"cost\": 0.095,\n    \"userCredit\": 15.484,\n    \"smsCount\": 2\n}"}],"_postman_id":"4f9361c6-224f-4a6c-af9c-5959226127ca"}],"id":"cdf843f8-d185-4222-8605-8bdfa72448e2","description":"<h1 id=\"introduction\">Introduction</h1>\n<p>With these requests you can send and manage single or bulk SMS messages.</p>\n<h2 id=\"sms-status\">SMS Status</h2>\n<p>The possible SMS status code  (<strong>status</strong> field) values are:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>PENDING</code></td>\n<td>Pending Sms waiting to be sent</td>\n</tr>\n<tr>\n<td><code>SENT</code></td>\n<td>Sms sent to the operator</td>\n</tr>\n<tr>\n<td><code>NOSENT</code></td>\n<td>Sms not sent to the operator</td>\n</tr>\n<tr>\n<td><code>DELIVERED</code></td>\n<td>Sms delivered to recipient</td>\n</tr>\n<tr>\n<td><code>NOTDELIVERED</code></td>\n<td>Sms not delivered to recipient</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"cdf843f8-d185-4222-8605-8bdfa72448e2","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Send OTP SMS (2FA)","item":[{"name":"Send OTP Code (2FA)","id":"e64a90af-2b73-4d0a-b5e7-9bb8adbe7387","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393480000000","description":"<p>[String] <em>(Required)</em></p>\n<p>Recipient of the message.</p>\n<p>Must be a cell phone number including country code.</p>\n<p>For example:\n393481234567</p>\n","type":"text"},{"key":"text","value":"your code: ${verify_code}","description":"<p>[String] <em>(Required)</em></p>\n<p>Message text.</p>\n<p>If the message exceeds 160 characters, more than one text message will be sent in sequence up to a maximum of 7.\nThe text <em>must contain the placeholder</em> that will be replaced by the OTP code during the sending phase.</p>\n<p>The placeholder must be specified with the syntax <strong>${verify_code}</strong>.</p>\n<p>For example:\ntext=Here is your code ${verify_code}</p>\n","type":"text"},{"key":"from","value":"www.SmsH.it","description":"<p>[String] <em>(Optional)</em></p>\n<p>The sender of the SMS.</p>\n<p>It can be a validated phone number or an alphanumeric string of 11 characters. If not specified, the default sender of your profile will be used.</p>\n","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"<p>[String] <em>(Optional)</em></p>\n<p>Allows you to make the call without actually sending the message.</p>\n<p>Useful parameter when developing possible integrations with the REST API.</p>\n<p>Possible values are <strong>true/false</strong> </p>\n","type":"text"},{"key":"app_id","value":"myappid","description":"<p>[String] <em>(Optional)</em></p>\n<p>Identifies the application for which you are requesting the code.</p>\n<p>You can specify your own identifier</p>\n<p><em><strong>Caution</strong>: You cannot generate 2 active codes at the same time for the same recipient for the same application.</em></p>\n","type":"text"},{"key":"encoding","value":"7BIT","description":"<p>[String] <em>(Optional)</em></p>\n<p>The encoding to be used for the message text.</p>\n<p>Possible values are:</p>\n<ul>\n<li><strong>7BIT</strong> - <strong>standard</strong> encoding for GSM messages. The maximum length for a single sms is <strong>160 characters</strong>.\n<strong>UCS2</strong> - 8-bit encoding for sending GSM messages with non-ASCII content. Maximum length for a single sms is <strong>70 characters</strong>.\n<strong>AUTO</strong> - The encoding to be used is automatically identified according to the content of the text field.</li>\n</ul>\n<p><strong>Default : 7BIT</strong></p>\n","type":"text","disabled":true},{"key":"code_len","value":"5","description":"<p>[String] <em>(Optional)</em></p>\n<p>OTP code length</p>\n<p>Possible values are from 4 to 6.</p>\n<p><strong>Default: 4</strong></p>\n","type":"text","disabled":true},{"key":"max_retry","value":"5","description":"<p>[String] <em>(Optional)</em></p>\n<p>Maximum number of attempts allowed.</p>\n<p>Possible values are from 1 to 20.</p>\n<p><strong>Default: 3</strong></p>\n","type":"text","disabled":true},{"key":"ttl","value":"300","description":"<p>[String] <em>(Optional)</em></p>\n<p>Validity in seconds of the code.</p>\n<p>The minimum value is 10.</p>\n<p><strong>Default: 300</strong></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/verify/send","description":"<p>Send a numeric OTP (One Time Password) code to a recipient. This is suitable for implementing the 2FA (2 Factor Authentication)</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong>Content-Type</strong>\" for this POST request must be \"<strong>application/x-www-form-urlencoded</strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Parameters not valid<br />Possible errorMsg values are:<br /><code>ANTISPAM</code> - more than 10 sms have been sent to the same recipient in the last 60 seconds.<br /><code>BAD_TO</code> - <strong>to</strong> parameter not valid<br /><code>BAD_TEXT_PLACEHOLDER</code> -  <code>${verify_code}</code> parameter missing, or the <strong>text</strong> contains non replaceable placeholders<br /><code>BAD_TEXT</code> - <strong>text</strong> parameter not valid<br /><code>BAD_FROM</code> - <strong>from</strong> parameter not valid<br /><code>BAD_ENCODING</code> - <strong>encoding</strong> parameter not valid<br /><code>BAD_APP_ID</code> - <strong>app_id</strong> parameter not valid<br /><code>BAD_COD_LEN</code> - <strong>code_len</strong> parameter not valid<br /><code>BAD_RETRY</code> - <strong>max_retry</strong> parameter not valid<br /><code>BAD_TTL</code> - <strong>ttl</strong> parameter not valid<br /><code>NO_CREDIT</code> - Insufficient credit for sending<br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>verify_id</code></td>\n<td>Code request unique identifier.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","verify","send"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"e1e73671-f492-41d5-b297-0ead00ed9136","name":"Invio Codice OTP (2FA)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393480000000","type":"text"},{"key":"text","value":"your code: ${verify_code}","type":"text"},{"key":"from","value":"www.SmsH.it","type":"text","disabled":true},{"key":"sandbox","value":"true","type":"text"},{"key":"app_id","value":"myappid","type":"text"},{"key":"encoding","value":"7BIT","type":"text","disabled":true},{"key":"code_len","value":"5","type":"text","disabled":true},{"key":"max_retry","value":"5","type":"text","disabled":true},{"key":"ttl","value":"300","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/verify/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"verify_id\": \"c6cf59524c65d9c65d134d1137a86336558d19ba\"\n}"}],"_postman_id":"e64a90af-2b73-4d0a-b5e7-9bb8adbe7387"},{"name":"Code Verification","id":"9ef01035-a50d-4c40-91bf-384cea28c3b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/verify/check?verify_id=334ecb42ebda471a02adfa044b546e94c2059c97&verify_code=1234","description":"<p>Validate an OTP code sent by SMS.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Parameters not valid<br />Possible errorMsg values are:<br /><code>VERIFY ID ERROR</code> - <strong>verify_id</strong> parameter not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id_sms</code></td>\n<td>Id of the sent sms.</td>\n</tr>\n<tr>\n<td><code>verify_status</code></td>\n<td>Verificcation result<br /><code>VERIFIED</code> - The code matches<br /><code>FAILED</code> - The code doesn't match<br /><code>EXPIRED</code> - The code is expired<br /><code>VERIFY ID ERROR</code> - verify_id parameter is not correct<br /><code>REUSED</code> - The code has been already verified<br /><code>CANCELLED</code> - The code has been deleted</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","verify","check"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p>The <strong>verify_id</strong> code received in the send command response.</p>\n","type":"text/plain"},"key":"verify_id","value":"334ecb42ebda471a02adfa044b546e94c2059c97"},{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p>OTP code to verify.</p>\n","type":"text/plain"},"key":"verify_code","value":"1234"},{"disabled":true,"description":{"content":"<p>[String) <em>(Optional)</em></p>\n<p>The retrievable IP address will be saved along with the other data from the code verification by calling <a href=\"#3d1a844d-97a3-47e4-b90e-368fedd92017\">Code Search</a></p>\n","type":"text/plain"},"key":"ip_address","value":"192.168.0.1"}],"variable":[]}},"response":[{"id":"4f4f1e08-ad03-46a2-9622-fa75f320fda7","name":"Verifica Codice","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/verify/check?verify_id=334ecb42ebda471a02adfa044b546e94c2059c97&verify_code=1234","host":["{{BaseUrl}}"],"path":["rest","api","verify","check"],"query":[{"key":"verify_id","value":"334ecb42ebda471a02adfa044b546e94c2059c97","description":"[String] *(Obbligatorio)*\n\nIl codice **verify_id** ricevuto nella risposta del comando send.\n"},{"key":"verify_code","value":"1234","description":"[String] *(Obbligatorio)*\n\nIl codice OTP da verificare."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id_sms\": \"410065822\",\n    \"verify_status\": \"VERIFIED\"\n}"}],"_postman_id":"9ef01035-a50d-4c40-91bf-384cea28c3b5"},{"name":"Cancel Code","id":"54c06fd5-2ef1-4985-9b50-fa8255ef1769","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"verify_id","value":"334ecb42ebda471a02adfa044b546e94c2059c97","description":"<p>[String] <em>(Required)</em></p>\n<p>The <strong>verify_id</strong> code received in the send command response.</p>\n","type":"text"},{"key":"command","value":"DELETE","description":"<p>[String] <em>(Required)</em></p>\n<p>Can have the value:\n<code>DELETE</code></p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/verify/command","description":"<p>Cancels an active and still usable OTP code.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong>Content-Type</strong>\" for this POST request must be \"<strong>application/x-www-form-urlencoded</strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Parameters not valid<br />Possible errorMsg values are:<br /><code>VERIFY ID ERROR</code> - verify_id parameter not valid<br /><code>BAD STATUS</code> - the request cannot be deleted, it is already unusable<br /><code>BAD_COMMAND</code> - command parameter not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>command</code></td>\n<td>Command executed</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","verify","command"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"bb477f42-0ac8-4f4e-aab2-9c0bb2abd0b3","name":"Annulla Codice","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"verify_id","value":"334ecb42ebda471a02adfa044b546e94c2059c97","description":"[String] *(Obbligatorio)*\n\nIl codice **verify_id** ricevuto nella risposta del comando send.","type":"text"},{"key":"command","value":"DELETE","description":"[String] *(Obbligatorio)*\n\nPuò assumenre il valore:\n`DELETE`","type":"text"}]},"url":"{{BaseUrl}}/rest/api/verify/command"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"command\": \"DELETE\"\n}"}],"_postman_id":"54c06fd5-2ef1-4985-9b50-fa8255ef1769"},{"name":"Search Code","id":"3d1a844d-97a3-47e4-b90e-368fedd92017","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/verify/search?verify_id=334ecb42ebda471a02adfa044b546e94c2059c97","description":"<p>Get the details of an OTP code.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Parameters not valid<br />Possible errorMsg values are:<br /><code>NO_PARAMS</code> - No parameter is valued<br /><code>VERIFY ID ERROR</code> - verify_id parameter not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>verify_id</code></td>\n<td>request id</td>\n</tr>\n<tr>\n<td><code>verify_status</code></td>\n<td>actual request status</td>\n</tr>\n<tr>\n<td><code>to</code></td>\n<td>SMS recipient</td>\n</tr>\n<tr>\n<td><code>from</code></td>\n<td>message sender</td>\n</tr>\n<tr>\n<td><code>id_sms</code></td>\n<td>id of the SMS sent.</td>\n</tr>\n<tr>\n<td><code>codice</code></td>\n<td>OTP Code sent. <em>Valued only if sandbox=true</em></td>\n</tr>\n<tr>\n<td><code>date_submit</code></td>\n<td>Message sending date.</td>\n</tr>\n<tr>\n<td><code>valid_until</code></td>\n<td>End validity date.</td>\n</tr>\n<tr>\n<td><code>checks</code></td>\n<td>List of recorded verifications:<br /><code>date</code> - verification date<br /><code>verify_code</code> - code sent<br /><code>verify_status</code> - result<br /><code>ip_address</code> - <strong>ip_address</strong> address eventually sent during the verification</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","verify","search"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p>The <strong>verify_id</strong> code received in the send command response.</p>\n","type":"text/plain"},"key":"verify_id","value":"334ecb42ebda471a02adfa044b546e94c2059c97"}],"variable":[]}},"response":[{"id":"e353f9ac-98aa-4320-9761-82e8c23faa76","name":"Ricerca Codice","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/verify/search?verify_id=334ecb42ebda471a02adfa044b546e94c2059c97","host":["{{BaseUrl}}"],"path":["rest","api","verify","search"],"query":[{"key":"verify_id","value":"334ecb42ebda471a02adfa044b546e94c2059c97"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"verify_id\": \"334ecb42ebda471a02adfa044b546e94c2059c97\",\n    \"verify_status\": \"VERIFIED\",\n    \"to\": \"393480000000\",\n    \"from\": \"393480000000\",\n    \"id_sms\": \"410065825\",\n    \"date_submit\": 1480499821000,\n    \"valid_until\": 1480500121000,\n    \"checks\": [\n        {\n            \"date\": 1480499858000,\n            \"verify_code\": \"4506\",\n            \"verify_status\": \"VERIFIED\",\n            \"ip_address\": \"192.168.1.1\"\n        }\n    ]\n}"}],"_postman_id":"3d1a844d-97a3-47e4-b90e-368fedd92017"}],"id":"0e455bb9-968a-4ddc-acae-69050c8259c7","description":"<p>With these requests you will be able to easily send OTP codes without worrying about the sending/validation logic:</p>\n<ul>\n<li>Customizable OTP message content using the <code>${verify_code}</code> placeholder</li>\n<li>OTP Code customizable in length from <strong>4</strong> to <strong>6</strong> characters</li>\n<li>Code validity customizable from <strong>10</strong> to <strong>300</strong> seconds.</li>\n<li>Customizable sender</li>\n<li>Maximum number of validation attempts configurable</li>\n<li>Unicode and other languages support</li>\n</ul>\n","_postman_id":"0e455bb9-968a-4ddc-acae-69050c8259c7","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Alias (SMS Senders)","item":[{"name":"Alias List","id":"cfeb765e-b008-4b8e-a03e-a11602092afc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/alias/list","description":"<p>The list of configured aliases returns.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Alias ID</td>\n</tr>\n<tr>\n<td><code>alias</code></td>\n<td>alias identification string</td>\n</tr>\n<tr>\n<td><code>vatnumber</code></td>\n<td>VAT started</td>\n</tr>\n<tr>\n<td><code>taxcode</code></td>\n<td>tax code</td>\n</tr>\n<tr>\n<td><code>businessname</code></td>\n<td>company name</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td>address</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td>common</td>\n</tr>\n<tr>\n<td><code>postcode</code></td>\n<td>Postcode</td>\n</tr>\n<tr>\n<td><code>provinces</code></td>\n<td>province</td>\n</tr>\n<tr>\n<td><code>country</code></td>\n<td>Nation</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>email</td>\n</tr>\n<tr>\n<td><code>phone</code></td>\n<td>telephone</td>\n</tr>\n<tr>\n<td><code>pec</code></td>\n<td>certified email address</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>Alias status.  <br />The possible statuses are:  <br /><code>VERIFIED</code> - alias verified and usable in sending  <br /><code>NOTVERIFIED</code> - alias not usable in sending as it is not yet verified</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","alias","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"019387da-6d36-4b8f-a7c7-f3d7e1b4653f","name":"Alias List","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/alias/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 13897,\n        \"alias\": \"ACMECompany\",\n        \"vatnumber\": \"01010101251\",\n        \"taxcode\": \"01010101251\",\n        \"businessname\": \"ACME Company\",\n        \"address\": \"via Roma, 1\",\n        \"city\": \"Belluno\",\n        \"postcode\": \"32100\",\n        \"province\": \"BL\",\n        \"country\": \"IT\",\n        \"email\": \"info@acme.company\",\n        \"phone\": \"043700000\",\n        \"pec\": \"acmecompany@acmepec.it\",\n        \"status\": \"VERIFIED\"\n    }\n]"}],"_postman_id":"cfeb765e-b008-4b8e-a03e-a11602092afc"},{"name":"Create Alias","id":"1cd0cd08-3d0e-4903-ac33-cce2a1d8237e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"alias","value":"ACMECompany","description":"<p>[String] <em>(Required)</em></p>\n<p>Alias identifier string.</p>\n<p>The string cannot exceed <strong>11 characters</strong>.</p>\n<p>It can only contain uppercase or lowercase letters (a-z), numbers, spaces and the characters. _ - &amp; @ * ''</p>\n","type":"text"},{"key":"businessname","value":"ACME Company","description":"<p>[String] <em>(Required)</em></p>\n<p>Company name to be associated with the alias</p>\n","type":"text"},{"key":"address","value":"via Roma, 1","description":"<p>[String] <em>(Required)</em></p>\n<p>Address of the company headquarters to be associated with the alias</p>\n","type":"text"},{"key":"city","value":"Belluno","description":"<p>[String] <em>(Required)</em></p>\n<p>City of the company headquarters to associate with the alias</p>\n","type":"text"},{"key":"postcode","value":"32100","description":"<p>[String] <em>(Required)</em></p>\n<p>Postal code of the company headquarters to be associated with the alias</p>\n","type":"text"},{"key":"province","value":"BL","description":"<p>[String] <em>(Required)</em></p>\n<p>Province of the company headquarters to be associated with the alias (two-letter acronym)</p>\n","type":"text"},{"key":"country","value":"IT","description":"<p>[String] <em>(Required)</em></p>\n<p>Country of the company headquarters to be associated with the alias.</p>\n<p>Specify the two-letter ISO 3166-1 code.</p>\n<p>For example, for Italy specify <strong>IT</strong></p>\n","type":"text"},{"key":"vatnumber","value":"01010101251","description":"<p>[String] <em>(Required)</em></p>\n<p>VAT number of the company to be associated with the alias</p>\n","type":"text"},{"key":"email","value":"info@acme.company","description":"<p>[String] <em>(Required)</em></p>\n<p>Company email address to associate with the alias</p>\n","type":"text"},{"key":"contact","value":"3480000000","description":"<p>[String] <em>(Required)</em></p>\n<p>Company telephone number, fax and opening hours to be associated with the alias</p>\n","type":"text"},{"key":"taxcode","value":"01010101251","description":"<p>[String] <em>(Required)</em></p>\n<p>Company tax code to associate with the alias</p>\n","type":"text"},{"key":"pec","value":"acmecompany@acmepec.it","description":"<p>[String] <em>(Required)</em></p>\n<p>Certified email (<em>PEC</em>) to be associated with the alias, for companies not resident in Italy, enter an email address</p>\n","type":"text"},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"<p>[String] <em>(Optional)</em></p>\n<p>URL to which a POST notification will be sent via HTTP/HTTPS with the status (VERIFIED, NOTVERIFIED) of the alias\n.\nThe parameters passed to the call are id, alias and status and the Content Type used is application/x-www-form-urlencoded</p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/alias/","description":"<p>Create a new Alias: in order to use a personalized sender for sending SMS it is mandatory to create a new alias via API or via web interface.<br />The creation of a new Alias via API requires acceptance of the following clause:<br />\"I declare that the data indicated above comply with AGCOM resolutions no. 42/13/CIR, 50/14/CIR, 18/17/CIR, 306/20/CIR and subsequent resolutions issued from time to time and refer to the user of the 'Alias; I also agree that the data provided for registration is publishable and subject to processes for identifying the real originator of the messaging.\"</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan  <br /><code>BAD_ALIAS</code> - <strong>alias</strong> absent or invalid  <br /><code>BAD_BUSINESSNAME</code> - <strong>businessname parameter ** invalid  <br />****<code>BAD_VATNUMBER</code></strong> <strong>- invalid <strong>vatnumber</strong> parameter  <br /><code>BAD_ADDRESS</code> - invalid <strong>address</strong> parameter  <br /><code>BAD_CITY</code> - invalid <strong>city</strong> parameter &lt; br&gt;<code>BAD_POSTCODE</code> - invalid <strong>postcode</strong> parameter  <br /><code>BAD_PROVINCE</code> - invalid <strong>province</strong> parameter  <br /><code>BAD_COUNTRY</code>- invalid <strong>country</strong> parameter  <br /><code>BAD_EMAIL</code> - invalid <strong>email</strong> parameter  <br /><code>BAD_PHONE</code> - invalid <strong>phone</strong> parameter  <br /><code>BAD_TAXCODE</code> - invalid <strong>taxcode</strong> parameter  <br /><code>BAD_PEC</code> - ** parameter invalid pec</strong>  <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","alias",""],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"00b091df-0a0f-4eb7-a2d0-b83255d24d7c","name":"Create Alias","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"alias","value":"ACMECompany","description":"[String] *(Obbligatorio)*\n\nStringa identificativa dell'alias.\n\nLa stringa non può superare gli **11 caratteri**.\n\nPuò contenere solo lettere (a-z) maiuscole o minuscole, numeri, spazi ed i caratteri . _ - & @ * ''","type":"text"},{"key":"businessname","value":"ACME Company","description":"[String] *(Obbligatorio)*\n\nRagione sociale dell'azienda da associare all'alias","type":"text"},{"key":"address","value":"via Roma, 1","description":"[String] *(Obbligatorio)*\n\nIndirizzo della sede dell'azienda da associare all'alias","type":"text"},{"key":"city","value":"Belluno","description":"[String] *(Obbligatorio)*\n\nCittà della sede dell'azienda da associare all'alias","type":"text"},{"key":"postcode","value":"32100","description":"[String] *(Obbligatorio)*\n\nCAP della sede dell'azienda da associare all'alias","type":"text"},{"key":"province","value":"BL","description":"[String] *(Obbligatorio)*\n\nProvincia della sede dell'azienda da associare all'alias (sigla di due lettere)","type":"text"},{"key":"country","value":"IT","description":"[String] *(Obbligatorio)*\n\nNazione della sede dell'azienda da associare all'alias.\n\nSpecificare il codice ISO 3166-1 a due lettere.\n\nAd esempio per l'italia specificare **IT**","type":"text"},{"key":"vatnumber","value":"01010101251","description":"[String] *(Obbligatorio)*\n\nPartita IVA dell'azienda da associare all'alias","type":"text"},{"key":"email","value":"info@acme.company","description":"[String] *(Obbligatorio)*\n\nIndirizzo email dell'azienda da associare all'alias","type":"text"},{"key":"contact","value":"3480000000","description":"[String] *(Obbligatorio)*\n\nNumero di telefono, fax e orari di apertura dell'azienda da associare all'alias","type":"text"},{"key":"taxcode","value":"01010101251","description":"[String] *(Obbligatorio)*\n\nCodice fiscale dell'azienda da associare all'alias","type":"text"},{"key":"pec","value":"acmecompany@acmepec.it","description":"[String] *(Obbligatorio)*\n\nPosta elettronica certificata  (_PEC_) da associare all'alias, per le aziende non residenti in Italia, inserire un indirizzo email","type":"text"},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP/HTTPS una notifica in POST con lo stato (VERIFIED, NOTVERIFIED) dell'alias.\n\nI parametri passati alla chiamata sono id, alias e status e il Content Type utilizzato è application/x-www-form-urlencoded\n\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/alias/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"1cd0cd08-3d0e-4903-ac33-cce2a1d8237e"},{"name":"Delete Alias","id":"87ac8de1-2b3a-4aa5-92b0-525d9641f409","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{BaseUrl}}/rest/api/alias/:aliasId","description":"<p>Permanently delete an Alias.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>ALIAS_NOT_EXISTS</code> - Alias not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","alias",":aliasId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>Internal identifier of the alias to delete</p>\n","type":"text/plain"},"type":"any","value":"123","key":"aliasId"}]}},"response":[{"id":"cb2a01cb-a6ef-46fd-b7ea-9c000bc263d0","name":"Delete Alias","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{BaseUrl}}/rest/api/alias/:aliasId","host":["{{BaseUrl}}"],"path":["rest","api","alias",":aliasId"],"variable":[{"key":"aliasId","value":"123","description":"[Number] *(Obbligatorio)*\n\nIdentificativo interno dell'alias da eliminare"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"87ac8de1-2b3a-4aa5-92b0-525d9641f409"}],"id":"2007d0c4-544b-44be-bc84-0e2b59027264","description":"<p>Aliases are alphanumeric senders (max 11 characters) used for sending SMSs.</p>\n","_postman_id":"2007d0c4-544b-44be-bc84-0e2b59027264","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"SMS Reception","item":[{"name":"Search Received SMS","id":"4c90590d-61d1-431f-a998-85282b4dd5b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/sms/received/search?from=393480000000&simIdRef=&fromDate=&toDate","description":"<p>Search for text messages received with the reception service.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>NO_PARAMS</code> - Missing parameter  <br /><code>BAD_DATE</code> - Bad date format</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>smsList</td>\n<td>List of received text messages, each text message is described by the property:  <br />- <strong>from</strong>: mobile number of the person who sent the message  <br />- <strong>text</strong>: text of the message  <br />\\ - <strong>receiveDate</strong>: date of receipt of the message in the format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>  <br />- <strong>simId</strong>: identifier of the reception service on which the message was received sms</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Useful metadata for <a href=\"#manage-the-response\">pagination</a></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"received-sms-notes\">Received sms notes</h2>\n<p>Value at least one of the following parameters:</p>\n<ul>\n<li><p><code>from</code></p>\n</li>\n<li><p><code>simIdRef</code></p>\n</li>\n<li><p><code>fromDate</code></p>\n</li>\n<li><p><code>toDate</code></p>\n</li>\n</ul>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","sms","received","search"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Sender of received text messages.</p>\n<p>It must be a mobile number including the international prefix.\nYou can specify <em>multiple phone numbers</em> by separating them with the comma character \",\".</p>\n<p>For example:</p>\n<p><strong>393481234567</strong> or <strong>393481234567,393481234568,393481234568</strong></p>\n","type":"text/plain"},"key":"from","value":"393480000000"},{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Identifier of the reception service on which the text messages were received</p>\n","type":"text/plain"},"key":"simIdRef","value":""},{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Messages received \"from date\" in format  <strong>yyyy-MM-ddTHH:mm:ssZ</strong> format\nThe character <strong>Z</strong> indicates the timezone in RFC 822 4-digit format. (For Italy +0200 during summer time and +0100 in the rest of the year)</p>\n","type":"text/plain"},"key":"fromDate","value":""},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be sent back. See <a href=\"#response-handling\">pagination</a>.</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Max number of results that will be sent back. See <a href=\"#response-handling\">pagination</a>.</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"description":{"content":"<p>[String] <em>(Optional)</em>\nMessages received \"to date\" in format <strong>yyyy-MM-ddTHH:mm:ssZ</strong> format\nThe character <strong>Z</strong> indicates the timezone in RFC 822 4-digit format. (For Italy +0200 during summer time and +0100 in the rest of the year)</p>\n","type":"text/plain"},"key":"toDate","value":null}],"variable":[]}},"response":[{"id":"99b74ea5-d8d7-46de-b071-b32efbe5ca98","name":"Cerca SMS Ricevuti","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/sms/received/search?from=393480000000&simIdRef=&fromDate=&toDate","host":["{{BaseUrl}}"],"path":["rest","api","sms","received","search"],"query":[{"key":"from","value":"393480000000","description":"[String] _(Opzionale: valorizzare almeno uno tra **from**, **simIdRef**, **fromDate** o **toDate**)_\n\nMittente degli sms ricevuti.\n\nDeve essere un numero di cellulare compreso di prefisso internazionale.\nÈ possibile specificare _più numeri di telefono_ separandoli con il carattere virgola \",\".\n\nAd esempio:\n\n**393481234567** oppure **393481234567,393481234568,393481234568**"},{"key":"simIdRef","value":"","description":"[Number] _(Opzionale: valorizzare almeno uno tra **from**, **simIdRef**, **fromDate** o **toDate**)_\n\nIdentificativo del servizio di ricezione sui quali sono stati ricevuti gli sms"},{"key":"fromDate","value":"","description":"[String] _(Opzionale: valorizzare almeno uno tra **from**, **simIdRef**, **fromDate** o **toDate**)_\n\nData dalla quale gli sms sono stati ricevuti in formato **yyyy-MM-ddTHH:mm:ssZ**\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit.(Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno)"},{"key":"toDate","value":null,"description":"[String] _(Opzionale: valorizzare almeno uno tra **from**, **simIdRef**, **fromDate** o **toDate**)_\n\nData fino alla quale gli sms sono stati ricevuti in formato **yyyy-MM-ddTHH:mm:ssZ**\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit.(Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno)"},{"key":"offset","value":"0","description":"[Number] *(Opzionale)*\n\nPosizione del primo risultato che verrà restituito. Vedi [paginazione](#gestire-la-risposta).","disabled":true},{"key":"limit","value":"20","description":"[Number] *(Opzionale)*\n\nNumero massimo di risultati che verranno restituiti. Vedi [paginazione](#gestire-la-risposta).","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 2,\n        \"offset\": 0,\n        \"limit\": 20\n    },\n    \"smsList\": [\n        {\n            \"from\": \"+393450000000\",\n            \"text\": \"Test sms 1\",\n            \"receiveDate\": \"2011-04-21T13:23:13+0200\"\n        },\n        {\n            \"from\": \"+393480000000\",\n            \"text\": \"Test sms 1\",\n            \"receiveDate\": \"2011-01-18T11:42:51+0100\"\n        }\n    ]\n}"}],"_postman_id":"4c90590d-61d1-431f-a998-85282b4dd5b2"},{"name":"List of Reception Services","id":"2c0a8d8d-76df-48bc-a474-1a42b75f6fa9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/sms/received/sim/list","description":"<p>The list of reception services purchased returns.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Receiving service identifier (Can be used in the search function to filter SMS)</td>\n</tr>\n<tr>\n<td>sim</td>\n<td>Number on which the reception service is active</td>\n</tr>\n<tr>\n<td>key</td>\n<td>If the receiving service is shared, the <strong>key</strong> field contains the configured key</td>\n</tr>\n<tr>\n<td>expirationDate</td>\n<td>Service expiration date</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","sms","received","sim","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"1a69fa25-b8fd-4ca9-9a7b-797418f3d0a9","name":"Lista dei Servizi di Ricezione","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/sms/received/sim/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"265\",\n        \"sim\": \"393390000000\",\n        \"key\": \"test\",\n        \"receiveDate\": \"2011-04-21T13:23:13+0200\"\n    }\n]"}],"_postman_id":"2c0a8d8d-76df-48bc-a474-1a42b75f6fa9"}],"id":"d6180702-c35a-474d-a547-2c549e0635f9","description":"<p>With these API calls you can interact with the \"Forward SMS\" service.</p>\n","_postman_id":"d6180702-c35a-474d-a547-2c549e0635f9","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"RCS Reception","item":[{"name":"Search Received RCS","id":"80079d47-eca1-4aeb-9143-c2337fa9b35e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/rcs/message/received/search?agentId=1","description":"<p>Search for received RCS.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>NO_PARAMS</code> - Missing parameter  <br /><code>BAD_DATE</code> - Bad date format  <br /><code>BAD_AGENT</code> - agentId not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>rcsList</td>\n<td>List of received RCS. Each RCS is described by the properties:  <br />- <strong>from</strong>: phone number of who sent the RCS  <br />- <strong>text</strong>: text of the RCS  <br />- <strong>receiveDate</strong>: reception date in the format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>  <br />- <strong>agentId</strong>: Identifier of the agent who received the RCS</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Metadata useful for <a href=\"#gestire-la-risposta\">pagination</a></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"received-rcs-notes\">Received RCS notes</h2>\n<p>Set the value to at least one of these parameters:</p>\n<ul>\n<li><code>from</code></li>\n<li><code>simIdRef</code></li>\n<li><code>fromDate</code></li>\n<li><code>toDate</code></li>\n</ul>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","rcs","message","received","search"],"host":["{{BaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Sender of received RCS.</p>\n<p>Must be a phone number with international prefix.</p>\n<p>It's possible to set <em>more phone numbers</em> dividing them with the comma character \",\".</p>\n<p>For example:\n<strong>393481234567</strong> or <strong>393481234567,393481234568,393481234568</strong></p>\n","type":"text/plain"},"key":"from","value":""},{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Identifier of the agent</p>\n","type":"text/plain"},"key":"agentId","value":"1"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Date where the RCS were received with format <strong>yyyy-MM-ddTHH:mm:ssZ</strong></p>\n<p>The character <strong>Z</strong> indicates the timezone in the RFC 822 4-digit format.(For Italy +0200 during the summer timezone and +0100 during the rest of the year)</p>\n","type":"text/plain"},"key":"fromDate","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Date until the RCS were received in the  <strong>yyyy-MM-ddTHH:mm:ssZ format</strong></p>\n<p>The character <strong>Z</strong> indicates the timezone in the RFC 822 4-digit format.(For Italy +0200 during the summer timezone and +0100 during the rest of the year)</p>\n","type":"text/plain"},"key":"toDate","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p><strong>transactionId</strong> assigned during the sending.</p>\n","type":"text/plain"},"key":"transactionId","value":""},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first record received. See <a href=\"#gestire-la-risposta\">pagination</a>.</p>\n","type":"text/plain"},"key":"offset","value":""},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em>\nMaximum number of records in the response. See <a href=\"#gestire-la-risposta\">pagination</a>.</p>\n","type":"text/plain"},"key":"limit","value":""}],"variable":[]}},"response":[{"id":"0e66effe-3bec-4b25-9067-e86b8b4dda71","name":"Search Received RCS","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/rcs/message/received/search?agentId=1","host":["{{BaseUrl}}"],"path":["rest","api","rcs","message","received","search"],"query":[{"key":"from","value":"","description":"[String] _(Optional)_\n\nSender of received RCS.\n\nMust be a phone number with international prefix.\n\nIt's possible to set _more phone numbers_ dividing them with the comma character \",\".\n\nFor example:\n**393481234567** or **393481234567,393481234568,393481234568**","disabled":true},{"key":"agentId","value":"1","description":"[Number] _(Optional)_\n\nIdentifier of the agent"},{"key":"fromDate","value":"","description":"[String] _(Optional)_\n\nDate where the RCS were received with format **yyyy-MM-ddTHH:mm:ssZ**\n\nThe character **Z** indicates the timezone in the RFC 822 4-digit format.(For Italy +0200 during the summer timezone and +0100 during the rest of the year)","type":"text","disabled":true},{"key":"toDate","value":"","description":"[String] _(Optional)_\n\nDate until the RCS were received in the  **yyyy-MM-ddTHH:mm:ssZ format**\n\nThe character **Z** indicates the timezone in the RFC 822 4-digit format.(For Italy +0200 during the summer timezone and +0100 during the rest of the year)","type":"text","disabled":true},{"key":"transactionId","value":"","description":"[String] *(Optional)*\n\n**transactionId** assigned during the sending.","type":"text","disabled":true},{"key":"offset","value":"","description":"[Number] *(Optional)*\n\nPosition of the first record received. See [pagination](#gestire-la-risposta).","type":"text","disabled":true},{"key":"limit","value":"","description":"[Number] *(Optional)*\nMaximum number of records in the reponse. See [pagination](#gestire-la-risposta).","type":"text","disabled":true}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 20\n    },\n    \"rcsList\": [\n        {\n            \"agentId\": \"1\",\n            \"from\": \"3400000000\",\n            \"text\": \"{\\n  \\\"agentId\\\": \\\"AGENT_ID\\\",\\n  \\\"senderPhoneNumber\\\": \\\"PHONE_NUMBER\\\",\\n  \\\"messageId\\\": \\\"MESSAGE_ID\\\",\\n  \\\"sendTime\\\": \\\"2018-12-31T15:01:23.045123456Z\\\",\\n  \\\"text\\\": \\\"Hello, world!\\\"\\n}\",\n            \"receiveDate\": \"2022-07-07T18:14:26+0200\"\n        }\n    ]\n}"}],"_postman_id":"80079d47-eca1-4aeb-9143-c2337fa9b35e"}],"id":"7293693b-4e30-486d-8e0d-0145ef1264d5","description":"<p>With these API requests you will be able to interact with the RCS Reception service.</p>\n","_postman_id":"7293693b-4e30-486d-8e0d-0145ef1264d5","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Send Email","item":[{"name":"Sender List","id":"2a09bb5c-7d85-42ef-a804-729f5b03ba5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/email/sender/list","description":"<p>Retrieve the list of senders configured by the user using the web interface.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> values are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed with the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"descrizione-risposta\">Descrizione Risposta</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>sender identifier</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>email address</td>\n</tr>\n<tr>\n<td><code>emailName</code></td>\n<td>name connected to the email address</td>\n</tr>\n<tr>\n<td><code>validationDate</code></td>\n<td>validation date</td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>insert date</td>\n</tr>\n<tr>\n<td><code>contactCompany</code></td>\n<td>name of the company connected to the email address</td>\n</tr>\n<tr>\n<td><code>contactAddress</code></td>\n<td>address of the company</td>\n</tr>\n<tr>\n<td><code>contactCity</code></td>\n<td>city</td>\n</tr>\n<tr>\n<td><code>contactProvince</code></td>\n<td>province</td>\n</tr>\n<tr>\n<td><code>contactZipCode</code></td>\n<td>Zip Code</td>\n</tr>\n<tr>\n<td><code>contactCountry</code></td>\n<td>country</td>\n</tr>\n<tr>\n<td><code>contactPhone</code></td>\n<td>phone</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","email","sender","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"5ae863dd-e01c-4b62-9c76-159572dcb5d1","name":"sender list","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/email/sender/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"email\": \"mrbrown@fake.com\",\n        \"emailName\": \"Mr. Brown\",\n        \"validationDate\": \"2020-03-13T14:40:51+0100\",\n        \"insertDate\": \"2020-03-13T14:33:30+0100\",\n        \"contactCompany\": \"G\",\n        \"contactAddress\": \"via Roma\",\n        \"contactCity\": \"Belluno\",\n        \"contactProvince\": \"BL\",\n        \"contactZipCode\": \"32100,\n        \"contactCountry\": \"IT\",\n        \"contactPhone\": \"\"\n    }\n]"}],"_postman_id":"2a09bb5c-7d85-42ef-a804-729f5b03ba5e"},{"name":"Template List","id":"abf2b8dc-e355-4dc1-91f5-60098629000f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/email/template/list?offset=0&limit=5","description":"<p>Displays the list of all email templates created by the user using the web interface.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> values are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed with the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<p>The response is a JSON containing a list of  <code>template</code> , each with the following properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>template identifier</td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>template title</td>\n</tr>\n<tr>\n<td><code>editorType</code></td>\n<td>type of the email editor used.</td>\n</tr>\n<tr>\n<td><code>contentType</code></td>\n<td>content type of the email</td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>insert date</td>\n</tr>\n<tr>\n<td><code>updateDate</code></td>\n<td>last edit date</td>\n</tr>\n<tr>\n<td><code>customFieldsKey</code></td>\n<td>list of custom fields used in the template</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","email","template","list"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be retrieved.</p>\n<p>Example:</p>\n<p>If the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10, the templates <strong>from 51 to 60</strong> will be returned.</p>\n<p><strong>Default: 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Maximum number of results that will be retrieved by the search.</p>\n","type":"text/plain"},"key":"limit","value":"5"}],"variable":[]}},"response":[{"id":"ef2f0140-a397-4a6d-901a-bdb84d61a1cd","name":"Lista Modelli","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/email/template/list?offset=0&limit=5","host":["{{BaseUrl}}"],"path":["rest","api","email","template","list"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 2,\n        \"offset\": 0,\n        \"limit\": 20\n    },\n    \"templates\": [\n        {\n            \"id\": 2038,\n            \"title\": \"Modello Uno\",\n            \"editorType\": \"B\",\n            \"contentType\": \"multipart/alternative\",\n            \"insertDate\": \"2020-06-30T13:48:27+0200\",\n            \"updateDate\": \"2020-06-30T14:33:33+0200\",\n            \"customFieldsKey\": [\n                \"f_s_nome\"\n            ]\n        },\n        {\n            \"id\": 299,\n            \"title\": \"test\",\n            \"editorType\": \"B\",\n            \"contentType\": \"multipart/alternative\",\n            \"insertDate\": \"2020-04-10T12:27:37+0200\",\n            \"updateDate\": \"2020-04-10T12:27:50+0200\"\n        }\n    ]\n}"}],"_postman_id":"abf2b8dc-e355-4dc1-91f5-60098629000f"},{"name":"Template Detail","id":"851d77da-82a7-444b-aa3c-2b7e0db2a629","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/email/template/:templateId","description":"<p>Returns the detail of a single email template. The detail also contains the <code>customFieldsKey</code> field which contains the id of the dynamic fields to be filled within the template.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> values are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed with the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>template identifier</td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>template title</td>\n</tr>\n<tr>\n<td><code>editorType</code></td>\n<td>type of the email editor used.</td>\n</tr>\n<tr>\n<td><code>contentType</code></td>\n<td>content type of the email</td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>insert date</td>\n</tr>\n<tr>\n<td><code>updateDate</code></td>\n<td>last edit date</td>\n</tr>\n<tr>\n<td><code>customFieldsKey</code></td>\n<td>list of custom fields used in the template</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","email","template",":templateId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"id":"419aa6eb-8b8f-4117-8e03-72a8db9ea3d1","type":"any","value":"2038","key":"templateId"}]}},"response":[{"id":"fc471b6e-b8bc-411c-b8e0-ac4a555d641e","name":"Dettaglio Modello","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/email/template/:templateId","host":["{{BaseUrl}}"],"path":["rest","api","email","template",":templateId"],"variable":[{"key":"templateId","value":"2038"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2038,\n    \"title\": \"Modello Orange Friday\",\n    \"editorType\": \"B\",\n    \"contentType\": \"multipart/alternative\",\n    \"insertDate\": \"2020-06-30T13:48:27+0200\",\n    \"updateDate\": \"2020-07-01T10:38:46+0200\",\n    \"customFieldsKey\": [\n        \"f_s_nome\"\n    ]\n}"}],"_postman_id":"851d77da-82a7-444b-aa3c-2b7e0db2a629"},{"name":"Email Campaign List","id":"17361157-e4cc-4cdb-9a93-398bbbe66e38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/email/campaign/list?offset=0&limit=5","description":"<p>Returns the list of sent email campaigns.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> values are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed with the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<p>The response is a JSON containing <code>campaignList</code> , each one has the following properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>campaign identifier</td>\n</tr>\n<tr>\n<td><code>campaignTitle</code></td>\n<td>campaign title</td>\n</tr>\n<tr>\n<td><code>templateId</code></td>\n<td>identifier of the template used</td>\n</tr>\n<tr>\n<td><code>from</code></td>\n<td>sender email address</td>\n</tr>\n<tr>\n<td><code>fromName</code></td>\n<td>name connected to the email address</td>\n</tr>\n<tr>\n<td><code>subject</code></td>\n<td>campaign subject</td>\n</tr>\n<tr>\n<td><code>subjectPreviewText</code></td>\n<td>Campaign subject preview</td>\n</tr>\n<tr>\n<td><code>enableOpenTracking</code></td>\n<td>enable the email opening tracking</td>\n</tr>\n<tr>\n<td><code>enableLinkTracking</code></td>\n<td>enable the link tracking</td>\n</tr>\n<tr>\n<td><code>stats</code></td>\n<td>contain the statistics of the campaign. Stats are:  <br /><code>countEmailInserted</code> - Number of inserted emails  <br /><code>countEmailStatusPending</code> - Number of emails to be processed  <br /><code>countEmailStatusNoSent</code> - Number of cancelled emails  <br /><code>countEmailTotSent</code> - Number of sent emails  <br /><code>countEmailStatusBounced</code> - Number of bounced emails  <br /><code>countEmailOpenedUnique</code> - Number of unique openings  <br /><code>countEmailClickUnique</code> - Number of unique clicks  <br /><code>countEmailStatusSpamReport</code> - Number of emails reported as spam  <br /><code>countEmailCauseUnsubscribed</code> - Number of unsubscriptions</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","email","campaign","list"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be retrieved.</p>\n<p>Example:</p>\n<p>If the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10, campaigns <strong>51 through 60</strong> will be returned.</p>\n<p><strong>Default: 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Maximum number of results that will be returned by the search.</p>\n<p><strong>Default : 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"5"}],"variable":[]}},"response":[{"id":"5342657f-2b9d-44e8-b614-829657d3f8b8","name":"Lista Campagne Email","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/email/campaign/list?offset=0&limit=5","host":["{{BaseUrl}}"],"path":["rest","api","email","campaign","list"],"query":[{"key":"offset","value":"0","description":"[Number] *(Opzionale)*\n\nPosizione del primo risultato che verrà restituito.\n\nEsempio:\n\nSe il campo **offset** viene valorizzato a 50 e il campo **limit** a 10 verranno restituiti i coupon **da 51 a 60**.\n\n**Default: 0**"},{"key":"limit","value":"5","description":"[Number] *(Opzionale)*\n\nNumero massimo di risultati che verranno restituiti nella ricerca.\n\n**Default : 20**"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 2,\n        \"offset\": 0,\n        \"limit\": 5\n    },\n    \"campaignList\": [\n        {\n            \"id\": 2385,\n            \"campaignTitle\": \"Invio Orange Friday\",\n            \"templateId\": 2038,\n            \"from\": \"mr.brown@fake.it\",\n            \"fromName\": \"Orange Friday\",\n            \"subject\": \"Why only black? Get the orange\",\n            \"subjectPreviewText\": \"Orange Friday 2020\",\n            \"enableOpenTracking\": true,\n            \"enableLinkTracking\": true,\n            \"stats\": {\n                \"countEmailInserted\": 1,\n                \"countEmailStatusPending\": 0,\n                \"countEmailStatusNoSent\": 0,\n                \"countEmailTotSent\": 1,\n                \"countEmailStatusBounced\": 0,\n                \"countEmailOpenedUnique\": 1,\n                \"countEmailClickUnique\": 0,\n                \"countEmailStatusSpamReport\": 0,\n                \"countEmailCauseUnsubscribed\": 0\n            }\n        },\n        {\n            \"id\": 2570,\n            \"campaignTitle\": \"Invio Blue Monday\",\n            \"templateId\": 2385,\n            \"from\": \"mr.brown@fake.it\",\n            \"fromName\": \"Mr. Brown\",\n            \"subject\": \"Why only black? Get the blue\",\n            \"subjectPreviewText\": \"Get the blue today!\",\n            \"enableOpenTracking\": false,\n            \"enableLinkTracking\": false,\n            \"stats\": {\n                \"countEmailInserted\": 9,\n                \"countEmailStatusPending\": 0,\n                \"countEmailStatusNoSent\": 0,\n                \"countEmailTotSent\": 9,\n                \"countEmailStatusBounced\": 0,\n                \"countEmailOpenedUnique\": 0,\n                \"countEmailClickUnique\": 0,\n                \"countEmailStatusSpamReport\": 0,\n                \"countEmailCauseUnsubscribed\": 0\n            }\n        }\n    ]\n}"}],"_postman_id":"17361157-e4cc-4cdb-9a93-398bbbe66e38"},{"name":"Email Campaign Detail","id":"ee03432a-ea65-4b03-868d-f8fdb5d4f998","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/email/campaign/:campaignId","description":"<p>Returns the detail with data and statistics of a single email campaign.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> values are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed with the current user plan.</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible <code>errorMsg</code> values are:  <br /><code>CAMPAIGN_NOT_EXISTS</code> - Email campaign doesn't exist</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>campaign identifier</td>\n</tr>\n<tr>\n<td><code>campaignTitle</code></td>\n<td>campaign title</td>\n</tr>\n<tr>\n<td><code>templateId</code></td>\n<td>identifier of the template used</td>\n</tr>\n<tr>\n<td><code>from</code></td>\n<td>sender email address</td>\n</tr>\n<tr>\n<td><code>fromName</code></td>\n<td>name connected to the email address</td>\n</tr>\n<tr>\n<td><code>subject</code></td>\n<td>campaign subject</td>\n</tr>\n<tr>\n<td><code>subjectPreviewText</code></td>\n<td>Campaign subject preview</td>\n</tr>\n<tr>\n<td><code>enableOpenTracking</code></td>\n<td>enable the email opening tracking</td>\n</tr>\n<tr>\n<td><code>enableLinkTracking</code></td>\n<td>enable the link tracking</td>\n</tr>\n<tr>\n<td><code>stats</code></td>\n<td>contain the statistics of the campaign. Stats are:  <br /><code>countEmailInserted</code> - Number of inserted emails  <br /><code>countEmailStatusPending</code> - Number of emails to be processed  <br /><code>countEmailStatusNoSent</code> - Number of cancelled emails  <br /><code>countEmailTotSent</code> - Number of sent emails  <br /><code>countEmailStatusBounced</code> - Number of bounced emails  <br /><code>countEmailOpenedUnique</code> - Number of unique openings  <br /><code>countEmailClickUnique</code> - Number of unique clicks  <br /><code>countEmailStatusSpamReport</code> - Number of emails reported as spam  <br /><code>countEmailCauseUnsubscribed</code> - Number of unsubscriptions</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","email","campaign",":campaignId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p><code>id</code> of the email campaign whose details you want to retrieve</p>\n","type":"text/plain"},"type":"any","value":"338","key":"campaignId"}]}},"response":[{"id":"a0d8576c-1d98-47ff-8deb-b6905d363589","name":"Dettaglio Campagna Email","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/email/campaign/:campaignId","host":["{{BaseUrl}}"],"path":["rest","api","email","campaign",":campaignId"],"variable":[{"key":"campaignId","value":"2385","description":"[String] *(Obbligatorio)*\n\n`id` della campagna email di cui si vuole recuperare il dettaglio\n"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 2385,\n    \"campaignTitle\": \"Invio Orange Friday\",\n    \"templateId\": 2038,\n    \"from\": \"mr.brown@fake.it\",\n    \"fromName\": \"Orange Friday\",\n    \"subject\": \"Why only black? Get the orange\",\n    \"subjectPreviewText\": \"Orange Friday 2020\",\n    \"enableOpenTracking\": true,\n    \"enableLinkTracking\": true,\n    \"stats\": {\n        \"countEmailInserted\": 1,\n        \"countEmailStatusPending\": 0,\n        \"countEmailStatusNoSent\": 0,\n        \"countEmailTotSent\": 1,\n        \"countEmailStatusBounced\": 0,\n        \"countEmailOpenedUnique\": 1,\n        \"countEmailClickUnique\": 0,\n        \"countEmailStatusSpamReport\": 0,\n        \"countEmailCauseUnsubscribed\": 0\n    }\n}"}],"_postman_id":"ee03432a-ea65-4b03-868d-f8fdb5d4f998"},{"name":"Search Email","id":"526a0263-aec0-4864-8331-144ba1448e2e","protocolProfileBehavior":{"disabledSystemHeaders":{"accept":true},"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/email/campaign/:campaignId/search","description":"<p>Returns all emails sent with a campaign</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Parameters not valid  <br />Possible errorMsg are:  <br /><code>BAD_STATUS</code> - Status parameter not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>emailList</code></td>\n<td>Emails sent list  <br />Each email is described by properties:  <br /><code>id</code> - email internal id  <br /><code>campaignId</code> - campaign internal id  <br /><code>templateId</code> - template id  <br /><code>to</code> - recipient address  <br /><code>status</code> - email status. See the table below  <br /><code>statusDate</code> - status date of the email in the <strong>yyyy-MM-ddTHH:mm:ssZ</strong> format  <br /><code>insertDate</code> - insert date of the email in the <strong>yyyy-MM-ddTHH:mm:ssZ</strong> format</td>\n</tr>\n<tr>\n<td><code>metadata</code></td>\n<td><a href=\"#response-handling\">pagination</a></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","email","campaign",":campaignId","search"],"host":["{{BaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nEmail Status:</p>\n<ul>\n<li><code>NOSENT</code> - Email not sent</li>\n<li><code>BOUNCED</code> - Email not delivered</li>\n<li><code>SPAMREPORT</code> - Email reported as SPAM</li>\n<li><code>OPENED</code> - Email opened</li>\n<li><code>CLICKED</code> - Email clicked</li>\n<li><code>UNSUBSCRIBED</code> - Unsubscribed by the recipient</li>\n</ul>\n","type":"text/plain"},"key":"status","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Recipient email address</p>\n","type":"text/plain"},"key":"email","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Internal ID of the email sent.\n<strong>Multiple ids</strong> can be specified by separating them with the comma character \"<strong>,</strong>\". (Maximum 2000 id).\nFor example:\n<strong>12312</strong> or <strong>432432,543543,435435</strong></p>\n","type":"text/plain"},"key":"id","value":""},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be returned.\nExample:\nIf the search finds 100 emails, the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10, emails from 51 to 60 will be returned.\n<strong>Default : 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Number of results that will be returned.\n<strong>Default: 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"20"}],"variable":[{"description":{"content":"<p>[String] <em>(Required)</em>\nid of the email campaign whose sent emails</p>\n","type":"text/plain"},"type":"any","value":"123","key":"campaignId"}]}},"response":[{"id":"355236e2-1fd3-4b1a-bb86-1d205376327e","name":"Cerca Email","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx"}],"url":{"raw":"{{BaseUrl}}/rest/api/sms/search?status=OPENED&email=msbrown@fake.com&offset=0&limit=20","host":["{{BaseUrl}}"],"path":["rest","api","sms","search"],"query":[{"key":"status","value":"OPENED","description":"[String] *(Opzionale)*\nStato dell'email:\n* `NOSENT` - Email non inviata\n* `BOUNCED` - Email non consegnata\n* `SPAMREPORT` - Email segnalata come SPAM\n* `OPENED` - Email aperta\n* `CLICKED` - Email cliccata\n* `UNSUBSCRIBED` - Effettuata disiscrizione da parte del destinatario\n"},{"key":"email","value":"msbrown@fake.com","description":"[String] *(Opzionale)*\nIndirizzo email del destinatario"},{"key":"offset","value":"0","description":"[Number] *(Opzionale)*\nPosizione del primo risultato che verrà restituito.\nEsempio:\nSe la ricerca trova 100 email, il campo **offset** viene valorizzato a 50 ed il campo **limit** a 10 verranno restituiti le email da 51 a 60.\n**Default : 0**"},{"key":"limit","value":"20","description":"[Number] *(Opzionale)*\nNumero di risultati che verranno restituiti.\n**Default: 20**"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 20\n    },\n    \"emailList\": [\n        {\n            \"id\": 10002,\n            \"campaignId\": 33333,\n            \"templateId\": 44444,\n            \"to\": \"msbrown@fake.com\",\n            \"status\": \"OPENED\",\n            \"statusDate\": \"2024-04-22T17:15:03+0200\",\n            \"insertDate\": \"2024-04-22T15:41:27+0200\"\n        }\n    ]\n} "}],"_postman_id":"526a0263-aec0-4864-8331-144ba1448e2e"},{"name":"Email Detail","id":"600e2312-4018-4821-a3ab-24c13681c178","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/email/:emailId","description":"<p>Returns the details of a single sent email.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> values are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed with the current user plan.</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible <code>errorMsg</code> values are:  <br /><code>CAMPAIGN_NOT_EXISTS</code> - Email doesn't exist</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>email identifier</td>\n</tr>\n<tr>\n<td><code>campaignId</code></td>\n<td>campaign identified</td>\n</tr>\n<tr>\n<td><code>templateId</code></td>\n<td>template identifier</td>\n</tr>\n<tr>\n<td><code>to</code></td>\n<td>recipient of the email</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>email status. Possible values are:  <br /><code>PENDING</code> - The email is waiting to be sent  <br /><code>SENT</code> - email has been sent  <br /><code>NOSENT</code> - email has been cancelled  <br /><code>DELIVERED</code> - email has been delivered  <br /><code>BOUNCED</code> - email has been refused  <br /><code>SPAMREPORT</code> - email has been reported as SPAM  <br /><code>OPENED</code> - email has been opened  <br /><code>CLICKED</code> - a click has been made on the email  <br /><code>UNSUBSCRIBED</code> - contact has unsubscribed</td>\n</tr>\n<tr>\n<td><code>statusInfo</code></td>\n<td>type of bounce (<code>HARD/SOFT</code>) only if status <code>BOUNCED</code></td>\n</tr>\n<tr>\n<td><code>statusDescription</code></td>\n<td>description cause bounce (only if status <code>BOUNCED</code>)</td>\n</tr>\n<tr>\n<td><code>statusDate</code></td>\n<td>status update date</td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>insert date</td>\n</tr>\n<tr>\n<td><code>sentDate</code></td>\n<td>sent date</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","email",":emailId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p><code>id</code> of the email message whose details you want to retrieve</p>\n","type":"text/plain"},"type":"any","value":"338","key":"emailId"}]}},"response":[{"id":"52bb8185-d8fb-4695-98b3-00432ce0dcf8","name":"Dettaglio Email","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/email/:emailId","host":["{{BaseUrl}}"],"path":["rest","api","email",":emailId"],"variable":[{"key":"emailId","value":"338","description":"`id` del messaggio email di cui si vogliono recuperare i dettagli\n"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 338,\n    \"campaignId\": 4,\n    \"templateId\": 38,\n    \"to\": \"msbrown@fake.com\",\n    \"status\": \"DELIVERED\",\n    \"statusDate\": \"2020-03-17T11:02:39+0100\",\n    \"insertDate\": \"2020-03-17T11:00:03+0100\",\n    \"sentDate\": \"2020-03-17T11:02:35+0100\"\n}"}],"_postman_id":"600e2312-4018-4821-a3ab-24c13681c178"},{"name":"Send Campaign","id":"155f8924-55dc-4075-ace6-e1a54bda9af0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"templateId","value":"2038","description":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the template that will be used for the sending. It can be recovered from web interface from the page of detail of the template. To see the detail click: Email -&gt; Templates -&gt; Edit Template -&gt; \"Internal Identifier\".</p>\n","type":"text"},{"key":"from","value":"mrbrown@fake.it","description":"<p>[String] <em>(Required)</em></p>\n<p>Email address of the sender, it must be a verified sender from web interface</p>\n","type":"text"},{"key":"fromName","value":"Orange Friday","description":"<p>[String] <em>(Required)</em></p>\n<p>Name that will appear to the recipient as the sender of the email</p>\n","type":"text"},{"key":"group","value":"103838","description":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the group to which the email should be sent, retrievable from the web interface or through the call <em>Groups Address Book -&gt; Group List</em>.</p>\n","type":"text"},{"key":"subject","value":"Why only black? Get the orange","description":"<p>[String] <em>(Required)</em></p>\n<p>Email subject. </p>\n","type":"text"},{"key":"campaignTitle","value":"Invio Orange Friday","description":"<p>[String] <em>(Required)</em></p>\n<p>Email campaign title. </p>\n","type":"text"},{"key":"subjectPreviewText","value":"Orange Friday 2020","description":"<p>[String] <em>(Optional)</em></p>\n<p>Preview of the email text (<em>this text is only displayed in some mail clients</em>)</p>\n","type":"text"},{"key":"enableOpenTracking","value":"false","description":"<p>[Boolean] <em>(Optional)</em></p>\n<p>If set to <code>false</code> disable tracking of the email opening</p>\n<p><strong>Default: true</strong></p>\n","type":"text","disabled":true},{"key":"enableLinkTracking","value":"false","description":"<p>[Boolean] <em>(Optional)</em></p>\n<p>If set to <code>false</code> disable tracking for clicks on links in the email</p>\n<p><strong>Default: true</strong></p>\n","type":"text","disabled":true},{"key":"date\n","value":"2029-01-01T00:00:01%2B0200","description":"<p>[String] <em>(Optional)</em></p>\n<p>Sends the campaign at the specified date and time in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"<p>[Boolean] <em>(Optional)</em></p>\n<p>If set to <code>true</code>, it simulates sending without actually sending the email.</p>\n<p><strong>Default: false</strong></p>\n","type":"text"},{"key":"replyTo","value":"replytoAddress@fake.it","description":"<p>[String] <em>(Optional)</em>\nEmail Reply To Address</p>\n","type":"text","disabled":true},{"key":"replyToName","value":"replyToName","description":"<p>[String] <em>(Optional)</em>\nName connected to the reply to address</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/email/campaign/send","description":"<p>Allows you to send an email campaign to a group of contacts in your address book.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_TEMPLATEID</code> - Template identifier is missing or it doesn't exist  <br /><code>BAD_FROM</code> - Missing or unverified sender email address  <br /><code>BAD_GROUP</code> - Missing group identifier or non-existing group  <br /><code>BAD_SUBJECT</code> - Email subject missing  <br /><code>BAD_CAMPAIGN_TITLE</code> - Campaign title missing  <br /><code>BAD_DATE</code> - Not valid date or date format  <br /><code>NO_CREDIT</code> - The number of remaining emails is not sufficient to send the campaign  <br /><code>GENERIC_ERROR</code> - Generic error  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"descrizione-risposta\">Descrizione Risposta</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>campaignId</code></td>\n<td>campaign identifier</td>\n</tr>\n<tr>\n<td><code>emailInserted</code></td>\n<td>number of inserted emails</td>\n</tr>\n<tr>\n<td><code>emailNotInserted</code></td>\n<td>number of not inserted emails</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","email","campaign","send"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"bfdffc79-61fd-4d45-9fda-60b8115f53ac","name":"Invio Campagna","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"templateId","value":"2038","description":"[Number] *(Obbligatorio)*\n\n`id` del template da utilizzare per l'invio, può essere recuperato da interfaccia web dalla pagina di dettaglio del modello. Per vedere il dettaglio clicca: Email -> Modelli -> Modifica Modello -> \"Identificativo interno\"","type":"text"},{"key":"from","value":"mrbrown@fake.it","description":"[String] *(Obbligatorio)*\n\nIndirizzo email del mittente dell'invio, deve essere un mittente verificato da interfaccia web","type":"text"},{"key":"group","value":"101745","description":"[Number] *(Obbligatorio)*\n\n`id` del gruppo a cui inviare l'email, recuperabile da interfaccia web o tramite la chiamata _Gruppi Rubrica -> Lista Gruppi_","type":"text"},{"key":"subject","value":"Why only black? Get the orange","description":"[String] *(Obbligatorio)*\n\nOggetto dell'email","type":"text"},{"key":"fromName","value":"Orange Friday","description":"[String] *(Obbligatorio)*\n\nNome che comparirà al destinatario come mittente dell'email","type":"text"},{"key":"campaignTitle","value":"Invio Orange Friday","description":"[String] *(Opzionale)*\n\nTitolo della campagna email","type":"text"},{"key":"subjectPreviewText","value":"Orange Friday 2020","description":"[String] *(Opzionale)*\n\nAnteprima del testo dell'email (_questo testo è mostrato solo in alcuni client di posta_)","type":"text"},{"key":"enableOpenTracking","value":"false","description":"[Boolean] *(Opzionale)*\n\nSe impostato a `false` disabilita il tracciamento per l'apertura dell'email\n\n**Default: true**","type":"text","disabled":true},{"key":"enableLinkTracking","value":"false","description":"[Boolean] *(Opzionale)*\n\nSe impostato a `false` disabilita il tracciamento per i click sui link presenti nell'email\n\n**Default: true**","type":"text","disabled":true},{"key":"date\n","value":"2029-01-01T00:00:01%2B0200","description":"[String] *(Opzionale)*\n\nInvia la campagna alla data e ora specificate nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"[Boolean] *(Opzionale)*\n\nSe impostato a `true` simula l'invio senza inviare realmente le email\n\n**Default: false**","type":"text"}]},"url":"{{BaseUrl}}/rest/api/email/campaign/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"campaignId\": 13811,\n    \"emailInserted\": 38000,\n    \"emailNotInserted\": 0\n}"}],"_postman_id":"155f8924-55dc-4075-ace6-e1a54bda9af0"},{"name":"Send Single Email","id":"72605817-23bc-47f9-b3e0-cc873578d3dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"templateId","value":"2035","description":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the template to be used for the sending. It can be recovered from web interface from the template detail page. To see the detail click: Email -&gt; Templates -&gt; Edit Template -&gt; \"Internal Identifier\".</p>\n","type":"text"},{"key":"from","value":"mrbrown@fake.it","description":"<p>[String] <em>(Required)</em></p>\n<p>Email address of the sender. It must be a verified sender from web interface</p>\n","type":"text"},{"key":"fromName","value":"Mr. Brown","description":"<p>[String] <em>(Required)</em></p>\n<p>Name that will appear to the recipient as the sender of the email</p>\n","type":"text"},{"key":"to","value":"[{'to':'ms.green@fake.it','f_s_nome':'Clara'},{'to':'mr.yellow@fake.it','f_s_nome':'John'}]","description":"<p>[String] <em>(Required)</em></p>\n<p>Recipient of the email in one of the following formats:</p>\n<ul>\n<li>single recipient <code>ms.green@fake.it</code></li>\n<li>a list <strong>up to 50</strong> recipients in json format that can also contain custom fields to replace in the text: <code>[{'to':'ms.green@fake.it','f_s_nome':'Ms Green'},{'to':'mr.yellow@fake.it','f_s_nome':'John Yellow'}]</code></li>\n</ul>\n","type":"text"},{"key":"subject","value":"Appointment reminder","description":"<p>[String] <em>(Required)</em></p>\n<p>Email subject</p>\n","type":"text"},{"key":"subjectPreviewText","value":"preview","description":"<p>[String] <em>(Optional)</em></p>\n<p>Preview of the text of the email (<em>this text is only displayed in some mail clients</em>)</p>\n","type":"text"},{"key":"enableOpenTracking","value":"false","description":"<p>[Boolean] <em>(Optional)</em></p>\n<p>If set to <code>false</code> disable tracking for the email openings</p>\n<p><strong>Default: true</strong></p>\n","type":"text","disabled":true},{"key":"enableLinkTracking","value":"false","description":"<p>[Boolean] <em>(Optional)</em></p>\n<p>If set to <code>false</code> disable tracking for clicks on links in the email</p>\n<p><strong>Default: true</strong></p>\n","type":"text","disabled":true},{"key":"date","value":"2029-01-01T00:00:01%2B0200","description":"<p>[String] <em>(Optional)</em></p>\n<p>Sends the campaign at the specified date and time in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"<p>[Boolean] <em>(Optional)</em></p>\n<p>If set to <code>true</code>, it simulates the sending without actually sending the email.\n<strong>Default: false</strong></p>\n","type":"text","disabled":true},{"key":"replyTo","value":"replytoAddress@fake.it","description":"<p>[String] <em>(Optional)</em>\nEmail Reply To Address</p>\n","type":"text","disabled":true},{"key":"replyToName","value":"replyToName","description":"<p>[String] <em>(Optional)</em>\nName connected to the reply to address</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/email/send","description":"<p>Allows you to send a single email to up to <strong>50</strong> recipients, even if they are not in an address book group.</p>\n<img src=\"https://smshosting.s3.eu-west-3.amazonaws.com/warning_en.png\" alt />\n\n<blockquote>\n<p>Pay special attention because the <strong>id</strong> of the Email could be a <strong>64-bit integer</strong> (int64)<br /><strong>Check that your platform can handle it!</strong></p>\n</blockquote>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_TEMPLATEID</code> - Template identifier missing or template not existing  <br /><code>BAD_FROM</code> - Missing or unverified sender email address  <br /><code>BAD_GROUP</code> - Group identifier missing or not existing group  <br /><code>BAD_SUBJECT</code> - Missing subject  <br /><code>BAD_CAMPAIGN_TITLE</code> - Missing campaign title  <br /><code>BAD_TO_SIZE</code> - Too many recipients  <br /><code>BAD_DATE</code> - Bad date format or invalid date  <br /><code>NO_CREDIT</code> - The number of remaining emails is not sufficient to send the campaign  <br /><code>GENERIC_ERROR</code> - Generic error  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>emailInserted</code></td>\n<td>number of inserted emails</td>\n</tr>\n<tr>\n<td><code>emailNotInserted</code></td>\n<td>number of not inserted emails</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>list with details of the emails containing the following properties:<br /><code>id</code> - internal identifier of the email<br /><code>to</code> - recipient of the email<br /><code>status</code> - status of the email</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","email","send"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"0d9c0cbb-b6a2-484f-8bad-6cf6a87c806b","name":"Invio Singola Email","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"templateId","value":"2035","description":"[Number] *(Obbligatorio)*\n\n`id` del template da utilizzare per l'invio, può essere recuperato da interfaccia web dalla pagina di dettaglio del modello. Per vedere il dettaglio clicca: Email -> Modelli -> Modifica Modello -> \"Identificativo interno\"","type":"text"},{"key":"from","value":"mrbrown@fake.it","description":"[String] *(Obbligatorio)*\n\nIndirizzo email del mittente dell'invio, deve essere un mittente verificato da interfaccia web","type":"text"},{"key":"fromName","value":"Mr. Brown","description":"[String] *(Obbligatorio)*\n\nNome che comparirà al destinatario come mittente dell'email","type":"text"},{"key":"to","value":"[{'to':'ms.green@fake.it','f_s_nome':'Clara'},{'to':'mr.yellow@fake.it','f_s_nome':'John'}]","description":"[String] *(Obbligatorio)*\n\nDestinatario della mail in uno dei seguenti formati:\n* destinatario singolo `ms.green@fake.it`\n* una lista **fino a 50** destinatari in formato json che può contenere anche i campi personalizzati da sostituire nel testo: `[{'to':'ms.green@fake.it','f_s_nome':'Ms Green'},{'to':'mr.yellow@fake.it','f_s_nome':'John Yellow'}]`","type":"text"},{"key":"subject","value":"Promemoria Appuntamento","description":"[String] *(Obbligatorio)*\n\nOggetto dell'email","type":"text"},{"key":"subjectPreviewText","value":"preview","description":"[String] *(Opzionale)*\nAnteprima del testo dell'email (_questo testo è visualizzato solo in alcuni client di posta_)","type":"text"},{"key":"enableOpenTracking","value":"false","description":"[Boolean] *(Opzionale)*\n\nSe impostato a `false` disabilita il tracciamento per l'apertura dell'email\n\n**Default: true**","type":"text","disabled":true},{"key":"enableLinkTracking","value":"false","description":"[Boolean] *(Opzionale)*\n\nSe impostato a `false` disabilita il tracciamento per i click sui link presenti nell'email\n\n**Default: true**","type":"text","disabled":true},{"key":"date","value":"2029-01-01T00:00:01%2B0200","description":"[String] *(Opzionale)*\n\nInvia la campagna alla data e ora specificate nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","type":"text","disabled":true},{"key":"sandbox","value":"true","description":"[Boolean] *(Opzionale)*\n\nSe impostato a `true` simula l'invio senza inviare realmente le email\n**Default: false**","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/email/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"emailInserted\": 2,\n    \"emailNotInserted\": 0,\n    \"email\": [\n        {\n            \"id\": 869382,\n            \"to\": \"ms.green@fake.it\",\n            \"status\": \"INSERTED\"\n        },\n        {\n            \"id\": 869383,\n            \"to\": \"mr.yellow@fake.it\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"}],"_postman_id":"72605817-23bc-47f9-b3e0-cc873578d3dd"}],"id":"2ebc1f03-784f-4038-8923-0686d27ecc21","description":"<p>These APIs allow you to automatically manage your email campaigns.</p>\n<blockquote>\n<p>Email sending is a <em>Premium Plan</em> feature. Activate your trial period for free.</p>\n</blockquote>\n<blockquote>\n<p><strong>To be able to use the <em>Email API</em> you must request the specific permission</strong>.\n<a href=\"https://www.smshosting.it/it/supporto-tecnico-e-commerciale\">Apply here</a></p>\n</blockquote>\n","_postman_id":"2ebc1f03-784f-4038-8923-0686d27ecc21","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Fidelity Card","item":[{"name":"Fidelity List","id":"5dfefcac-007e-47a7-b07f-222b9980adbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/fidelity/list","description":"<p>Returns the list of the user's Fidelity programs.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","fidelity","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"c80e5ddb-13dd-4d4f-9aba-4b37f4ac8b26","name":"Fidelity list","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/fidelity/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"fidelityList\": [\n        {\n            \"id\": 38,\n            \"name\": \"Superfreddo Gelato\",\n            \"pointValue\": 5\n        }\n    ]\n}"}],"_postman_id":"5dfefcac-007e-47a7-b07f-222b9980adbf"},{"name":"Fidelity Card List","id":"55415d80-6e81-447e-8a4f-40ae908463ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/fidelity/:id/card/list","description":"<p>The paged list of all Fidelity Cards associated with the Fidelity program returns.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>BAD_DATE</code> - Invalid date format <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","fidelity",":id","card","list"],"host":["{{BaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Maximum number of results that will be returned in the search.</p>\n<p><strong>Default : 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"5"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be returned.</p>\n<p>Example:</p>\n<p>If the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10, fidelity cards <strong>from 51 to 60</strong> will be returned.</p>\n<p><strong>Default: 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Fidelity Card issue date in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"fromDate","value":"2019-11-22T11:22:33%2B0200"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Fidelity Card issue date in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"toDate","value":"2019-11-23T11:22:33%2B0200"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Id of the contact to which the fidelity is associated</p>\n","type":"text/plain"},"key":"idContact","value":"123"}],"variable":[{"description":{"content":"<p>[Number <em>(Required)</em></p>\n<p><strong>id</strong> of the <em>Fidelity program</em> retrieved with the <em><strong>Fidelity List</strong></em> call</p>\n","type":"text/plain"},"type":"any","value":"123","key":"id"}]}},"response":[{"id":"e545f90e-0ac0-47bc-8f8f-274b963d0248","name":"Fidelity Card List","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/fidelity/:id/card/list","host":["{{BaseUrl}}"],"path":["rest","api","fidelity",":id","card","list"],"query":[{"key":"limit","value":"5","description":"[Number] *(Opzionale)*\n\nNumero massimo di risultati che verranno restituiti nella ricerca.\n\n**Default : 20**","disabled":true},{"key":"offset","value":"0","description":"[Number] *(Opzionale)*\n\nPosizione del primo risultato che verrà restituito.\n\nEsempio:\n\nSe il campo **offset** viene valorizzato a 50 e il campo **limit** a 10 verranno restituite le fidelity card **da 51 a 60**.\n\n**Default: 0**","disabled":true},{"key":"fromDate","value":"2019-11-22T11:22:33%2B0200","description":"[String] *(Opzionale)*\n\nData di emissione della Fidelity Card nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","disabled":true},{"key":"toDate","value":"2019-11-23T11:22:33%2B0200","description":"[String] *(Opzionale)*\n\nData di emissione della Fidelity Card nel formato **yyyy-MM-dd'T'HH:mm:ssZ**\n","disabled":true},{"key":null,"value":null,"disabled":true}],"variable":[{"key":"id","value":"123","description":"[Number] *(Obbligatorio)*\n\n**id** del *programma Fidelity* recuperato con la chiamata _**Fidelity List**_"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 15,\n        \"offset\": 0,\n        \"limit\": 3\n    },\n    \"fidelityCardList\": [\n        {\n            \"fidelityId\": 123,\n            \"fidelityCardId\": 2668,\n            \"fidelityCode\": \"CARD_00011\",\n            \"activationDate\": \"2019-11-22T16:11:23+0100\",\n            \"active\": true,\n            \"points\": 21\n        },\n        {\n            \"fidelityId\": 123,\n            \"fidelityCardId\": 2669,\n            \"fidelityCode\": \"CARD_00014\",\n            \"activationDate\": \"2019-11-22T16:11:23+0100\",\n            \"active\": true,\n            \"points\": 0\n        },\n        {\n            \"fidelityId\": 123,\n            \"fidelityCardId\": 2670,\n            \"fidelityCode\": \"CARD_00021\",\n            \"activationDate\": \"2019-11-22T16:11:23+0100\",\n            \"active\": true,\n            \"points\": 0\n        }\n    ]\n}"}],"_postman_id":"55415d80-6e81-447e-8a4f-40ae908463ec"},{"name":"Fidelity Card Add","id":"a2c4a27e-8271-4f96-bd0e-aadeb52835a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"msisdn","value":"393400000000","description":"<p>[String] <em>(Required)</em></p>\n<p> Contact's phone number (country code included).</p>\n<p>Es. <strong>393400000000</strong></p>\n","type":"text"},{"key":"cardCode","value":"CARD0001","description":"<p>[String] <em>(Optional)</em></p>\n<p>Fidelity Card code from <strong>6</strong> to <strong>30</strong> characters <strong>0-9A-Za-z_</strong>.</p>\n<p>If not set, a random one (<strong>15</strong> characters) will be generated automatically.</p>\n","type":"text"},{"key":"startingPoints","value":"3","description":"<p>[Number] <em>(Optional)</em></p>\n<p>Points added to the fidelity card during creation.</p>\n","type":"text","disabled":true},{"key":"startingAmount","value":"7.15","description":"<p>[Decimal] <em>(Optional)</em></p>\n<p>Amount spent to add to the Fidelity Card upon creation.</p>\n","type":"text","disabled":true},{"key":"sendSms","value":"false","description":"<p>[Boolean] <em>(Optional)</em></p>\n<p>Default: <code>true</code> send an sms to the contact with a short url to let them add the Fidelity Card to a digital wallet (Google Pay or Apple Wallet)</p>\n<p>If set to<code>false</code> the sms is not sent.</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/fidelity/:id/card","description":"<p>Adds a <em>Fidelity Card</em> to the <em>Fidelity Program</em> and adds it to the contact.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are: <br /><code>BAD_CONTACT</code> - The contact does not exist <br /><code>DUPLICATED_CONTACT</code> - There is more than one contact with the same mobile number <br /><code>CONTACT_HAS_FIDELITY</code> - The contact already has an associated fidelity card &lt; br&gt;<code>BAD_FIDELITY</code> - Invalid Fidelity Code <br /><code>BAD_CARD_CODE</code> - Invalid Fidelity Card Code <br /><code>DUPLICATED_CARD_CODE</code> - A Fidelity Card with this code already exists <br /><code>BAD_POINTS</code> - Points assigned to the Fidelity Card in invalid format <br /><code>BAD_AMOUNT -</code> Amount assigned to Fidelity Card in invalid format <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","fidelity",":id","card"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><strong>id</strong> of the <em>Fidelity program</em> retrieved with the <em><strong>Fidelity List</strong></em> call</p>\n","type":"text/plain"},"type":"any","value":"123","key":"id"}]}},"response":[{"id":"3c6d21e2-7d96-4f32-80fa-8587b9457af1","name":"Fidelity Card Add","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"msisdn","value":"393400000000","description":"[String] *(Obbligatorio)*\n\nNumero di cellulare del contatto compreso di prefisso internazionale.\n\nEs. **393400000000**","type":"text"},{"key":"cardCode","value":"CARD0001","description":"[String] *(Opzionale)*\n\nCodice della Fidelity Card da **6** a **30** caratteri **0-9A-Za-z_**.\n\nSe assente ne verrà generato uno di **15** caratteri in automatico.","type":"text"},{"key":"startingPoints","value":"3","description":"[Number] *(Opzionale)*\n\nPunti caricati sulla Fidelity Card al momento della creazione.","type":"text","disabled":true},{"key":"startingAmount","value":"7.15","description":"[Decimal] *(Opzionale)*\n\nImporto speso associato alla Fidelity Card al momento della creazione.","type":"text","disabled":true},{"key":"sendSms","value":"false","description":"[Boolean] *(Opzionale)*\n\nDefault: `true` manda un sms al contatto con uno short url che permette di aggiungere la Fidelity Card al wallet dello smartphone (Google Pay o Apple Wallet).\n\nSe valorizzato a `false` non manda l'sms al contatto.\n","type":"text","disabled":true}]},"url":{"raw":"{{BaseUrl}}/rest/api/fidelity/:id/card","host":["{{BaseUrl}}"],"path":["rest","api","fidelity",":id","card"],"variable":[{"key":"id","value":"123","description":"[Number *(Obbligatorio)*\n\n**id** del *programma Fidelity* recuperato con la chiamata _**Fidelity List**_"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"fidelityId\": 38,\n    \"fidelityCardId\": 1234,\n    \"fidelityCode\": \"F582323963717\",\n    \"activationDate\": \"2019-12-03T14:26:48+0100\",\n    \"active\": true,\n    \"points\": 0\n}"}],"_postman_id":"a2c4a27e-8271-4f96-bd0e-aadeb52835a2"},{"name":"Fidelity Card Detail","id":"7285e71d-e10b-4dd6-9956-44ba254bc197","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode","description":"<p>The detail of a Fidelity Card returns.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","fidelity",":id","card",":fidelityCode"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><strong>id</strong> of the <em>Fidelity program</em> retrieved with the <em><strong>Fidelity List</strong></em> call</p>\n","type":"text/plain"},"type":"any","value":"123","key":"id"},{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p><em>Fidelity Card</em> code</p>\n","type":"text/plain"},"type":"any","value":"CARD0001","key":"fidelityCode"}]}},"response":[{"id":"aae96af1-d7c9-4ffd-8d28-66a72d8a1d79","name":"Fidelity Card Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode","host":["{{BaseUrl}}"],"path":["rest","api","fidelity",":id","card",":fidelityCode"],"variable":[{"key":"id","value":"123","description":"[Number] *(Obbligatorio)*\n\n**id** del *programma Fidelity* recuperato con la chiamata _**Fidelity List**_"},{"key":"fidelityCode","value":"CARD0001","description":"[String] *(Obbligatorio)*\n\nCodice della *Fidelity Card*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"fidelityId\": 123,\n    \"fidelityCardId\": 12345,\n    \"fidelityName\": \"Programma fidelity supercool\",\n    \"contactDetail\": {\n        \"msisdn\": \"393480000000\",\n        \"name\": \"Mario\",\n        \"lastname\": \"Rossi\",\n        \"email\": \"mario.rossi@fake.it\",\n        \"groups\": [\n            {\n                \"id\": 10001,\n                \"name\": \"amici\"\n            }\n        ],\n        \"customFields\": [\n            {\n                \"fieldKey\": \"f_s_msisdn\",\n                \"fieldName\": \"Cellulare\",\n                \"fieldValue\": \"393480000000\"\n            },\n            {\n                \"fieldKey\": \"f_s_email\",\n                \"fieldName\": \"Email\",\n                \"fieldValue\": \"mario.rossi@fake.it\"\n            },\n            {\n                \"fieldKey\": \"f_s_nome\",\n                \"fieldName\": \"Nome\",\n                \"fieldValue\": \"Mario\"\n            },\n            {\n                \"fieldKey\": \"f_s_cognome\",\n                \"fieldName\": \"Cognome\",\n                \"fieldValue\": \"Rossi\"\n            }\n        ]\n    },\n    \"fidelityCode\": \"CARD0001\",\n    \"activationDate\": \"2019-11-22T16:11:23+0100\",\n    \"active\": true,\n    \"points\": 7\n}"}],"_postman_id":"7285e71d-e10b-4dd6-9956-44ba254bc197"},{"name":"Fidelity Card Records","id":"132a0ca4-33be-4b18-90eb-3e415f8e6bc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode/record/list","description":"<p>Get the paged list of all the points/rewards assigned to the Fidelity Card.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_DATE</code> - Invalid date format  <br /><code>BAD_CARD_CODE</code> - Invalid Fidelity Card code  <br /><code>BAD_ACTION</code> - Invalid Fidelity Card action  <br /><code>PLAN_NOT_ENABLED</code> - This call is not permitted under the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","fidelity",":id","card",":fidelityCode","record","list"],"host":["{{BaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Filter the type of operation carried out on fidelity, the possible values are:</p>\n<ul>\n<li><code>ADD</code> - Points added to the Loyalty Card</li>\n<li><code>REWARD</code> - Rewards assigned to the Loyalty Card</li>\n<li><code>RESET</code> - Resetting points</li>\n<li><code>IMPORT</code> - Points added to Fidelity Card bulk import</li>\n<li><code>CREATE</code> - Points added when creating Loyalty Card</li>\n<li><code>PLAN_NOT_ENABLED</code> - This call is not allowed in the user plan</li>\n</ul>\n","type":"text/plain"},"key":"action","value":"ADD"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Maximum number of results that will be returned in the search.</p>\n<p><strong>Default : 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be returned.</p>\n<p>Example:</p>\n<p>If the <strong>offset</strong> field is set to <strong>50</strong> and the limit field to <strong>10</strong>, records <strong>51 to 60</strong> will be returned.\n<strong>Default: 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"10"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Date of the operation on the Fidelity Card in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"fromDate","value":"2019-11-27T15:38:09%2B0100"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Date of the operation on the Fidelity Card in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"toDate","value":"2019-11-22T11:22:33%2B0200"}],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><strong>id</strong> of the <em>Fidelity program</em> retrieved with the <em><strong>Fidelity List</strong></em> call</p>\n","type":"text/plain"},"type":"any","value":"123","key":"id"},{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p><em>Fidelity Card</em> code</p>\n","type":"text/plain"},"type":"any","value":"CARD0001","key":"fidelityCode"}]}},"response":[{"id":"9f46250e-52ea-4c52-b9e2-37e4bf31819e","name":"Fidelity Card Records","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode/record/list","host":["{{BaseUrl}}"],"path":["rest","api","fidelity",":id","card",":fidelityCode","record","list"],"query":[{"key":"action","value":"ADD","description":"[String] *(Opzionale)*\n\nFiltra il tipo di operazione effettuata sulla fidelity, i possibili valori sono:\n\n* `ADD` - Punti aggiunti alla Fidelity Card\n* `REWARD` - Premi assegnato alla Fidelity Card\n* `AZZERA` - Azzeramento punti\n* `IMPORT` - Punti aggiunti all'import bulk della Fidelity Card\n* `CREATE` - Punti aggiunti alla creazione della Fidelity Card\n* `PLAN_NOT_ENABLED` - Questa chiamata non è permessa nel piano utente","disabled":true},{"key":"limit","value":"10","description":"[Number] *(Opzionale)*\n\nNumero massimo di risultati che verranno restituiti nella ricerca.\n\n**Default : 20**","disabled":true},{"key":"offset","value":"10","description":"[Number] *(Opzionale)*\n\nPosizione del primo risultato che verrà restituito.\n\nEsempio:\n\nSe il campo **offset** viene valorizzato a **50** e il campo limit a **10** verranno restituiti i record **da 51 a 60**.\n\n**Default: 0**","disabled":true},{"key":"fromDate","value":"2019-11-27T15:38:09%2B0100","description":"[String] *(Opzionale)*\n\nData dell'operazione sulla Fidelity Card nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","disabled":true},{"key":"toDate","value":"2019-11-22T11:22:33%2B0200","description":"[String] *(Opzionale)*\n\nData dell'operazione sulla Fidelity Card nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","disabled":true}],"variable":[{"key":"id","value":"123","description":"[Number] *(Obbligatorio)*\n\n**id** del *programma Fidelity* recuperato con la chiamata _**Fidelity List**_"},{"key":"fidelityCode","value":"CARD0001","description":"[String] *(Obbligatorio)*\n\nCodice della *Fidelity Card*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"158"},{"key":"Date","value":"Tue, 11 May 2021 10:52:09 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 20\n    },\n    \"fidelityCardRecordList\": [\n        {\n            \"id\": 123456,\n            \"points\": 2,\n            \"amount\": 5.38,\n            \"action\": \"ADD\",\n            \"date\": \"2021-05-11T12:52:02+0200\"\n        }\n    ]\n}"}],"_postman_id":"132a0ca4-33be-4b18-90eb-3e415f8e6bc3"},{"name":"Fidelity Card Record Retrieve","id":"36c10008-b7b5-4b33-ac71-1ba09fa4eb22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode/record/:recordId","description":"<p>Retrieve information from a points movement record on a Fidelity Card</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>RECORD_NOT_EXISTS</code> - Record not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","fidelity",":id","card",":fidelityCode","record",":recordId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><strong>id</strong> of the <em>Fidelity program</em> retrieved with the <em><strong>Fidelity List</strong></em> call</p>\n","type":"text/plain"},"type":"any","value":"123","key":"id"},{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p><em>Fidelity Card</em> code</p>\n","type":"text/plain"},"type":"any","value":"CARD0001","key":"fidelityCode"},{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the record to retrieve, obtainable after calling <em><strong>Fidelity Card Record Add</strong></em> or <em><strong>Fidelity Card Records</strong></em></p>\n","type":"text/plain"},"type":"any","value":"1234","key":"recordId"}]}},"response":[{"id":"63f74e33-08c3-4b41-bb97-1359d6eaf56b","name":"Fidelity Card Record Retrieve","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode/record/:recordId","host":["{{BaseUrl}}"],"path":["rest","api","fidelity",":id","card",":fidelityCode","record",":recordId"],"variable":[{"key":"id","value":"123","description":"[Number] *(Obbligatorio)*\n\n**id** del *programma Fidelity* recuperato con la chiamata _**Fidelity List**_"},{"key":"fidelityCode","value":"CARD0001","description":"[String] *(Obbligatorio)*\n\nCodice della *Fidelity Card*"},{"key":"recordId","value":"123456","description":"[Number] *(Obbligatorio)*\n\n\n`id` del record da recuperare, ottenibile dopo la chiamata _**Fidelity Card Record Add**_ o _**Fidelity Card Records**_"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"84"},{"key":"Date","value":"Tue, 11 May 2021 10:54:06 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 123456,\n    \"points\": 2,\n    \"amount\": 5.38,\n    \"action\": \"ADD\",\n    \"date\": \"2021-05-11T12:52:02+0200\"\n}"}],"_postman_id":"36c10008-b7b5-4b33-ac71-1ba09fa4eb22"},{"name":"Fidelity Card Record Delete","id":"a15ed102-5043-4f1c-b8f3-58450493da15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode/record/:recordId","description":"<p>Delete a points movement record from a Loyalty Card.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>RECORD_NOT_EXISTS</code> - Record not found <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","fidelity",":id","card",":fidelityCode","record",":recordId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><strong>id</strong> of the <em>Fidelity program</em> retrieved with the <em><strong>Fidelity List</strong></em> call</p>\n","type":"text/plain"},"type":"any","value":"123","key":"id"},{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p><em>Fidelity Card</em> code</p>\n","type":"text/plain"},"type":"any","value":"CARD0001","key":"fidelityCode"},{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the record to delete, obtainable by calling <em><strong>Fidelity Card Record Add</strong></em> or <em><strong>Fidelity Card Records</strong></em></p>\n","type":"text/plain"},"type":"any","value":"123456","key":"recordId"}]}},"response":[{"id":"581499d6-0031-46c9-bef1-8efed9bc14f2","name":"Fidelity Card Record Delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode/record/:recordId","host":["{{BaseUrl}}"],"path":["rest","api","fidelity",":id","card",":fidelityCode","record",":recordId"],"variable":[{"key":"id","value":"123","description":"[Number] *(Obbligatorio)*\n\n**id** del *programma Fidelity* recuperato con la chiamata _**Fidelity List**_"},{"key":"fidelityCode","value":"CARD0001","description":"[String] *(Obbligatorio)*\n\nCodice della *Fidelity Card*"},{"key":"recordId","value":"123456","description":"[Number] *(Obbligatorio)*\n\n`id` del record da eliminare, ottenibile con la chiamata _**Fidelity Card Record Add**_ o _**Fidelity Card Records**_"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 11 May 2021 10:55:07 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a15ed102-5043-4f1c-b8f3-58450493da15"},{"name":"Fidelity Card Record Add","id":"a5d52559-27ee-4372-bd36-f82184583699","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"action","value":"ADD","description":"<p>[String] <em>(Required)</em></p>\n<p>Type of operation done to the Fidelity Card, the possible values are:</p>\n<ul>\n<li><code>ADD</code> - Add points/amount to the Fidelity Card</li>\n<li><code>REWARD</code> - Reward assigned to the Fidelity Card</li>\n<li><code>AZZERA</code> - Reset points</li>\n</ul>\n","type":"text"},{"key":"points","value":"2","description":"<p>[Number] <em>(Optional)</em> -&gt; set <strong>one</strong> of the parameters <code>points</code> or <code>amount</code> for the action <code>ADD</code></p>\n<p>Points assigned to the Fidelity Card.</p>\n<p>If not set, the amount of points assigned will be based on the amount spent and the value of a single point (<strong>points = amount / single_point_value</strong>).</p>\n","type":"text"},{"key":"amount","value":"5.38","description":"<p>[Decimal] <em>(Optional)</em> -&gt; set <strong>one</strong> of the parameters <code>points</code> or <code>amount</code> for the action <code>ADD</code></p>\n<p>Amount spent. </p>\n<p>If not set, the amount of points assigned will be base on the value of the parameter <code>points</code>. </p>\n","type":"text"},{"key":"rewardId","value":"11","description":"<p>[Number] <em>(Optional)</em> -&gt; required for the action <code>REWARD</code></p>\n<p>Reward ID to be assigned to the fidelity card</p>\n","type":"text","disabled":true},{"key":"note","value":"My notes","description":"<p>[String] <em>(Optional)</em></p>\n<p>Generic field for notes linked to the operation.</p>\n","type":"text","disabled":true},{"key":"sendSms","value":"false","description":"<p>[Boolean] <em>(Optional)</em></p>\n<p>Default: <code>true</code> if the contact has reached the amount of points needed to get a reward, an sms will be sent automatically.</p>\n<p>If set to <code>false</code> the sms will not be sent.</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode/record","description":"<p>Change the score of a Loyalty Card. The following movements are currently supported:</p>\n<ul>\n<li><code>ADD</code> - Adds points</li>\n<li><code>REWARD</code> - Gives a reward</li>\n<li><code>RESET</code> - Resets the card score to zero</li>\n</ul>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>BAD_FIDELITY</code> - Invalid Fidelity Program Code <br /><code>BAD_CARD_CODE</code> - Invalid Fidelity Card Code <br /><code>BAD_POINTS</code> - Points assigned to Fidelity Card in invalid format <br /> <code>BAD_AMOUNT</code> - Amount assigned to Fidelity Card in invalid format <br /><code>BAD_ACTION</code> - Action on Fidelity Card invalid <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","fidelity",":id","card",":fidelityCode","record"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><strong>id</strong> of the <em>Fidelity program</em> retrieved with the <em><strong>Fidelity List</strong></em> call</p>\n","type":"text/plain"},"type":"any","value":"123","key":"id"},{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p><em>Fidelity Card</em> code</p>\n","type":"text/plain"},"type":"any","value":"CARD0001","key":"fidelityCode"}]}},"response":[{"id":"d106c8d4-8df4-4eb8-aeae-fa42319f6b48","name":"Fidelity Card Record Add","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"action","value":"ADD","description":"[String] *(Obbligatorio)*\n\nTipo di operazione effettuata sulla Fidelity Card, i possibili valori sono:\n* `ADD` - Aggiunta punti/importo alla Fidelity Card\n* `REWARD` - Premi assegnato alla Fidelity Card\n* `AZZERA` - Azzeramento punti","type":"text"},{"key":"points","value":"2","description":"[Number] *(Opzionale)*\n\nPunti assegnati alla Fidelity Card.\n\nSe questo parametro non viene valorizzato, verranno aggiunti i punti alla fidelity a seconda dell'amount (**amount = punti * valore_singolo_punto**).\n\n_**Nota**: almeno uno tra i parametri `points` o `importo` sono obbligatori per la action `ADD`._","type":"text"},{"key":"amount","value":"5.38","description":"[Decimal] *(Opzionale)*\n\nImporto speso con con l'operazione di assegnazione punti.\n\nSe questo parametro non viene valorizzato, verrano aggiunti i punti alla fidelity in rapporto all'importo speso (**punti = amount / valore_singolo_punto**).\n\n_**Nota**: almeno uno tra i parametri `points` o `importo` sono obbligatori per la action `ADD`._","type":"text"},{"key":"rewardId","value":"11","description":"[Number] *(Opzionale)*\n\nIdentificativo del premio da assegnare alla Fidelity Card.\n\n_**Nota**: parametro obbligatorio per la action `REWARD`._","type":"text","disabled":true},{"key":"note","value":"My notes","description":"[String] *(Opzionale)*\n\nCampo generico per delle note associate all'operazione.","type":"text","disabled":true},{"key":"sendSms","value":"false","description":"[Boolean] *(Opzionale)*\n\nDefault: `true` se il contatto ha raggiunto i punti per riscattare un premio, viene inviato in automatico un sms.\n\nSe valorizzato a `false` non manda l'sms al contatto.","type":"text","disabled":true}]},"url":{"raw":"{{BaseUrl}}/rest/api/fidelity/:id/card/:fidelityCode/record","host":["{{BaseUrl}}"],"path":["rest","api","fidelity",":id","card",":fidelityCode","record"],"variable":[{"key":"id","value":"123","description":"[Number] *(Obbligatorio)*\n\n**id** del *programma Fidelity* recuperato con la chiamata _**Fidelity List**_"},{"key":"fidelityCode","value":"CARD0001","description":"[String] *(Obbligatorio)*\n\nCodice della *Fidelity Card*"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 123,\n    \"points\": 2,\n    \"amount\": 11.12,\n    \"action\": \"ADD\",\n    \"date\": \"2020-07-06T12:53:41+0200\"\n}"}],"_postman_id":"a5d52559-27ee-4372-bd36-f82184583699"}],"id":"d441b69e-3e98-4898-902c-b1a560453bb3","description":"<p>Complete management of fidelity cards via REST API.</p>\n<ul>\n<li><p>Create card</p>\n</li>\n<li><p>Add/remove points</p>\n</li>\n<li><p>Add/remove spending amounts</p>\n</li>\n<li><p>Detail assigned rewards</p>\n</li>\n</ul>\n<blockquote>\n<p>Fidelity Cards are a Premium Plan feature. Activate your free trial.</p>\n</blockquote>\n","_postman_id":"d441b69e-3e98-4898-902c-b1a560453bb3","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Digital Coupons","item":[{"name":"Coupon Campaign List","id":"9f18cd19-2be9-43ff-bc71-1531919406ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/digitalcoupon/campaign/list","description":"<p>Returns the list of the user's Coupon Campaigns.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","digitalcoupon","campaign","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"82559efc-8e26-405a-960d-f77d5636184d","name":"Coupon Campaign List","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/digitalcoupon/campaign/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 2,\n        \"offset\": 0,\n        \"limit\": 0\n    },\n    \"couponCampaignList\": [\n        {\n            \"id\": 76,\n            \"name\": \"Secondo Coupon\",\n            \"type\": \"D\"\n        },\n        {\n            \"id\": 38,\n            \"name\": \"Primo coupon\",\n            \"type\": \"F\"\n        }\n    ]\n}"}],"_postman_id":"9f18cd19-2be9-43ff-bc71-1531919406ab"},{"name":"Coupon Campaign Detail","id":"6c93e411-4fe3-4cc6-b08e-85cc0a28ac1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/digitalcoupon/campaign/:campaignId","description":"<p>The detail of a Coupon Campaign returns.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Coupon campaign not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","digitalcoupon","campaign",":campaignId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the coupon campaign</p>\n","type":"text/plain"},"type":"any","value":"123","key":"campaignId"}]}},"response":[{"id":"d80d5c67-14c4-4467-9c0a-45e82c5335fe","name":"Coupon Campaign Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/digitalcoupon/campaign/:campaignId","host":["{{BaseUrl}}"],"path":["rest","api","digitalcoupon","campaign",":campaignId"],"variable":[{"key":"campaignId","value":"123","description":"[Number] *(Obbligatorio)*\n\n`id` della campagna coupon"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 123,\n    \"name\": \"Primo Coupon\",\n    \"type\": \"D\",\n    \"insertDate\": \"2020-06-18T12:50:39+0200\",\n    \"startDate\": \"2020-06-17T00:00:00+0200\",\n    \"endDate\": \"2020-10-20T00:00:00+0200\"\n}"}],"_postman_id":"6c93e411-4fe3-4cc6-b08e-85cc0a28ac1b"},{"name":"Coupon Campaign Add","id":"47e52c86-612d-44ad-a7ba-e35bab9cd7ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Coupon F ","description":"<p>[String] <em>(Required)</em></p>\n<p>Coupon Campaign Name (e.g. <code>Black Friday Coupon</code>)</p>\n","type":"text"},{"key":"couponType","value":"F","description":"<p>[String] <em>(Required)</em></p>\n<p><code>F</code> or <code>D</code> <strong>F</strong>xed or <strong>D</strong>dynamic Coupon</p>\n","type":"text"},{"key":"couponCode","value":"MYCOUPON_F_12345","description":"<p>[String] <em>(Optional)</em></p>\n<p>Coupon code if Fixed type <code>F</code> (e.g. <code>MYCOUPON_F_12345</code>)</p>\n","type":"text"},{"key":"startDate","value":"2020-06-18T19:22:33+0200","description":"<p>[String] <em>(Optional)</em></p>\n<p>Validity start date of the Coupon Campaign in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text","disabled":true},{"key":"endDate","value":"2020-07-18T19:22:33+0200","description":"<p>[String] <em>(Optional)</em></p>\n<p>End of validity date of the Coupon Campaign in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/digitalcoupon/campaign","description":"<p>Create a new Coupon Campaign.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<p>Returns the list of the user's Fidelity programs.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>BAD_NAME</code> - Campaign name is missing or longer than 100 characters <br /><code>MISSING_TYPE</code> - Campaign type is missing <code>F</code> or <code>D``BAD_TYPE</code> - Type bad campaign <code>F</code> or <code>D``BAD_CODE</code> - Campaign code (of type <code>F</code>) in the wrong format: must be between <strong>6</strong> and <strong>32</strong> characters <br /><code>MISSING_START_DATE</code> - Missing the validity start date of the Coupon Campaign <br /><code>MISSING_END_DATE</code> - The validity end date of the Coupon Campaign is missing <br /><code>BAD_DATE</code> - Date in the wrong format <br /><code>DUPLICATE_CODE</code> - Campaign code (type <code>F</code> ) duplicate <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","digitalcoupon","campaign"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"12d41afc-2175-4ed6-a062-af1844b664e8","name":"Coupon Campaign Add","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Coupon F ","description":"[String] *(Obbligatorio)*\n\nNome della Campagna Coupon (es. `Coupon Black Friday`)","type":"text"},{"key":"couponType","value":"F","description":"[String] *(Obbligatorio)*\n `F` o `D` Coupon **F**isso o **D**inamico","type":"text"},{"key":"couponCode","value":"MYCOUPON_F_12345","description":"[String] *(Opzionale)*\n\nCodice del Coupon se di tipo Fisso `F` (es. `MYCOUPON_F_12345`)","type":"text"},{"key":"startDate","value":"2020-06-18T19:22:33+0200","description":"[String] *(Opzionale)*\n\nData di inizio validità della Campagna Coupon nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","type":"text","disabled":true},{"key":"endDate","value":"2020-07-18T19:22:33+0200","description":"[String] *(Opzionale)*\n\nData di fine validità della Campagna Coupon nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/digitalcoupon/campaign"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 38,\n    \"name\": \"Coupon Black Friday\",\n    \"type\": \"D\",\n    \"insertDate\": \"2020-06-30T10:38:38+0200\"\n}"}],"_postman_id":"47e52c86-612d-44ad-a7ba-e35bab9cd7ef"},{"name":"Coupon Search","id":"2cbd3419-b138-4959-be3e-7e14ae0e30bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/digitalcoupon/coupon/search?campaignId=138&onlyUsable=true","description":"<p>Look for a coupon</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","digitalcoupon","coupon","search"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p><code>id</code> of the Coupon Campaign</p>\n","type":"text/plain"},"key":"campaignId","value":"138"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>  coupon <code>code</code></p>\n","type":"text/plain"},"key":"couponCode","value":"3VWYF1OTIEYN"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em>\n<code>id</code> of the contact</p>\n","type":"text/plain"},"key":"contactId","value":"123456789"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Maximum number of results that will be returned in the search.</p>\n<p><strong>Default : 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be returned.</p>\n<p>Example:</p>\n<p>If the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10, coupons <strong>51 to 60</strong> will be returned.</p>\n<p><strong>Default: 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Coupon creation \"from date\" in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"fromDate","value":"2020-06-18T19:22:33%2B0200"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nCoupon creation \"to date\" in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"toDate","value":"2020-11-22T11:22:33%2B0200"},{"description":{"content":"<p>[String] <em>(Optional)</em>\ntrue to get only the usable coupons (not expired, not already used, etc)</p>\n","type":"text/plain"},"key":"onlyUsable","value":"true"}],"variable":[]}},"response":[{"id":"b2a1006e-c5cb-4146-86c3-71c37532e315","name":"Coupon Search","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/digitalcoupon/coupon/search?campaignId=138","host":["{{BaseUrl}}"],"path":["rest","api","digitalcoupon","coupon","search"],"query":[{"key":"campaignId","value":"138","description":"[Number] *(Opzionale)*\n\n`id` della Campagna Coupon\n"},{"key":"couponCode","value":"3VWYF1OTIEYN","description":"[String] *(Opzionale)*\n\n `codice` del coupon","disabled":true},{"key":"limit","value":"10","description":"[Number] *(Opzionale)*\n\nNumero massimo di risultati che verranno restituiti nella ricerca.\n\n**Default : 20**","disabled":true},{"key":"offset","value":"0","description":"[Number] *(Opzionale)*\n\nPosizione del primo risultato che verrà restituito.\n\nEsempio:\n\nSe il campo **offset** viene valorizzato a 50 e il campo **limit** a 10 verranno restituiti i coupon **da 51 a 60**.\n\n**Default: 0**","disabled":true},{"key":"fromDate","value":"2020-06-18T19:22:33%2B0200","description":"[String] *(Opzionale)*\n\nData di creazione del coupon nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","disabled":true},{"key":"toDate","value":"2020-11-22T11:22:33%2B0200","description":"[String] *(Opzionale)*\nData di creazione del coupon nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 11,\n        \"offset\": 0,\n        \"limit\": 2\n    },\n    \"couponList\": [\n        {\n            \"code\": \"vwtthwrh\",\n            \"insertDate\": \"2020-06-30T08:54:33+0200\",\n            \"campaignId\": 38\n        },\n        {\n            \"code\": \"1NBNFME8PR\",\n            \"insertDate\": \"2020-06-29T14:31:14+0200\",\n            \"campaignId\": 38\n        }\n    ]\n}"}],"_postman_id":"2cbd3419-b138-4959-be3e-7e14ae0e30bb"},{"name":"Coupon Detail","id":"7a04543d-0d16-40ae-926c-b4b1a9252394","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/digitalcoupon/coupon/:couponCode","description":"<p>Returns the detail of a Coupon</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Coupon not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>code</code></td>\n<td>Coupon code</td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>Creation date</td>\n</tr>\n<tr>\n<td><code>campaignId</code></td>\n<td>ID coupon campaign</td>\n</tr>\n<tr>\n<td><code>usages</code></td>\n<td>Coupon usage count</td>\n</tr>\n<tr>\n<td><code>couponType</code></td>\n<td>Coupon type (\"D\" = Dynamic, \"F\" = Fixed, \"S\" = Shopify)</td>\n</tr>\n<tr>\n<td><code>isUsable</code></td>\n<td>true if usable and false if it's not usable any more (expired, already used, etc)</td>\n</tr>\n<tr>\n<td><code>dstList</code></td>\n<td>Recipient list for the coupon (dynamic coupons only)</td>\n</tr>\n<tr>\n<td><code>idcoupon</code></td>\n<td>Coupon ID</td>\n</tr>\n<tr>\n<td><code>idsms</code></td>\n<td>Sms ID (if the coupon is sent via sms)</td>\n</tr>\n<tr>\n<td><code>idcontatto</code></td>\n<td>ID of contact associated with the coupon</td>\n</tr>\n<tr>\n<td><code>msisdn</code></td>\n<td>Contact Phone number (if the coupon is sent via sms)</td>\n</tr>\n<tr>\n<td><code>idmsmail</code></td>\n<td>Email ID (if the coupon is sent via email)</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>Contact Email (if the coupon is sent via email)</td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>Coupon creation date per recipient</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","digitalcoupon","coupon",":couponCode"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p>Coupon code whose details you want to retrieve</p>\n","type":"text/plain"},"type":"any","value":"MYCOUPON123","key":"couponCode"}]}},"response":[{"id":"b2d58cb9-618a-4eb2-ae1d-500be3453e4a","name":"Coupon Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/digitalcoupon/coupon/:couponCode","host":["{{BaseUrl}}"],"path":["rest","api","digitalcoupon","coupon",":couponCode"],"variable":[{"key":"couponCode","value":"MYCOUPON123","description":"[String] *(Obbligatorio)*\n\nCodice del coupon di cui si vogliono recuperare i dettagli"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"MYCOUPON123\",\n    \"insertDate\": \"2026-01-10T16:20:02+0100\",\n    \"campaignId\": 38,\n    \"usages\": 5,\n    \"couponType\": \"D\",\n    \"dstList\": [\n        {\n            \"idcoupon\": 8475684,\n            \"idsms\": 9871425,\n            \"idcontatto\": 102,\n            \"msisdn\": \"393000000000\",\n            \"insertDate\": \"2026-01-10T16:20:02+0100\"\n        }\n    ]\n}"}],"_postman_id":"7a04543d-0d16-40ae-926c-b4b1a9252394"},{"name":"Generate Coupon","id":"00a9d54f-6b76-4f3a-ad58-c3a78d0e6797","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"campaignId","value":"138","description":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the coupon campaign to add the coupon to</p>\n"},{"key":"couponCode","value":"MyCoupon_123","description":"<p>[String] <em>(Optional)</em></p>\n<p>Coupon code if of <strong>D</strong>dynamic type (between <strong>6 and 32</strong> characters). If not provided, a random Coupon Code provided in the response will be generated.</p>\n","disabled":true},{"key":"couponLength","value":"10","description":"<p>[Number] <em>(Optional)</em></p>\n<p>Automatically generated random Coupon Code length</p>\n<p><strong>Default: 6</strong></p>\n","type":"text","disabled":true},{"key":"contactId","value":"123","description":"<p>[Number] <em>(Optional)</em>\nContact Id to associate with the generated coupon</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/digitalcoupon/coupon","description":"<p>Generate a new Coupon in a <code>D</code> campaign (<strong>D</strong>dynamic coupon).</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_CAMPAIG</code> - The Coupon Campaign does not exist or the code is incorrect  <br /><code>BAD_TYPE</code> - Coupon Campaign Type is not Dynamic  <br /><code>BAD_CODE</code> - Coupon Code of incorrect length or contains invalid characters  <br /><code>DUPLICATE_CODE</code> - Duplicate Coupon Code  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","digitalcoupon","coupon"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"6f2799e0-99dc-47c2-9fd5-a15e11917b35","name":"Generate Coupon","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"campaignId","value":"138","description":"[Number] *(Obbligatorio)*\n\n`id` della campagna coupon a cui aggiungere il coupon"},{"key":"couponCode","value":"MyCoupon_123","description":"[String] *(Opzionale)*\n\nCodice del Coupon se di tipo **D**inamico (compreso **tra 6 e 32** caratteri). Se non fornito verrà generato un Codice Coupon casuale fornito nella risposta.","disabled":true},{"key":"couponLength","value":"10","description":"[Number] *(Opzionale)*\n\nLughezza del Codice Coupon casuale generato automaticamente\n\n**Default: 6**","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/digitalcoupon/coupon"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"0K3YRU\",\n    \"insertDate\": \"2020-06-30T11:50:42+0200\",\n    \"campaignId\": 138\n}"}],"_postman_id":"00a9d54f-6b76-4f3a-ad58-c3a78d0e6797"},{"name":"Coupon Usage","id":"fffea608-f865-4bd9-872f-b9db8ccc37e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{BaseUrl}}/rest/api/digitalcoupon/coupon/:couponCode/usage","description":"<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>BAD_CODE</code> - Coupon Code is of incorrect length or contains invalid characters <br /><code>ALREADY_USED</code> - Dynamic Coupon Code already used <br /><code>PLAN_NOT_ENABLED </code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","digitalcoupon","coupon",":couponCode","usage"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p>Coupon code you want to report as used.</p>\n","type":"text/plain"},"type":"any","value":"MYCOUPON_2020","key":"couponCode"}]}},"response":[{"id":"2ab5dfb2-784e-42fb-afcc-e243d44e1a99","name":"Coupon Usage","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{BaseUrl}}/rest/api/digitalcoupon/coupon/:couponCode/usage","host":["{{BaseUrl}}"],"path":["rest","api","digitalcoupon","coupon",":couponCode","usage"],"variable":[{"key":"couponCode","value":"MYCOUPON_2020","description":"[String] *(Obbligatorio)*\n\nCodice del coupon che si vuole segnalare come utilizzato."}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"MYCOUPON_2020\",\n    \"insertDate\": \"2020-06-29T12:51:53+0200\",\n    \"campaignId\": 38,\n    \"usages\": 10\n}"}],"_postman_id":"fffea608-f865-4bd9-872f-b9db8ccc37e6"}],"id":"8373350e-b40a-4be5-94d1-fbc838ab2d83","description":"<p>Complete management of digital coupons via REST API.</p>\n<blockquote>\n<p>Digital Coupons are a Premium Plan feature. Activate your free trial.</p>\n</blockquote>\n","_postman_id":"8373350e-b40a-4be5-94d1-fbc838ab2d83","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Booking","item":[{"name":"Calendar List","id":"d2dca001-5958-4b49-8261-e5f52d6c3f17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/booking/calendar","description":"<h1 id=\"description-calendar-list\">Description Calendar List</h1>\n<p>Returns the list of all calendars configured by the user.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are: <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"b05132ce-6a2e-49ca-96be-eac45c643fef","name":"Calendar List","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/booking/calendar"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"480"},{"key":"Date","value":"Tue, 11 May 2021 10:59:43 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"calendarList\": [\n        {\n            \"id\": 123,\n            \"name\": \"Prenotazioni ✂️\",\n            \"code\": \"xxxxxxxxxxxxxxxxxxxx\"\n        }\n    ]\n}"}],"_postman_id":"d2dca001-5958-4b49-8261-e5f52d6c3f17"},{"name":"Calendar Detail","id":"b759f0aa-7203-4f13-8652-4a582d976d81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId","description":"<p>Returns the detail of a calendar.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible errorMsgs are:  <br /><code>CALENDAR_NOT_FOUND</code> - calendar not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar",":calendarId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the calendar whose details you want to retrieve, see call <a href=\"#description-calendar-list\">Calendar List</a></p>\n","type":"text/plain"},"type":"any","value":"123","key":"calendarId"}]}},"response":[{"id":"88f1a225-4fbe-4971-9c91-22a08dd546fa","name":"Calendar Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId","host":["{{BaseUrl}}"],"path":["rest","api","booking","calendar",":calendarId"],"variable":[{"key":"calendarId","value":"123","description":"[Number] *(Obbligatorio)*\n\n`id` del calendario di cui si vuole recuperare il dettaglio, vedi chiamata [Calendar List](#descrizione-lista-calendari)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"214"},{"key":"Date","value":"Tue, 11 May 2021 11:01:43 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 123,\n    \"name\": \"Prenotazioni ✂️\",\n    \"code\": \"xxxxxxxxxxxxxxxxxxxx\",\n    \"taskList\": [\n        {\n            \"id\": 1234,\n            \"name\": \"Taglio\",\n            \"description\": \"\",\n            \"duration\": 30,\n            \"intervalBetweenTasks\": 0\n        }\n    ]\n}"}],"_postman_id":"b759f0aa-7203-4f13-8652-4a582d976d81"},{"name":"Task List","id":"733c4a8a-f6fd-4d3c-8dec-c0b3d532aaa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/task","description":"<p>Returns the list of services (<em>task</em>) associated with the calendar.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible errorMsgs are:  <br /><code>CALENDAR_NOT_FOUND</code> - calendar not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar",":calendarId","task"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the calendar whose activities you want to recover (<em>task</em>), see call <a href=\"#description-calendar-list\">Calendar List</a></p>\n","type":"text/plain"},"type":"any","value":"53","key":"calendarId"}]}},"response":[{"id":"6064f186-a0fc-4192-9b6f-af1243d95da0","name":"Task List","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/task","host":["{{BaseUrl}}"],"path":["rest","api","booking","calendar",":calendarId","task"],"variable":[{"key":"calendarId","value":"53","description":"[Number] *(Obbligatorio)*\n\n`id` del calendario di cui si vogliono recuperare le attività (*task*), vedi chiamata [Calendar List](#descrizione-lista-calendari)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"95"},{"key":"Date","value":"Tue, 11 May 2021 11:03:21 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"taskList\": [\n        {\n            \"id\": 1234,\n            \"name\": \"Taglio\",\n            \"description\": \"\",\n            \"duration\": 30,\n            \"intervalBetweenTasks\": 0\n        }\n    ]\n}"}],"_postman_id":"733c4a8a-f6fd-4d3c-8dec-c0b3d532aaa1"},{"name":"Task Detail","id":"5adda962-49a7-4d46-a8dc-292ee1bec1f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/task/:taskId","description":"<p>Returns the list of reservations (<em>reservation</em>) associated with the calendar.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are: <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible errorMsgs are: <br /><code>CALENDAR_NOT_FOUND</code> - calendar not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar",":calendarId","task",":taskId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the calendar whose activity you want to retrieve (<em>task</em>), see call <a href=\"#description-calendar-list\">Calendar List</a></p>\n","type":"text/plain"},"type":"any","value":"123","key":"calendarId"},{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the service (<em>task</em>) whose details you want to retrieve, see <em><strong>Task List</strong></em> call</p>\n","type":"text/plain"},"type":"any","value":"1234","key":"taskId"}]}},"response":[{"id":"1381c1e9-be7f-45d8-b156-9bd8dacea273","name":"Task Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/task/:taskId","host":["{{BaseUrl}}"],"path":["rest","api","booking","calendar",":calendarId","task",":taskId"],"variable":[{"key":"calendarId","value":"123","description":"[Number] *(Obbligatorio)*\n\n`id` del calendario di cui si vuole recuperare l'attività (*task*), vedi chiamata [Calendar List](#descrizione-lista-calendari)"},{"key":"taskId","value":"1234","description":"[Number] *(Obbligatorio)*\n\n`id` del servizio (*task*) di cui si vuole recuperare il dettaglio, vedi chiamata _**Task List**_"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"80"},{"key":"Date","value":"Tue, 11 May 2021 11:03:54 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1234,\n    \"name\": \"Taglio\",\n    \"description\": \"\",\n    \"duration\": 30,\n    \"intervalBetweenTasks\": 0\n}"}],"_postman_id":"5adda962-49a7-4d46-a8dc-292ee1bec1f7"},{"name":"Task Slots","id":"aeb993ec-78a3-4ea0-9fd6-e80c9488cc5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/task/:taskId/slot?date=2021-05-12","description":"<p>Returns the list of times with the bookable slots for the specified day.<br />The time is returned in the format <code>HH:mm</code></p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible errorMsgs are:  <br /><code>TASK_NOT_FOUND</code> - service (<code>task</code>) not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar",":calendarId","task",":taskId","slot"],"host":["{{BaseUrl}}"],"query":[{"key":"date","value":"2021-05-12"}],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the calendar from which you want to retrieve the reservations, see call <a href=\"#description-calendar-list\">Calendar List</a></p>\n","type":"text/plain"},"type":"any","value":"123","key":"calendarId"},{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the service (<em>task</em>) for which you want to retrieve the list of free slots, see <em><strong>Task List</strong></em> call</p>\n","type":"text/plain"},"type":"any","value":"1234","key":"taskId"}]}},"response":[{"id":"5982c6c7-9403-400d-85a1-9feb0aeeed16","name":"Task Slots","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/task/:taskId/slot?date=2021-05-12","host":["{{BaseUrl}}"],"path":["rest","api","booking","calendar",":calendarId","task",":taskId","slot"],"query":[{"key":"date","value":"2021-05-12"}],"variable":[{"key":"calendarId","value":"123","description":"[Number] *(Obbligatorio)*\n\n`id` del calendario da cui si vogliono recuperare le prenotazioni, vedi chiamata [Calendar List](#descrizione-lista-calendari)"},{"key":"taskId","value":"1234","description":"[Number] *(Obbligatorio)*\n\n`id` del servizio (*task*) di cui si vuole recuperare la lista degli slot liberi, vedi chiamata _**Task List**_"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"126"},{"key":"Date","value":"Tue, 11 May 2021 11:04:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"slotList\": [\n        \"09:00\",\n        \"09:30\",\n        \"10:00\",\n        \"10:30\",\n        \"11:00\",\n        \"11:30\",\n        \"18:00\",\n        \"18:30\",\n        \"19:00\",\n        \"19:30\",\n        \"20:00\",\n        \"20:30\",\n        \"21:00\",\n        \"21:30\"\n    ]\n}"}],"_postman_id":"aeb993ec-78a3-4ea0-9fd6-e80c9488cc5c"},{"name":"Reservation List","id":"7df22b1e-e9b2-415e-8152-379b057bf483","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation?limit=5&offset=0","description":"<p>Returns the list of reservations (<em>reservation</em>) associated with the calendar.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible errorMsgs are:  <br /><code>CALENDAR_NOT_FOUND</code> - calendar not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar",":calendarId","reservation"],"host":["{{BaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Filter only reservations for the task with this <code>id</code> </p>\n","type":"text/plain"},"key":"taskId","value":"1234"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Filter by reservation status, the possible values are: </p>\n<ul>\n<li><code>CONFIRMED</code> - Show only confirmed reservations</li>\n<li><code>UNCONFIRMED</code> - Show only reservations not yet confirmed</li>\n<li><code>DELETED</code> - Show only deleted reservations</li>\n</ul>\n","type":"text/plain"},"key":"status","value":"CONFIRMED"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Filter based on the starting date of the reservation in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"fromDate","value":"2021-03-27T15:38:09%2B0100"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Filter based on the starting date of the reservation in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"toDate","value":"2021-02-27T15:38:09%2B0100"},{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Maximum number of results that will be returned in the search.\n<strong>Default : 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"5"},{"description":{"content":"<p>[Number] <em>(Optional)</em>\nPosition of the first result that will be returned.\nExample:\nIf the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10, fidelity cards <strong>from 51 to 60</strong> will be returned.\n<strong>Default: 0</strong></p>\n<p>Example:</p>\n<p>If the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10, fidelity cards <strong>from 51 to 60</strong> will be returned.</p>\n<p><strong>Default: 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Filter reservations that contain this string in the contact first or last name</p>\n","type":"text/plain"},"key":"query","value":"Mario"}],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the calendar from which you want to retrieve the reservations, see call <a href=\"#description-calendar-list\">Calendar List</a></p>\n","type":"text/plain"},"type":"any","value":"123","key":"calendarId"}]}},"response":[{"id":"add9c624-4bbc-4645-bc2b-49331c6de6f9","name":"Reservation List","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation?limit=5&offset=0","host":["{{BaseUrl}}"],"path":["rest","api","booking","calendar",":calendarId","reservation"],"query":[{"key":"taskId","value":"1234","description":"[Number] *(Opzionale)*\n\nFiltra solo appuntamento per questo `id` task","disabled":true},{"key":"status","value":"CONFIRMED","description":"[String] *(Opzionale)*\n\nFiltra per stato della prenotazione, i possibili valori sono:\n* `CONFIRMED` - Mostra solo prenotazioni confermate\n* `UNCONFIRMED` - Mostra solo prenotazioni non ancora confermate\n* `DELETED` - Mostra solo prenotazioni eliminate","disabled":true},{"key":"fromDate","value":"2021-03-27T15:38:09%2B0100","description":"[String] *(Opzionale)*\n\nFiltra in base alla data di inizio della prenotazione nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","disabled":true},{"key":"toDate","value":"2021-02-27T15:38:09%2B0100","description":"[String] *(Opzionale)*\n\nFiltra in base alla data di inizio della prenotazione nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","disabled":true},{"key":"limit","value":"5","description":"[Number] *(Opzionale)*\n\nNumero massimo di risultati che verranno restituiti nella ricerca.\n\n**Default : 20**"},{"key":"offset","value":"0","description":"[Number] *(Opzionale)*\nPosizione del primo risultato che verrà restituito.\nEsempio:\nSe il campo **offset** viene valorizzato a 50 e il campo **limit** a 10 verranno restituite le fidelity card **da 51 a 60**.\n**Default: 0**\n\nEsempio:\n\nSe il campo **offset** viene valorizzato a 50 e il campo **limit** a 10 verranno restituite le fidelity card **da 51 a 60**.\n\n**Default: 0**"},{"key":"query","value":"Mario","description":"[String] *(Opzionale)*\n\nCerca prenotazioni che contengono la stringa nel nome e cognome del contatto","disabled":true}],"variable":[{"key":"calendarId","value":"123","description":"[Number] *(Obbligatorio)*\n\n`id` del calendario da cui si vogliono recuperare le prenotazioni, vedi chiamata [Calendar List](#descrizione-lista-calendari)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1150"},{"key":"Date","value":"Tue, 11 May 2021 11:05:06 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 5\n    },\n    \"reservationList\": [\n        {\n            \"id\": 12345,\n            \"contactId\": 12345678,\n            \"task\": 123,\n            \"start\": \"2021-02-19T13:00:00+0100\",\n            \"end\": \"2021-02-19T14:00:00+0100\",\n            \"insertDate\": \"2021-02-19T12:40:00+0100\",\n            \"uuid\": \"123-xxxxxxxxxx\",\n            \"note\": \"✂️✂️✂️\"\n        }\n    ]\n}"}],"_postman_id":"7df22b1e-e9b2-415e-8152-379b057bf483"},{"name":"Reservation Detail","id":"0f54e3e1-dc87-4658-8b4e-34f777d03c52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation/:reservationId","description":"<p>Returns the list of reservations (<em>reservation</em>) associated with the calendar.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible errorMsgs are:  <br /><code>CALENDAR_NOT_FOUND</code> - calendar not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar",":calendarId","reservation",":reservationId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the calendar from which you want to retrieve the reservations, see call <a href=\"#description-calendar-list\">Calendar List</a></p>\n","type":"text/plain"},"type":"any","value":"123","key":"calendarId"},{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the reservation whose details you want to retrieve</p>\n","type":"text/plain"},"type":"any","value":"1234","key":"reservationId"}]}},"response":[{"id":"4ce75223-ef6a-454c-8d50-a533b72063cf","name":"Reservation Detail","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation/:reservationId","host":["{{BaseUrl}}"],"path":["rest","api","booking","calendar",":calendarId","reservation",":reservationId"],"variable":[{"key":"calendarId","value":"123","description":"[Number] *(Obbligatorio)*\n\n`id` del calendario da cui si vogliono recuperare le prenotazioni, vedi chiamata [Calendar List](#descrizione-lista-calendari)"},{"key":"reservationId","value":"1234","description":"[Number] *(Obbligatorio)*\n\n`id` della prenotazione di cui si vuole recuperare il dettaglio"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"310"},{"key":"Date","value":"Tue, 11 May 2021 11:06:51 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12345,\n    \"contactId\": 12345678,\n    \"task\": 1234,\n    \"start\": \"2021-05-12T10:30:00+0200\",\n    \"end\": \"2021-05-12T11:00:00+0200\",\n    \"insertDate\": \"2021-05-06T13:28:08+0200\",\n    \"cancelDate\": \"2021-05-06T15:43:54+0200\",\n    \"uuid\": \"1234-xxxxxxxxxx\",\n    \"note\": \"👍\",\n    \"gSyncData\": {}\n}"}],"_postman_id":"0f54e3e1-dc87-4658-8b4e-34f777d03c52"},{"name":"Reservation Add","id":"f0c2a2a8-ce41-4840-a5c0-9229f2b03ef9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"taskId","value":"1234","description":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the service (<em>task</em>) to which you want to add a reservation</p>\n","type":"text"},{"key":"contactId","value":"29079490","description":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the contact you want to associate the booking with</p>\n","type":"text"},{"key":"date","value":"2021-05-12T08:30:00+0100","description":"<p>[String] <em>(Required)</em></p>\n<p>Booking start date and time in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text"},{"key":"status","value":"CONFIRMED","description":"<p>[String] <em>(Optional)</em></p>\n<p>Status of the new booking, the possible values are:<br /><code>CONFIRMED</code> - booking confirmed<br /><code>UNCONFIRMED</code> - booking to be confirmed<br /><em><strong>Note</strong>: if the <code>status</code> is not specified the booking is inserted with the policy specified by the web interface [<code>CONFIRMED</code>|<code>UNCONFIRMED</code>]</em></p>\n","type":"text","disabled":true},{"key":"note","value":"Some text here 👍","description":"<p>[String] <em>(Optional)</em></p>\n<p>Notes associated with the booking</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation","description":"<p>Adds a <em>Booking</em> to the specified <em>Calendar</em>.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan  <br /><code>BAD_STATUS</code> - Invalid reservation status  <br /><code>BAD_DATE</code> - Invalid date format  <br /><code>BAD_CONTACT</code> - Invalid Contact  <br /><code>LIMIT_REACHED</code> - Your Premium Plan's maximum booking limit has been reached</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible errorMsgs are:  <br /><code>CALENDAR_NOT_FOUND</code> - calendar not found  <br /><code>TASK_NOT_FOUND</code> - service (<em>task</em>) not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar",":calendarId","reservation"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the calendar to which you want to add the reservation, see call <a href=\"#description-calendar-list\">Calendar List</a></p>\n","type":"text/plain"},"type":"any","value":"123","key":"calendarId"}]}},"response":[{"id":"20216bde-47aa-4135-98a1-a7096d627f7f","name":"Reservation Add","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"taskId","value":"1234","description":"[Number] *(Obbligatorio)*\n\n`id` del servizio (*task*) al quale si vuole aggiungere una prenotazione","type":"text"},{"key":"contactId","value":"12345678","description":"[Number] *(Obbligatorio)*\n\n`id` del contatto a cui si vuole associare la prenotazione","type":"text"},{"key":"date","value":"2021-05-12T08:30:00+0100","description":"[String] *(Obbligatorio)*\n\nData e ora di inizio della prenotazione nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","type":"text"},{"key":"status","value":"CONFIRMED","description":"[String] *(Opzionale)*\n\nStato della nuova prenotazione, i possibili valori sono:<br>`CONFIRMED` - prenotazione confermata<br>`UNCONFIRMED` - prenotazione da confermare<br>_**Nota**: se non viene specificato lo `status` la prenotazione viene inserita con la policy specificata da interfaccia web [`CONFIRMED`|`UNCONFIRMED`]_","type":"text","disabled":true},{"key":"note","value":"Some text here 👍","description":"[String] *(Opzionale)*\n\nNote associate alla prenotazione","type":"text","disabled":true}]},"url":{"raw":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation","host":["{{BaseUrl}}"],"path":["rest","api","booking","calendar",":calendarId","reservation"],"variable":[{"key":"calendarId","value":"123","description":"[Number] *(Obbligatorio)*\n\n`id` del calendario a cui si vuole aggiungere la prenotazione, vedi chiamata [Calendar List](#descrizione-lista-calendari)"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"170"},{"key":"Date","value":"Tue, 11 May 2021 11:08:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12345,\n    \"contactId\": 12345678,\n    \"task\": 1234,\n    \"start\": \"2021-05-12T09:30:00+0200\",\n    \"end\": \"2021-05-12T10:00:00+0200\",\n    \"insertDate\": \"2021-05-11T13:08:00+0200\",\n    \"uuid\": \"1234-xxxxxxxxxx\"\n}"}],"_postman_id":"f0c2a2a8-ce41-4840-a5c0-9229f2b03ef9"},{"name":"Reservation Edit","id":"334251e9-9587-4fce-8f7c-9cf508e01a47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId","value":"12345678","description":"<p>[Number] <em>(Optional)</em></p>\n<p><code>id</code> of the contact you want to associate the booking with</p>\n","type":"text","disabled":true},{"key":"date","value":"2021-05-12T09:30:00+0100","description":"<p>[String] <em>(Optional)</em></p>\n<p>Booking start date and time in the format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text","disabled":true},{"key":"status","value":"CONFIRMED","description":"<p>[String] <em>(Optional)</em></p>\n<p>Booking status, the possible values are:<br /><code>CONFIRMED</code> - booking confirmed<br /><code>UNCONFIRMED</code> - booking to be confirmed<br /><code>DELETED</code> - booking deleted<br /><em><strong>Note</strong>: if it is not Once the <code>status</code> is specified, the reservation is inserted with the policy specified by the web interface [<code>CONFIRMED</code>|<code>UNCONFIRMED</code>]</em></p>\n","type":"text"},{"key":"note","value":"Some text here 👍 4","description":"<p>[String] <em>(Optional)</em></p>\n<p>Notes associated with the booking</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation/:reservationId","description":"<p>Edit a <em>Reservation</em> in the specified <em>Calendar</em>.</p>\n<p>It is only possible to modify reservations that have not yet expired or been deleted.</p>\n<p>A <em>confirmed</em> (<code>CONFIRMED</code>) reservation can only be <em>rejected</em> (<code>REFUSED</code>) or <em>deleted</em> (<code>DELETED</code>).</p>\n<p>If <em>rejected</em> a notification message will be sent to the contact (as configured from the web panel), if <em>deleted</em> no notification will be sent to the contact</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this PUT request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan  <br /><code>RESERVATION_EXPIRED</code> - The reservation is no longer editable (it has been deleted or has expired)</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Reservation not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar",":calendarId","reservation",":reservationId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the calendar to which you want to add the reservation, see call <a href=\"#description-calendar-list\">Calendar List</a></p>\n","type":"text/plain"},"type":"any","value":"123","key":"calendarId"},{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the reservation you want to edit</p>\n","type":"text/plain"},"type":"any","value":"12345","key":"reservationId"}]}},"response":[{"id":"e7fafff2-bfc0-4bf3-889a-91245e00dd61","name":"Reservation Edit","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"contactId","value":"12345678","description":"[Number] *(Opzionale)*\n\n`id` del contatto a cui si vuole associare la prenotazione","type":"text","disabled":true},{"key":"date","value":"2021-05-12T09:30:00+0100","description":"[String] *(Opzionale)*\n\nData e ora di inizio della prenotazione nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","type":"text","disabled":true},{"key":"status","value":"CONFIRMED","description":"[String] *(Opzionale)*\n\nStato della prenotazione, i possibili valori sono:<br>`CONFIRMED` - prenotazione confermata<br>`UNCONFIRMED` - prenotazione da confermare<br>`DELETED` - prenotazione eliminata<br>_**Nota**: se non viene specificato lo `status` la prenotazione viene inserita con la policy specificata da interfaccia web [`CONFIRMED`|`UNCONFIRMED`]_","type":"text"},{"key":"note","value":"Some text here 👍 4","description":"[String] *(Opzionale)*\n\nNote associate alla prenotazione","type":"text","disabled":true}]},"url":{"raw":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation/:reservationId","host":["{{BaseUrl}}"],"path":["rest","api","booking","calendar",":calendarId","reservation",":reservationId"],"variable":[{"key":"calendarId","value":"13","description":"[Number] *(Obbligatorio)*\n\n`id` del calendario a cui si vuole aggiungere la prenotazione, vedi chiamata [Calendar List](#descrizione-lista-calendari)"},{"key":"reservationId","value":"196","description":"[Number] *(Obbligatorio)*\n\n`id` della prenotazione che si desidera modificare"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"216"},{"key":"Date","value":"Tue, 11 May 2021 11:10:58 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12345,\n    \"contactId\": 12345678,\n    \"task\": 1234,\n    \"start\": \"2021-05-12T10:30:00+0200\",\n    \"end\": \"2021-05-12T11:00:00+0200\",\n    \"insertDate\": \"2021-05-06T13:28:08+0200\",\n    \"confirmationDate\": \"2021-05-06T13:28:08+0200\",\n    \"cancelDate\": \"2021-05-06T15:43:54+0200\",\n    \"uuid\": \"1234-xxxxxxxxxx\",\n    \"note\": \"👍\",\n    \"gSyncData\": {}\n}"}],"_postman_id":"334251e9-9587-4fce-8f7c-9cf508e01a47"},{"name":"Reservation Delete","id":"21cf804b-9b1f-4cb3-8586-9cfa9896c32f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation/:reservationId","description":"<p>Delete a <em>Booking</em> from the specified <em>Calendar</em>.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsgs are: <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan <br /><code>BAD_STATUS</code> - The reservation has already been deleted <br /><code>BAD_CALENDAR_ID</code> - Invalid calendar <code>id</code> <br /> <code>BAD_TASK_ID</code> - Invalid service (<code>task</code>) <code>id</code></td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Possible errorMsgs are: <br /><code>RESERVATION_NOT_FOUND</code> - Reservation not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","booking","calendar",":calendarId","reservation",":reservationId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the calendar to which the reservation to be deleted belongs, see call <a href=\"#description-calendar-list\">Calendar List</a></p>\n","type":"text/plain"},"type":"any","value":"123","key":"calendarId"},{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the reservation you want to delete</p>\n","type":"text/plain"},"type":"any","value":"12345","key":"reservationId"}]}},"response":[{"id":"1e5808c9-1eb7-4781-b47c-598250a2dbf6","name":"Reservation Delete","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{BaseUrl}}/rest/api/booking/calendar/:calendarId/reservation/:reservationId","host":["{{BaseUrl}}"],"path":["rest","api","booking","calendar",":calendarId","reservation",":reservationId"],"variable":[{"key":"calendarId","value":"123","description":"[Number] *(Obbligatorio)*\n\n`id` del calendario a cui appartiene la prenotazione da eliminare, vedi chiamata [Calendar List](#descrizione-lista-calendari)"},{"key":"reservationId","value":"12345","description":"[Number] *(Obbligatorio)*\n\n`id` della prenotazione che si desidera eliminare"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 11 May 2021 11:12:21 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"21cf804b-9b1f-4cb3-8586-9cfa9896c32f"}],"id":"a428461b-704b-4c6d-bd09-660cd2e20e30","_postman_id":"a428461b-704b-4c6d-bd09-660cd2e20e30","description":"","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Contacts","item":[{"name":"Contacts Search","id":"fd143a85-d6b2-44c9-9a08-8a8a27d02df5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/phonebook/contact/search?name=test&orderBy=name&orderDir=ASC","description":"<p>Search for a contact in the address book.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>NO_PARAMS</code> - No parameters <br /><code>BAD_MATCH_ORDERBY</code> - orderBy or orderDir param not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>contacts</td>\n<td>List of contacts in the list, for the details of the properties of each individual contact see the call <a href=\"#description-contact-detail\">contact detail</a>.</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Useful metadata for <a href=\"#manage-the-response\">pagination</a>.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","contact","search"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Full name of the contact.</p>\n<p>The search is performed on the <code>name</code> and <code>lastname</code> fields</p>\n","type":"text/plain"},"key":"name","value":"test"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Contact's mobile number.</p>\n<p>The mobile number must include the international prefix e.g. <strong>393480000000</strong></p>\n","type":"text/plain"},"key":"msisdn","value":"393480000000"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Contact email address</p>\n","type":"text/plain"},"key":"email","value":"test@test.it"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Search by specific field.</p>\n<p>Enter the key relating to the field you want to use for the search.</p>\n<p>The keys of the custom fields can be retrieved by calling <a href=\"#detail-list-of-custom-fields\">Field List</a></p>\n","type":"text/plain"},"key":"fieldKey","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Search by specific field.</p>\n<p>Enter the value you want to find, the search will be performed within the field specified in the <code>fieldKey</code> parameter.</p>\n","type":"text/plain"},"key":"fieldValue","value":""},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be returned. See <a href=\"#manage-the-response\">pagination</a>.</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Maximum number of results that will be returned. See <a href=\"#manage-the-response\">pagination</a>.</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"description":{"content":"<p>[String] <em>(Optional)</em>\nField by which you want to sort the results:</p>\n<ul>\n<li><code>name</code> - Name field</li>\n<li><code>lastname</code> - Last name field</li>\n</ul>\n","type":"text/plain"},"key":"orderBy","value":"name"},{"description":{"content":"<p>[String] <em>(Optional)</em>\nHow contacts are sorted:</p>\n<ul>\n<li><code>ASC</code> - A-Z order</li>\n<li><code>DESC</code> - Z-A order</li>\n</ul>\n","type":"text/plain"},"key":"orderDir","value":"ASC"}],"variable":[]}},"response":[{"id":"5c199678-aa2d-403f-a0fd-c6fd8532f394","name":"Cerca Contatti","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/contact/search?msisdn=393480000000","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","contact","search"],"query":[{"key":"name","value":"test","description":"[String] *(Opzionale)*\n\nNome completo del contatto.\n\nLa ricerca viene effettuata sui campi `name` e `lastname`","disabled":true},{"key":"msisdn","value":"393480000000","description":"[String] *(Opzionale)*\n\nNumero di cellulare del contatto.\n\nIl numero di cellulare deve essere comprensivo del prefisso internazionale es. **393480000000**"},{"key":"email","value":"test@test.it","description":"[String] *(Opzionale)*\n\nIndirizzo email del contatto","disabled":true},{"key":"fieldKey","value":null,"description":"[String] *(Opzionale)*\n\nRicerca per campo specifico.\n\nInserire la chiave relativa al campo che si vuole utilizzare per la ricerca.\n\nLe chiavi dei campi personalizzati si possono recuperare con la chiamata [Lista Campi](#dettaglio-lista-campi-personalizzati) ","disabled":true},{"key":"fieldValue","value":null,"description":"[String] *(Opzionale)*\n\nRicerca per campo specifico.\n\nInserire il valore che si vuole trovare, la ricerca verrà effettuata all'interno del campo specificato nel parametro `fieldKey` . ","disabled":true},{"key":"offset","value":"0","description":"[Number] *(Opzionale)*\n\nPosizione del primo risultato che verrà restituito. Vedi [paginazione](#gestire-la-risposta).","disabled":true},{"key":"limit","value":"20","description":"[Number] *(Opzionale)*\n\nNumero massimo di risultati che verranno restituiti. Vedi [paginazione](#gestire-la-risposta).","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 20\n    },\n    \"contacts\": [\n        {\n            \"id\": 12345678,\n            \"msisdn\": \"393480000000\",\n            \"name\": \"Mario\",\n            \"lastname\": \"Rossi\",\n            \"email\": \"mario.rossi@fake.it\",\n            \"groups\": [\n                {\n                    \"id\": 13197,\n                    \"name\": \"Friends\"\n                },\n                {\n                    \"id\": 1947,\n                    \"name\": \"Business\"\n                }\n            ],\n            \"customFields\": [\n                {\n                    \"fieldKey\": \"f_indirizzo\",\n                    \"fieldName\": \"Indirizzo\",\n                    \"fieldValue\": \"via roma 1\"\n                },\n                {\n                    \"fieldKey\": \"f_cap\",\n                    \"fieldName\": \"CAP\",\n                    \"fieldValue\": \"30000\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"fd143a85-d6b2-44c9-9a08-8a8a27d02df5"},{"name":"Contact Details","id":"9a20e9c4-a9cd-45b7-9ef1-e698f19fe76b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId","description":"<h1 id=\"description-detail-contact\">Description Detail Contact</h1>\n<p>The detail of a contact inserted in the address book returns.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Contact not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Unique contact identifier</td>\n</tr>\n<tr>\n<td>msisdn</td>\n<td>Contact's mobile number</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Contact Name</td>\n</tr>\n<tr>\n<td>lastname</td>\n<td>Contact name</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Email Address</td>\n</tr>\n<tr>\n<td>customFields</td>\n<td>List of custom fields that have been filled in for the contact  <br />For each field,  <br /><code>fieldName</code> - name of the field  <br /><code>fieldKey</code> - key  <br /><code>fieldValue</code> - current value</td>\n</tr>\n<tr>\n<td>groups</td>\n<td>Contact lists to which the contact belongs.  <br />For each list the following are indicated:  <br /><code>id</code> - internal identifier  <br /><code>name</code> - Name of the contact list</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","contact",":contactId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>Unique contact identifier</p>\n","type":"text/plain"},"type":"any","value":"12345678","key":"contactId"}]}},"response":[{"id":"b1488218-9edd-4d31-88d4-ee066da5162e","name":"Dettaglio Contatto","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","contact",":contactId"],"variable":[{"key":"contactId","value":"","description":"[Number] *(Obbligatorio)*\n\nIdentificativo univoco del contatto"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 123456789,\n    \"msisdn\": \"393480000000\",\n    \"name\": \"Mario\",\n    \"lastname\": \"Rossi\",\n    \"email\": \"mario.rossi@fake.it\",\n    \"groups\": [\n        {\n            \"id\": 13197,\n            \"name\": \"Friends\"\n        },\n        {\n            \"id\": 1947,\n            \"name\": \"Business\"\n        }\n    ],\n    \"customFields\": [\n        {\n            \"fieldKey\": \"f_indirizzo\",\n            \"fieldName\": \"Indirizzo\",\n            \"fieldValue\": \"via roma 1\"\n        },\n        {\n            \"fieldKey\": \"f_cap\",\n            \"fieldName\": \"CAP\",\n            \"fieldValue\": \"30000\"\n        }\n    ]\n}"}],"_postman_id":"9a20e9c4-a9cd-45b7-9ef1-e698f19fe76b"},{"name":"New Contact","id":"2d897f51-38ae-4780-8529-471f1c788d69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"customFieldUniqueKey","value":"msisdn","description":"<p>[String] <em>(Required)</em></p>\n<p>It is the key that is used to determine which field uniquely identifies the contact. If not specified it is the telephone number (<code>msisdn</code>).</p>\n<p>Possible values: <code>msisdn</code>, <code>email</code>, <code>name</code>, <code>lastname</code>, <code>f_*</code></p>\n","type":"text"},{"key":"msisdn","value":"393480000000","description":"<p>[String] <em>(Optional)</em></p>\n<p>Contact's mobile number.</p>\n<p>The mobile number must include the international prefix e.g. <strong>393480000000</strong></p>\n","type":"text"},{"key":"name","value":"Mario","description":"<p>[String] <em>(Required)</em></p>\n<p>Contact name (<strong>max 20 characters</strong>)</p>\n","type":"text"},{"key":"lastname","value":"Rossi","description":"<p>[String] <em>(Optional)</em></p>\n<p>Contact surname (<strong>max 20 characters</strong>)</p>\n","type":"text","disabled":true},{"key":"email","value":"mariorossi@fake.it","description":"<p>[String] <em>(Optional)</em></p>\n<p>Email address</p>\n","type":"text","disabled":true},{"key":"groupsId","value":"0","description":"<p>[Number] <em>(Optional)</em></p>\n<p>Internal ID of the contact list in which to insert the contact.</p>\n<p>You can specify multiple lists by separating them with the comma character \"<strong>,</strong>\".</p>\n<p>For example:</p>\n<p><strong><code>1245</code></strong> or <strong><code>1245.3432</code></strong></p>\n","type":"text","disabled":true},{"key":"${fieldKey}","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>Key/value of the custom field you want to populate</p>\n<p>The list of available keys, to be used as <strong>parameter name</strong>, can be retrieved with the call <a href=\"#detail-list-of-custom-fields\">List of Custom Fields</a></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/phonebook/contact","description":"<h1 id=\"description-new-contact\">Description New Contact</h1>\n<p>Adds a contact to the address book</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for POST requests must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_CONTACT_NAME</code> - Missing <strong><code>name</code></strong> parameter  <br /><code>BAD_CONTACT_MSISDN</code> - Missing or invalid <strong><code>msisdn</code></strong> parameter  <br /><code>BAD_CONTACT_COUNTRY</code> - Code invalid country  <br /><code>BAD_CONTACT_GROUP</code> - Invalid group  <br /><code>CONTACT_ALREADY_EXISTS</code> - A contact already exists with this msisdn</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<p>See the call <a href=\"#contact-detail-description\">contact detail</a></p>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","contact"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"82d0a0f3-42fe-4473-9b50-de906ea9a70a","name":"Nuovo Contatto","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"customFieldUniqueKey","value":"msisdn","description":"[String] *(Obbligatorio)*\n\nE' la chiave che serve a determinare quale campo identifica univocamente il contatto. Se non specificato è il numero di telefono (`msisdn`).\n\nPossbili valori: `msisdn`, `email`, `name`, `lastname`, `f_*`","type":"text"},{"key":"msisdn","value":"393480000000","description":"[String] *(Opzionale)*\n\nNumero di cellulare del contatto.\n\nIl numero di cellulare deve essere comprensivo del prefisso internazionale es. **393480000000**","type":"text"},{"key":"name","value":"Mario","description":"[String] *(Obbligatorio)*\n\nNome del contatto (**max 20 caratteri**)","type":"text"},{"key":"lastname","value":"Rossi","description":"[String] *(Opzionale)*\n\nCognome del contatto (**max 20 caratteri**)","type":"text","disabled":true},{"key":"email","value":"mariorossi@fake.it","description":"[String] *(Opzionale)*\n\nIndirizzo email","type":"text","disabled":true},{"key":"groupsId","value":"0","description":"[Number] *(Opzionale)*\n\nId inteno della lista contatti in cui inserire il contatto.\n\nÈ possibile specificare più liste separandole con il carattere virgola \"**,**\".\n\nAd esempio:\n\n**`1245`** oppure **`1245,3432`**","type":"text","disabled":true},{"key":"${fieldKey}","value":"","description":"[String] *(Opzionale)*\n\nChiave/valore del campo pesonalizzato che si vuole popolare\n\nL'elenco delle chiavi disponibili, da usare come **nome parametro**, può essere recuperato con la chiamata [Lista Campi Personalizzati](#dettaglio-lista-campi-personalizzati)","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/phonebook/contact"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"id\": 123456789,\n  \"msisdn\": \"393480000000\",\n  \"name\": \"Mario\",\n  \"lastname\": \"Rossi\",\n  \"customFields\": [\n    {\n      \"fieldKey\": \"f_indirizzo\",\n      \"fieldName\": \"Indirizzo\",\n      \"fieldValue\": \"via roma 1\"\n    }\n  ]\n}"}],"_postman_id":"2d897f51-38ae-4780-8529-471f1c788d69"},{"name":"Upload Bulk Contacts","id":"a41983a9-5efa-4b92-ba97-9c2e8dae820c","protocolProfileBehavior":{"disabledSystemHeaders":{"accept":true},"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/home/plolrt/Desktop/TMP/esempio_rubrica.csv"}]},"url":"{{BaseUrl}}/rest/api/phonebook/contact/addContactBulk","description":"<p>Mass loading of contacts</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for</em> <em><strong>this</strong></em> <em>POST request must be \"<strong><strong>multipart/form-data</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td><code>SUBMITTED</code> - File formally corrected. Processing  <br /><code>REJECT</code> - Bad file: no processing.  <br /><code>BUSY</code> - There is already processing in progress: please wait for it to finish. (See next method)</td>\n</tr>\n<tr>\n<td>error</td>\n<td>Error Description</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","contact","addContactBulk"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"d0870f56-7b07-4576-ae65-3cf67c8faf8a","name":"Carica Contatti Bulk","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"/home/plolrt/Desktop/TMP/esempio_rubrica.csv"}]},"url":"{{BaseUrl}}/rest/api/phonebook/contact/addContactBulk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"22"},{"key":"Date","value":"Tue, 11 May 2021 10:30:18 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"SUBMITTED\"\n}"}],"_postman_id":"a41983a9-5efa-4b92-ba97-9c2e8dae820c"},{"name":"Bulk Loading Status","id":"fcda78fc-0eef-4a2c-96ca-acdde886d692","protocolProfileBehavior":{"disabledSystemHeaders":{"accept":true},"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/phonebook/contact/addContactBulk_status","description":"<p>In case of massive upload, it shows the progress.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>progress</td>\n<td>Progress percentage</td>\n</tr>\n<tr>\n<td>free</td>\n<td>Upload finished, available for re-upload</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","contact","addContactBulk_status"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"7f14921b-89e2-46aa-ba5d-fad40dc84bab","name":"Stato Caricamento Bulk","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/phonebook/contact/addContactBulk_status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"117"},{"key":"Date","value":"Tue, 11 May 2021 10:33:09 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"progress\": \"100%\",\n    \"free\": true,\n    \"last_error\": \"2:Contatto gia presente in rubrica|3:Contatto gia presente in rubrica|\"\n}"}],"_postman_id":"fcda78fc-0eef-4a2c-96ca-acdde886d692"},{"name":"Update Contact","id":"e86e01d3-6315-4107-8682-bff362bcab12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"customFieldUniqueKey","value":"msisdn","description":"<p>[String] <em>(Optional <a href=\"#note-update-contact\">§note</a>)</em></p>\n<p>See <a href=\"#new-contact-description\">New Contact</a></p>\n","type":"text","disabled":true},{"key":"msisdn","value":"393480000000","description":"<p>[String] <em>(Optional <a href=\"#note-update-contact\">§note</a>)</em></p>\n<p>See <a href=\"#new-contact-description\">New Contact</a></p>\n","type":"text"},{"key":"name","value":"Mario","description":"<p>[String] <em>(Optional <a href=\"#note-update-contact\">§note</a>)</em></p>\n<p>See <a href=\"#new-contact-description\">New Contact</a></p>\n","type":"text"},{"key":"lastname","value":"Rossi","description":"<p>[String] <em>(Optional <a href=\"#note-update-contact\">§note</a>)</em></p>\n<p>See <a href=\"#new-contact-description\">New Contact</a></p>\n","type":"text","disabled":true},{"key":"email","value":"mariorossi@fake.it","description":"<p>[String] <em>(Optional <a href=\"#note-update-contact\">§note</a>)</em></p>\n<p>See <a href=\"#new-contact-description\">New Contact</a></p>\n","type":"text","disabled":true},{"key":"groupsId","value":"0","description":"<p>[Number] <em>(Optional <a href=\"#note-update-contact\">§note</a>)</em></p>\n<p>See <a href=\"#new-contact-description\">New Contact</a></p>\n","type":"text","disabled":true},{"key":"${fieldKey}","value":"","description":"<p>[String] <em>(Optional <a href=\"#note-update-contact\">§note</a>)</em></p>\n<p>See <a href=\"#new-contact-description\">New Contact</a></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId","description":"<p>Edit a contact already present in the address book.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for POST requests must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>BAD_CONTACT_NAME</code> - Missing <strong><code>name</code></strong> parameter <br /><code>BAD_CONTACT_MSISDN</code> - Missing or invalid <strong><code>msisdn</code></strong> parameter <br /><code>BAD_CONTACT_COUNTRY</code> - Code invalid country <br /><code>BAD_CONTACT_GROUP</code> - Invalid group <br /><code>CONTACT_ALREADY_EXISTS</code> - A contact already exists with this msisdn</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"notes-update-contact\">Notes update contact</h2>\n<p>It is mandatory to complete <strong>at least one parameter in the body</strong> of the call.</p>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","contact",":contactId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>Unique contact identifier</p>\n","type":"text/plain"},"type":"any","value":"12345678","key":"contactId"}]}},"response":[{"id":"6f10222a-3117-4856-a715-b73e08190534","name":"Aggiorna Contatto","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"customFieldUniqueKey","value":"msisdn","description":"[String] *(Opzionale)*\n\nVedi [Nuovo Contatto](#descrizione-nuovo-contatto)","type":"text","disabled":true},{"key":"msisdn","value":"393480000000","description":"[String] *(Opzionale)*\n\nVedi [Nuovo Contatto](#descrizione-nuovo-contatto)","type":"text"},{"key":"name","value":"Mario","description":"[String] *(Opzionale)*\n\nVedi [Nuovo Contatto](#descrizione-nuovo-contatto)","type":"text"},{"key":"lastname","value":"Rossi","description":"[String] *(Opzionale)*\n\nVedi [Nuovo Contatto](#descrizione-nuovo-contatto)","type":"text","disabled":true},{"key":"email","value":"mariorossi@fake.it","description":"[String] *(Opzionale)*\n\nVedi [Nuovo Contatto](#descrizione-nuovo-contatto)","type":"text","disabled":true},{"key":"groupsId","value":"0","description":"[Number] *(Opzionale)*\n\nVedi [Nuovo Contatto](#descrizione-nuovo-contatto)","type":"text","disabled":true},{"key":"${fieldKey}","value":"","description":"[String] *(Opzionale)*\n\nVedi [Nuovo Contatto](#descrizione-nuovo-contatto)","type":"text","disabled":true}]},"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","contact",":contactId"],"variable":[{"key":"contactId","value":"12345678","description":"[Number] *(Obbligatorio)*\n\nIdentificativo univoco del contatto"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 11 May 2021 10:37:01 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"e86e01d3-6315-4107-8682-bff362bcab12"},{"name":"Delete Contact","id":"f641342c-c877-4341-bd8a-b7289abc357a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId","description":"<p>Delete a contact in the address book</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>204</code></td>\n<td>ok - contact deleted</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Contact not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","contact",":contactId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>Unique contact identifier</p>\n","type":"text/plain"},"type":"any","value":"12345678","key":"contactId"}]}},"response":[{"id":"74f18d3c-e216-4742-ae24-da1d1e2b45df","name":"Elimina Contatto","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","contact",":contactId"],"variable":[{"key":"contactId","value":"12345678","description":"[Number] *(Obbligatorio)*\n\nIdentificativo univoco del contatto"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 11 May 2021 10:38:41 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"f641342c-c877-4341-bd8a-b7289abc357a"},{"name":"Add Contact to List","id":"a1570ef0-4e5b-4f65-bfa1-082d37514e9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"groupsId","value":"100321","description":"<p>[Number] <em>(Required)</em></p>\n<p>Internal ID of the group to which to assign the contact.</p>\n<p><strong>Multiple groups</strong> can be specified by separating them with the comma character \"<strong>,</strong>\".</p>\n<p>For example:</p>\n<p><strong><code>1245</code></strong> or <strong><code>1245.3432</code></strong></p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId/groups/add","description":"<p>Adds a contact already present in the address book to an existing contact list.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for PUT requests must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>204</code></td>\n<td>ok - contact deleted</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_CONTACT_GROUP</code> - Contact list not found</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Contact not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","contact",":contactId","groups","add"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>Unique contact identifier</p>\n","type":"text/plain"},"type":"any","value":"12345678","key":"contactId"}]}},"response":[{"id":"d4c57baf-bbb4-417b-9332-777e88ed702e","name":"Aggiungi Contatto a Lista","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"groupsId","value":"100321","description":"[Number] *(Obbligatorio)*\n\nId inteno del gruppo ai quale assegnare il contatto.\n\nÈ possibile specificare **più gruppi** separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n**`1245`** oppure **`1245,3432`**","type":"text"}]},"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId/groups/add","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","contact",":contactId","groups","add"],"variable":[{"key":"contactId","value":"12345678","description":"[Number] *(Obbligatorio)*\n\nIdentificativo univoco del contatto"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 11 May 2021 10:40:10 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a1570ef0-4e5b-4f65-bfa1-082d37514e9d"},{"name":"Remove Contact from List","id":"508d3b98-8f6b-436f-b517-992fbd586903","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"groupsId","value":"1234567","description":"<p>[Number] <em>(Required)</em></p>\n<p>Internal ID of the group from which you want to remove the contact.</p>\n<p><strong>Multiple groups</strong> can be specified by separating them with the comma character \"<strong>,</strong>\".</p>\n<p>For example:</p>\n<p><strong><code>1245</code></strong> or <strong><code>1245.3432</code></strong></p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId/groups/remove","description":"<p>Removes a contact already present in the address book from an existing contact list.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for PUT requests must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>204</code></td>\n<td>ok - contact deleted</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>BAD_CONTACT_GROUP</code> - Contact list not found</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Contact not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","contact",":contactId","groups","remove"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>Unique contact identifier</p>\n","type":"text/plain"},"type":"any","value":"12345678","key":"contactId"}]}},"response":[{"id":"fe967487-8e65-4641-ade6-f6430fb9e8cd","name":"Rimuovi Contatto da Lista","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"groupsId","value":"100321","description":"[Number] *(Obbligatorio)*\n\nId inteno del gruppo dal quale si vuole rimuovere il contatto.\n\nÈ possibile specificare **più gruppi** separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n**`1245`** oppure **`1245,3432`**","type":"text"}]},"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/contact/:contactId/groups/remove","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","contact",":contactId","groups","remove"],"variable":[{"key":"contactId","value":"12345678","description":"[Number] *(Obbligatorio)*\n\nIdentificativo univoco del contatto"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 11 May 2021 10:41:11 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"508d3b98-8f6b-436f-b517-992fbd586903"}],"id":"d2d971c3-7a71-47e0-b314-fe4f3c3e3539","_postman_id":"d2d971c3-7a71-47e0-b314-fe4f3c3e3539","description":"","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Contacts Lists","item":[{"name":"Contact Lists","id":"2eeffe40-4b0c-40bc-a981-b037acff660b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/phonebook/group/list","description":"<p>The list of all contact lists present in the address book returns.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Internal id of contact list</td>\n</tr>\n<tr>\n<td>name</td>\n<td>List name</td>\n</tr>\n<tr>\n<td>contactCount</td>\n<td>Number of contacts in the list</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","group","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"2305defb-6f51-4fa8-929d-9c974a9534d6","name":"Liste Contatti","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/phonebook/group/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 3838,\n        \"name\": \"Friends\",\n        \"contactCount\": 1\n    },\n    {\n        \"id\": 13038,\n        \"name\": \"Business\",\n        \"contactCount\": 1\n    }\n]"}],"_postman_id":"2eeffe40-4b0c-40bc-a981-b037acff660b"},{"name":"List Detail","id":"44c3f2e5-1448-4703-8a9b-c0e944ab3f47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/phonebook/group/:listId","description":"<p>The contact list detail returns</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Contact list not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Internal id of contact list</td>\n</tr>\n<tr>\n<td>name</td>\n<td>List name</td>\n</tr>\n<tr>\n<td>contactCount</td>\n<td>Number of contacts in the list</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","group",":listId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>Internal ID of the contact list</p>\n","type":"text/plain"},"type":"any","value":"","key":"listId"}]}},"response":[{"id":"2fe6c1c7-cf7d-441f-90ab-dac8a9301a63","name":"Dettagliio Lista","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/group/:listId","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","group",":listId"],"variable":[{"key":"listId","value":"","description":"[Number] *(Obbligatorio)*\n\nId interno della lista contatti"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3838,\n    \"name\": \"Friends\",\n    \"contactCount\": 1\n}"}],"_postman_id":"44c3f2e5-1448-4703-8a9b-c0e944ab3f47"},{"name":"Contacts in a List","id":"47e11a7c-5a75-4a56-a58d-c5697367df83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/phonebook/group/:listId/contacts","description":"<p>Returns all contacts present in a list.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>NO_PARAMS</code> - Missing <strong>name</strong> parameter</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>contacts</td>\n<td>List of contacts in the list, for the details of the properties of each individual contact see the call <a href=\"#9a20e9c4-a9cd-45b7-9ef1-e698f19fe76b\">contact detail</a>.</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Useful metadata for <a href=\"#manage-the-response\">pagination</a>.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","group",":listId","contacts"],"host":["{{BaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be returned. See <a href=\"#manage-the-response\">pagination</a>.</p>\n","type":"text/plain"},"key":"offset","value":""},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Maximum number of results that will be returned. See <a href=\"#manage-the-response\">pagination</a>.</p>\n","type":"text/plain"},"key":"limit","value":""}],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>Internal ID of the contact list</p>\n","type":"text/plain"},"type":"any","value":"","key":"listId"}]}},"response":[{"id":"9abfe3cf-b144-400c-a926-a70f5e27ab01","name":"Contatti in una Lista","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/group/:listId/contacts","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","group",":listId","contacts"],"query":[{"key":"offset","value":null,"description":"[Number] *(Opzionale)*\n\nPosizione del primo risultato che verrà restituito. Vedi [paginazione](#gestire-la-risposta).","disabled":true},{"key":"limit","value":null,"description":"[Number] *(Opzionale)*\n\nNumero massimo di risultati che verranno restituiti. Vedi [paginazione](#gestire-la-risposta).","disabled":true}],"variable":[{"key":"listId","value":"","description":"[Number] *(Obbligatorio)*\n\nId interno della lista contatti"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 20\n    },\n    \"contacts\": [\n        {\n            \"msisdn\": \"393480000000\",\n            \"name\": \"Mario\",\n            \"lastname\": \"Rossi\",\n            \"address\": \"via Italia 1\",\n            \"city\": \"Roma\",\n            \"postCode\": 144,\n            \"province\": \"RM\",\n            \"country\": \"IT\",\n            \"email\": \"mario.rossi@fake.it\",\n            \"homePhoneNumber\": \"\",\n            \"groups\": [\n                {\n                    \"id\": 13197,\n                    \"name\": \"Amici\"\n                },\n                {\n                    \"id\": 1947,\n                    \"name\": \"Lavoro\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"47e11a7c-5a75-4a56-a58d-c5697367df83"},{"name":"New List","id":"bab70ed9-ace2-4948-9711-8426b61f0f36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Nuova Lista","description":"<p>[String] <em>(Required)</em></p>\n<p>Name of the new contact list</p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/phonebook/group","description":"<p>Adds a contact list to your address book</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for POST requests must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>BAD_GROUP_NAME</code> - Invalid name <br /><code>GROUP_ALREADY_EXISTS</code> - A contact list with this name already exists</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Contact list internal id</td>\n</tr>\n<tr>\n<td>name</td>\n<td>List name</td>\n</tr>\n<tr>\n<td>contactCount</td>\n<td>Number of contacts in the list</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","group"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"17933770-d199-4fea-87a7-2e0061476e8a","name":"Nuova Lista Contatti","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Nuova Lista","description":"[String] *(Obbligatorio)*\n\nNome della nuova lista contatti","type":"text"}]},"url":"{{BaseUrl}}/rest/api/phonebook/group"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12001,\n    \"name\": \"Nuova Lista\",\n    \"contactCount\": 0\n}"}],"_postman_id":"bab70ed9-ace2-4948-9711-8426b61f0f36"},{"name":"Update List","id":"08e9e2af-6e38-46a4-a40b-24cee8b2056e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"Nuovo Nome","description":"<p>[String] *(Required)</p>\n<p>New name to assign to the contact list.</p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/phonebook/group/:listId","description":"<p>Edit an existing contact list</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for PUT requests must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are: <br /><code>BAD_GROUP_NAME</code> - Invalid name <br /><code>GROUP_ALREADY_EXISTS</code> - A contact list with this name already exists</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>404</code></td>\n<td>Contact list not found</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","group",":listId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>Internal ID of the contact list</p>\n","type":"text/plain"},"type":"any","value":"100321","key":"listId"}]}},"response":[{"id":"787725a3-8554-451b-9e94-7045c1a8eed3","name":"Aggiorna Lista","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"New Name","description":"[String] *(Obbligatorio)\n\nNuovo nome da assegnare alla lista contatti.","type":"text"}]},"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/group/:listId","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","group",":listId"],"variable":[{"key":"listId","value":"100321","description":"[Number] *(Obbligatorio)*\n\nId interno della lista contatti"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 11 May 2021 10:45:19 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"08e9e2af-6e38-46a4-a40b-24cee8b2056e"},{"name":"Delete List","id":"39aa1bef-79aa-4dd9-b4f1-17ed0eec811a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{BaseUrl}}/rest/api/phonebook/group/:listId?delete_contacts=true","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","group",":listId"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[Boolean] <em>(Optional)</em></p>\n<p>If set to <code>true</code>, all contacts belonging to this contact list will be permanently deleted.</p>\n<p>Default: <strong>false</strong></p>\n","type":"text/plain"},"key":"delete_contacts","value":"true"}],"variable":[{"description":{"content":"<p>[Number] *(Required)</p>\n<p>New name to assign to the contact list.</p>\n","type":"text/plain"},"type":"any","value":"100321","key":"listId"}]}},"response":[{"id":"4aae5074-d671-4ff8-bf39-5ae9fd7f849a","name":"Elimina Lista","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{BaseUrl}}/rest/api/phonebook/group/:listId?delete_contacts=true","host":["{{BaseUrl}}"],"path":["rest","api","phonebook","group",":listId"],"query":[{"key":"delete_contacts","value":"true","description":"[Boolean] *(Opzionale)*\n\nSe valorizzato a `true` verranno _eliminati definitivamente_ tutti i contatti appartenenti a questa lista contatti.\n\nDefault: **false**"}],"variable":[{"key":"listId","value":"100321","description":"[Number] *(Obbligatorio)\n\nNuovo nome da assegnare alla lista contatti."}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 11 May 2021 10:46:31 GMT"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"39aa1bef-79aa-4dd9-b4f1-17ed0eec811a"}],"id":"2b63734f-3501-4d6a-8c7f-683c916cd33d","_postman_id":"2b63734f-3501-4d6a-8c7f-683c916cd33d","description":"","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Custom Fields","item":[{"name":"Fields List","id":"bc871101-2cb4-42db-bc81-c7a19f99b608","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/phonebook/customfields/list","description":"<h1 id=\"custom-fields-list-detail\">Custom Fields List Detail</h1>\n<p>List of user-defined custom fields.</p>\n<p>To create new custom fields, refer to the guide <a href=\"https://help.smshosting.it/it/contatti/campi-personalizzate\">\"Customize contacts\"</a></p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Unique field identifier</td>\n</tr>\n<tr>\n<td>fieldKey</td>\n<td>Unique field key</td>\n</tr>\n<tr>\n<td>fieldName</td>\n<td>Field name</td>\n</tr>\n<tr>\n<td>fieldType</td>\n<td>Field type, the possible values are: <br /><code>TEXT</code> - free text field <br /><code>NUMBER</code> - field that can only contain digits <br /><code>DATE</code> - date type field. Useful for automations <br /><code>SELECT</code> - drop-down menu: the user can select only one value <br /><code>SELECTMULTIPLE</code> - multiple choice field: the user can select one or more values.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","phonebook","customfields","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"d9c07a90-d38d-444f-b6ac-6efd940086e5","name":"Lista Campi","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/phonebook/customfields/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n   {\n      \"id\": \"11238\",\n      \"fieldKey\": \"f_indirizzo\",\n      \"fieldName\": \"Indirizzo\",\n      \"fieldType\": \"TEXT\"\n   },\n   {\n      \"id\": \"12345\",\n      \"fieldKey\": \"f_cap\",\n      \"fieldName\": \"CAP\",\n      \"fieldType\": \"NUMBER\"\n   }\n]"}],"_postman_id":"bc871101-2cb4-42db-bc81-c7a19f99b608"}],"id":"a1f7d1a2-6742-42db-97b7-7691a43237cf","_postman_id":"a1f7d1a2-6742-42db-97b7-7691a43237cf","description":"","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Consents and Privacy Management","item":[{"name":"List of Privacy Information","id":"01d40247-e8b2-4ca3-9bc0-99bc7c52ee4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/gdpr/privacy/list","description":"<p>Returns the list of published Privacy Information.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","gdpr","privacy","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"8c98df00-e931-461a-bc71-32b9c286164d","name":"Lista Informative Privacy","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/gdpr/privacy/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"privacyList\": [\n        {\n            \"id\": 4601,\n            \"privacySource\": \"URL\",\n            \"privacyValue\": \"https://www.myPrivacyURL/\",\n            \"vers\": \"Privacy URL\",\n            \"insertDate\": \"2020-10-13T08:14:07+0200\",\n            \"visible\": true\n        },\n        {\n            \"id\": 4326,\n            \"privacySource\": \"TEXT\",\n            \"privacyValue\": \"....\",\n            \"vers\": \"3\",\n            \"insertDate\": \"2019-08-01T10:43:19+0200\",\n            \"visible\": false\n        }\n    ]\n}"}],"_postman_id":"01d40247-e8b2-4ca3-9bc0-99bc7c52ee4d"},{"name":"GDPR Consent List","id":"060a2268-7309-455d-a808-4f9bc661e3e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/gdpr/consent/list","description":"<p>Returns the list of published GDPR consents.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","gdpr","consent","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"416ee9fb-b5db-4c05-80d0-845b4c800e21","name":"Lista Consensi GDPR","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/gdpr/consent/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"consentList\": [\n        {\n            \"id\": 7687,\n            \"title\": \"Consenso Terze parti\",\n            \"category\": \"THIRDPARTIES\",\n            \"description\": \"Do il consenso per le comunicazioni a terzi\",\n            \"insertDate\": \"2019-03-21T08:39:01+0100\",\n            \"visible\": false\n        },\n        {\n            \"id\": 11782,\n            \"title\": \"Consenso Profilazione\",\n            \"category\": \"PROFILING\",\n            \"description\": \"Do il consenso al trattamento dei dati per attività di profilazione\",\n            \"insertDate\": \"2019-03-21T08:39:01+0100\",\n            \"visible\": true\n        },\n        {\n            \"id\": 3592,\n            \"title\": \"Consenso Marketing\",\n            \"category\": \"MARKETING\",\n            \"description\": \"Do il consenso a ricevere comunicazioni, sconti e promozioni tramite SMS e email\",\n            \"insertDate\": \"2019-03-21T08:38:57+0100\",\n            \"visible\": false\n        }\n    ]\n}"}],"_postman_id":"060a2268-7309-455d-a808-4f9bc661e3e6"},{"name":"Contact GDPR Consents","id":"effae315-c4b7-4f57-8b35-34c9a1ec6420","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/gdpr/history/contact/:contactId","description":"<p>Return the current status of the contact's accepted/denied GDPR consents.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>CONTACT_NOT_EXISTS</code> - The contact doesn't exist</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","gdpr","history","contact",":contactId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>ID of the contact whose GDPR current consents you want to retrieve</p>\n","type":"text/plain"},"type":"any","value":"","key":"contactId"}]}},"response":[{"id":"d3f045c0-591c-44f6-85af-b5b4bbc98bdb","name":"Storico Consensi GDPR Contatto","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/gdpr/history/contact/:contactId","host":["{{BaseUrl}}"],"path":["rest","api","gdpr","history","contact",":contactId"],"variable":[{"key":"contactId","value":"","description":"[Number] *(Obbligatorio)*\n\nId del contatto di cui si desidera ricevere lo storico dei consensi GDPR."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"gdprContactInfo\": [\n        {\n            \"consent_type\": \"PRIVACY\",\n            \"consent_id\": 4601,\n            \"granted\": true,\n            \"insert_date\": \"2020-10-13T08:15:21+0200\",\n            \"ip\": \"0:0:0:0:0:0:0:1\",\n            \"source\": \"api\",\n            \"consent_title\": \"Privacy URL\"\n        },\n        {\n            \"consent_type\": \"CONSENT\",\n            \"consent_id\": 7687,\n            \"granted\": false,\n            \"insert_date\": \"2020-10-12T16:25:53+0200\",\n            \"ip\": \"0:0:0:0:0:0:0:1\",\n            \"source\": \"api\",\n            \"consent_title\": \"Do il consenso per le comunicazioni a terzi\"\n        }\n    ]\n}"}],"_postman_id":"effae315-c4b7-4f57-8b35-34c9a1ec6420"},{"name":"History Contact's GDPR Consents","id":"568d9dc6-136f-4186-a78b-eb4875073a23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/gdpr/history/contact/:contactId","description":"<p>Return the history of contact's GDPR accepted/denied consents.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>CONTACT_NOT_EXISTS</code> - The contact doesn't exist</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","gdpr","history","contact",":contactId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>ID of the contact whose GDPR consents history you want to retrieve.</p>\n","type":"text/plain"},"type":"any","value":"","key":"contactId"}]}},"response":[{"id":"16ec8a36-f2d5-49e3-9b9f-ba3b27bf6487","name":"Storico Consensi GDPR Contatto","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/gdpr/history/contact/:contactId","host":["{{BaseUrl}}"],"path":["rest","api","gdpr","history","contact",":contactId"],"variable":[{"key":"contactId","value":"","description":"[Number] *(Obbligatorio)*\n\nId del contatto di cui si desidera ricevere lo storico dei consensi GDPR."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"gdprContactInfo\": [\n        {\n            \"consent_type\": \"PRIVACY\",\n            \"consent_id\": 4601,\n            \"granted\": true,\n            \"insert_date\": \"2020-10-13T08:15:21+0200\",\n            \"ip\": \"0:0:0:0:0:0:0:1\",\n            \"source\": \"api\",\n            \"consent_title\": \"Privacy URL\"\n        },\n        {\n            \"consent_type\": \"PRIVACY\",\n            \"consent_id\": 4326,\n            \"granted\": false,\n            \"insert_date\": \"2020-10-13T08:08:10+0200\",\n            \"ip\": \"0:0:0:0:0:0:0:1\",\n            \"source\": \"api\",\n            \"consent_title\": \"Privacy\"\n        },\n        {\n            \"consent_type\": \"CONSENT\",\n            \"consent_id\": 7687,\n            \"granted\": false,\n            \"insert_date\": \"2020-10-12T16:25:53+0200\",\n            \"ip\": \"0:0:0:0:0:0:0:1\",\n            \"source\": \"api\",\n            \"consent_title\": \"Do il consenso per le comunicazioni a terzi\"\n        }\n    ]\n}"}],"_postman_id":"568d9dc6-136f-4186-a78b-eb4875073a23"},{"name":"Add GDPR Consent","id":"944ea6f8-932b-4cc6-973b-bc68eeda9fbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"1234","description":"<p>[Number] <em>(Required)</em></p>\n<p>Specify the ID of the consent or privacy to add to the contact</p>\n","type":"text"},{"key":"insert_date","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>Date when the contact gave the consent  (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>) .\nIf not set, the current date is used</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/gdpr/contact/add/:type/:contactId","description":"<p>Add GDPR consent to contact.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for POST requests must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Codice</th>\n<th>Descrizione</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>CONTACT_NOT_EXISTS</code> - The contact doesn't exist  <br /><code>BAD_TYPE</code> - The parameter {type} is different from \"consent\" or \"privacy\"  <br /><code>BAD_ID</code> - ID of consent or privacy is not valid  <br /><code>BAD_DATE</code> - Inserted date is not correct</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","gdpr","contact","add",":type",":contactId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p>Specify the type of consent that you want to add\nPossible values:  <code>privacy</code>, <code>consent</code></p>\n","type":"text/plain"},"type":"any","value":"privacy","key":"type"},{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>ID of the contact to which you want to add the GDPR  consent</p>\n","type":"text/plain"},"type":"any","value":"12345678","key":"contactId"}]}},"response":[{"id":"e367305d-2261-4de5-82e7-5af9754d4e8a","name":"Aggiunta Consenso GDPR","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"1234","description":"[Number] *(Obbligatorio)*\n\nSpecificare l'ID del consenso o privacy da aggiungere al contatto.","type":"text"},{"key":"insert_date","value":"","description":"[String] *(Opzionale)*\n\nData in cui il contatto ha dato il consenso  (in formato **yyyy-MM-ddTHH:mm:ssZ**) .\nSe questo campo non viene valorizzato viene usata la data attuale.","type":"text","disabled":true}]},"url":{"raw":"{{BaseUrl}}/rest/api/gdpr/contact/add/:type/:contactId","host":["{{BaseUrl}}"],"path":["rest","api","gdpr","contact","add",":type",":contactId"],"variable":[{"key":"type","value":"privacy","description":"[String] *(Obbligatorio)*\n\nSpecificare il tipo di consenso che si vuole aggiungere\nPossbili valori: `privacy`, `consent`"},{"key":"contactId","value":"12345678","description":"[Number] *(Obbligatorio)*\n\nId del contatto a cui si desidera aggiungere il consenso GDPR."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"gdprContactInfo\": [\n        {\n            \"consent_type\": \"PRIVACY\",\n            \"consent_id\": 38413,\n            \"granted\": true,\n            \"insert_date\": \"2021-04-20T16:34:05+0200\",\n            \"ip\": \"79.6.173.152\",\n            \"source\": \"api\",\n            \"consent_title\": \"v3\"\n        },\n        {\n            \"consent_type\": \"PRIVACY\",\n            \"consent_id\": 4875,\n            \"granted\": true,\n            \"insert_date\": \"2021-03-22T15:25:14+0100\",\n            \"ip\": \"79.6.173.152\",\n            \"source\": \"form\",\n            \"consent_title\": \"v1\"\n        },\n        {\n            \"consent_type\": \"CONSENT\",\n            \"consent_id\": 4875,\n            \"granted\": true,\n            \"insert_date\": \"2020-12-10T09:05:57+0100\",\n            \"ip\": \"5.157.101.77\",\n            \"source\": \"form\",\n            \"consent_title\": \"Do il consenso a ricevere comunicazioni, sconti e promozioni tramite SMS e email\"\n        }\n    ]\n}"}],"_postman_id":"944ea6f8-932b-4cc6-973b-bc68eeda9fbe"},{"name":"Remove GDPR Consent","id":"cde91bbe-aea8-469d-8d90-f58c64885ce8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"","description":"<p>[Number] <em>(Required)</em></p>\n<p>Specify the ID of the consent or privacy to remove from the contact</p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/gdpr/contact/remove/:type/:contactId","description":"<p>Remove a GDPR consent from a contact.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>CONTACT_NOT_EXISTS</code> - The contact doesn't exist  <br /><code>BAD_TYPE</code> - The parameter {type} is different from \"consent\" or \"privacy\"  <br /><code>BAD_ID</code> - ID of consent or privacy is not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","gdpr","contact","remove",":type",":contactId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[String] <em>(Required)</em></p>\n<p>Specify the type of consent that you want to remove.\nPossible values: <code>privacy</code>, <code>consent</code></p>\n","type":"text/plain"},"type":"any","value":"","key":"type"},{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>ID of the contact from which you want to remove the GDPR consent</p>\n","type":"text/plain"},"type":"any","value":"","key":"contactId"}]}},"response":[{"id":"29a5ac7d-a021-4d31-929e-bd08d605cc74","name":"Rimozione Consenso GDPR","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"","description":"[Number] *(Obbligatorio)*\n\nSpecificare l'ID del consenso o privacy da rimuovere dal contatto.","type":"text"}]},"url":{"raw":"{{BaseUrl}}/rest/api/gdpr/contact/remove/:type/:contactId","host":["{{BaseUrl}}"],"path":["rest","api","gdpr","contact","remove",":type",":contactId"],"variable":[{"key":"type","value":"","description":"[String] *(Obbligatorio)*\n\nSpecificare il tipo di consenso che si vuole rimuovere\nPossbili valori: `privacy`, `consent`"},{"key":"contactId","value":"","description":"[Number] *(Obbligatorio)*\n\nId del contatto dal quale si vuole rimuovere il consenso GDPR."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"gdprContactInfo\": [\n        {\n            \"consent_type\": \"PRIVACY\",\n            \"consent_id\": 38413,\n            \"granted\": true,\n            \"insert_date\": \"2021-04-20T16:34:05+0200\",\n            \"ip\": \"79.6.173.152\",\n            \"source\": \"api\",\n            \"consent_title\": \"v3\"\n        },\n        {\n            \"consent_type\": \"PRIVACY\",\n            \"consent_id\": 4875,\n            \"granted\": true,\n            \"insert_date\": \"2021-03-22T15:25:14+0100\",\n            \"ip\": \"79.6.173.152\",\n            \"source\": \"form\",\n            \"consent_title\": \"v1\"\n        },\n        {\n            \"consent_type\": \"CONSENT\",\n            \"consent_id\": 4875,\n            \"granted\": true,\n            \"insert_date\": \"2020-12-10T09:05:57+0100\",\n            \"ip\": \"5.157.101.77\",\n            \"source\": \"form\",\n            \"consent_title\": \"Do il consenso a ricevere comunicazioni, sconti e promozioni tramite SMS e email\"\n        }\n    ]\n}"}],"_postman_id":"cde91bbe-aea8-469d-8d90-f58c64885ce8"}],"id":"d5207a58-b8c2-41de-a194-c84e33c314f9","_postman_id":"d5207a58-b8c2-41de-a194-c84e33c314f9","description":"","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"User","item":[{"name":"Get user","id":"47462f6a-5431-49d1-bca4-da5a0511609c","protocolProfileBehavior":{"disabledSystemHeaders":{"accept":true},"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/user","description":"<p>Returns the details and credit relating to your profile on Smshosting.</p>\n<h2 id=\"request\">Request</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>No parameters required</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"status-code\">Status Code</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>ok</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td>405</td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>Name</td>\n</tr>\n<tr>\n<td>lastname</td>\n<td>Surname</td>\n</tr>\n<tr>\n<td>username</td>\n<td>Account username</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Email Address</td>\n</tr>\n<tr>\n<td>businessname</td>\n<td>Company name if it is a company</td>\n</tr>\n<tr>\n<td>address</td>\n<td>Address</td>\n</tr>\n<tr>\n<td>city</td>\n<td>City</td>\n</tr>\n<tr>\n<td>postcode</td>\n<td>Postcode</td>\n</tr>\n<tr>\n<td>provinces</td>\n<td>Province</td>\n</tr>\n<tr>\n<td>country</td>\n<td>Nation</td>\n</tr>\n<tr>\n<td>birthdate</td>\n<td>Date of birth</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Telephone</td>\n</tr>\n<tr>\n<td>msisdn</td>\n<td>Mobile number</td>\n</tr>\n<tr>\n<td>send</td>\n<td>Default sender</td>\n</tr>\n<tr>\n<td>senderAlias</td>\n<td>List of senders that can be used for sending</td>\n</tr>\n<tr>\n<td>taxcode</td>\n<td>Tax code</td>\n</tr>\n<tr>\n<td>vatnumber</td>\n<td>VAT number</td>\n</tr>\n<tr>\n<td>registrationDate</td>\n<td>Recording date in the format yyyy-MM-ddTHH:mm:ssZ</td>\n</tr>\n<tr>\n<td>expirationDate</td>\n<td>Account expiration date in the format yyyy-MM-ddTHH:mm:ssZ</td>\n</tr>\n<tr>\n<td>Note: Your profile on SmsHosting.it expires one year after your last order.</td>\n<td></td>\n</tr>\n<tr>\n<td>credit</td>\n<td>Remaining credit</td>\n</tr>\n<tr>\n<td>italysms</td>\n<td>Number of text messages that can be sent to Italy with your remaining credit</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","user"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"cc31be25-8ed4-4365-a6ee-6bcdcdb72ca4","name":"Get user","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"606"},{"key":"Date","value":"Tue, 11 May 2021 10:57:01 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Giovanni\",\n    \"lastname\": \"Verdi\",\n    \"username\": \"giovanni.verdi\",\n    \"email\": \"giovanni@giovanniverdi.com\",\n    \"businessname\": \"giovanniverdi\",\n    \"address\": \"via Roma\",\n    \"city\": \"Roma\",\n    \"postcode\": \"00100\",\n    \"province\": \"RM\",\n    \"country\": \"IT\",\n    \"birthdate\": \"01.01.1900\",\n    \"phone\": \"06123456\",\n    \"msisdn\": \"\",\n    \"sender\": \"TestSender\",\n    \"taxcode\": \"00000000000\",\n    \"vatnumber\": \"00000000000\",\n    \"accountPlan\": \"premium\",\n    \"registrationDate\": \"2019-07-29T15:31:30+0200\",\n    \"expirationDate\": \"2022-03-04T10:20:00+0100\",\n    \"credit\": 723.35,\n    \"italysms\": 14467,\n    \"emailAvailable\": 14467,\n    \"senderAlias\": [\n        \"TestSender\"\n    ],\n    \"authKey\": \"SMSHxxxxxxxxxx\",\n    \"authSecret\": \"xxxxxxxxxxxxxxxxxxxx\"\n}"}],"_postman_id":"47462f6a-5431-49d1-bca4-da5a0511609c"}],"id":"e48a3210-e5f7-4217-bde1-bb3c44f755ad","_postman_id":"e48a3210-e5f7-4217-bde1-bb3c44f755ad","description":"","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Resellers","item":[{"name":"New Sub-Account","id":"9bd7227e-5dcf-44a6-a7c3-d655fa41aba4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"mariorossi","description":"<p>[String] <em>(Required)</em></p>\n<p>The username must be alphanumeric string between <strong>5</strong> and<strong>50</strong> characters long.</p>\n<p>It can also contain the following characters: <code>. @ _ -</code></p>\n","type":"text"},{"key":"password","value":"StrOngPasSwoRd","description":"<p>[String] <em>(Required)</em></p>\n<p>The password must be alphanumeric string between <strong>5</strong> and<strong>20</strong> characters long.</p>\n","type":"text"},{"key":"name","value":"Mario","description":"<p>[String] <em>(Required)</em></p>\n<p>Name of the account owner</p>\n","type":"text"},{"key":"lastname","value":"Rossi","description":"<p>[String] <em>(Required)</em></p>\n<p>Lastname of the account owner</p>\n","type":"text"},{"key":"email","value":"mariorossi@fakeaddress.it","description":"<p>[String] <em>(Required)</em></p>\n<p>Valid email address</p>\n","type":"text"},{"key":"companyType","value":"true","description":"<p>[Boolean] <em>(Optional)</em></p>\n<p>Set to <strong>true</strong> if the account is linked to a company</p>\n<p>Possible values <code>[true|false]</code></p>\n","type":"text","disabled":true},{"key":"businessname","value":"ACME COMPANY","description":"<p>[String] <em>(Optional)</em></p>\n<p>Required if <code>companyType=true</code></p>\n<p>Legal business name</p>\n","type":"text","disabled":true},{"key":"address","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>Address</p>\n","type":"text","disabled":true},{"key":"city","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>City</p>\n","type":"text","disabled":true},{"key":"postcode","value":"","description":"<p>[String] <em>(Optional)</em>\nPostcode</p>\n","type":"text","disabled":true},{"key":"province","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>Province</p>\n","type":"text","disabled":true},{"key":"country","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>Nation</p>\n","type":"text","disabled":true},{"key":"birthdate","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>Date of Birth in format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></p>\n","type":"text","disabled":true},{"key":"phone","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>Phone number</p>\n","type":"text","disabled":true},{"key":"msisdn","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>Mobile phone number</p>\n","type":"text","disabled":true},{"key":"taxcode","value":"","description":"<p>[String] <em>(Optional)</em>\nTax Code</p>\n","type":"text","disabled":true},{"key":"vatnumber","value":"","description":"<p>[String] <em>(Optional)</em></p>\n<p>VAT Number</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/reseller/subuser","description":"<h1 id=\"description-new-sub-account\">Description New Sub-Account</h1>\n<p>Create a new sub-account</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for POST requests must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_ACCOUNT_TYPE</code> - The account from which you are making the request is not a reseller  <br /><code>BAD_ACCOUNT_PERMISSION</code> - The account from which you are making the request is not enabled to use this API  <br /><code>BAD_USERNAME</code> - The username is not valid  <br /><code>USERNAME_ALREADY_EXISTS</code> - A user with the same username already exists  <br /><code>BAD_PASSWORD</code> - password is not valid  <br /><code>BAD_NAME</code> - name is not valid  <br /><code>BAD_LASTNAME</code> - lastname is not valid  <br /><code>BAD_EMAIL</code>- email is not valid  <br /><code>BAD_BUSINESSNAME</code> - businessname is not valid  <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Proprietà</th>\n<th>Descrizione</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Unique identifier of the SubAccount</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Name</td>\n</tr>\n<tr>\n<td>lastname</td>\n<td>Lastname</td>\n</tr>\n<tr>\n<td>username</td>\n<td>Username of the account</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Email Address</td>\n</tr>\n<tr>\n<td>businessname</td>\n<td>Company name if it is a business</td>\n</tr>\n<tr>\n<td>address</td>\n<td>Address</td>\n</tr>\n<tr>\n<td>city</td>\n<td>City</td>\n</tr>\n<tr>\n<td>postcode</td>\n<td>Postcode</td>\n</tr>\n<tr>\n<td>province</td>\n<td>Province</td>\n</tr>\n<tr>\n<td>country</td>\n<td>Nation</td>\n</tr>\n<tr>\n<td>birthdate</td>\n<td>Date of Birth</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Phone number</td>\n</tr>\n<tr>\n<td>msisdn</td>\n<td>Mobile phone number</td>\n</tr>\n<tr>\n<td>sender</td>\n<td>Default Sender</td>\n</tr>\n<tr>\n<td>senderAlias</td>\n<td>List of senders usable for sending messages</td>\n</tr>\n<tr>\n<td>taxcode</td>\n<td>Taxcode</td>\n</tr>\n<tr>\n<td>vatnumber</td>\n<td>VAT number</td>\n</tr>\n<tr>\n<td>registrationDate</td>\n<td>Registration date in format <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></td>\n</tr>\n<tr>\n<td>expirationDate</td>\n<td>Account expiry date in fomatt <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong></td>\n</tr>\n<tr>\n<td>credit</td>\n<td>Available credit</td>\n</tr>\n<tr>\n<td>italysms</td>\n<td>Number of SMS that can be sent to Italy with your available credit</td>\n</tr>\n<tr>\n<td>authKey</td>\n<td>Key to call the API</td>\n</tr>\n<tr>\n<td>authSecret</td>\n<td>Secret to call the API</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","reseller","subuser"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"8692923a-57a2-4587-8537-422472839b22","name":"Nuovo Sub-Account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"mariorossi","description":"[String] *Obbligatorio*\n\nLo username deve essere una stringa alfanumerica di lunghezza compresa tra **5** e **50** caratteri.\n\nOltre a lettere e numeri può contenere i seguenti caratteri: `. @ _ -`","type":"text"},{"key":"password","value":"StrOngPasSwoRd","description":"[String] *Obbligatorio*\n\nLa password deve essere una stringa alfanumerica di lunghezza compresa tra **5** e **20** caratteri.","type":"text"},{"key":"name","value":"Mario","description":"[String] *Obbligatorio*\n\nNome del titolare dell'account","type":"text"},{"key":"lastname","value":"Rossi","description":"[String] *Obbligatorio*\n\nCognome del titolare dell'account","type":"text"},{"key":"email","value":"mariorossi@fakeaddress.it","description":"[String] *Obbligatorio*\n\nIndirizzo email valido","type":"text"},{"key":"companyType","value":"true","description":"[Boolean] *Opzionale*\n\nValorizzare a **true** nel caso l'account sia associato ad un azienda\n\nPossibili valori `[true|false]`","type":"text","disabled":true},{"key":"businessname","value":"ACME COMPANY","description":"[String] *Opzionale*\n\nObbligatorio se `companyType=true`\n\nRagione sociale dell'azienda","type":"text","disabled":true},{"key":"address","value":"","description":"[String] *Opzionale*\n\nIndirizzo","type":"text","disabled":true},{"key":"city","value":"","description":"[String] *Opzionale*\n\nCittà","type":"text","disabled":true},{"key":"postcode","value":"","description":"[String] *Opzionale*\nCodice di avviamento postale","type":"text","disabled":true},{"key":"province","value":"","description":"[String] *Opzionale*\n\nProvincia","type":"text","disabled":true},{"key":"country","value":"","description":"[String] *Opzionale*\n\nNazione","type":"text","disabled":true},{"key":"birthdate","value":"","description":"[String] *Opzionale*\n\nData di nascita nel formato **yyyy-MM-dd'T'HH:mm:ssZ**","type":"text","disabled":true},{"key":"phone","value":"","description":"[String] *Opzionale*\n\nNumero di telefono","type":"text","disabled":true},{"key":"msisdn","value":"","description":"[String] *Opzionale*\n\nNumero di cellulare","type":"text","disabled":true},{"key":"taxcode","value":"","description":"[String] *Opzionale*\n\nCodice Fiscale","type":"text","disabled":true},{"key":"vatnumber","value":"","description":"[String] *Opzionale*\n\nPartita IVA","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/reseller/subuser"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1\",\n    \"name\": \"Mario\",\n    \"lastname\": \"Rossi\",\n    \"username\": \"mariorossi\",\n    \"email\": \"mariorossi@fakeaddress.it\",\n    \"address\": \"\",\n    \"city\": \"\",\n    \"postcode\": \"\",\n    \"province\": \"\",\n    \"country\": \"\",\n    \"phone\": \"\",\n    \"msisdn\": \"\",\n    \"sender\": \"ACMECOMPANY\",\n    \"registrationDate\": \"2015-08-04T12:04:56+0200\",\n    \"expirationDate\": \"2016-08-04T12:04:56+0200\",\n    \"credit\": 0.6,\n    \"italysms\": 5,\n    \"senderAlias\": [],\n    \"authKey\": \"0000\",\n    \"authSecret\": \"0000\"\n}"}],"_postman_id":"9bd7227e-5dcf-44a6-a7c3-d655fa41aba4"},{"name":"Edit Sub-Account","id":"36cab97f-8873-465e-a120-947f4913fd11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"mariorossi","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text"},{"key":"name","value":"Mario","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text"},{"key":"lastname","value":"Rossi","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text"},{"key":"email","value":"mariorossi@fakeaddress.it","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text"},{"key":"companyType","value":"true","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"businessname","value":"ACME COMPANY","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"address","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"city","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"postcode","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"province","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"country","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"birthdate","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"phone","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"msisdn","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"taxcode","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true},{"key":"vatnumber","value":"","description":"<p>See <a href=\"#description-new-sub-account\">New sub-account</a></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/reseller/subuser/:subuserId","description":"<p>Update sub-account data.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this PUT request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_ACCOUNT_TYPE</code> - The account from which you are making the request is not a reseller  <br /><code>BAD_ACCOUNT_PERMISSION</code> - The account from which you are making the request is not enabled to use this API  <br /><code>BAD_USERNAME</code> - The username is not valid  <br /><code>SUBUSER_NOT_EXISTS</code> - Sub-account not found  <br /><code>BAD_NAME</code> - name is not valid  <br /><code>BAD_LASTNAME</code> - lastname is not valid  <br /><code>BAD_EMAIL</code>- email is not valid  <br /><code>BAD_BUSINESSNAME</code> - businessname is not valid  <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<p>See call <a href=\"#description-new-sub-account\">new sub-account</a> for the detail of the response.</p>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","reseller","subuser",":subuserId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p>ID of the sub-acount to edit</p>\n","type":"text/plain"},"type":"any","value":"","key":"subuserId"}]}},"response":[{"id":"61f75d47-7f49-440a-a564-d9a5c6011939","name":"Modifica Sub-Account","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"username","value":"mariorossi","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text"},{"key":"name","value":"Mario","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text"},{"key":"lastname","value":"Rossi","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text"},{"key":"email","value":"mariorossi@fakeaddress.it","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text"},{"key":"companyType","value":"true","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"businessname","value":"ACME COMPANY","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"address","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"city","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"postcode","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"province","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"country","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"birthdate","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"phone","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"msisdn","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"taxcode","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true},{"key":"vatnumber","value":"","description":"Vedi [Nuovo sub-account](#descrizione-nuovo-sub-account)","type":"text","disabled":true}]},"url":{"raw":"{{BaseUrl}}/rest/api/reseller/subuser/:subuserId","host":["{{BaseUrl}}"],"path":["rest","api","reseller","subuser",":subuserId"],"variable":[{"key":"subuserId","value":"","description":"[Number] *(Obbligatorio)*\n\nIdentificativo del sub-account che si vuole modificare"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1\",\n    \"name\": \"Mario\",\n    \"lastname\": \"Rossi\",\n    \"username\": \"mariorossi\",\n    \"email\": \"mariorossi@fakeaddress.it\",\n    \"address\": \"\",\n    \"city\": \"\",\n    \"postcode\": \"\",\n    \"province\": \"\",\n    \"country\": \"\",\n    \"phone\": \"\",\n    \"msisdn\": \"\",\n    \"sender\": \"ACMECOMPANY\",\n    \"registrationDate\": \"2015-08-04T12:04:56+0200\",\n    \"expirationDate\": \"2016-08-04T12:04:56+0200\",\n    \"credit\": 0.6,\n    \"italysms\": 5,\n    \"senderAlias\": [],\n    \"authKey\": \"0000\",\n    \"authSecret\": \"0000\"\n}"}],"_postman_id":"36cab97f-8873-465e-a120-947f4913fd11"},{"name":"Remove Sub-Account","id":"dc54fed9-45ac-4119-9627-d7990ef51939","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{BaseUrl}}/rest/api/reseller/subuser/:accountId","description":"<p><strong>Permanently</strong> remove sub-account.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_ACCOUNT_TYPE</code> - The account from which you are making the request is not a reseller  <br /><code>BAD_ACCOUNT_PERMISSION</code> - The account from which you are making the request is not enabled to use this API  <br /><code>SUBUSER_NOT_EXISTS</code> - Sub-account not found</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","reseller","subuser",":accountId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the sub-account to remove</p>\n","type":"text/plain"},"type":"any","value":"","key":"accountId"}]}},"response":[{"id":"ebc00a52-2720-44be-a7a2-e29fa6e262b9","name":"Elimina Sub-Account","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{BaseUrl}}/rest/api/reseller/subuser/:accountId","host":["{{BaseUrl}}"],"path":["rest","api","reseller","subuser",":accountId"],"variable":[{"key":"accountId","value":"","description":"[Number] *(Obbligatorio)*\n\n`id` del sub-account da eliminare"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"dc54fed9-45ac-4119-9627-d7990ef51939"},{"name":"Detail Sub-Account","id":"01031b5d-f786-4c9f-9972-466621963e14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/reseller/subuser/:accountId","description":"<p>Returns the detail of a sub-account.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_ACCOUNT_TYPE</code> - The account from which you are making the request is not a reseller  <br /><code>BAD_ACCOUNT_PERMISSION</code> - The account from which you are making the request is not enabled to use this API  <br /><code>SUBUSER_NOT_EXISTS</code> - Sub-account not found</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<p>See call <a href=\"#description-new-sub-account\">new sub-account</a> for the detail of the response.</p>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","reseller","subuser",":accountId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of sub-account whose detail you want to retrive.</p>\n","type":"text/plain"},"type":"any","value":"","key":"accountId"}]}},"response":[{"id":"aab672e9-59aa-45ab-bafb-5869b3a0bcb6","name":"Dettaglio Sub-Account","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/reseller/subuser/:accountId","host":["{{BaseUrl}}"],"path":["rest","api","reseller","subuser",":accountId"],"variable":[{"key":"accountId","value":"1","description":"[Number] *(Obbligatorio)*\n\n`id` del sub-account di cui si vuole recuperare il dettaglio"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1\",\n    \"name\": \"Mario\",\n    \"lastname\": \"Rossi\",\n    \"username\": \"mariorossi\",\n    \"email\": \"mariorossi@fakeaddress.it\",\n    \"address\": \"\",\n    \"city\": \"\",\n    \"postcode\": \"\",\n    \"province\": \"\",\n    \"country\": \"\",\n    \"phone\": \"\",\n    \"msisdn\": \"\",\n    \"sender\": \"ACMECOMPANY\",\n    \"registrationDate\": \"2015-08-04T12:04:56+0200\",\n    \"expirationDate\": \"2016-08-04T12:04:56+0200\",\n    \"credit\": 0.6,\n    \"italysms\": 5,\n    \"senderAlias\": [],\n    \"authKey\": \"0000\",\n    \"authSecret\": \"0000\"\n}"}],"_postman_id":"01031b5d-f786-4c9f-9972-466621963e14"},{"name":"Search Sub-Account","id":"d1137f56-11bf-4cc6-bf90-e9ee2064dca8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/reseller/subuser/search?query=mariorossi","description":"<p>Search sub-account based on the parameters provided.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_ACCOUNT_TYPE</code> - The account from which you are making the request is not a reseller  <br /><code>BAD_ACCOUNT_PERMISSION</code> - The account from which you are making the request is not enabled to use this API</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<p>See call <a href=\"#description-new-sub-account\">new sub-account</a> for the detail of the response.</p>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","reseller","subuser","search"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Search a sub-account by username, name and last name</p>\n","type":"text/plain"},"key":"query","value":"mariorossi"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Creation date (from) in format <strong>yyyy-MM-ddTHH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"fromDate","value":"2017-03-24T00:00:00+0100"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nCreation date (to) in format <strong>yyyy-MM-ddTHH:mm:ssZ</strong></p>\n","type":"text/plain"},"key":"toDate","value":"2020-07-19T00:00:00+0100"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result to be returned</p>\n<p>See <a href=\"#response-handling\">pagination</a></p>\n<p>Default: <strong>0</strong></p>\n","type":"text/plain"},"key":"offset","value":"20"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Number of results to be returned</p>\n<p>See <a href=\"#response-handling\">pagination</a></p>\n<p>Default: <strong>20</strong></p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"4f718164-c08d-46ef-a085-a270279894be","name":"Cerca Sub-Account","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/reseller/subuser/search?query=mariorossi","host":["{{BaseUrl}}"],"path":["rest","api","reseller","subuser","search"],"query":[{"key":"query","value":"mariorossi","description":"[String] *(Opzionale)*\n\nRicerca un sub-account per username, nome e cognome"},{"key":"fromDate","value":"2017-03-24T00:00:00+0100","description":"[String] *(Opzionale)*\n\nData di creazione in formato **yyyy-MM-ddTHH:mm:ssZ**","disabled":true},{"key":"toDate","value":"2020-07-19T00:00:00+0100","description":"[String] *(Opzionale)*\nData di creazione in formato **yyyy-MM-ddTHH:mm:ssZ**","disabled":true},{"key":"offset","value":"20","description":"[Number] *(Opzionale)*\n\nPosizione del primo risultato che verrà restituito\n\nVedi [dettagli paginazione](#gestire-la-risposta)\n\nDefault: **0**","disabled":true},{"key":"limit","value":"10","description":"[Number] *(Opzionale)*\n\nNumero di risultati che verranno restituiti\n\nVedi [dettagli paginazione](#gestire-la-risposta)\n\nDefault: **20**","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"metadata\": {\n    \"count\": 1,\n    \"offset\": 0,\n    \"limit\": 20\n  },\n  \"subUserList\": [\n    {\n        \"id\": \"1\",\n        \"name\": \"Mario\",\n        \"lastname\": \"Rossi\",\n        \"username\": \"mariorossi\",\n        \"email\": \"mariorossi@fakeaddress.it\",\n        \"address\": \"\",\n        \"city\": \"\",\n        \"postcode\": \"\",\n        \"province\": \"\",\n        \"country\": \"\",\n        \"phone\": \"\",\n        \"msisdn\": \"\",\n        \"sender\": \"ACMECOMPANY\",\n        \"registrationDate\": \"2015-08-04T12:04:56+0200\",\n        \"expirationDate\": \"2016-08-04T12:04:56+0200\",\n        \"credit\": 0.6,\n        \"italysms\": 5,\n        \"senderAlias\": [],\n        \"authKey\": \"0000\",\n        \"authSecret\": \"0000\"\n    }\n  ]\n}"}],"_postman_id":"d1137f56-11bf-4cc6-bf90-e9ee2064dca8"},{"name":"Create Order","id":"6d6bf409-a4cd-4b31-9032-f8b442131885","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"packId","value":"1234","description":"<p>[Number] <em>(Optional: set at least one of <strong>packId</strong> or<strong>newPackSmsItaly</strong>)</em></p>\n<p>ID of the SMS package to activate. Use the endpoint <a href=\"#010975fd-f72b-4f39-9d44-78db889f7ef5\">Packages List</a> to get the ID</p>\n","type":"text"},{"key":"newPackSmsItaly","value":"14","description":"<p>[Number] <em>(Optional: set at least one of <strong>packId</strong> e <strong>newPackSmsItaly</strong>)</em></p>\n<p>Number of SMSs to be assigned: <em>a new package will be created.</em></p>\n","type":"text","disabled":true},{"key":"newPackUnitCostItaly","value":"","description":"<p>[Decimal] <em>(Optional)</em></p>\n<p>Cost single SMS used in the creation of the new package. It's used in combination with the parameter  <strong>newPackSmsItaly</strong></p>\n<p>Default: <strong>0.07 €</strong></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/reseller/subuser/:accountId/order","description":"<p>Create and enable an order for a sub-account.</p>\n<p>It's possible to assign an existing SMS package or, alternatively, create a new package by simply specifying the number of SMS to be assigned.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsg are:  <br />BAD_ACCOUNT_TYPE - The account from which you are making the request is not a reseller  <br />BAD_ACCOUNT_PERMISSION - The account from which you are making the request is not enabled to use this API  <br /><code>NO_PARAMS</code> - No parameters set  <br /><code>BAD_PACKID</code> - invalid parameter <strong>packId</strong>  <br /><code>BAD_SMS</code> - invalid parameter <strong>newPackSmsItaly</strong>  <br /><code>BAD_UNITCOST</code> - invalid parameter <strong>newPackUnitCostItaly</strong>  <br /><code>NO_CREDIT</code> - the reseller does not have enough credit to complete the operation</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","reseller","subuser",":accountId","order"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the sub-account for which you want to create an order</p>\n","type":"text/plain"},"type":"any","value":"1","key":"accountId"}]}},"response":[],"_postman_id":"6d6bf409-a4cd-4b31-9032-f8b442131885"},{"name":"List SMS Packages","id":"010975fd-f72b-4f39-9d44-78db889f7ef5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/reseller/pack/list","description":"<h1 id=\"description-list-sms-packages\">Description List SMS Packages</h1>\n<p>Return the list of SMS packages for sale.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>BAD_ACCOUNT_TYPE</code> - The account from which you are making the request is not a reseller  <br /><code>BAD_ACCOUNT_PERMISSION</code> - The account from which you are making the request is not enabled to use this API</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>Package ID</td>\n</tr>\n<tr>\n<td>smsItaly</td>\n<td>number of SMSs that can be sent in Italy</td>\n</tr>\n<tr>\n<td>unitCostItaly</td>\n<td>cost single SMS in Italy</td>\n</tr>\n<tr>\n<td>unitCostOtherZoneA</td>\n<td>cost single international SMS zone A</td>\n</tr>\n<tr>\n<td>unitCostOtherZoneB</td>\n<td>cost single international SMS zone B</td>\n</tr>\n<tr>\n<td>unitCostOtherZoneC</td>\n<td>cost single international SMS zone C</td>\n</tr>\n<tr>\n<td>totalCost</td>\n<td>total cost package</td>\n</tr>\n<tr>\n<td>validFromDate</td>\n<td>valid from date</td>\n</tr>\n<tr>\n<td>validToDate</td>\n<td>valid to date</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","reseller","pack","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"ba7ac210-fcdc-4d85-89b6-e6867c2e45e8","name":"Lista Pacchetti SMS","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/reseller/pack/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": 1,\n    \"smsItaly\": 0,\n    \"unitCostItaly\": 0.105,\n    \"unitCostOtherZoneA\": 0.084,\n    \"unitCostOtherZoneB\": 0.105,\n    \"unitCostOtherZoneC\": 0.158,\n    \"totalCost\": 0,\n    \"validFromDate\": \"09.10.2004\",\n    \"validToDate\": \"30.12.2005\"\n  }\n]"}],"_postman_id":"010975fd-f72b-4f39-9d44-78db889f7ef5"},{"name":"Reset Credit","id":"1f411c2d-60ca-4ab9-ae89-6a8d18bab22c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{BaseUrl}}/rest/api/reseller/subuser/:accountId/credit/remove","description":"<p>Reset the credit of a sub-account and riassign it to the reseller.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsg are:  <br /><code>BAD_ACCOUNT_TYPE</code> - The account from which you are making the request is not a reseller  <br /><code>BAD_ACCOUNT_PERMISSION</code> - The account from which you are making the request is not enabled to use this API  <br /><code>SUBUSER_NOT_EXISTS</code> - Sub-account not found</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","reseller","subuser",":accountId","credit","remove"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Required)</em></p>\n<p><code>id</code> of the sub-account whose credit you want to reset</p>\n","type":"text/plain"},"type":"any","value":"","key":"accountId"}]}},"response":[],"_postman_id":"1f411c2d-60ca-4ab9-ae89-6a8d18bab22c"}],"id":"31b54c95-4e2d-4295-9590-0130cee0aa75","description":"<p>Queste API ti permettono di gestire il tuo piano rivenditore e i tuoi subaccount.</p>\n<blockquote>\n<p><strong>Per poter utilizzare le <em>Reseller API</em> è necessario avere un account <em>rivenditore</em> e richiedere la specifica abilitazione</strong>.\n<a href=\"https://www.smshosting.it/it/supporto-tecnico-e-commerciale\">Richiedila qui</a></p>\n</blockquote>\n","_postman_id":"31b54c95-4e2d-4295-9590-0130cee0aa75","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Send RCS","item":[{"name":"Quote Send RCS","id":"ad955929-b299-4e74-8cbb-b6cc93a89cf8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","description":"<p>[String] <em>(Optional specify at least one of <strong>to</strong> and <strong>group</strong>)</em>\nThe recipient of the message.</p>\n<p>It must be a mobile number including the international prefix.</p>\n<p>It is possible to specify <strong>multiple telephone numbers</strong> (max 1000 numbers) by separating them with the comma character \"<strong>,</strong>\".</p>\n<p>For example:</p>\n<p><code>393481234567</code> or <code>393481234567,393481234568,393481234568</code></p>\n<p>Alternatively, the parameter can be enhanced with a JSON array containing the objects that describe the recipient.</p>\n<p>Each object must necessarily have the msisdn property valued.</p>\n<p>The other properties of these objects can be used to parameterize the message text (see the text field).</p>\n<p>For example:</p>\n<p><strong>[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]</strong></p>\n","type":"text"},{"key":"group","value":"gruppo","description":"<p>[String] <em>(Optional specify at least one of <strong>to</strong> and <strong>group</strong>)</em>\n<strong>Id</strong> of the group in the address book to send to</p>\n<p>You can specify multiple address book groups by separating them with the comma \",\" character.</p>\n<p>For example, if the address book contains the Friends (<code>id=1</code>) and School (<code>id=2</code>) groups, it will be possible to indicate:</p>\n<p><strong>1</strong> or <strong>1.2</strong></p>\n","type":"text","disabled":true},{"key":"agentId","value":"id agent","description":"<p>[String] <em>(Required)</em></p>\n<p>Id of the Agent that you want to use to send the RCS message</p>\n","type":"text"},{"key":"contentMessage","value":"{\"contentMessage\":{\"text\":\"Hi there!\",\"suggestions\":[]}}","description":"<p>[String] <em>(Required)</em></p>\n<p>String representing the JSON containing the RCS message.</p>\n<p>Refer to <a href=\"https://developers.google.com/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentMessages\">https://developers.google.com/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentMessages</a></p>\n","type":"text"},{"key":"fallbackSms","value":"true","description":"<p>[boolean] <em>(Required)</em></p>\n<p>True if you want to enable SMS fallback</p>\n","type":"text"},{"key":"fromSms","value":"mittente SMS","description":"<p>[String] <em>(Optional)</em></p>\n<p>The sender of the fallback SMS.</p>\n<p>It can be a validated telephone number or an alphanumeric string of up to 11 characters. If not specified, the default sender of your profile is used.</p>\n<p>To use an alphanumeric sender, registration is mandatory; this procedure can be carried out from our web panel or via API.</p>\n<p><strong>Unverified senders will be replaced with a random numeric sender</strong>.</p>\n","type":"text"},{"key":"textSms","value":"testo SMS ","description":"<p>[String] <em>(Optional)</em></p>\n<p>Required if fallbackSms is true.</p>\n<p>Text of the fallback SMS message.</p>\n<p>If the message exceeds 160 characters, [multiple concatenated text messages] are sent (<a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate</a>) up to a maximum of 7.</p>\n<p>Some <a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">extended characters occupy 2 characters</a>. In the case of SMS that exceed the standard length of 160 characters only due to some extended characters, these will be replaced with simple characters keeping the cost at 1 SMS instead of 2.</p>\n<p>The text may contain <strong>placeholders</strong> which will be replaced during sending by the values associated with the respective recipient.</p>\n<p>The placeholder must be specified with the syntax <strong>${property name}</strong></p>\n<p>If the text contains <strong>placeholders</strong> the <strong>to</strong> field must be populated with a JSON array and each object in the array must contain the property indicated in the placeholder.</p>\n<p>For example:\nto=[{msisdn:'393481234567',<strong>name:'Mario Rossi'</strong>},{msisdn:'393481234568',<strong>name:'Luigi Bianchi'</strong>}]\ntext=Send test sms to <strong>${name}</strong></p>\n","type":"text"},{"key":"encoding","value":"7BIT","description":"<p>[String] <em>(Optional)</em></p>\n<p>The encoding to use for the message text.</p>\n<p>Possible values are:</p>\n<ul>\n<li><p><strong>7BIT</strong> - <strong>standard</strong> encoding for GSM messages. The maximum length for a single text message is <strong>160 characters</strong>.</p>\n</li>\n<li><p><strong>UCS2</strong> - 8-bit encoding for sending GSM messages with non-ASCII content. The maximum length for a single text message is <strong>70 characters</strong>.</p>\n</li>\n<li><p><strong>AUTO</strong> - The encoding to be used is automatically identified based on the content of the text field.</p>\n</li>\n</ul>\n<p><strong>Default : 7BIT</strong></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/rcs/message/estimate","description":"<h1 id=\"description-quote-send-rcs\">Description Quote Send RCS</h1>\n<p>Calculation of the credit needed for an RCS shipment (single or multiple shipment).</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>ok</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Invalid parameters <br />Possible errorMsg are: <br /><code>BAD_AGENT</code> - invalid agentId parameter <br /><code>BAD_CONTENT_MESSAGE</code> - invalid contentMessage parameter <br /><code>BAD_TRANSACTIONID</code> - invalid transactionId parameter <br /><code>BAD_DATE</code> - invalid deferred date format <br /><code>BAD_TEXT</code> - invalid text parameter <br /><code>BAD_TEXT_PLACEHOLDER</code> - text contains non-replaceable placeholders <br /><code>BAD_CALLBACK</code> - invalid statusCallback parameter <br /><code>BAD_ENCODING</code> - encoding parameter invalid <br /><code>BAD_FROM</code> - invalid from parameter <br /><code>BAD_GROUP</code> - invalid group parameter <br /><code>NO_CREDIT</code> - insufficient credit to send <br /><code>NO_VALID_RECIPIENT</code> - no valid recipient <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td>405</td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>cost</code></td>\n<td>Shipping cost</td>\n</tr>\n<tr>\n<td><code>userCredit</code></td>\n<td>User's remaining credit</td>\n</tr>\n<tr>\n<td><code>count</code></td>\n<td>Number of messages to send</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","rcs","message","estimate"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"f8d6312e-0f92-44aa-bf1a-1003e45acd77","name":"Preventivo Invio RCS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text","description":"[String] *Opzionale*\n\nIl mittente dell'SMS.\n\nPuò essere un numero di telefono validato oppure una stringa alfanumerica di massimo 11 caratteri. Se non specificato viene usato il mittente di default del proprio profilo.\n\nPer utilizzare un mittente alfanumerico è obbligatoria la registrazione dello stesso, questa procedura può essere effettuata dal nostro pannello web oppure via API.\n\n**I mittenti non verificati verranno rimpiazzati con un mittente numerico casuale**."},{"key":"group","value":"gruppo","type":"text","description":"[String] _Opzionale (valorizzare almeno uno tra **to** e **group**)_\n\nIl destinatario del messaggio.\n\nDeve essere un numero di cellulare compreso di prefisso internazionale.\nÈ possibile specificare **più numeri di telefono** (max 1000 numeri) separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n`393481234567` oppure `393481234567,393481234568,393481234568`\n\nAlternativamente il parametro può essere valorizzato con un array JSON contenente gli oggetti che descrivono il destinatario.\nOgni oggetto deve avere obbligatoriamente la propriertà msisdn valorizzata.\nLe altre proprietà di tali oggetti posso essere utilizzate per parametrizzare il testo del messaggio (vedi il campo text).\n\nAd esempio:\n\n**[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]**\n","disabled":true},{"key":"agentId","value":"id agent","type":"text","description":"[String] _Opzionale (valorizzare almeno uno tra **to** e **group**)_\n\n**Id** del gruppo in Rubrica al quale inviare\n\nÈ possibile specificare più gruppi della rubrica separandoli con il carattere virgola \",\".\n\nAd esempio se nellla rubrica sono presenti i gruppi Amici (`id=1`) e Scuola (`id=2`) sarà possibile indicare:\n\n**1** oppure **1,2**"},{"key":"contentMessage","value":"{\"contentMessage\":{\"text\":\"Hi there!\",\"suggestions\":[]}}","type":"text","description":"[String] *(Obbligatorio)*\n\nTesto del messaggio.\nSe il messaggio supera i 160 caratteri vengono inviati [più sms concatenati](https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate) fino ad una massimo di 7.\n\nIl testo può contenere dei **placeholder** che saranno sostituiti in fase di invio dai valori associati al rispettivo destinatario.\nIl placeholder va specificato con la sintassi **${nome proprietà}**\n\nNel caso il testo contenga dei **placeholder** il campo **to** deve essere valorizzato con un array JSON ed ogni oggetto dell'array deve contenere la proprietà indicata nel placeholder.\n\nAd esempio:\nto=[{msisdn:'393481234567',**nome:'Mario Rossi'**},{msisdn:'393481234568',**nome:'Luigi Bianchi'**}]\ntext=Invio sms di test a **${nome}**"},{"key":"fallbackSms","value":"true","type":"text","description":"[String] *(Opzionale)*\n\nData (in formato **yyyy-MM-ddTHH:mm:ssZ**) nella quale sarà inviato il messaggio. Se non specificato, il messaggio è inviato immediatamente.\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit. (Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno).\n\nAd esempio:\n**2014-12-25T08:00:00+0200** indica il 25/12/2014 alle 08:00:00 riferito al GMT +2"},{"key":"fromSms","value":"mittente SMS","type":"text","description":"[String] *(Opzionale)*\n\nUn identificatore personale dell'invio.\n\nConsente di assegnare a tutti gli sms inviati con una chiamata lo stesso identificatore in modo da utilizzare questo parametro per ricevere lo stato dei messaggi. **Massimo 60 caratteri**."},{"key":"textSms","value":"testo SMS ","type":"text","description":"[String] *(Opzionale)*\n\nConsente di fare la chiamata senza inviare effettivamente il messaggio.\nParametro utile in fase di sviluppo di eventuali integrazioni con le REST API.\n\nPossibili valori **true/false**"},{"key":"encoding","value":"7BIT","type":"text","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP/HTTPS una notifica con lo stato (Consegnato, Non Consegnato) dell'SMS.\n\nVedi [Gestione SMS Status Callback](#gestione-sms-status-callback)","disabled":true}]},"url":"{{BaseUrl}}/rest/api/rcs/message/estimate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"cost\": 0.34,\n    \"userCredit\": 344.625,\n    \"count\": 4\n}"}],"_postman_id":"ad955929-b299-4e74-8cbb-b6cc93a89cf8"},{"name":"Send RCS","id":"f88363d1-6804-48af-9080-8fb103904976","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393480000000","description":"<p>[String] <em>(Optional, set at least one of <strong>to</strong> and <strong>group</strong>)</em>\nThe recipient of the message.</p>\n<p>It must be a mobile number including the international prefix.</p>\n<p>It is possible to specify <strong>multiple telephone numbers</strong> (max 10 numbers) by separating them with the comma character \"<strong>,</strong>\".\nIf there are more than 10 recipients, we suggest to use the send bulk request.</p>\n<p>For example:\n<code>393481234567</code> or <code>393481234567,393481234568,393481234568</code></p>\n<p>Alternatively, the parameter can be enhanced with a JSON array containing the objects that describe the recipient.\nEach object must necessarily have the msisdn property valued.\nThe other properties of these objects can be used to parameterize the message text (see the text field).</p>\n<p>For example:\n<strong>[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]</strong></p>\n","type":"text"},{"key":"group","value":"gruppo","description":"<p>[String] <em>(Optional, set at least one of <strong>to</strong> and <strong>group</strong>)</em></p>\n<p><strong>Id</strong> of the group in the phonebook to send to</p>\n<p>It is possible to specify <strong>multiple groups</strong> from the phonebook by separating them with a comma  \"<strong>,</strong>\".</p>\n<p>For example, if in the phonebook there is the group \"friends\" (<code>id=1</code>) and \"school\" (<code>id=2</code>), you can use:</p>\n<p><strong>1</strong> or <strong>1,2</strong></p>\n","type":"text","disabled":true},{"key":"date","value":"2017-03-24T00:00:00+0100","description":"<p>[String] <em>(Optional)</em></p>\n<p>Date (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>) when the message will be sent. If not set, the message will be sent immediatly.\nThe character <strong>Z</strong> specifies the timezone according to  RFC 822 4-digit format (In Italy, the timezone offset is +0200 during daylight saving time (summer) and +0100 during standard time (winter).).</p>\n<p>For example:\n<strong>2014-12-25T08:00:00+0200</strong> means 25/12/2014 at 08:00:00  GMT +2</p>\n","type":"text","disabled":true},{"key":"agentId","value":"id agent","description":"<p>[String] <em>(Required)</em></p>\n<p>ID of the agent to use to send the RCS message</p>\n","type":"text"},{"key":"contentMessage","value":"{\"contentMessage\":{\"text\":\"Hi there!\",\"suggestions\":[]}}","description":"<p>[String] <em>(Optional, set at least one of <strong>contentMessage</strong> and <strong>templateId</strong>)</em></p>\n<p>String representing the JSON containing the RCS message.\nRefer to <a href=\"https://developers.google.com/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentMessages\">https://developers.google.com/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentMessages</a></p>\n","type":"text"},{"key":"templateId","value":"id template","description":"<p>[String] <em>(Optional, set at least one of <strong>contentMessage</strong> and <strong>templateId</strong>)</em>\nID of the template to use. </p>\n","type":"text","disabled":true},{"key":"fallbackSms","value":"true","description":"<p>[boolean] <em>(Required)</em></p>\n<p>True if you want to enable SMS fallback</p>\n","type":"text"},{"key":"fromSms","value":"mittente SMS","description":"<p>[String] <em>(Optional)</em></p>\n<p>The sender of the fallback SMS.</p>\n<p>It can be a validated telephone number or an alphanumeric string of up to 11 characters. If not specified, the default sender of your profile is used.</p>\n<p>To use an alphanumeric sender, registration is mandatory; this procedure can be carried out from our web panel or via API.</p>\n<p><strong>Unverified senders will be replaced with a random numeric sender</strong>.</p>\n","type":"text"},{"key":"textSms","value":"Hi there!","description":"<p>[String] <em>(Optional)</em></p>\n<p>Required if fallbackSms is true.</p>\n<p>Text of the fallback SMS message.</p>\n<p>If the message exceeds 160 characters, [multiple concatenated text messages] are sent (<a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate</a>) up to a maximum of 7.</p>\n<p>Some <a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">extended characters occupy 2 characters</a>. In the case of SMS that exceed the standard length of 160 characters only due to some extended characters, these will be replaced with simple characters keeping the cost at 1 SMS instead of 2.</p>\n<p>The text may contain <strong>placeholders</strong> which will be replaced during sending by the values associated with the respective recipient.\nThe placeholder must be specified with the syntax <strong>${property name}</strong>\nIf the text contains <strong>placeholders</strong> the <strong>to</strong> field must be populated with a JSON array and each object in the array must contain the property indicated in the placeholder.</p>\n<p>For example:\nto=[{msisdn:'393481234567',<strong>name:'Mario Rossi'</strong>},{msisdn:'393481234568',<strong>name:'Luigi Bianchi'</strong>}]\ntext=Send test sms to <strong>${name}</strong></p>\n","type":"text"},{"key":"transactionId","value":"123456789ABCDE","description":"<p>[String] <em>(Optional)</em></p>\n<p>Custom ID for the send operation.\nIt allows you to assign the same ID to all messages sent with the same call in order to use this parameter to get the status of the messages. <strong>Max 60 characters</strong>.</p>\n","type":"text","disabled":true},{"key":"encoding","value":"7BIT","description":"<p>[String] <em>(Optional)</em></p>\n<p>The encoding to use for the text of the message.\nThe possible values are:</p>\n<ul>\n<li><p><strong>7BIT</strong> - Encoding <strong>standard</strong> for GSM messages. The max length for a single sms is  <strong>160 characters</strong>.</p>\n</li>\n<li><p><strong>UCS2</strong> - 8-bit Encoding for GSM messages with also not ASCII content. The max length for a single message is <strong>70 characters</strong>.</p>\n</li>\n<li><p><strong>AUTO</strong> - the encoding to use is automatically selected based on the content of the text field.</p>\n</li>\n</ul>\n<p><strong>Default : 7BIT</strong></p>\n","type":"text","disabled":true},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"<p>[String] <em>(Optional)</em></p>\n<p>URL to which a notification with the status (Delivered, Not Delivered) of the message will be sent via HTTP/HTTPS.</p>\n<p>See <a href=\"#b664255f-a4c8-4afc-ab0f-8c151bc9fd4b\">RCS Status Callback Management</a></p>\n","type":"text"},{"key":"sandbox","value":"true","description":"<p>[String] <em>(Optional)</em></p>\n<p>It allows you to make the call without actually sending the message. Useful parameter when developing possible integrations with the REST API.</p>\n<p>Possible valued: <strong>true/false</strong></p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/rcs/message/send","description":"<h1 id=\"description-rcs-sending\">Description RCS sending</h1>\n<p>Sending a message to one or more individual recipients or to one or more groups in the address book.</p>\n<p>You can test sending by setting the <code>sandbox</code> parameter to <code>true</code> in the request.</p>\n<p>The <code>statusCallback</code> parameter allows you to register a URL to which a notification with the status (Delivered, Not Delivered, etc...) of the message will be sent via HTTP.</p>\n<h2 id=\"attention\">ATTENTION</h2>\n<blockquote>\n<p>Pay particular attention to the fact that the <strong>id</strong> of the message could be a <strong>64-bit integer</strong> (int64)\n<strong>Check if your platform can handle it!</strong></p>\n</blockquote>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>ok</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Invalid parameters <br />Possible errorMsg are: <br /><code>BAD_AGENT</code> - invalid agentId parameter <br /><code>BAD_CONTENT_MESSAGE</code> - invalid contentMessage parameter <br /><code>BAD_TRANSACTIONID</code> - invalid transactionId parameter <br /><code>BAD_DATE</code> - invalid deferred date format <br /><code>BAD_TEXT</code> - invalid text parameter <br /><code>BAD_TEXT_PLACEHOLDER</code> - text contains non-replaceable placeholders <br /><code>BAD_CALLBACK</code> - invalid statusCallback parameter <br /><code>BAD_ENCODING</code> - encoding parameter invalid <br /><code>BAD_FROM</code> - invalid from parameter <br /><code>BAD_GROUP</code> - invalid group parameter <br /><code>NO_CREDIT</code> - insufficient credit to send <br /><code>NO_VALID_RECIPIENT</code> - no valid recipient <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td>405</td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>agentsId</td>\n<td>Id of the sending RCS agent.</td>\n</tr>\n<tr>\n<td>contentMessage</td>\n<td>rcs contentMessage.</td>\n</tr>\n<tr>\n<td>fromSms</td>\n<td>The sender of the fallback SMS message.</td>\n</tr>\n<tr>\n<td>textSms</td>\n<td>Fallback sms text</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>sending identifier <br />If not specified during the request phase, a <strong>transactionId</strong> will be generated automatically by the REST API</td>\n</tr>\n<tr>\n<td>countInserted</td>\n<td>Number of messages posted</td>\n</tr>\n<tr>\n<td>countNotInserted</td>\n<td>Number of unposted messages</td>\n</tr>\n<tr>\n<td>rcs</td>\n<td>List of messages. <br />Each element is described by the property: <br /><code>to</code> - mobile number to which the message was sent <br /><code>id</code> - <em>ATTENTION:</em> <strong>int64</strong> - internal id of the message. Useful for requesting the status of the message with the Search SMS function <br /><code>status</code> - Status of the message. It is set to <code>INSERTED</code> if the message is inserted correctly, to <code>NOT_INSERTED</code> otherwise. <br /><code>statusDetail</code> - if the message is not inserted (status = <code>NOT_INSERTED</code>) this field reports a message explaining the error that occurred. The possible values are: <br /><code>BADNUMBERFORMAT</code> - Incorrect recipient number <br /><code>DUPLICATESMS</code> - SMS already inserted in the last 24 hours with identical recipient, sender and text. <br /><code>BLACKLIST</code> - The recipient has been blacklisted.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","rcs","message","send"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"c653763d-8d02-4737-9f71-801f29ee494f","name":"Invio RCS OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393480000000,393480000001","type":"text","description":"[String] *Opzionale*\n\nIl mittente dell'SMS.\n\nPuò essere un numero di telefono validato oppure una stringa alfanumerica di massimo 11 caratteri. Se non specificato viene usato il mittente di default del proprio profilo.\n\nPer utilizzare un mittente alfanumerico è obbligatoria la registrazione dello stesso, questa procedura può essere effettuata dal nostro pannello web oppure via API.\n\n**I mittenti non verificati verranno rimpiazzati con un mittente numerico casuale**."},{"key":"group","value":"gruppo","type":"text","description":"[String] _Opzionale (valorizzare almeno uno tra **to** e **group**)_\n\nIl destinatario del messaggio.\n\nDeve essere un numero di cellulare compreso di prefisso internazionale.\nÈ possibile specificare **più numeri di telefono** (max 1000 numeri) separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n`393481234567` oppure `393481234567,393481234568,393481234568`\n\nAlternativamente il parametro può essere valorizzato con un array JSON contenente gli oggetti che descrivono il destinatario.\nOgni oggetto deve avere obbligatoriamente la propriertà msisdn valorizzata.\nLe altre proprietà di tali oggetti posso essere utilizzate per parametrizzare il testo del messaggio (vedi il campo text).\n\nAd esempio:\n\n**[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]**\n","disabled":true},{"key":"date","value":"2017-03-24T00:00:00+0100","type":"text","description":"[String] _Opzionale (valorizzare almeno uno tra **to** e **group**)_\n\n**Id** del gruppo in Rubrica al quale inviare\n\nÈ possibile specificare più gruppi della rubrica separandoli con il carattere virgola \",\".\n\nAd esempio se nellla rubrica sono presenti i gruppi Amici (`id=1`) e Scuola (`id=2`) sarà possibile indicare:\n\n**1** oppure **1,2**","disabled":true},{"key":"agentId","value":"8","type":"text","description":"[String] *(Obbligatorio)*\n\nTesto del messaggio.\nSe il messaggio supera i 160 caratteri vengono inviati [più sms concatenati](https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate) fino ad una massimo di 7.\n\nIl testo può contenere dei **placeholder** che saranno sostituiti in fase di invio dai valori associati al rispettivo destinatario.\nIl placeholder va specificato con la sintassi **${nome proprietà}**\n\nNel caso il testo contenga dei **placeholder** il campo **to** deve essere valorizzato con un array JSON ed ogni oggetto dell'array deve contenere la proprietà indicata nel placeholder.\n\nAd esempio:\nto=[{msisdn:'393481234567',**nome:'Mario Rossi'**},{msisdn:'393481234568',**nome:'Luigi Bianchi'**}]\ntext=Invio sms di test a **${nome}**"},{"key":"contentMessage","value":"{\"contentMessage\":{\"text\":\"Hi there!\",\"suggestions\":[]}}","type":"text","description":"[String] *(Opzionale)*\n\nData (in formato **yyyy-MM-ddTHH:mm:ssZ**) nella quale sarà inviato il messaggio. Se non specificato, il messaggio è inviato immediatamente.\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit. (Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno).\n\nAd esempio:\n**2014-12-25T08:00:00+0200** indica il 25/12/2014 alle 08:00:00 riferito al GMT +2"},{"key":"fallbackSms","value":"true","type":"text","description":"[String] *(Opzionale)*\n\nUn identificatore personale dell'invio.\n\nConsente di assegnare a tutti gli sms inviati con una chiamata lo stesso identificatore in modo da utilizzare questo parametro per ricevere lo stato dei messaggi. **Massimo 60 caratteri**."},{"key":"fromSms","value":"DemoSMS","type":"text","description":"[String] *(Opzionale)*\n\nConsente di fare la chiamata senza inviare effettivamente il messaggio.\nParametro utile in fase di sviluppo di eventuali integrazioni con le REST API.\n\nPossibili valori **true/false**"},{"key":"textSms","value":"Hi there!","type":"text","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP/HTTPS una notifica con lo stato (Consegnato, Non Consegnato) dell'SMS.\n\nVedi [Gestione SMS Status Callback](#gestione-sms-status-callback)"},{"key":"transactionId","value":"123456789ABCDE","type":"text","description":"[String] *(Opzionale)*\n\nL'encoding da utilizzare per il testo del messaggio.\nI possibili valori sono:\n\n* **7BIT** - Encoding **standard** per i messaggi GSM. La lunghezza massima per un singolo sms è di **160 caratteri**.\n\n* **UCS2** - Encoding a 8-bit per inviare messaggi GSM con contenuto non ASCII. La lunghezza massima per un singolo sms è di **70 caratteri**.\n\n* **AUTO** - L'encoding da utilizzare viene automaticamente identificato in base al contenuto del campo testo.\n\n**Default : 7BIT**","disabled":true},{"key":"encoding","value":"7BIT","type":"text","disabled":true},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","type":"text","disabled":true},{"key":"sandbox","value":"true","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/rcs/message/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"agentId\": 8,\n    \"contentMessage\": \"{\\\"contentMessage\\\":{\\\"text\\\":\\\"Hi there!\\\",\\\"suggestions\\\":[]}}\",\n    \"from\": \"DemoSMS\",\n    \"text\": \"Hi there!\",\n    \"transactionId\": \"7561ed159b47986106a7c359e1a8e228\",\n    \"countInserted\": 2,\n    \"countNotInserted\": 0,\n    \"rcs\": [\n        {\n            \"id\": 87,\n            \"to\": \"393480000001\",\n            \"status\": \"INSERTED\"\n        },\n        {\n            \"id\": 88,\n            \"to\": \"393480000000\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"},{"id":"573f9d62-344d-43d5-9fb8-d2723a4198c6","name":"Invio RCS Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393480000000,393480000001","type":"text","description":"[String] *(Opzionale)*\n\nIl mittente dell'SMS.\n\nPuò essere un numero di telefono validato oppure una stringa alfanumerica di massimo 11 caratteri. Se non specificato viene usato il mittente di default del proprio profilo.\n\nPer utilizzare un mittente alfanumerico è obbligatoria la registrazione dello stesso, questa procedura può essere effettuata dal nostro pannello web oppure via API.\n\n**I mittenti non verificati verranno rimpiazzati con un mittente numerico casuale**.","disabled":true},{"key":"group","value":"gruppo","type":"text","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\nIl destinatario del messaggio.\n\nDeve essere un numero di cellulare compreso di prefisso internazionale.\nÈ possibile specificare **più numeri di telefono** (max 1000 numeri) separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n`393481234567` oppure `393481234567,393481234568,393481234568`\n\nAlternativamente il parametro può essere valorizzato con un array JSON contenente gli oggetti che descrivono il destinatario.\nOgni oggetto deve avere obbligatoriamente la propriertà msisdn valorizzata.\nLe altre proprietà di tali oggetti posso essere utilizzate per parametrizzare il testo del messaggio (vedi il campo text).\n\nAd esempio:\n\n**[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]**\n","disabled":true},{"key":"date","value":"2017-03-24T00:00:00+0100","type":"text","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\n**Id** del gruppo in Rubrica al quale inviare\n\nÈ possibile specificare più gruppi della rubrica separandoli con il carattere virgola \",\".\n\nAd esempio se nellla rubrica sono presenti i gruppi Amici (`id=1`) e Scuola (`id=2`) sarà possibile indicare:\n\n**1** oppure **1,2**","disabled":true},{"key":"agentId","value":"8","type":"text","description":"[String] *(Obbligatorio)*\n\nTesto del messaggio.\nSe il messaggio supera i 160 caratteri vengono inviati [più sms concatenati](https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate) fino ad una massimo di 7.\n\nIl testo può contenere dei **placeholder** che saranno sostituiti in fase di invio dai valori associati al rispettivo destinatario.\nIl placeholder va specificato con la sintassi **${nome proprietà}**\n\nNel caso il testo contenga dei **placeholder** il campo **to** deve essere valorizzato con un array JSON ed ogni oggetto dell'array deve contenere la proprietà indicata nel placeholder.\n\nAd esempio:\nto=[{msisdn:'393481234567',**nome:'Mario Rossi'**},{msisdn:'393481234568',**nome:'Luigi Bianchi'**}]\ntext=Invio sms di test a **${nome}**"},{"key":"contentMessage","value":"{\"contentMessage\":{\"text\":\"Hi there!\",\"suggestions\":[]}}","type":"text","description":"[String] *(Opzionale)*\n\nData (in formato **yyyy-MM-ddTHH:mm:ssZ**) nella quale sarà inviato il messaggio. Se non specificato, il messaggio è inviato immediatamente.\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit. (Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno).\n\nAd esempio:\n**2014-12-25T08:00:00+0200** indica il 25/12/2014 alle 08:00:00 riferito al GMT +2"},{"key":"fallbackSms","value":"true","type":"text","description":"[String] *(Opzionale)*\n\nUn identificatore personale dell'invio.\n\nConsente di assegnare a tutti gli sms inviati con una chiamata lo stesso identificatore in modo da utilizzare questo parametro per ricevere lo stato dei messaggi. **Massimo 60 caratteri**."},{"key":"fromSms","value":"DemoSMS","type":"text","description":"[String] *(Opzionale)*\n\nConsente di fare la chiamata senza inviare effettivamente il messaggio.\nParametro utile in fase di sviluppo di eventuali integrazioni con le REST API.\n\nPossibili valori **true/false**"},{"key":"textSms","value":"Hi there!","type":"text","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP/HTTPS una notifica con lo stato (Consegnato, Non Consegnato) dell'SMS.\n\nVedi [Gestione SMS Status Callback](#gestione-sms-status-callback)"},{"key":"transactionId","value":"123456789ABCDE","type":"text","description":"[String] *(Opzionale)*\n\nL'encoding da utilizzare per il testo del messaggio.\nI possibili valori sono:\n\n* **7BIT** - Encoding **standard** per i messaggi GSM. La lunghezza massima per un singolo sms è di **160 caratteri**.\n\n* **UCS2** - Encoding a 8-bit per inviare messaggi GSM con contenuto non ASCII. La lunghezza massima per un singolo sms è di **70 caratteri**.\n\n* **AUTO** - L'encoding da utilizzare viene automaticamente identificato in base al contenuto del campo testo.\n\n**Default : 7BIT**","disabled":true},{"key":"encoding","value":"7BIT","type":"text","disabled":true},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","type":"text","disabled":true},{"key":"sandbox","value":"true","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/rcs/message/send"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"49"},{"key":"date","value":"Wed, 21 Apr 2021 08:29:31 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"errorMsg\": \"NO_VALID_RECIPIENT\",\n    \"errorCode\": 400\n}"},{"id":"0b77d37b-bd83-4674-8c49-2f43ec277ced","name":"Invio RCS Error Encoding","originalRequest":{"method":"POST","header":[],"url":"{{BaseUrl}}/rest/api/rcs/message/send"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"44"},{"key":"date","value":"Wed, 21 Apr 2021 08:32:09 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"errorMsg\": \"GENERIC_ERROR\",\n    \"errorCode\": 500\n}"},{"id":"6d32b7cf-f994-466f-9392-c69ab1cc909f","name":"Invio RCS Wrong Auth","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393480000000,393480000001","type":"text","description":"[String] *(Opzionale)*\n\nIl mittente dell'SMS.\n\nPuò essere un numero di telefono validato oppure una stringa alfanumerica di massimo 11 caratteri. Se non specificato viene usato il mittente di default del proprio profilo.\n\nPer utilizzare un mittente alfanumerico è obbligatoria la registrazione dello stesso, questa procedura può essere effettuata dal nostro pannello web oppure via API.\n\n**I mittenti non verificati verranno rimpiazzati con un mittente numerico casuale**."},{"key":"group","value":"gruppo","type":"text","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\nIl destinatario del messaggio.\n\nDeve essere un numero di cellulare compreso di prefisso internazionale.\nÈ possibile specificare **più numeri di telefono** (max 1000 numeri) separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n`393481234567` oppure `393481234567,393481234568,393481234568`\n\nAlternativamente il parametro può essere valorizzato con un array JSON contenente gli oggetti che descrivono il destinatario.\nOgni oggetto deve avere obbligatoriamente la propriertà msisdn valorizzata.\nLe altre proprietà di tali oggetti posso essere utilizzate per parametrizzare il testo del messaggio (vedi il campo text).\n\nAd esempio:\n\n**[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]**\n","disabled":true},{"key":"date","value":"2017-03-24T00:00:00+0100","type":"text","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\n**Id** del gruppo in Rubrica al quale inviare\n\nÈ possibile specificare più gruppi della rubrica separandoli con il carattere virgola \",\".\n\nAd esempio se nellla rubrica sono presenti i gruppi Amici (`id=1`) e Scuola (`id=2`) sarà possibile indicare:\n\n**1** oppure **1,2**","disabled":true},{"key":"agentId","value":"8","type":"text","description":"[String] *(Obbligatorio)*\n\nTesto del messaggio.\nSe il messaggio supera i 160 caratteri vengono inviati [più sms concatenati](https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate) fino ad una massimo di 7.\n\nIl testo può contenere dei **placeholder** che saranno sostituiti in fase di invio dai valori associati al rispettivo destinatario.\nIl placeholder va specificato con la sintassi **${nome proprietà}**\n\nNel caso il testo contenga dei **placeholder** il campo **to** deve essere valorizzato con un array JSON ed ogni oggetto dell'array deve contenere la proprietà indicata nel placeholder.\n\nAd esempio:\nto=[{msisdn:'393481234567',**nome:'Mario Rossi'**},{msisdn:'393481234568',**nome:'Luigi Bianchi'**}]\ntext=Invio sms di test a **${nome}**"},{"key":"contentMessage","value":"{\"contentMessage\":{\"text\":\"Hi there!\",\"suggestions\":[]}}","type":"text","description":"[String] *(Opzionale)*\n\nData (in formato **yyyy-MM-ddTHH:mm:ssZ**) nella quale sarà inviato il messaggio. Se non specificato, il messaggio è inviato immediatamente.\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit. (Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno).\n\nAd esempio:\n**2014-12-25T08:00:00+0200** indica il 25/12/2014 alle 08:00:00 riferito al GMT +2"},{"key":"fallbackSms","value":"true","type":"text","description":"[String] *(Opzionale)*\n\nUn identificatore personale dell'invio.\n\nConsente di assegnare a tutti gli sms inviati con una chiamata lo stesso identificatore in modo da utilizzare questo parametro per ricevere lo stato dei messaggi. **Massimo 60 caratteri**."},{"key":"fromSms","value":"DemoSMS","type":"text","description":"[String] *(Opzionale)*\n\nConsente di fare la chiamata senza inviare effettivamente il messaggio.\nParametro utile in fase di sviluppo di eventuali integrazioni con le REST API.\n\nPossibili valori **true/false**"},{"key":"textSms","value":"Hi there!","type":"text","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP/HTTPS una notifica con lo stato (Consegnato, Non Consegnato) dell'SMS.\n\nVedi [Gestione SMS Status Callback](#gestione-sms-status-callback)"},{"key":"transactionId","value":"123456789ABCDE","type":"text","description":"[String] *(Opzionale)*\n\nL'encoding da utilizzare per il testo del messaggio.\nI possibili valori sono:\n\n* **7BIT** - Encoding **standard** per i messaggi GSM. La lunghezza massima per un singolo sms è di **160 caratteri**.\n\n* **UCS2** - Encoding a 8-bit per inviare messaggi GSM con contenuto non ASCII. La lunghezza massima per un singolo sms è di **70 caratteri**.\n\n* **AUTO** - L'encoding da utilizzare viene automaticamente identificato in base al contenuto del campo testo.\n\n**Default : 7BIT**","disabled":true},{"key":"encoding","value":"7BIT","type":"text","disabled":true},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","type":"text","disabled":true},{"key":"sandbox","value":"true","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/rcs/message/send"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"www-authenticate","value":"Basic realm=\"REST API Authentication\""},{"key":"content-type","value":"application/json"},{"key":"content-length","value":"46"},{"key":"date","value":"Wed, 21 Apr 2021 08:34:59 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"errorMsg\": \"BAD_CREDENTIALS\",\n    \"errorCode\": 401\n}"}],"_postman_id":"f88363d1-6804-48af-9080-8fb103904976"},{"name":"RCS BULK Send","id":"31ba8d78-017f-4f3c-8055-7337375387ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","description":"<p>[String] <em>(Optional, set at least one of <strong>to</strong> and <strong>group</strong>)</em>\nThe recipient of the message.</p>\n<p>It must be a mobile number including the international prefix.\nIt is possible to set <strong>multiple telephone numbers</strong> (max 1000 numbers) by separating them with the comma character \"<strong>,</strong>\".</p>\n<p>For example:\n<code>393481234567</code> or <code>393481234567,393481234568,393481234568</code></p>\n<p>Alternatively, the parameter can be enhanced with a JSON array containing the objects that describe the recipient.\nEach object must necessarily have the msisdn property valued.\nThe other properties of these objects can be used to parameterize the message text (see the text field).</p>\n<p>For example:\n<strong>[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]</strong></p>\n","type":"text"},{"key":"group","value":"gruppo","description":"<p>[String] <em>(Optional, set at least one of <strong>to</strong> and <strong>group</strong>)</em>\n<strong>Id</strong> of the group in the phonebook to send to\nIt is possible to specify <strong>multiple groups</strong> from the phonebook by separating them with a comma \"<strong>,</strong>\".\nFor example, if in the phonebook there is the froup \"friends\" (<code>id=1</code>) and \"school\" (<code>id=2</code>), you can use:\n<strong>1</strong> or <strong>1,2</strong></p>\n","type":"text","disabled":true},{"key":"date","value":"2017-03-24T00:00:00+0100","description":"<p>[String] <em>(Optional)</em>\nDate (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>) when the message will be sent. If not set, the message will be sent immediatly.\nThe character <strong>Z</strong> specifies the timezone according to RFC 822 4-digit format (In Italy, the timezone offset is +0200 during daylight saving time (summer) and +0100 during standard time (winter).).\nFor example:\n<strong>2014-12-25T08:00:00+0200</strong> means 25/12/2014 at 08:00:00 GMT +2</p>\n","type":"text","disabled":true},{"key":"agentId","value":"id agent","description":"<p>[String] <em>(Required)</em></p>\n<p>ID of the agent to use to send the RCS message</p>\n","type":"text"},{"key":"contentMessage","value":"{\"contentMessage\":{\"text\":\"Hi there!\",\"suggestions\":[]}}","description":"<p>[String] <em>(Optional, set at least one of <strong>contentMessage</strong> and <strong>templateId</strong>)</em></p>\n<p>String representing the JSON containing the RCS message.</p>\n<p>Refer to <a href=\"https://developers.google.com/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentMessages\">https://developers.google.com/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentMessages</a></p>\n","type":"text"},{"key":"templateId","value":"id template","description":"<p>[String] <em>(Optional, set at least one of <strong>contentMessage</strong> and <strong>templateId</strong>)</em>\nID of the template to use. </p>\n","type":"text","disabled":true},{"key":"fallbackSms","value":"true","description":"<p>[boolean] <em>(Required)</em></p>\n<p>True if you want to enable SMS fallback</p>\n","type":"text"},{"key":"fromSms","value":"mittente SMS","description":"<p>[String] <em>(Optional)</em></p>\n<p>The sender of the fallback SMS.</p>\n<p>It can be a validated telephone number or an alphanumeric string of up to 11 characters. If not specified, the default sender of your profile is used.</p>\n<p>To use an alphanumeric sender, registration is mandatory; this procedure can be carried out from our web panel or via API.</p>\n<p><strong>Unverified senders will be replaced with a random numeric sender</strong>.</p>\n","type":"text"},{"key":"textSms","value":"Hi there!","description":"<p>[String] <em>(Optional)</em></p>\n<p>Required if fallbackSms is true.</p>\n<p>Text of the fallback SMS message.</p>\n<p>If the message exceeds 160 characters, [multiple concatenated text messages] are sent (<a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate</a>) up to a maximum of 7.</p>\n<p>Some <a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">extended characters occupy 2 characters</a>. In the case of SMS that exceed the standard length of 160 characters only due to some extended characters, these will be replaced with simple characters keeping the cost at 1 SMS instead of 2.</p>\n<p>The text may contain <strong>placeholders</strong> which will be replaced during sending by the values associated with the respective recipient.</p>\n<p>The placeholder must be specified with the syntax <strong>${property name}</strong>\nIf the text contains <strong>placeholders</strong> the <strong>to</strong> field must be populated with a JSON array and each object in the array must contain the property indicated in the placeholder.</p>\n<p>For example:\nto=[{msisdn:'393481234567',<strong>name:'Mario Rossi'</strong>},{msisdn:'393481234568',<strong>name:'Luigi Bianchi'</strong>}]\ntext=Send test sms to <strong>${name}</strong></p>\n","type":"text"},{"key":"transactionId","value":"51e533f557062a2e0dfce81d064a60db","description":"<p>[String] <em>(Optional)</em>\nCustom ID for the operation.\nIt allows you to assign the same ID to all messages sent with the same call in order to use this parameter to get the status of the messages. <strong>Max 60 characters</strong>.</p>\n","type":"text","disabled":true},{"key":"encoding","value":"7BIT","description":"<p>[String] <em>(Optional)</em>\nThe encoding to use for the text of the message.\nThe possible values are:</p>\n<ul>\n<li><strong>7BIT</strong> - Encoding <strong>standard</strong> for GSM messages. The max length for a single sms is <strong>160 characters</strong>.</li>\n<li><strong>UCS2</strong> - 8-bit Encoding for GSM messages without ASCII content. The max length for a single message is <strong>70 characters</strong>.</li>\n<li><strong>AUTO</strong> - the encoding to use is automatically selected based on the content of the text field.\n<strong>Default : 7BIT</strong></li>\n</ul>\n","type":"text","disabled":true},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"<p>[String] <em>(Optional)</em></p>\n<p>URL to which a notification with the status (Delivered, Not Delivered) of the message will be sent via HTTP/HTTPS.</p>\n<p>See <a href=\"#02b24930-30f5-4183-bea2-93f2748276d5\">RCS Status Callback Management</a></p>\n","type":"text"},{"key":"sandbox","value":"true","description":"<p>[String] <em>(Optional)</em>\nIt allows you to make the call without actually sending the message. Useful parameter when developing possible integrations with the REST API.\nPossible valued: <strong>true/false</strong></p>\n","type":"text","disabled":true},{"key":"transactionCallback","value":"https://tuodominio.com/tuo-percorso-callback","type":"text","description":"<p>[String] (Optional)</p>\n<p>A personal identifier of the submission.</p>\n<p>Allows you to assign the same identifier to all messages sent with a call so that this parameter can be used to search by status. Maximum 60 characters.\"</p>\n"}]},"url":"{{BaseUrl}}/rest/api/rcs/message/sendbulk","description":"<h1 id=\"description-rcs-bulk-send\">Description RCS BULK send</h1>\n<p>Asynchronous SMS sending mode to be used with a large number of recipients (More than 10 recipients per single request).</p>\n<p>Once the request has been sent, a transactionId is returned which is useful for subsequently identifying the messages.</p>\n<p>If the submission cannot be completed due to an error, an email containing the error code will be sent.</p>\n<p>Note: If you send up to 10 recipients per single request we recommend using the RCS Send function</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>ok</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Invalid parameters  <br />Possible errorMsg are:  <br /><code>BAD_AGENT</code> - invalid agentId parameter  <br /><code>BAD_CONTENT_MESSAGE</code> - invalid contentMessage parameter  <br /><code>BAD_TRANSACTIONID</code> - invalid transactionId parameter  <br /><code>BAD_DATE</code> - invalid deferred date format  <br /><code>BAD_TEXT</code> - invalid text parameter  <br /><code>BAD_TEXT_PLACEHOLDER</code> - text contains non-replaceable placeholders  <br /><code>BAD_CALLBACK</code> - invalid statusCallback parameter  <br /><code>BAD_ENCODING</code> - encoding parameter invalid  <br /><code>BAD_FROM</code> - invalid from parameter  <br /><code>BAD_GROUP</code> - invalid group parameter  <br /><code>NO_CREDIT</code> - insufficient credit to send  <br /><code>NO_VALID_RECIPIENT</code> - no valid recipient  <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td>405</td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>agentsId</td>\n<td>Id of the sending RCS agent.</td>\n</tr>\n<tr>\n<td>contentMessage</td>\n<td>rcs contentMessage.</td>\n</tr>\n<tr>\n<td>fromSms</td>\n<td>The sender of the message.</td>\n</tr>\n<tr>\n<td>textSms</td>\n<td>SMS text</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>sending identifier  <br />If not specified during the request phase, a <strong>transactionId</strong> will be generated automatically by the REST API</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","rcs","message","sendbulk"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"a58977d2-da56-4ffd-ab46-89f88c3539ed","name":"Invio RCS BULK OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text","description":"[String] *(Opzionale)*\n\nIl mittente dell'SMS.\n\nPuò essere un numero di telefono validato oppure una stringa alfanumerica di massimo 11 caratteri. Se non specificato viene usato il mittente di default del proprio profilo.\n\nPer utilizzare un mittente alfanumerico è obbligatoria la registrazione dello stesso, questa procedura può essere effettuata dal nostro pannello web oppure via API.\n\n**I mittenti non verificati verranno rimpiazzati con un mittente numerico casuale**."},{"key":"group","value":"gruppo","type":"text","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\nIl destinatario del messaggio.\n\nDeve essere un numero di cellulare compreso di prefisso internazionale.\nÈ possibile specificare **più numeri di telefono** (max 1000 numeri) separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n`393481234567` oppure `393481234567,393481234568,393481234568`\n\nAlternativamente il parametro può essere valorizzato con un array JSON contenente gli oggetti che descrivono il destinatario.\nOgni oggetto deve avere obbligatoriamente la propriertà msisdn valorizzata.\nLe altre proprietà di tali oggetti posso essere utilizzate per parametrizzare il testo del messaggio (vedi il campo text).\n\nAd esempio:\n\n**[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]**\n","disabled":true},{"key":"date","value":"2017-03-24T00:00:00+0100","type":"text","description":"[String] _(Opzionale valorizzare almeno uno tra **to** e **group**)_\n\n**Id** del gruppo in Rubrica al quale inviare\n\nÈ possibile specificare più gruppi della rubrica separandoli con il carattere virgola \",\".\n\nAd esempio se nellla rubrica sono presenti i gruppi Amici (`id=1`) e Scuola (`id=2`) sarà possibile indicare:\n\n**1** oppure **1,2**","disabled":true},{"key":"agentId","value":"8","type":"text","description":"[String] *(Obbligatorio)*\n\nTesto del messaggio.\nSe il messaggio supera i 160 caratteri vengono inviati [più sms concatenati](https://help.smshosting.it/it/invio-sms/caratteristiche-sms/lunghezza-testo-e-codifiche-supportate) fino ad una massimo di 7.\n\nIl testo può contenere dei **placeholder** che saranno sostituiti in fase di invio dai valori associati al rispettivo destinatario.\nIl placeholder va specificato con la sintassi **${nome proprietà}**\n\nNel caso il testo contenga dei **placeholder** il campo **to** deve essere valorizzato con un array JSON ed ogni oggetto dell'array deve contenere la proprietà indicata nel placeholder.\n\nAd esempio:\nto=[{msisdn:'393481234567',**nome:'Mario Rossi'**},{msisdn:'393481234568',**nome:'Luigi Bianchi'**}]\ntext=Invio sms di test a **${nome}**"},{"key":"contentMessage","value":"{\"contentMessage\":{\"text\":\"Hi there!\",\"suggestions\":[]}}","type":"text","description":"[String] *(Opzionale)*\n\nData (in formato **yyyy-MM-ddTHH:mm:ssZ**) nella quale sarà inviato il messaggio. Se non specificato, il messaggio è inviato immediatamente.\nIl carattere **Z** indica il timezone nel formato RFC 822 4-digit. (Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno).\n\nAd esempio:\n**2014-12-25T08:00:00+0200** indica il 25/12/2014 alle 08:00:00 riferito al GMT +2"},{"key":"fallbackSms","value":"true","type":"text","description":"[String] *(Opzionale)*\n\nUn identificatore personale dell'invio.\n\nConsente di assegnare a tutti gli sms inviati con una chiamata lo stesso identificatore in modo da utilizzare questo parametro per ricevere lo stato dei messaggi. **Massimo 60 caratteri**."},{"key":"fromSms","value":"DemoSMS","type":"text","description":"[String] *(Opzionale)*\n\nConsente di fare la chiamata senza inviare effettivamente il messaggio.\nParametro utile in fase di sviluppo di eventuali integrazioni con le REST API.\n\nPossibili valori **true/false**"},{"key":"textSms","value":"Hi there!","type":"text","description":"[String] *(Opzionale)*\n\nURL al quale sarà inviata via HTTP/HTTPS una notifica con lo stato (Consegnato, Non Consegnato) dell'SMS.\n\nVedi [Gestione SMS Status Callback](#gestione-sms-status-callback)"},{"key":"transactionId","value":"51e533f557062a2e0dfce81d064a60db","type":"text","description":"[String] *(Opzionale)*\n\nL'encoding da utilizzare per il testo del messaggio.\nI possibili valori sono:\n\n* **7BIT** - Encoding **standard** per i messaggi GSM. La lunghezza massima per un singolo sms è di **160 caratteri**.\n\n* **UCS2** - Encoding a 8-bit per inviare messaggi GSM con contenuto non ASCII. La lunghezza massima per un singolo sms è di **70 caratteri**.\n\n* **AUTO** - L'encoding da utilizzare viene automaticamente identificato in base al contenuto del campo testo.\n\n**Default : 7BIT**","disabled":true},{"key":"encoding","value":"7BIT","type":"text","disabled":true},{"key":"statusCallback","value":"https://tuodominio.com/tuo-percorso-callback","type":"text"},{"key":"sandbox","value":"true","type":"text","disabled":true},{"key":"transactionCallback","value":"https://tuodominio.com/tuo-percorso-callback","type":"text"}]},"url":"{{BaseUrl}}/rest/api/rcs/message/sendbulk"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"49"},{"key":"date","value":"Wed, 21 Apr 2021 08:29:31 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"agentId\": 8,\n    \"contentMessage\": \"{\\\"contentMessage\\\":{\\\"text\\\":\\\"Hi there!\\\",\\\"suggestions\\\":[]}}\",\n    \"from\": \"DemoSMS\",\n    \"text\": \"Hi there!\",\n    \"transactionId\": \"51e533f557062a2e0dfce81d064a60db\"\n}"}],"_postman_id":"31ba8d78-017f-4f3c-8055-7337375387ff"},{"name":"Cancel RCS Send","id":"a929b9e0-69a5-4ccc-8ee3-40ea681bdb7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"1","description":"<p>[Number] <em>(Optional)</em> -&gt; value at least one of the <code>id</code> or <code>transactionId</code> parameters</p>\n<p>Internal <code>id</code> of the sent message.</p>\n<p><strong>Multiple ids</strong> can be specified by separating them with the comma character \"<strong>,</strong>\".</p>\n<p>For example:\n<strong>12312</strong> or <strong>432432,543543,435435</strong></p>\n","type":"text"},{"key":"transactionId","value":"123456789ABCDE","description":"<p>[String] <em>(Optional)</em> -&gt; set at least one of <code>id</code> or <code>transactionId</code></p>\n<p><code>transactionId</code> of the send operation</p>\n","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/rcs/message/cancel","description":"<p>Cancel sending a message <strong>not yet sent</strong> (<em>deferred sending</em>).</p>\n<h2 id=\"http-response-codes\">HTTP Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Invalid parameters  <br />Possible errorMsgs are:  <br /><code>NO_PARAMS</code> - No parameters valued  <br /><code>BAD_ID</code> - invalid id format</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><p>The call returns the list of canceled messages.</p>\n<h2 id=\"description-response\">Description Response</h2>\n<p>For details of the properties of each individual message, see the <em>Response Description</em> of the <a href=\"#4ca390b4-0e13-4690-93d8-7e4ca6e880c1\">Search Rcs</a>.</p>\n","urlObject":{"path":["rest","api","rcs","message","cancel"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"25b095a5-df38-4bc6-aef6-bdb4a2eeccc4","name":"Annulla Invio RCS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"1","description":"[Number] *(Opzionale ¹)*\n\nId interno del messaggio inviato.\n\nÈ possibile specificare **più id** separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n**12312** oppure **432432,543543,435435**","type":"text","disabled":true},{"key":"transactionId","value":"123456789ABCDE","description":"[String] *(Opzionale ¹)*\n\n**transactionId** assegnato all'invio","type":"text"}]},"url":"{{BaseUrl}}/rest/api/rcs/message/cancel"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"to\": \"393331111111\",\n        \"text\": \"Ciao Rossi!\",\n        \"from\": \"DemoSMS\",\n        \"status\": \"NOSENT\",\n        \"insertDate\": \"2022-05-27T17:41:04+0200\",\n        \"transactionId\": \"rkEctAS0WRZzZTWtDXuGiLh5QWsgStYv59tnLRsj9UwA5BWjdbTxFhydYSb64TaU\",\n        \"price\": 0.085,\n        \"agent\": \"Agent default\",\n        \"contentMessage\": \"{\\\"contentMessage\\\":{\\\"text\\\":\\\"Hi there!\\\",\\\"suggestions\\\":[]}}\",\n        \"contentType\": \"card\",\n        \"sentAs\": \"unknown\"\n    }\n]"}],"_postman_id":"a929b9e0-69a5-4ccc-8ee3-40ea681bdb7a"},{"name":"Search RCS Messages","id":"4ca390b4-0e13-4690-93d8-7e4ca6e880c1","protocolProfileBehavior":{"disabledSystemHeaders":{"accept":true},"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/rcs/message/search?id=450189291&offset=0&limit=20","description":"<h2 id=\"description-search-rcs-messages\">Description Search RCS Messages</h2>\n<p>Search among sent RCS messages.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Invalid parameters  <br />Possible errorMsg are:  <br /><code>NO_PARAMS</code> - No parameter valued  <br /><code>BAD_ID</code> - Invalid id parameter  <br /><code>TOO_MANY_IDS</code> - Number of requested IDs too large  <br /><code>BAD_MSISDN</code> - Invalid msisdn parameter  <br /><code>BAD_DATE</code> - Invalid date format  <br /><code>BAD_STATUS</code> - Invalid status parameter</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>rcsList</code></td>\n<td>List of messages matching the search criteria.  <br />Each message is described by the properties:  <br /><code>id</code> - internal message id  <br /><code>to</code> - recipient of the message  <br /><code>text</code> - sms fallback text, in case the delivery attempt is via rcs fail  <br /><code>from</code> - sender of the fallback sms  <br /><code>status</code> - status of the message. See the table below  <br /><code>insertDate</code> - date of insertion of the message in the format <strong>yyyy-MM-ddTHH: mm:ssZ</strong>  <br /><code>sentDate</code> - message sending date in the format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>  <br /><code>deliveryDate</code> - message delivery date in the format <strong>yyyy-MM- ddTHH:mm:ssZ</strong>  <br /><code>transactionId</code> - Identifier of the sending  <br /><code>price</code> - cost of the message  <br /><code>agentId</code> - id of the sending rcs agent  <br /><code>contentMessage</code> - representative string the json to pass to Google to send the message in rcs format  <br /><code>contentType</code> - rcs message type (text, carousel, card, media)  <br /><code>channel</code> - channel via which the message has been sent (unknown, sms, rcs)</td>\n</tr>\n<tr>\n<td><code>metadata</code></td>\n<td>Metadata to manage <a href=\"#manage-the-response\">pagination</a></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"notes-search-for-rcs-messages\">Notes search for rcs messages</h2>\n<p>Value at least one of the following parameters:</p>\n<ul>\n<li><p>id</p>\n</li>\n<li><p>transactionId</p>\n</li>\n<li><p>msisdn</p>\n</li>\n<li><p>fromDate</p>\n</li>\n<li><p>status</p>\n</li>\n</ul>\n","urlObject":{"path":["rest","api","rcs","message","search"],"host":["{{BaseUrl}}"],"query":[{"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Internal ID of the message sent.</p>\n<p><strong>Multiple ids</strong> can be specified by separating them with the comma character \"<strong>,</strong>\". (Maximum 2000 id).</p>\n<p>For example:\n<strong>12312</strong> or <strong>432432,543543,435435</strong></p>\n","type":"text/plain"},"key":"id","value":"450189291"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p><strong>transactionId</strong> of the send operation.</p>\n","type":"text/plain"},"key":"transactionId","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Phone Number to which the message was sent.</p>\n","type":"text/plain"},"key":"msisdn","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Find messages sent since this date  (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>)</p>\n<p>The character <strong>Z</strong> specifies the timezone according to RFC 822 4-digit format (In Italy, the timezone offset is +0200 during daylight saving time (summer) and +0100 during standard time (winter).</p>\n","type":"text/plain"},"key":"fromDate","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Find message send up to this date (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>)</p>\n","type":"text/plain"},"key":"toDate","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em></p>\n<p>Status of the messages</p>\n","type":"text/plain"},"key":"status","value":"PENDING"},{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Position of the first result that will be returned.</p>\n<p>Example:\nIf the search finds 100 messages, the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10, messages from 51 to 60 will be returned.\n<strong>Default : 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>[Number] <em>(Optional)</em></p>\n<p>Number of results that will be returned.\n<strong>Default: 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"20"}],"variable":[]}},"response":[{"id":"c8c2b66c-a4a1-4049-ad47-093171cf17d6","name":"Cerca Messaggi RCS","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/rcs/message/search?id&transactionId=&msisdn&fromDate&toDate&status=PENDING&offset=0&limit=20","host":["{{BaseUrl}}"],"path":["rest","api","rcs","message","search"],"query":[{"key":"id","value":null,"description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nId interno del messaggio inviato.\n\nÈ possibile specificare **più id** separandoli con il carattere virgola \"**,**\".\n\nAd esempio:\n\n**12312** oppure **432432,543543,435435**"},{"key":"transactionId","value":"","description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\n**transactionId** assegnato all'invio."},{"key":"msisdn","value":null,"description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nNumero al quale è stato inviato il messaggio"},{"key":"fromDate","value":null,"description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nCerca gli sms stati inviati da questa data (formato **yyyy-MM-ddTHH:mm:ssZ**)\n\nIl carattere **Z** indica il timezone nel formato RFC822 4-digit. _Per l'Italia +0200 durante l'orario estivo e +0100 nel restante periodo dell'anno_."},{"key":"toDate","value":null,"description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nCerca gli sms stati inviati fino a questa data (formato **yyyy-MM-ddTHH:mm:ssZ**)"},{"key":"status","value":"PENDING","description":"[String] *(Opzionale [§note](#note-ricerca-sms))*\n\nStato degli sms [Vedi valori] (#32ddccbd-f896-924a-b9df-7d716a8e4d9d)"},{"key":"offset","value":"0","description":"[Number] *(Opzionale [§note](#note-ricerca-sms))*\n\nPosizione del primo risultato che verrà restituito.\n\nEsempio:\nSe la ricerca trova 100 sms, il campo **offset** viene valorizzato a 50 ed il campo **limit** a 10 verranno restituiti gli sms da 51 a 60.\n**Default : 0**"},{"key":"limit","value":"20","description":"[Number] *(Opzionale [§note](#note-ricerca-sms))*\n\nNumero di risultati che verranno restituiti.\n**Default: 20**"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 20\n    },\n    \"rcsList\": [\n        {\n            \"id\": 70,\n            \"to\": \"393000000000\",\n            \"text\": \"Hi There!\",\n            \"from\": \"DemoSMS\",\n            \"status\": \"PENDING\",\n            \"insertDate\": \"2022-05-27T17:41:04+0200\",\n            \"transactionId\": \"rkEctAS0WRZzZTWtDXuGiLh5QWsgStYv59tnLRsj9UwA5BWjdbTxFhydYSb64TaU\",\n            \"price\": 0.085,\n            \"agentId\": 8,\n            \"contentMessage\": \"{\\\"contentMessage\\\":{\\\"text\\\":\\\"Hi there!\\\",\\\"suggestions\\\":[]}}\",\n            \"contentType\": \"text\",\n            \"sentAs\": \"unknown\"\n        }\n    ]\n}"}],"_postman_id":"4ca390b4-0e13-4690-93d8-7e4ca6e880c1"},{"name":"RCS Agent List","id":"31d7ed04-bd96-4ace-ba0a-88b6636b9104","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/rcs/agent/list","description":"<p>Get the list of configured RCS agents.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Agent identifier</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>Agent name</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>Agent description</td>\n</tr>\n<tr>\n<td><code>color</code></td>\n<td>primary color</td>\n</tr>\n<tr>\n<td><code>phoneNubmer</code></td>\n<td>telephone number</td>\n</tr>\n<tr>\n<td><code>phoneNumberTag</code></td>\n<td>label associated with the telephone number</td>\n</tr>\n<tr>\n<td><code>website</code></td>\n<td>website</td>\n</tr>\n<tr>\n<td><code>websiteTag</code></td>\n<td>label associated with the website</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>email</td>\n</tr>\n<tr>\n<td><code>emailTag</code></td>\n<td>label associated with the email</td>\n</tr>\n<tr>\n<td><code>privacyURL</code></td>\n<td>Privacy Policy URL</td>\n</tr>\n<tr>\n<td><code>serviceAgreementURL</code></td>\n<td>Terms of Service URL</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","rcs","agent","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"26a74cd1-8bd8-4c6c-9711-1ed90192d910","name":"RCS Agent List","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/alias/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 8,\n        \"name\": \"Agent Test 1\",\n        \"description\": \"Desc...\",\n        \"color\": \"#3212b3\",\n        \"phoneNumber\": \"0437000000\",\n        \"phoneNumberTag\": \"n1\",\n        \"website\": \"https://mywebsite.com\",\n        \"websiteTag\": \"web1\",\n        \"email\": \"me@test.it\",\n        \"emailTag\": \"email1\",\n        \"privacyURL\": \"https://mywebsite.com/privacy\",\n        \"serviceAgreementURL\": \"https://mywebsite.com/terms\"\n    }\n]"}],"_postman_id":"31d7ed04-bd96-4ace-ba0a-88b6636b9104"},{"name":"Models List","id":"9230a337-162f-4b9f-a6e8-840e8070d674","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/rcs/template/list","description":"<p>Get the list of configured RCS templates.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<p>The response contains a JSON containing a list of <code>templates</code>, each with the following properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Agent identifier</td>\n</tr>\n<tr>\n<td><code>title</code></td>\n<td>template title</td>\n</tr>\n<tr>\n<td><code>contentType</code></td>\n<td>template content type</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","rcs","template","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"0e74cb13-85df-419e-afc7-ae020a207b64","name":"lista Modelli","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":"{{BaseUrl}}/rest/api/rcs/template/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"templateList\": [\n        {\n            \"id\": 139,\n            \"title\": \"template_1\",\n            \"contentType\": \"media\"\n        },\n        {\n            \"id\": 132,\n            \"title\": \"template_2\",\n            \"contentType\": \"card\"\n        }\n    ]\n}"}],"_postman_id":"9230a337-162f-4b9f-a6e8-840e8070d674"},{"name":"Model Detail","id":"976d3a01-f26c-40fa-9e56-3125ba27b1f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/rcs/template/:templateId","description":"<p>Returns the detail of a single WhatsApp template.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Model identifier</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>model name</td>\n</tr>\n<tr>\n<td><code>namespace</code></td>\n<td>model namespace</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>model language.</td>\n</tr>\n<tr>\n<td><code>category</code></td>\n<td>model category</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>model status</td>\n</tr>\n<tr>\n<td><code>contentMessage</code></td>\n<td>Json representing the template</td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>template insertion date</td>\n</tr>\n<tr>\n<td><code>updateDate</code></td>\n<td>template modification date</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","rcs","template",":templateId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"id":"df82a68c-02ba-447b-8f7f-fb86b69a348a","type":"any","value":"1234","key":"templateId"}]}},"response":[{"id":"ded2eca8-4e83-46c7-b1ea-01fa7170db20","name":"Template Detail","originalRequest":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/rcs/template/139"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"templateDetail\": {\n        \"id\": 139,\n        \"title\": \"template_1\",\n        \"contentSchema\": \"{\\\"modified\\\":\\\"2023-12-07T08:37:59.383Z\\\",\\\"config\\\":{\\\"device\\\":\\\"mobile\\\",\\\"type\\\":\\\"text\\\"},\\\"contentMessage\\\":{\\\"text\\\":\\\"Esempio di testo\\\",\\\"suggestions\\\":[]}}\",\n        \"contentMessage\": \"{\\\"contentMessage\\\":{\\\"text\\\":\\\"Esempio di testo\\\",\\\"suggestions\\\":[]}}\",\n        \"contentType\": \"text\",\n        \"insertDate\": \"2023-10-03T16:11:25+0200\",\n        \"updateDate\": \"2023-10-03T16:11:31+0200\"\n    }\n}"}],"_postman_id":"976d3a01-f26c-40fa-9e56-3125ba27b1f3"}],"id":"d7346ccb-ca43-4347-83d8-fcb458cb272e","_postman_id":"d7346ccb-ca43-4347-83d8-fcb458cb272e","description":"","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Send Whatsapp","item":[{"name":"Whatsapp Search","id":"662ca1b9-882e-4c1b-b3c8-1784f3def10b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/wa/message/search?transactionId=123456789ABCDE&offset=0&limit=10","description":"<h2 id=\"description-search-whatsapp-messages\">Description Search Whatsapp Messages</h2>\n<p>Search among sent Whatsapp messages.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Invalid parameters  <br />Possible errorMsg are:  <br /><code>NO_PARAMS</code> - No parameter valued  <br /><code>BAD_ID</code> - Invalid id parameter  <br /><code>TOO_MANY_IDS</code> - Number of requested IDs too large  <br /><code>BAD_MSISDN</code> - Invalid msisdn parameter  <br /><code>BAD_DATE</code> - Invalid date format  <br /><code>BAD_STATUS</code> - Invalid status parameter</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>waList</code></td>\n<td>List of messages matching the search criteria.  <br />Each message is described by the properties:  <br /><code>id</code> - internal message id  <br /><code>to</code> - message recipient  <br /><code>textSms</code> - sms fallback text, in case the delivery attempt is via rcs fail  <br /><code>fromSms</code> - sender of the fallback sms  <br /><code>fallbackmSms</code> - <strong>true / false</strong> indicates whether or not an sms fallback has been configured  <br /><code>status</code> - status of the message.See the table below  <br /><code>insertDate</code> - message insertion date in the format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>  <br /><code>sentDate</code> - message sending date in the format <strong>yyyy-MM-ddTHH: mm:ssZ</strong>  <br /><code>deliveryDate</code> - delivery date of the message in the format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>  <br /><code>transactionId</code> - Identifier of the shipment  <br /><code>price</code> - cost of the message  <br /><code>phoneNumberId</code> - id of the whatsapp number  <br /><code>contentMessage</code> - string representing the json to pass to Meta for sending the message in whatsapp format  <br /><code>sentAs</code> - <strong>unknown / whatsapp / sms</strong> indicates with which type the message was sent. The value \"unknown\" indicates that the message has not yet been sent</td>\n</tr>\n<tr>\n<td><code>metadata</code></td>\n<td>Metadata to manage <a href=\"#manage-the-response\">pagination</a></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"notes-search-for-whatsapp-messages\">Notes search for Whatsapp messages</h2>\n<p>Value at least one of the following parameters:</p>\n<ul>\n<li>id</li>\n<li>transactionId</li>\n<li>msisdn</li>\n<li>fromDate</li>\n<li>status</li>\n</ul>\n","urlObject":{"path":["rest","api","wa","message","search"],"host":["{{BaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nInternal ID of the message sent.\n<strong>Multiple ids</strong> can be specified by separating them with the comma  \"<strong>,</strong>\". (Maximum 2000 id).\nFor example:\n<strong>12312</strong> or <strong>432432,543543,435435</strong></p>\n","type":"text/plain"},"key":"id","value":""},{"description":{"content":"<p>[String] <em>(Optional)</em>\n<strong>transactionId</strong> of the send operation.</p>\n","type":"text/plain"},"key":"transactionId","value":"123456789ABCDE"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nPhone Number to which the message was sent.</p>\n","type":"text/plain"},"key":"msisdn","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nFind messages a sent since this date (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>)\nThe character <strong>Z</strong> specifies the timezone according to RFC 822 4-digit format (In Italy, the timezone offset is +0200 during daylight saving time (summer) and +0100 during standard time (winter).</p>\n","type":"text/plain"},"key":"fromDate","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nFind message send up to this date (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>)</p>\n","type":"text/plain"},"key":"toDate","value":""},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nStatus of the messages</p>\n","type":"text/plain"},"key":"status","value":""},{"description":{"content":"<p>[Number] <em>(Optional)</em>\nPosition of the first result that will be returned.\nExample:\nIf the search finds 100 messages, the <strong>offset</strong> field is set to 50 and the <strong>limit</strong> field to 10, messages from 51 to 60 will be returned.\n<strong>Default : 0</strong></p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>[Number] <em>(Optional)</em>\nNumber of results that will be returned.\n<strong>Default: 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"0d1afe2b-be02-424b-8787-81dfaa134dd1","name":"Cerca Whatsapp","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BaseUrl}}/rest/api/wa/message/search?id=&transactionId=DZNyyWr3Fd59iidfSSy2GU3im1aozQeE2qSyk6d1rwTDUa2ybuMI7IxDWPE1BS0j&offset=0&limit=10","host":["{{BaseUrl}}"],"path":["rest","api","wa","message","search"],"query":[{"key":"id","value":""},{"key":"transactionId","value":"DZNyyWr3Fd59iidfSSy2GU3im1aozQeE2qSyk6d1rwTDUa2ybuMI7IxDWPE1BS0j"},{"key":"msisdn","value":"","disabled":true},{"key":"fromDate","value":"","disabled":true},{"key":"toDate","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"offset","value":"0"},{"key":"limit","value":"10"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 10\n    },\n    \"waList\": [\n        {\n            \"id\": 2692017410,\n            \"to\": \"393400000000\",\n            \"fromSms\": \"-\",\n            \"status\": \"NOSENT\",\n            \"insertDate\": \"2023-09-25T10:18:42+0200\",\n            \"dataDifferito\": \"2023-09-27T09:00:00+0200\",\n            \"transactionId\": \"DZNyyWr3Fd59iidfSSy2GU3im1aozQeE2qSyk6d1rwTDUa2ybuMI7IxDWPE1BS0j\",\n            \"price\": 0,\n            \"phoneNumberId\": 3,\n            \"contentMessage\": \"{\\\"type\\\":\\\"template\\\",\\\"template\\\":{\\\"namespace\\\":\\\"867f4be9_6b3d_4884_be59_123d372a3819\\\",\\\"name\\\":\\\"testmediaimg\\\",\\\"language\\\":{\\\"code\\\":\\\"it\\\"},\\\"components\\\":[{\\\"type\\\":\\\"header\\\",\\\"parameters\\\":[{\\\"type\\\":\\\"image\\\",\\\"image\\\":{\\\"link\\\":\\\"https://beeediot-svil.s3.eu-west-1.amazonaws.com/msgeditor-test/public/1/50/51_loginlogo_1627887014900.jpg\\\"}}]},{\\\"type\\\":\\\"body\\\",\\\"parameters\\\":[{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"Marco\\\"}]}]}}\",\n            \"sentAs\": \"unknown\"\n        }\n    ]\n}"}],"_postman_id":"662ca1b9-882e-4c1b-b3c8-1784f3def10b"},{"name":"Numbers List","id":"e567ac10-b51b-407d-bc06-cfdade61b459","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/wa/phonenumber/list","description":"<p>Get the list of configured Whatsapp numbers.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>number identifier</td>\n</tr>\n<tr>\n<td><code>phoneNumber</code></td>\n<td>telephone number</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>Agent description</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>number status</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","wa","phonenumber","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"17f77ead-57c6-4b74-9e81-ea0cffc5dcb3","name":"Number List","originalRequest":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/wa/phonenumber/list"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberList\": [\n        {\n            \"id\": 6,\n            \"phoneNumber\": \"393400000000\",\n            \"description\": \"test\",\n            \"status\": \"SUBMITTED\"\n        }\n    ]\n}"}],"_postman_id":"e567ac10-b51b-407d-bc06-cfdade61b459"},{"name":"Whatsapp Send","id":"9a986d97-9245-466c-8616-1d0cc97d4ada","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text","description":"<p>[String] <em>(Optional, set at least one of <strong>to</strong> and <strong>group</strong>)</em>\nThe recipient of the message.\nIt must be a mobile number including the international prefix.\nIt is possible to specify <strong>multiple telephone numbers</strong> (max 10 numbers) by separating them with the comma character \"<strong>,</strong>\".\nIf there are more than 10 recipients, we suggest to use the send bulk request.</p>\n<p>For example:\n<code>393481234567</code> or <code>393481234567,393481234568,393481234568</code></p>\n<p>Alternatively, the parameter can be enhanced with a JSON array containing the objects that describe the recipient.\nEach object must necessarily have the msisdn property valued.\nThe other properties of these objects can be used to parameterize the message text (see the text field).</p>\n<p>For example:\n<strong>[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]</strong></p>\n"},{"key":"group","value":"","type":"text","description":"<p>[String] <em>(Optional, set at least one of <strong>to</strong> and <strong>group</strong>)</em>\n<strong>Id</strong> of the group in the phonebook to send to\nIt is possible to specify <strong>multiple groups</strong> from the phonebook by separating them with a comma \"<strong>,</strong>\".\nFor example, if in the phonebook there is the group \"friends\" (<code>id=1</code>) and \"school\" (<code>id=2</code>), you can use:\n<strong>1</strong> or <strong>1,2</strong></p>\n","disabled":true},{"key":"date","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nDate (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>) when the message will be sent. If not set, the message will be sent immediatly.\nThe character <strong>Z</strong> specifies the timezone according to RFC 822 4-digit format (In Italy, the timezone offset is +0200 during daylight saving time (summer) and +0100 during standard time (winter).).\nFor example:\n<strong>2014-12-25T08:00:00+0200</strong> means 25/12/2014 at 08:00:00 GMT +2</p>\n","disabled":true},{"key":"phoneNumberId","value":"3","type":"text","description":"<p>[String] <em>(Optional, set at least one of <strong>phoneNumberId</strong> and <strong>phoneNumber</strong>)</em></p>\n<p>ID of the phone number you want to use to send the Whatsapp message</p>\n"},{"key":"phoneNumber","value":"","type":"text","description":"<p>[String] <em>(Optional, set at least one of <strong>phoneNumberId</strong> and <strong>phoneNumber</strong>)</em></p>\n<p>Phone number you want to use to send the Whatsapp message</p>\n","disabled":true},{"key":"contentMessage","value":"{... JSON CONTENT ...}","type":"text","description":"<p>[String] <em>(Required)</em>\nString representing the JSON containing the Whatsapp message</p>\n<p>If you wish to use an existing template, we recommend that you first make the <a href=\"#98c033f5-ef11-426b-a504-bec859c7799d\">Template Detail</a> request and insert the JSON returned in the <strong>exampleSendPayload</strong> property</p>\n<p>The contentMessage (in the parameters) may contain placeholders which will be replaced during the send by the values associated with the respective recipient. The placeholder shall be specified with the syntax ${property name}</p>\n<p>In the case that the contentMessage contains placeholders the to field must be set to a JSON array and each object in the array must contain the property indicated in the placeholder.\nFor example: </p>\n<p>to=[{msisdn:'393481234567',name:'Mario Rossi'},{msisdn:'393481234568',name:'Luigi Bianchi'}] </p>\n<p>contentMessage = .... \"parameters\": [{\"type\": \"text\", \"text\":\"${name}\"}]....</p>\n<p>For JSON specifications, please refer to <a href=\"https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages\">https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages</a></p>\n"},{"key":"fallbackSms","value":"true","type":"text","description":"<p>[boolean] <em>(Required)</em></p>\n<p>True if you want to enable SMS fallback</p>\n"},{"key":"fromSms","value":"SMS_SENDER","type":"text","description":"<p>[String] <em>(Optional)</em></p>\n<p>The sender of the fallback SMS.</p>\n<p>It can be a validated telephone number or an alphanumeric string of up to 11 characters. If not specified, the default sender of your profile is used.\nTo use an alphanumeric sender, registration is mandatory; this procedure can be carried out from our web panel or via API.</p>\n<p><strong>Unverified senders will be replaced with a random numeric sender</strong>.</p>\n"},{"key":"textSms","value":"SMS CONTENT","type":"text","description":"<p>[String] <em>(Optional)</em></p>\n<p>Required if fallbackSms is true.</p>\n<p>Text of the fallback SMS message.</p>\n<p>If the message exceeds 160 characters, [multiple concatenated text messages] are sent (<a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate</a>) up to a maximum of 7.</p>\n<p>Some <a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">extended characters occupy 2 characters</a>. In the case of SMS that exceed the standard length of 160 characters only due to some extended characters, these will be replaced with simple characters keeping the cost at 1 SMS instead of 2.</p>\n<p>The text may contain <strong>placeholder</strong> which will be replaced during sending by the values associated with the respective recipient.\nThe placeholder must be specified with the syntax <strong>${property name}</strong>\nIf the text contains <strong>placeholder</strong> the <strong>to</strong> field must be populated with a JSON array and each object in the array must contain the property indicated in the placeholder.</p>\n<p>For example:\nto=[{msisdn:'393481234567',<strong>name:'Mario Rossi'</strong>},{msisdn:'393481234568',<strong>name:'Luigi Bianchi'</strong>}]\ntext=Send test sms to <strong>${name}</strong></p>\n"},{"key":"transactionId","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nCustom ID for the send operation.\nIt allows you to assign the same ID to all messages sent with the same call in order to use this parameter to get the status of the messages. <strong>Max 60 characters</strong>.</p>\n","disabled":true},{"key":"statusCallback","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nURL to which a notification with the status (Delivered, Not Delivered) of the message will be sent via HTTP/HTTPS.</p>\n","disabled":true},{"key":"encoding","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nThe encoding to use for the text of the message.\nThe possible values are:</p>\n<ul>\n<li><strong>7BIT</strong> - Encoding <strong>standard</strong> for GSM messages. The max length for a single sms is <strong>160 characters</strong>.</li>\n<li><strong>UCS2</strong> - 8-bit Encoding for GSM messages with also not ASCII content. The max length for a single message is <strong>70 characters</strong>.</li>\n<li><strong>AUTO</strong> - the encoding to use is automatically selected based on the content of the text field.\n<strong>Default : 7BIT</strong></li>\n</ul>\n","disabled":true},{"key":"sandbox","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nIt allows you to make the call without actually sending the message. Useful parameter when developing possible integrations with the REST API.\nPossible valued: <strong>true/false</strong></p>\n","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/send","description":"<h1 id=\"description-send-whatsapp\">Description Send Whatsapp</h1>\n<p>Sending a message to one or more individual recipients or to one or more groups in the address book.</p>\n<p>You can test sending by setting the <code>sandbox</code> parameter to <code>true</code> in the request.</p>\n<p>The <code>statusCallback</code> parameter allows you to register a URL to which a notification with the status (Delivered, Not Delivered, etc...) of the message will be sent via HTTP.</p>\n<h2 id=\"attention\"><strong>ATTENTION!</strong></h2>\n<blockquote>\n<p>Pay particular attention to the fact that the <strong>id</strong> of the message could be a <strong>64-bit integer</strong> (int64)<br /><strong>Check if your platform can handle this!</strong> </p>\n</blockquote>\n<blockquote>\n<p>If you want to send an existing <strong>template</strong>, you will have to insert in the <em><strong>ContentMessage</strong></em> parameter a JSON formatted like the one obtained in the exampleSendPayload property of the <a href=\"#98c033f5-ef11-426b-a504-bec859c7799d\">Model Detail</a> </p>\n</blockquote>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>ok</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Invalid parameters  <br />Possible errorMsg are:  <br /><code>BAD_WA_PHONENUMBER</code> - invalid phone number parameter  <br /><code>BAD_CONTENT_MESSAGE</code> - invalid contentMessage parameter  <br /><code>BAD_TRANSACTIONID</code> - invalid transactionId parameter  <br /><code>BAD_DATE</code> - invalid deferred date format  <br /><code>BAD_TEXT</code> - invalid text parameter  <br /><code>BAD_TEXT_PLACEHOLDER</code> - text contains non-replaceable placeholders  <br /><code>BAD_CALLBACK</code> - invalid statusCallback parameter  <br /><code>BAD_ENCODING</code> - invalid encoding parameter  <br /><code>BAD_FROM</code> - invalid from parameter  <br /><code>BAD_GROUP</code> - invalid group parameter  <br /><code>NO_CREDIT</code> - insufficient credit to send  <br /><code>NO_VALID_RECIPIENT</code> - no valid recipient  <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td>405</td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>phoneNumberId</td>\n<td>Sender WhatsApp number ID.</td>\n</tr>\n<tr>\n<td>contentMessage</td>\n<td>whatsapp contentMessage.</td>\n</tr>\n<tr>\n<td>fromSms</td>\n<td>The sender of the fallback SMS message.</td>\n</tr>\n<tr>\n<td>textSms</td>\n<td>Fallback sms text</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>sending identifier  <br />If not specified during the request phase, a <strong>transactionId</strong> will be generated automatically by the REST API</td>\n</tr>\n<tr>\n<td>countInserted</td>\n<td>Number of messages posted</td>\n</tr>\n<tr>\n<td>countNotInserted</td>\n<td>Number of unposted messages</td>\n</tr>\n<tr>\n<td>wa</td>\n<td>List of messages.  <br />Each element is described by the property:  <br /><code>to</code> - mobile number to which the message was sent  <br /><code>id</code> - <em>ATTENTION:</em> <strong>int64</strong> - internal id of the message. Useful for requesting the status of the message with the Search SMS function  <br /><code>status</code> - Status of the message. It is set to <code>INSERTED</code> if the message is inserted correctly, to <code>NOT_INSERTED</code> otherwise.  <br /><code>statusDetail</code> - if the message is not inserted (status = <code>NOT_INSERTED</code>) this field reports a message explaining the error that occurred. The possible values are:  <br /><code>BADNUMBERFORMAT</code> - Incorrect recipient number  <br /><code>DUPLICATESMS</code> - SMS already inserted in the last 24 hours with identical recipient, sender and text.  <br /><code>BLACKLIST</code> - The recipient has been blacklisted.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","wa","message","send"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"7ba29931-48a7-413a-b2ad-a9af56bda97f","name":"Invio Template Senza Variabili","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{\"type\":\"template\",\"template\":{\"namespace\":\"your_template_namespace\",\"name\":\"your_template_name\",\"language\":{\"code\":\"it\",\"policy\":\"deterministic\"},\"components\":[]}}","type":"text"},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/send"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"template\\\",\\\"template\\\":{\\\"namespace\\\":\\\"your_template_namespace\\\",\\\"name\\\":\\\"your_template_name\\\",\\\"language\\\":{\\\"code\\\":\\\"it\\\",\\\"policy\\\":\\\"deterministic\\\"},\\\"components\\\":[]}}\",\n    \"fromSms\": \"-\",\n    \"textSms\": \"\",\n    \"transactionId\": \"generated_transaction_id\",\n    \"countInserted\": 1,\n    \"countNotInserted\": 0,\n    \"wa\": [\n        {\n            \"id\": 00000000,\n            \"to\": \"393400000000\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"},{"id":"37c5cf1e-ebc8-4a8b-95d8-471a9bfb20d4","name":"Invio Template Header con Variabile","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{\"type\":\"template\",\"template\":{\"namespace\":\"your_template_namespace\",\"name\":\"your_template_name\",\"language\":{\"code\":\"it\",\"policy\":\"deterministic\"},\"components\":[{\"type\":\"header\",\"parameters\":[{\"type\":\"text\",\"text\":\"variable_1_value\"}]}]}}","type":"text"},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/send"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"template\\\",\\\"template\\\":{\\\"namespace\\\":\\\"your_template_namespace\\\",\\\"name\\\":\\\"your_template_name\\\",\\\"language\\\":{\\\"code\\\":\\\"it\\\",\\\"policy\\\":\\\"deterministic\\\"},\\\"components\\\":[{\\\"type\\\":\\\"header\\\",\\\"parameters\\\":[{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"variable_1_value\\\"}]}]}}\",\n    \"fromSms\": \"-\",\n    \"textSms\": \"\",\n    \"transactionId\": \"generated_transaction_id\",\n    \"countInserted\": 1,\n    \"countNotInserted\": 0,\n    \"wa\": [\n        {\n            \"id\": 0000000,\n            \"to\": \"393400000000\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"},{"id":"03995975-5f55-4d62-919b-355dd2060288","name":"Invio Template Body con variabili","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{\"type\":\"template\",\"template\":{\"namespace\":\"your_template_namespace\",\"name\":\"your_template_name\",\"language\":{\"code\":\"it\",\"policy\":\"deterministic\"},\"components\":[{\"type\":\"body\",\"parameters\":[{\"type\":\"text\",\"text\":\"variable_1_value\"},{\"type\":\"text\",\"text\":\"variable_2_value\"}]}]}}","type":"text"},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/send"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"template\\\",\\\"template\\\":{\\\"namespace\\\":\\\"your_template_namespace\\\",\\\"name\\\":\\\"your_template_name\\\",\\\"language\\\":{\\\"code\\\":\\\"it\\\",\\\"policy\\\":\\\"deterministic\\\"},\\\"components\\\":[{\\\"type\\\":\\\"body\\\",\\\"parameters\\\":[{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"variable_1_value\\\"},{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"variable_2_value\\\"}]}]}}\",\n    \"fromSms\": \"-\",\n    \"textSms\": \"\",\n    \"transactionId\": \"generated_transaction_id\",\n    \"countInserted\": 1,\n    \"countNotInserted\": 0,\n    \"wa\": [\n        {\n            \"id\": 0000000,\n            \"to\": \"393400000000\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"},{"id":"6f640b6d-7d28-4ee1-bf61-952990b6d40e","name":"Invio Template Body con variabili - Destinatari multipli","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"[{msisdn:'393400000000',var1:'var_1_value',var2:'var_2_value'},{msisdn:'393400000001',var1:'var_1_value',var2:'var_2_value'},......]","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{\"type\":\"template\",\"template\":{\"namespace\":\"your_template_namespace\",\"name\":\"your_template_name\",\"language\":{\"code\":\"it\",\"policy\":\"deterministic\"},\"components\":[{\"type\":\"body\",\"parameters\":[{\"type\":\"text\",\"text\":\"${var1}\"},{\"type\":\"text\",\"text\":\"${var2}\"}]}]}}","type":"text","description":"I valori di var1 e var2 saranno presi dal JSON presente nel campo \"to\""},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/send"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"template\\\",\\\"template\\\":{\\\"namespace\\\":\\\"your_template_namespace\\\",\\\"name\\\":\\\"your_template_name\\\",\\\"language\\\":{\\\"code\\\":\\\"it\\\",\\\"policy\\\":\\\"deterministic\\\"},\\\"components\\\":[{\\\"type\\\":\\\"body\\\",\\\"parameters\\\":[{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"${var1}\\\"},{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"${var2}\\\"}]}]}}\",\n    \"fromSms\": \"-\",\n    \"textSms\": \"\",\n    \"transactionId\": \"generated_transaction_id\",\n    \"countInserted\": 1,\n    \"countNotInserted\": 0,\n    \"wa\": [\n        {\n            \"id\": 0000000,\n            \"to\": \"393400000000\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"},{"id":"949f1972-62fa-404d-8492-dd90704bcaf7","name":"Invio Template Bottone con variabile","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{\"type\":\"template\",\"template\":{\"namespace\":\"your_template_namespace\",\"name\":\"your_template_name\",\"language\":{\"code\":\"it\",\"policy\":\"deterministic\"},\"components\":[{\"type\":\"button\",\"index\":0,\"sub_type\":\"url\",\"parameters\":[{\"text\":\"variable_at_the_end_of_URL\",\"type\":\"text\"}]}]}}","type":"text"},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/send"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"template\\\",\\\"template\\\":{\\\"namespace\\\":\\\"your_template_namespace\\\",\\\"name\\\":\\\"your_template_name\\\",\\\"language\\\":{\\\"code\\\":\\\"it\\\",\\\"policy\\\":\\\"deterministic\\\"},\\\"components\\\":[{\\\"type\\\":\\\"button\\\",\\\"index\\\":0,\\\"sub_type\\\":\\\"url\\\",\\\"parameters\\\":[{\\\"text\\\":\\\"variable_at_the_end_of_URL\\\",\\\"type\\\":\\\"text\\\"}]}]}}\",\n    \"fromSms\": \"-\",\n    \"textSms\": \"\",\n    \"transactionId\": \"generated_transaction_id\",\n    \"countInserted\": 1,\n    \"countNotInserted\": 0,\n    \"wa\": [\n        {\n            \"id\": 000000000,\n            \"to\": \"393400000000\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"},{"id":"ccf92c55-38aa-4aa4-81dd-681edba0509d","name":"Invio Template Authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{\"type\":\"template\",\"template\":{\"namespace\":\"your-template_namespace\",\"name\":\"your_template_name\",\"language\":{\"code\":\"it\",\"policy\":\"deterministic\"},\"components\":[{\"type\":\"body\",\"parameters\":[{\"type\":\"text\",\"text\":\"your_OTP_code\"}]},{\"type\":\"button\",\"index\":0,\"sub_type\":\"url\",\"parameters\":[{\"text\":\"your_OTP_code\",\"type\":\"text\"}]}]}}","type":"text"},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/send"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"template\\\",\\\"template\\\":{\\\"namespace\\\":\\\"your_template_namespace\\\",\\\"name\\\":\\\"your_template_name\\\",\\\"language\\\":{\\\"code\\\":\\\"it\\\",\\\"policy\\\":\\\"deterministic\\\"},\\\"components\\\":[{\\\"type\\\":\\\"body\\\",\\\"parameters\\\":[{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"your_OTP_code\\\"}]},{\\\"type\\\":\\\"button\\\",\\\"index\\\":0,\\\"sub_type\\\":\\\"url\\\",\\\"parameters\\\":[{\\\"text\\\":\\\"your_OTP_code\\\",\\\"type\\\":\\\"text\\\"}]}]}}\",\n    \"fromSms\": \"-\",\n    \"textSms\": \"\",\n    \"transactionId\": \"generated_transaction_id\",\n    \"countInserted\": 1,\n    \"countNotInserted\": 0,\n    \"wa\": [\n        {\n            \"id\": 0000000,\n            \"to\": \"393400000000\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"},{"id":"4a39b0e8-0b94-46b9-83f7-1abeb0f3edbd","name":"Invio Messaggio Testuale Whatsapp","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{\"type\":\"text\",\"text\":{\"body\":\"Text Esample\",\"preview_url\":false}}","type":"text"},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/send"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"text\\\",\\\"text\\\":{\\\"body\\\":\\\"Text Esample\\\",\\\"preview_url\\\":false}}\",\n    \"fromSms\": \"#RANDOMNUM#\",\n    \"textSms\": \"test messaggio\",\n    \"transactionId\": \"73a5af5b7f0d8bc324ae4f21931dcdad\",\n    \"countInserted\": 1,\n    \"countNotInserted\": 0,\n    \"wa\": [\n        {\n            \"id\": 2692031583,\n            \"to\": \"393400000000\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"},{"id":"975b5fba-f86f-48f5-afbb-cff320009356","name":"Invio Messaggio con Immagine Whatsapp","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{\"type\":\"image\",\"image\":{\"link\":\"https://imageUrl.jpg\"}}","type":"text"},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/send"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"image\\\",\\\"image\\\":{\\\"link\\\":\\\"https://imageUrl.jpg\\\"}}\",\n    \"fromSms\": \"#RANDOMNUM#\",\n    \"textSms\": \"test messaggio\",\n    \"transactionId\": \"73a5af5b7f0d8bc324ae4f21931dcdad\",\n    \"countInserted\": 1,\n    \"countNotInserted\": 0,\n    \"wa\": [\n        {\n            \"id\": 2692031583,\n            \"to\": \"393400000000\",\n            \"status\": \"INSERTED\"\n        }\n    ]\n}"}],"_postman_id":"9a986d97-9245-466c-8616-1d0cc97d4ada"},{"name":"Send Whatsapp BULK","id":"52d742ef-549c-4afa-9879-ce76678098a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text","description":"<p>[String] <em>(Optional, set at least one of <strong>to</strong> and <strong>group</strong>)</em>\nThe recipient of the message.</p>\n<p>It must be a mobile number including the international prefix.</p>\n<p>It is possible to specify <strong>multiple telephone numbers</strong> (max 1000 numbers) by separating them with the comma character \"<strong>,</strong>\".</p>\n<p>For example:\n<code>393481234567</code> or <code>393481234567,393481234568,393481234568</code></p>\n<p>Alternatively, the parameter can be enhanced with a JSON array containing the objects that describe the recipient.\nEach object must necessarily have the msisdn property valued.\nThe other properties of these objects can be used to parameterize the message text (see the text field).</p>\n<p>For example:\n<strong>[{msisdn:'393481234567'},{msisdn:'393481234568'},{msisdn:'393481234568'}]</strong></p>\n"},{"key":"group","value":"","type":"text","description":"<p>[String] <em>(Optional, set at least one of <strong>to</strong> and <strong>group</strong>)</em>\n<strong>Id</strong> of the group in the phonebook to send to\nIt is possible to specify <strong>multiple groups</strong> from the phonebook by separating them with a comma \"<strong>,</strong>\".\nFor example, if in the phonebook there is the group \"friends\" (<code>id=1</code>) and \"school\" (<code>id=2</code>), you can use:\n<strong>1</strong> or <strong>1,2</strong></p>\n","disabled":true},{"key":"date","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nDate (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>) when the message will be sent. If not set, the message will be sent immediatly.\nThe character <strong>Z</strong> specifies the timezone according to RFC 822 4-digit format (In Italy, the timezone offset is +0200 during daylight saving time (summer) and +0100 during standard time (winter).).\nFor example:\n<strong>2014-12-25T08:00:00+0200</strong> means 25/12/2014 at 08:00:00 GMT +2</p>\n","disabled":true},{"key":"phoneNumberId","value":"3","type":"text","description":"<p>[String] <em>(Optional, set at least one of <strong>phoneNumberId</strong> and <strong>phoneNumber</strong>)</em>\nID of the phone number you want to use to send the Whatsapp message</p>\n"},{"key":"phoneNumber","value":"","type":"text","description":"<p>[String] <em>(Optional, set at least one of <strong>phoneNumberId</strong> and <strong>phoneNumber</strong>)</em>\nPhone number you want to use to send the Whatsapp message</p>\n","disabled":true},{"key":"contentMessage","value":"{... JSON CONTENT ...}","type":"text","description":"<p>[String] <em>(Required)</em>\nString representing the JSON containing the Whatsapp message\nIf you wish to use an existing template, we recommend that you first make the <a href=\"#98c033f5-ef11-426b-a504-bec859c7799d\">Template Detail</a> request and insert the JSON returned in the <strong>exampleSendPayload</strong> property\nThe contentMessage (in the parameters) may contain placeholders which will be replaced during the send by the values associated with the respective recipient. The placeholder shall be specified with the syntax ${property name}\nIn the case that the contentMessage contains placeholders the to field must be set to a JSON array and each object in the array must contain the property indicated in the placeholder.\nFor example:\nto=[{msisdn:'393481234567',name:'Mario Rossi'},{msisdn:'393481234568',name:'Luigi Bianchi'}]\ncontentMessage = .... \"parameters\": [{\"type\": \"text\", \"text\":\"${name}\"}]....\nFor JSON specifications, please refer to <a href=\"https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages\">https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages</a></p>\n"},{"key":"fallbackSms","value":"true","type":"text","description":"<p>[boolean] <em>(Required)</em></p>\n<p>True if you want to enable SMS fallback</p>\n"},{"key":"fromSms","value":"SMS_SENDER","type":"text","description":"<p>[String] <em>(Optional)</em></p>\n<p>The sender of the fallback SMS.</p>\n<p>It can be a validated telephone number or an alphanumeric string of up to 11 characters. If not specified, the default sender of your profile is used.\nTo use an alphanumeric sender, registration is mandatory; this procedure can be carried out from our web panel or via API.</p>\n<p><strong>Unverified senders will be replaced with a random numeric sender</strong>.</p>\n"},{"key":"textSms","value":"SMS CONTENT","type":"text","description":"<p>[String] <em>(Optional)</em></p>\n<p>Required if fallbackSms is true.</p>\n<p>Text of the fallback SMS message.</p>\n<p>If the message exceeds 160 characters, [multiple concatenated text messages] are sent (<a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate</a>) up to a maximum of 7.</p>\n<p>Some <a href=\"https://help.smshosting.it/it/nio-sms/caratteriche-sms/lunghezza-testo-e-codifiche-supportate\">extended characters occupy 2 characters</a>. In the case of SMS that exceed the standard length of 160 characters only due to some extended characters, these will be replaced with simple characters keeping the cost at 1 SMS instead of 2.</p>\n<p>The text may contain <strong>placeholders</strong> which will be replaced during sending by the values associated with the respective recipient.\nThe placeholder must be specified with the syntax <strong>${property name}</strong>\nIf the text contains <strong>placeholders</strong> the <strong>to</strong> field must be populated with a JSON array and each object in the array must contain the property indicated in the placeholder.</p>\n<p>For example:\nto=[{msisdn:'393481234567',<strong>name:'Mario Rossi'</strong>},{msisdn:'393481234568',<strong>name:'Luigi Bianchi'</strong>}]\ntext=Send test sms to <strong>${name}</strong></p>\n"},{"key":"transactionId","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nCustom ID for the send operation.\nIt allows you to assign the same ID to all messages sent with the same call in order to use this parameter to get the status of the messages. <strong>Max 60 characters</strong>.</p>\n","disabled":true},{"key":"statusCallback","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nURL to which a notification with the status (Delivered, Not Delivered) of the message will be sent via HTTP/HTTPS.</p>\n","disabled":true},{"key":"encoding","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nThe encoding to use for the text of the message.\nThe possible values are:</p>\n<ul>\n<li><strong>7BIT</strong> - Encoding <strong>standard</strong> for GSM messages. The max length for a single sms is <strong>160 characters</strong>.</li>\n<li><strong>UCS2</strong> - 8-bit Encoding for GSM messages with also not ASCII content. The max length for a single message is <strong>70 characters</strong>.</li>\n<li><strong>AUTO</strong> - the encoding to use is automatically selected based on the content of the text field.\n<strong>Default : 7BIT</strong></li>\n</ul>\n","disabled":true},{"key":"sandbox","value":"","type":"text","description":"<p>[String] <em>(Optional)</em>\nIt allows you to make the call without actually sending the message. Useful parameter when developing possible integrations with the REST API.\nPossible valued: <strong>true/false</strong></p>\n","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/sendbulk","description":"<h1 id=\"description-send-whatsapp-bulk-template-only\">Description Send Whatsapp BULK [Template only]</h1>\n<p>Asynchronous SMS sending mode to be used with a large number of recipients (More than 10 recipients per single request).</p>\n<p>Once the request has been sent, a transactionId is returned which is useful for subsequently identifying the messages.</p>\n<p>If the submission cannot be completed due to an error, an email containing the error code will be sent.</p>\n<p>Note: If you send up to 10 recipients per single request we recommend using the Whatsapp sending function</p>\n<p><strong>ATTENTION!</strong></p>\n<blockquote>\n<p>If you want to send an existing <strong>template</strong>, you will have to insert in the <em><strong>ContentMessage</strong></em> parameter a JSON formatted like the one obtained in the exampleSendPayload property of the <a href=\"#98c033f5-ef11-426b-a504-bec859c7799d\">Model Detail</a> </p>\n</blockquote>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em> </p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>ok</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Invalid parameters  <br />Possible errorMsg are:  <br /><code>BAD_AGENT</code> - invalid agentId parameter  <br /><code>BAD_CONTENT_MESSAGE</code> - invalid contentMessage parameter  <br /><code>BAD_TRANSACTIONID</code> - invalid transactionId parameter  <br /><code>BAD_DATE</code> - invalid deferred date format  <br /><code>BAD_TEXT</code> - invalid text parameter  <br /><code>BAD_TEXT_PLACEHOLDER</code> - text contains non-replaceable placeholders  <br /><code>BAD_CALLBACK</code> - invalid statusCallback parameter  <br /><code>BAD_ENCODING</code> - encoding parameter invalid  <br /><code>BAD_FROM</code> - invalid from parameter  <br /><code>BAD_GROUP</code> - invalid group parameter  <br /><code>NO_CREDIT</code> - insufficient credit to send  <br /><code>NO_VALID_RECIPIENT</code> - no valid recipient  <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td>405</td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>phoneNumberId</td>\n<td>Sender WhatsApp number ID.</td>\n</tr>\n<tr>\n<td>contentMessage</td>\n<td>whatsapp contentMessage.</td>\n</tr>\n<tr>\n<td>fromSms</td>\n<td>The sender of the message.</td>\n</tr>\n<tr>\n<td>textSms</td>\n<td>SMS text</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>sending identifier  <br />If not specified during the request phase, a <strong>transactionId</strong> will be generated automatically by the REST API</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","wa","message","sendbulk"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"13899d3d-de81-4cda-a311-62310ba85fa7","name":"Send Bulk Whatsapp","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Auth","value":"AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"393400000000","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{... JSON CONTENT ...}","type":"text"},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/sendbulk"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"template\\\",\\\"template\\\":{\\\"namespace\\\":\\\"867f4be9_6b3d_4884_be59_123d372a3819\\\",\\\"name\\\":\\\"testmediaimg\\\",\\\"language\\\":{\\\"code\\\":\\\"it\\\"},\\\"components\\\":[{\\\"type\\\":\\\"header\\\",\\\"parameters\\\":[{\\\"type\\\":\\\"image\\\",\\\"image\\\":{\\\"link\\\":\\\"https://beeediot-svil.s3.eu-west-1.amazonaws.com/msgeditor-test/public/1/50/51_loginlogo_1627887014900.jpg\\\"}}]},{\\\"type\\\":\\\"body\\\",\\\"parameters\\\":[{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"#f_s_nome\\\"}]}]}}\",\n    \"fromSms\": \"#RANDOMNUM#\",\n    \"textSms\": \"test messaggio\",\n    \"transactionId\": \"8db294b2a7d4a4b08d3b29fa81461c53\"\n}"},{"id":"e462183e-fd62-4c83-a2a5-848659b5fb30","name":"Invio Template Body con variabili - Destinatari multipli","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"to","value":"[{msisdn:'393400000000',var1:'var_1_value',var2:'var_2_value'},{msisdn:'393400000001',var1:'var_1_value',var2:'var_2_value'},......]","type":"text"},{"key":"group","value":"","type":"text","disabled":true},{"key":"date","value":"","type":"text","disabled":true},{"key":"phoneNumberId","value":"3","type":"text"},{"key":"phoneNumber","value":"","type":"text","disabled":true},{"key":"contentMessage","value":"{\"type\":\"template\",\"template\":{\"namespace\":\"your_template_namespace\",\"name\":\"your_template_name\",\"language\":{\"code\":\"it\",\"policy\":\"deterministic\"},\"components\":[{\"type\":\"body\",\"parameters\":[{\"type\":\"text\",\"text\":\"${var1}\"},{\"type\":\"text\",\"text\":\"${var2}\"}]}]}}","type":"text","description":"I valori di var1 e var2 saranno presi dal JSON presente nel campo \"to\""},{"key":"fallbackSms","value":"true","type":"text"},{"key":"fromSms","value":"SMS_SENDER","type":"text"},{"key":"textSms","value":"SMS CONTENT","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true},{"key":"statusCallback","value":"","type":"text","disabled":true},{"key":"encoding","value":"","type":"text","disabled":true},{"key":"sandbox","value":"","type":"text","disabled":true},{"key":"transactionCallback","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/sendbulk"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"phoneNumberId\": 3,\n    \"contentMessage\": \"{\\\"type\\\":\\\"template\\\",\\\"template\\\":{\\\"namespace\\\":\\\"your_template_namespace\\\",\\\"name\\\":\\\"your_template_name\\\",\\\"language\\\":{\\\"code\\\":\\\"it\\\",\\\"policy\\\":\\\"deterministic\\\"},\\\"components\\\":[{\\\"type\\\":\\\"body\\\",\\\"parameters\\\":[{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"${var1}\\\"},{\\\"type\\\":\\\"text\\\",\\\"text\\\":\\\"${var2}\\\"}]}]}}\",\n    \"fromSms\": \"-\",\n    \"textSms\": \"\",\n    \"transactionId\": \"generated_transaction_id\"\n}"}],"_postman_id":"52d742ef-549c-4afa-9879-ce76678098a8"},{"name":"Cancel Whatsapp Sens","id":"72579f41-76b2-42a4-9e22-81ba6183b286","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"1234567","type":"text","description":"<p>[Number] <em>(Optional)</em> -&gt; set at least one of  <code>id</code> or <code>transactionId</code> parameters</p>\n<p>Internal <code>id</code> of the sent message.\n<strong>Multiple ids</strong> can be specified by separating them with the comma character \"<strong>,</strong>\".</p>\n<p>For example:\n<strong>12312</strong> or <strong>432432,543543,435435</strong></p>\n"},{"key":"transactionId","value":"","type":"text","description":"<p>[String] <em>(Optional)</em> -&gt; set at least one of <code>id</code> or <code>transactionId</code> parameters</p>\n<p><code>transactionId</code> of the send operation</p>\n","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/cancel","description":"<p>Cancel sending a message <strong>not yet sent</strong> (<em>deferred sending</em>).</p>\n<h2 id=\"http-response-codes\">HTTP Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Invalid parameters  <br />Possible errorMsgs are:  <br /><code>NO_PARAMS</code> - No parameters valued  <br /><code>BAD_ID</code> - invalid id format</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><p>The call returns the list of canceled messages.</p>\n<h2 id=\"description-response\">Description Response</h2>\n<p>For details of the properties of each individual message, see the <em>Response Description</em> of the <a href=\"#662ca1b9-882e-4c1b-b3c8-1784f3def10b\">Search Whatsapp</a></p>\n","urlObject":{"path":["rest","api","wa","message","cancel"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"b9feb32a-2004-4bc5-930e-5620eb96b822","name":"cancel Whatsapp","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"2692017506","type":"text"},{"key":"transactionId","value":"","type":"text","disabled":true}]},"url":"{{BaseUrl}}/rest/api/wa/message/cancel"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2692017506,\n        \"to\": \"393400000000\",\n        \"textSms\": \"test messaggio\",\n        \"fromSms\": \"#RANDOMNUM#\",\n        \"status\": \"NOSENT\",\n        \"insertDate\": \"2023-10-13T11:46:15+0200\",\n        \"dataDifferito\": \"2023-10-25T10:18:42+0200\",\n        \"transactionId\": \"7aa8fd1f030daa16282a36fd0c194a2e\",\n        \"price\": 0.04,\n        \"phoneNumberId\": 3,\n        \"contentMessage\": \"{\\\"messaging_product\\\":\\\"whatsapp\\\",\\\"recipient_type\\\":\\\"individual\\\",\\\"to\\\":\\\"{{msgeditor_whatsapp_message_to}}\\\",\\\"type\\\":\\\"text\\\",\\\"text\\\":{\\\"body\\\":\\\"Ops, non ho capito\\\",\\\"preview_url\\\":false}}\",\n        \"sentAs\": \"unknown\"\n    }\n]"}],"_postman_id":"72579f41-76b2-42a4-9e22-81ba6183b286"}],"id":"d26f3314-a65f-4481-bae7-2d4ffe6eab58","_postman_id":"d26f3314-a65f-4481-bae7-2d4ffe6eab58","description":"","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"WhatsApp Template Management","item":[{"name":"Template Detail","id":"98c033f5-ef11-426b-a504-bec859c7799d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/wa/template/:templateId","description":"<p>Returns the detail of a single WhatsApp template.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Model identifier</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>model name</td>\n</tr>\n<tr>\n<td><code>namespace</code></td>\n<td>model namespace</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>model language.</td>\n</tr>\n<tr>\n<td><code>category</code></td>\n<td>model category</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>model status</td>\n</tr>\n<tr>\n<td><code>contentMessage</code></td>\n<td>Json representing the content of the template</td>\n</tr>\n<tr>\n<td><code>contentSchema</code></td>\n<td>Json representing the template</td>\n</tr>\n<tr>\n<td><code>exampleSendPayload</code></td>\n<td>example json to be used for sending whatsapp messages with this template. The json will be inserted in the <em>contentMessage</em> parameter of the <a href=\"#055a4670-0648-49e0-ab40-85998bd92c60\">Whatsapp Send</a> or <a href=\"#1e22721e-ea3b-4202-844f-96f9ba5add40\">Whatsapp Bulk Send</a></td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>template insertion date</td>\n</tr>\n<tr>\n<td><code>updateDate</code></td>\n<td>template modification date</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","wa","template",":templateId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"id":"df82a68c-02ba-447b-8f7f-fb86b69a348a","type":"any","value":"1234","key":"templateId"}]}},"response":[{"id":"af86d512-9bab-42ac-94dd-067dbe796564","name":"Template Detail","originalRequest":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/wa/template/139"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"templateDetail\": {\n        \"id\": 12345,\n        \"name\": \"template_1\",\n        \"namespace\": \"1234_1234_1234\",\n        \"language\": \"it\",\n        \"category\": \"MARKETING\",\n        \"status\": \"APPROVED\",\n        \"numberIds\": [\n            123\n        ],\n        \"contentMessage\": {\n            \"components\": [\n                {\n                    \"text\": \"test\",\n                    \"type\": \"BODY\"\n                }\n            ],\n            \"name\": \"template_1\",\n            \"language\": \"it\",\n            \"category\": \"MARKETING\"\n        },\n        \"contentSchema\": {\n            \"contentMessage\": {\n                \"components\": [\n                    {\n                        \"text\": \"test\",\n                        \"type\": \"BODY\"\n                    }\n                ],\n                \"name\": \"template_1\",\n                \"language\": \"it\",\n                \"category\": \"MARKETING\"\n            },\n            \"modified\": \"2026-01-23T15:35:41.782Z\"            \n        },\n        \"insertDate\": \"2026-01-23T16:35:37+0100\",\n        \"updateDate\": \"2026-01-23T16:35:45+0100\",\n        \"exampleSendPayload\": {\n            \"template\": {\n                \"components\": [],\n                \"namespace\": \"1234_1234_1234\",\n                \"name\": \"template_1\",\n                \"language\": {\n                    \"code\": \"it\",\n                    \"policy\": \"deterministic\"\n                }\n            },\n            \"type\": \"template\"\n        }\n    }\n}"}],"_postman_id":"98c033f5-ef11-426b-a504-bec859c7799d"},{"name":"Template List","id":"d33be5ae-366b-431a-9767-7dbddec372c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"password":"{{auth_secret}}","username":"{{auth_key}}"},"isInherited":false},"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/wa/template/list","description":"<p>View the list of all WhatsApp templates created by the user via web interface.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This call is not allowed by the current user plan</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"description-response\">Description Response</h2>\n<p>The response contains a JSON containing a list of <code>templates</code>, each with the following properties:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Properties</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Model identifier</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>model name</td>\n</tr>\n<tr>\n<td><code>namespace</code></td>\n<td>model namespace</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>model language.</td>\n</tr>\n<tr>\n<td><code>category</code></td>\n<td>model category</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>model status</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["rest","api","wa","template","list"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"4314c5c9-4d47-4613-a25b-594765430bbc","name":"Template List","originalRequest":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/wa/template/list"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"templateList\": [\n        {\n            \"id\": 139,\n            \"name\": \"template_1\",\n            \"namespace\": \"1234_1234_1234\",\n            \"language\": \"en_US\",\n            \"category\": \"MARKETING\",\n            \"status\": \"APPROVED\"\n        },\n        {\n            \"id\": 132,\n            \"name\": \"template_2\",\n            \"namespace\": \"1234_1234_1234\",\n            \"language\": \"it\",\n            \"category\": \"UTILITY\",\n            \"status\": \"APPROVED\"\n        }\n    ]\n}"}],"_postman_id":"d33be5ae-366b-431a-9767-7dbddec372c6"},{"name":"Create Template","id":"7e8f3839-ea06-4697-b3a4-d74d14104b8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"numberId","value":"1","description":"<p>[Integer] <em>(Required)</em>\nId of the number with which you want to associate the new template</p>\n","type":"text"},{"key":"contentSchema","value":"{...JSON_CONTENT...}","description":"<p>[String] <em>(Required)</em>\nJSON representing the Whatsapp template generated by the embedded editor.</p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/wa/template/create","description":"<p>Create a template on the platform</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed  <br /><code>BAD_WA_TPL_BAD_NUMBERID</code> - The WhatsApp number doesn't belong to the user  <br /><code>BAD_WA_TPL_ALREADY_EXIST</code> - There's already a template with this name  <br /><code>BAD_WA_TEMPLATE</code> - Generic Error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Template identifier</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>Template Name</td>\n</tr>\n<tr>\n<td><code>namespace</code></td>\n<td>Template Namespace</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>Template Language</td>\n</tr>\n<tr>\n<td><code>category</code></td>\n<td>Template category</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>Template Status</td>\n</tr>\n<tr>\n<td><code>contentMessage</code></td>\n<td>Json representing the template</td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>insert date of the template</td>\n</tr>\n<tr>\n<td><code>updateDate</code></td>\n<td>edit date of the template</td>\n</tr>\n<tr>\n<td><code>exampleSendPayload</code></td>\n<td>example json to be used for sending</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","wa","template","create"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"b836e55c-ed01-4e80-83a6-a7c3b595f79a","name":"Create Template","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"numberId","value":"1","description":"[Integer] *(Obbligatorio)*\nId del numero a cui si vuole associare il nuovo template","type":"text"},{"key":"contentSchema","value":"{\"modified\":\"2025-01-15T11:21:25.569Z\",\"config\":{\"name\":\"template_name\",\"language\":\"it\",\"category\":\"MARKETING\",\"previewTemplateMessageComponents\":[],\"headerMedia\":{\"format\":\"\",\"url\":\"\",\"placeholder\":\"{{msgeditor_header_media_url}}\"}},\"contentMessage\":{\"name\":\"template_name\",\"language\":\"it\",\"category\":\"MARKETING\",\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"template_header\"},{\"type\":\"BODY\",\"text\":\"template_body\"},{\"type\":\"FOOTER\",\"text\":\"template_footer\"}]}}","description":"[String] *(Obbligatorio)*\nJSON rappresentante il modello Whatsapp generato dall' embedded editor.","type":"text"}]},"url":"{{BaseUrl}}/rest/api/wa/template/create"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"templateDetail\": {\n        \"id\": 1234,\n        \"name\": \"template_name\",\n        \"language\": \"it\",\n        \"category\": \"MARKETING\",\n        \"status\": \"PENDING\",\n        \"numberIds\": [\n            3\n        ],\n        \"contentMessage\": {\n            \"components\": [\n                {\n                    \"format\": \"TEXT\",\n                    \"text\": \"template_header\",\n                    \"type\": \"HEADER\"\n                },\n                {\n                    \"text\": \"template_body\",\n                    \"type\": \"BODY\"\n                },\n                {\n                    \"text\": \"template_footer\",\n                    \"type\": \"FOOTER\"\n                }\n            ],\n            \"name\": \"template_name\",\n            \"language\": \"it\",\n            \"category\": \"MARKETING\"\n        },\n        \"contentSchema\": {\n            \"contentMessage\": {\n                \"components\": [\n                    {\n                        \"format\": \"TEXT\",\n                        \"text\": \"template_header\",\n                        \"type\": \"HEADER\"\n                    },\n                    {\n                        \"text\": \"template_body\",\n                        \"type\": \"BODY\"\n                    },\n                    {\n                        \"text\": \"template_footer\",\n                        \"type\": \"FOOTER\"\n                    }\n                ],\n                \"name\": \"template_name\",\n                \"language\": \"it\",\n                \"category\": \"MARKETING\"\n            },\n            \"modified\": \"2025-01-15T11:21:25.569Z\",\n            \"config\": {\n                \"previewTemplateMessageComponents\": [],\n                \"headerMedia\": {\n                    \"format\": \"\",\n                    \"placeholder\": \"{{msgeditor_header_media_url}}\",\n                    \"url\": \"\"\n                },\n                \"name\": \"template_name\",\n                \"language\": \"it\",\n                \"category\": \"MARKETING\"\n            }\n        },\n        \"insertDate\": \"2025-01-15T12:23:01+0100\",\n        \"updateDate\": \"2025-01-15T12:23:01+0100\",\n        \"exampleSendPayload\": {\n            \"template\": {\n                \"components\": [],\n                \"namespace\": \"\",\n                \"name\": \"template_name\",\n                \"language\": {\n                    \"code\": \"it\",\n                    \"policy\": \"deterministic\"\n                }\n            },\n            \"type\": \"template\"\n        }\n    }\n}"}],"_postman_id":"7e8f3839-ea06-4697-b3a4-d74d14104b8f"},{"name":"Edit Template","id":"0258ec1d-b5c2-4cb7-bfaf-138a87159cd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"numberId","value":"1","description":"<p>[Integer] <em>(Required)</em>\nId of the number with which you want to associate the new template</p>\n","type":"text"},{"key":"contentSchema","value":"{...JSON_CONTENT...}","description":"<p>[String] <em>(Required)</em>\nJSON representing the Whatsapp template generated by the embedded editor.</p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/wa/template/:templateID","description":"<p>Edit a model in platform.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed  <br /><code>BAD_WA_TEMPLATE</code> - Generic Error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials are not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>Template ID</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>Name of the template</td>\n</tr>\n<tr>\n<td><code>namespace</code></td>\n<td>Template namespace</td>\n</tr>\n<tr>\n<td><code>language</code></td>\n<td>template language</td>\n</tr>\n<tr>\n<td><code>category</code></td>\n<td>template category</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>template status</td>\n</tr>\n<tr>\n<td><code>contentMessage</code></td>\n<td>Json representing the template</td>\n</tr>\n<tr>\n<td><code>insertDate</code></td>\n<td>template insert date</td>\n</tr>\n<tr>\n<td><code>updateDate</code></td>\n<td>template edit date</td>\n</tr>\n<tr>\n<td><code>exampleSendPayload</code></td>\n<td>example of json to be used for sending</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","wa","template",":templateID"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Integer] <em>(Required)</em>\nId of the template to Edit</p>\n","type":"text/plain"},"type":"any","value":"1234","key":"templateID"}]}},"response":[{"id":"845e7d73-660b-45f4-9530-504be6fd5cee","name":"Edit Template","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"numberId","value":"1","description":"[String] *(Obbligatorio)*\nId del numero a cui si vuole associare il nuovo template","type":"text"},{"key":"contentSchema","value":"{\"modified\":\"2025-01-15T11:21:25.569Z\",\"config\":{\"name\":\"template_name\",\"language\":\"it\",\"category\":\"MARKETING\",\"previewTemplateMessageComponents\":[],\"headerMedia\":{\"format\":\"\",\"url\":\"\",\"placeholder\":\"{{msgeditor_header_media_url}}\"}},\"contentMessage\":{\"name\":\"template_name\",\"language\":\"it\",\"category\":\"MARKETING\",\"components\":[{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\"template_header\"},{\"type\":\"BODY\",\"text\":\"template_body\"},{\"type\":\"FOOTER\",\"text\":\"template_footer\"}]}}","description":"[String] *(Obbligatorio)*\nJSON rappresentante il modello Whatsapp generato dall' embedded editor.","type":"text"}]},"url":{"raw":"{{BaseUrl}}/rest/api/wa/template/:templateID","host":["{{BaseUrl}}"],"path":["rest","api","wa","template",":templateID"],"variable":[{"key":"templateID","value":"1234","description":"[Integer] *(Obbligatorio)*\nId del modello da modificare"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"templateDetail\": {\n        \"id\": 1234,\n        \"name\": \"template_name\",\n        \"language\": \"it\",\n        \"category\": \"MARKETING\",\n        \"status\": \"PENDING\",\n        \"numberIds\": [\n            3\n        ],\n        \"contentMessage\": {\n            \"components\": [\n                {\n                    \"format\": \"TEXT\",\n                    \"text\": \"template_header\",\n                    \"type\": \"HEADER\"\n                },\n                {\n                    \"text\": \"template_body\",\n                    \"type\": \"BODY\"\n                },\n                {\n                    \"text\": \"template_footer\",\n                    \"type\": \"FOOTER\"\n                }\n            ],\n            \"name\": \"template_name\",\n            \"language\": \"it\",\n            \"category\": \"MARKETING\"\n        },\n        \"contentSchema\": {\n            \"contentMessage\": {\n                \"components\": [\n                    {\n                        \"format\": \"TEXT\",\n                        \"text\": \"template_header\",\n                        \"type\": \"HEADER\"\n                    },\n                    {\n                        \"text\": \"template_body\",\n                        \"type\": \"BODY\"\n                    },\n                    {\n                        \"text\": \"template_footer\",\n                        \"type\": \"FOOTER\"\n                    }\n                ],\n                \"name\": \"template_name\",\n                \"language\": \"it\",\n                \"category\": \"MARKETING\"\n            },\n            \"modified\": \"2025-01-15T11:21:25.569Z\",\n            \"config\": {\n                \"previewTemplateMessageComponents\": [],\n                \"headerMedia\": {\n                    \"format\": \"\",\n                    \"placeholder\": \"{{msgeditor_header_media_url}}\",\n                    \"url\": \"\"\n                },\n                \"name\": \"template_name\",\n                \"language\": \"it\",\n                \"category\": \"MARKETING\"\n            }\n        },\n        \"insertDate\": \"2025-01-15T12:23:01+0100\",\n        \"updateDate\": \"2025-01-15T12:23:01+0100\",\n        \"exampleSendPayload\": {\n            \"template\": {\n                \"components\": [],\n                \"namespace\": \"\",\n                \"name\": \"template_name\",\n                \"language\": {\n                    \"code\": \"it\",\n                    \"policy\": \"deterministic\"\n                }\n            },\n            \"type\": \"template\"\n        }\n    }\n}"}],"_postman_id":"0258ec1d-b5c2-4cb7-bfaf-138a87159cd6"},{"name":"Delete Template","id":"32137922-42c2-4a2f-a50d-c195d6699616","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{BaseUrl}}/rest/api/wa/template/:templateID","description":"<p>Delete a template in the platform</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>204</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed with the current plan  <br /><code>BAD_WA_TEMPLATE</code> - Generic error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","wa","template",":templateID"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Integer] <em>(Required)</em>\nId of the template to delete</p>\n","type":"text/plain"},"type":"any","value":"1234","key":"templateID"}]}},"response":[{"id":"808ec3e1-92cc-4d62-b5a8-8f7015c91edd","name":"Delete Template","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{BaseUrl}}/rest/api/wa/template/:templateID","host":["{{BaseUrl}}"],"path":["rest","api","wa","template",":templateID"],"variable":[{"key":"templateID","value":"1234","description":"[Integer] *(Required)*\nId of the template to delete"}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"32137922-42c2-4a2f-a50d-c195d6699616"},{"name":"Sync Template on Meta","id":"ef6d2892-04cd-42e4-8819-33d38ddadbf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"syncCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"<p>[String] <em>(Required)</em>\nURL to be retrieved with the result of template synchronization</p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/wa/template/sync/:templateId","description":"<p>Sync template on Meta</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>204</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed with the current plan  <br /><code>BAD_WA_TEMPLATE</code> - Generic error  <br /><code>BAD_WA_CALLBACK</code> - Callback URL not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><p>Once the template synchronization is finished, the updated detail of the Template will be sent to the given URL.</p>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","wa","template","sync",":templateId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Integer] <em>(Required)</em>\nId of the template to be synced</p>\n","type":"text/plain"},"type":"any","value":"1234","key":"templateId"}]}},"response":[{"id":"6e875aed-089c-4ccb-b498-0c8ff5b6abf7","name":"Sync Template on Meta","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"syncCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"[String] *(Obbligatorio)*\nURL da richiamare con il risultato della sincronizzazione del template","type":"text"}]},"url":{"raw":"{{BaseUrl}}/rest/api/wa/template/sync/:templateId","host":["{{BaseUrl}}"],"path":["rest","api","wa","template","sync",":templateId"],"variable":[{"key":"templateId","value":"1234","description":"[Integer] *(Required)*\nId of the template to be synced"}]}},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"ef6d2892-04cd-42e4-8819-33d38ddadbf6"},{"name":"Sync all templates on Meta","id":"d5a9ba41-9cc1-427c-af6b-3c0f32bd757c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"syncCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"<p>[String] <em>(Required)</em>\nURL to be retrieved with the result of template synchronization</p>\n","type":"text"},{"key":"numberId","value":"1","description":"<p>[Integer] <em>(Optional)</em>\nWhatsapp number whose templates you want to synchronize</p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/wa/template/sync/all","description":"<p>Sync all templates on Meta</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>204</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible <code>errorMsg</code> are:  <br /><code>PLAN_NOT_ENABLED</code> - This request is not allowed with your plan  <br /><code>BAD_WA_TEMPLATE</code> - Generic error  <br /><code>BAD_WA_CALLBACK</code> - Callback URL not valid  <br /><code>BAD_WA_PHONENUMBER</code> - Number not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Invalid Credentials</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><p>Once the template synchronization is finished, the updated template list will be sent to the given URL.</p>\n","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","wa","template","sync","all"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"be3b9b57-294a-4dd7-858c-26c047690487","name":"Sync all templates on Meta","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"syncCallback","value":"https://tuodominio.com/tuo-percorso-callback","description":"[String] *(Required)*\nURL to be retrieved with the result of template synchronization","type":"text"},{"key":"numberId","value":"1","description":"[Integer] *(Optional)*\nWhatsapp number whose templates you want to synchronize","type":"text"}]},"url":"{{BaseUrl}}/rest/api/wa/template/sync/all"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d5a9ba41-9cc1-427c-af6b-3c0f32bd757c"}],"id":"fec05567-a26e-47a1-a4a9-1da5730b4537","_postman_id":"fec05567-a26e-47a1-a4a9-1da5730b4537","description":"","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"SSO (beta)","item":[{"name":"New Token","id":"63cb9428-6887-4a0d-874e-8f9bda46666a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{BaseUrl}}/rest/api/sso/token","description":"<h1 id=\"new-token-description\">New Token Description</h1>\n<p>Crete a new token to log into the platform.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsg are:  <br /><code>BAD_ACCOUNT_PERMISSION</code> - The account doesn't have permissions to use this API  <br /><code>GENERIC_ERROR</code> - internal server error</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials are not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response Description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>token</td>\n<td>Generated token</td>\n</tr>\n<tr>\n<td>redirectUrl</td>\n<td>URL to access the platform using the token</td>\n</tr>\n<tr>\n<td>expirationDate</td>\n<td>Expiration date with <strong>yyyy-MM-dd'T'HH:mm:ssZ</strong> format</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","sso","token"],"host":["{{BaseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"19ac5f3d-f9cf-4f13-9eec-4cbc0493b7c7","name":"New Token","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"url":"{{BaseUrl}}/rest/api/sso/token"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"XYZ\",\n    \"redirectUrl\": \"{{PlatformUrl}}?j_token=XYZ\",\n    \"expirationDate\": \"2022-10-26T08:30:49+0200\"\n}"}],"_postman_id":"63cb9428-6887-4a0d-874e-8f9bda46666a"}],"id":"b77ebd9c-dcb3-4ff6-b091-74dca51422ab","description":"<p>Thanks to this API it's possible to access the platform using a temporary token.</p>\n<blockquote>\n<p><strong>In order to use the</strong> <em><strong>SSO API</strong></em> <strong>you must ask for permissions.</strong>.<br /><a href=\"https://www.smshosting.it/it/supporto-tecnico-e-commerciale\">Ask here</a></p>\n</blockquote>\n","_postman_id":"b77ebd9c-dcb3-4ff6-b091-74dca51422ab","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Blacklist","item":[{"name":"Add contact to Blacklist","id":"e3600ac4-1082-4727-ba03-377514042acf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"sms","value":"true","description":"<p>[Boolean] <em>(Mandatory)</em></p>\n<p>add to the SMS Blacklist</p>\n","type":"text"},{"key":"email","value":"false","description":"<p>[Boolean] <em>(Mandatory)</em></p>\n<p>Add to the Email Blacklist</p>\n","type":"text"}]},"url":"{{BaseUrl}}/rest/api/blacklist/contact/:contactId","description":"<p>Add or remove the contact to the SMS or Email blacklist</p>\n<h2 id=\"richiesta\">Richiesta</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" for this POST request must be \"<strong><strong>application/x-www-form-urlencoded</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsg are:  <br /><code>CONTACT_NOT_EXISTS</code> - The contact has not been found  <br /><code>BAD_CONTACT_MSISDN</code> - It's asked to add the msisdn to the SMS Blacklist, but the contact doesn't have a msisdn  <br /><code>BAD_CONTACT_EMAIL</code> - - It's asked to add the email to the Email Blacklist, but the contact doesn't have an email</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","blacklist","contact",":contactId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Mandatory)</em></p>\n<p>ID of the contact to add to the blacklist</p>\n","type":"text/plain"},"type":"any","value":"12345678","key":"contactId"}]}},"response":[{"id":"5c195dd0-05d3-4f40-9c2d-69d114b294a6","name":"Aggiungi contatto a blacklist","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sms","value":"true","description":"[Boolean] *(Obbligatorio)*\n\nInserisci contatto nella Blacklist SMS","type":"text"},{"key":"email","value":"false","description":"[Boolean] *(Obbligatorio)*\n\nInserisci contatto nella Blacklist Email","type":"text"}]},"url":{"raw":"{{BaseUrl}}/rest/api/blacklist/contact/:contactId/add","host":["{{BaseUrl}}"],"path":["rest","api","blacklist","contact",":contactId","add"],"variable":[{"key":"contactId","value":"12345678","description":"[Number] *(Obbligatorio)*\n\nID del contatto da inserire in Blacklist"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"59"},{"key":"date","value":"Tue, 25 May 2021 06:54:07 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"blacklistSms\": \"INSERTED\",\n    \"blacklistEmail\": \"NOT_INSERTED\"\n}"}],"_postman_id":"e3600ac4-1082-4727-ba03-377514042acf"},{"name":"Get contact from Blacklist","id":"d7d6cdb0-ac44-4c69-9abd-096e0913daab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/blacklist/contact/:contactId","description":"<p>Check if the contact is in the SMS or Email Blacklist.</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsg are:  <br /><code>CONTACT_NOT_EXISTS</code> - The contact has not been found</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials are not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","blacklist","contact",":contactId"],"host":["{{BaseUrl}}"],"query":[],"variable":[{"description":{"content":"<p>[Number] <em>(Mandatory)</em></p>\n<p>ID of the contact to check</p>\n","type":"text/plain"},"type":"any","value":"12345678","key":"contactId"}]}},"response":[{"id":"36834cf5-15d6-4710-ac8a-fe233b8ad0e5","name":"Contatto in blacklist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/blacklist/contact/:contactId","host":["{{BaseUrl}}"],"path":["rest","api","blacklist","contact",":contactId"],"variable":[{"key":"contactId","value":"12345678","description":"[Number] *(Obbligatorio)*\n\nID del contatto da inserire in Blacklist"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"59"},{"key":"date","value":"Tue, 25 May 2021 06:55:07 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"blacklistSms\": \"INSERTED\",\n    \"blacklistEmail\": \"NOT_INSERTED\"\n}"}],"_postman_id":"d7d6cdb0-ac44-4c69-9abd-096e0913daab"},{"name":"Get MSISDN Blacklist","id":"2898e780-cf32-4574-8a5f-29d94d6ca9f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/blacklist/msisdn/list","description":"<p>Get the list of phone numbers in your SMS Blacklist</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsg are:  <br /><code>BAD_CONTACT_MSISDN</code> - The msisdn is not valid<br /><code>BAD_DATE</code> - The Date field is not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials are not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","blacklist","msisdn","list"],"host":["{{BaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nContact's phone number.\nThe number must contain the international prefix. ex. <strong>393480000000</strong></p>\n","type":"text/plain"},"key":"msisdn","value":"393400000000"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional )</em>\nSearch the blacklist entities added since this date (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>)\nThe <strong>Z</strong> character indicates the timezone in RFC822 4-digit format.\nFor Italy +0200 during summer time and +0100 during the rest of the year.</p>\n","type":"text/plain"},"key":"fromDate","value":"2022-03-07T00:00:00%2b0100"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em>\nPosition of the first result that will be returned.</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em>\nNumber of retrieved results.\n<strong>Default: 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"3e465386-eddd-4500-be37-f5d8f95a9984","name":"Get MSISDN Blacklist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/blacklist/msisdn/list?limit=10&fromDate=2022-03-07T00:00:00%2b0100","host":["{{BaseUrl}}"],"path":["rest","api","blacklist","msisdn","list"],"query":[{"key":"limit","value":"10","type":"text"},{"key":"fromDate","value":"2022-03-07T00:00:00%2b0100","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"59"},{"key":"date","value":"Tue, 25 May 2021 06:55:07 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 50\n    },\n    \"blacklist\": [\n        \"393400000000\"\n    ]\n}"}],"_postman_id":"2898e780-cf32-4574-8a5f-29d94d6ca9f9"},{"name":"Get Email Blacklist","id":"8cde2ce5-475d-4e25-8090-a1daa8da115f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{BaseUrl}}/rest/api/blacklist/email/list","description":"<p>Get the list of emails in your Emsil Blacklist</p>\n<h2 id=\"http-status-codes\">HTTP Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>ok</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Possible errorMsg are:  <br /><code>BAD_CONTACT_EMAIL</code> - The email is not valid  <br /><code>BAD_DATE</code> - The Date field is not valid</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Credentials are not valid</td>\n</tr>\n<tr>\n<td><code>405</code></td>\n<td>HTTP Method not allowed</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Generic Error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-description\">Response description</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Property</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>blacklist</td>\n<td>List of blacklisted email addresses, each address is described by the property:  <br /><code>entity</code> - email address  <br /><code>insertDate</code> - insert date in blacklist  <br /><code>insertType</code>- reason for inclusion , can have the following values :  <br /><code>OP</code> - operator insertion  <br /><code>BO</code> - bounce insertion  <br /><code>UN</code> - unsubscribe insertion  <br /><code>SP</code> - spam report insertion</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}},"urlObject":{"path":["rest","api","blacklist","email","list"],"host":["{{BaseUrl}}"],"query":[{"disabled":true,"description":{"content":"<p>[String] <em>(Optional)</em>\nEmail to check</p>\n","type":"text/plain"},"key":"email","value":"testblacklist@fake.it"},{"disabled":true,"description":{"content":"<p>[String] <em>(Optional )</em>\nSearch the blacklist entities added since this date (format <strong>yyyy-MM-ddTHH:mm:ssZ</strong>)\nThe <strong>Z</strong> character indicates the timezone in RFC822 4-digit format.\nFor Italy +0200 during summer time and +0100 during the rest of the year.</p>\n","type":"text/plain"},"key":"fromDate","value":"2022-03-07T00:00:00%2b0100"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em>\nPosition of the first result that will be returned.</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>[Number] <em>(Optional)</em>\nNumber of retrieved results.\n<strong>Default: 20</strong></p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"844d3696-4a66-4a18-aa16-4e5959fd2a40","name":"Get Email Blacklist","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic AAAxxxxxxxxxxxxxxxxxxx","type":"text"}],"url":{"raw":"{{BaseUrl}}/rest/api/blacklist/email/list?limit=10&fromDate=2022-03-07T00:00:00%2b0100","host":["{{BaseUrl}}"],"path":["rest","api","blacklist","email","list"],"query":[{"key":"limit","value":"10"},{"key":"fromDate","value":"2022-03-07T00:00:00%2b0100"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"content-length","value":"59"},{"key":"date","value":"Tue, 25 May 2021 06:55:07 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"metadata\": {\n        \"count\": 1,\n        \"offset\": 0,\n        \"limit\": 50\n    },\n    \"blacklist\": [\n        \"testblacklist@fake.it\"\n    ]\n}"}],"_postman_id":"8cde2ce5-475d-4e25-8090-a1daa8da115f"}],"id":"7097b760-1e0e-4386-a6a0-166e38989304","description":"<p>With these requests you can add or remove phone numbers or email from your blacklist, or get the entire list of blacklisted emails or number.</p>\n","_postman_id":"7097b760-1e0e-4386-a6a0-166e38989304","auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"},"isInherited":true,"source":{"_postman_id":"26c7eb83-3738-43c5-889f-bef45346c9d8","id":"26c7eb83-3738-43c5-889f-bef45346c9d8","name":"Smshosting REST API EN","type":"collection"}}},{"name":"Webhook","item":[{"name":"Status Callback","id":"02b24930-30f5-4183-bea2-93f2748276d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"id","value":"12345678","description":"<p>[String]</p>\n<p>Internal ID of the sent message</p>\n","type":"text"},{"key":"transactionId","value":"a1b2c3d4e5f6","description":"<p>[String]</p>\n<p>Personal identifier of the send.</p>\n","type":"text"},{"key":"to","value":"3480000000","description":"<p>[String]</p>\n<p>The recipient of the message.</p>\n","type":"text"},{"key":"channel","value":"SMS","description":"<p>[String]</p>\n<p>The message channel in its current state.\nThis parameter can be enhanced with:</p>\n<ul>\n<li><code>sms</code> - The message is in the SMS channel</li>\n<li><code>rcs</code> - The message is in the RCS channel</li>\n<li><code>whatsapp</code> - The message is in the WhatsApp channel</li>\n</ul>\n","type":"text"},{"key":"status","value":"DELIVERED","description":"<p>[String]</p>\n<p>The status of the message.</p>\n<p>This parameter will be valorised with: </p>\n<ul>\n<li><code>DELIVERED</code> - delivered SMS </li>\n<li><code>NOTDELIVERED</code> - undeliverable SMS</li>\n</ul>\n","type":"text"},{"key":"statusDet","value":"","description":"<p>[String]</p>\n<p>String that explains the cause of a possible error</p>\n","type":"text","uuid":"735ea89f-95c7-4c80-b5b2-f907a5f16cb1"},{"key":"notificationDate","value":"2021-01-01T13%3A11%3A03%2B0200","description":"<p>[String]</p>\n<p>Date the message changed status (<strong>url encoded</strong> in <strong>yyyy-MM-ddTHH:mm:ssZ</strong> format) .</p>\n<p>The <strong>Z</strong> character indicates the timezone in RFC 822 4-digit format. (<em>For Italy +0200 during summer time and +0100 in the rest of the year</em>).</p>\n<p>For example:</p>\n<p><strong>2014-12-25T08:00:00+0200</strong> indicates 12/25/2014 at 08:00:00 referring to GMT +2</p>\n","type":"text"}]},"url":"https://tuodominio.com/tuo-percorso-callback","description":"<h1 id=\"callback-status-management\">Callback Status Management</h1>\n<p>If the statusCallback parameter was set during sending, our server will make a <code>POST</code> call to the URL you specified to notify you of the sending status.</p>\n<p>If you don't want to manage the <strong>Status Callback</strong> you can at any time query the status of one or more messages sent with the \"<strong>search</strong>\" function of the channel used.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p>The \"<strong>Content-Type</strong>\" of this POST call will be \"<strong>application/x-www-form-urlencoded</strong>\" </p>\n</blockquote>\n<h2 id=\"description-response\">Description Response</h2>\n<p>Our server will accept these response codes to the call made to your url:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td><code>OK</code></td>\n</tr>\n<tr>\n<td>Any other code</td>\n<td><strong>A maximum of 20 times</strong> there will be a new attempt will be made to your url.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["tuo-percorso-callback"],"host":["tuodominio","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"02b24930-30f5-4183-bea2-93f2748276d5"},{"name":"Send Bulk Callback","id":"b8baa8cf-2f66-43e1-b84c-cfc3dfa0434e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://tuodominio.com/tuo-percorso-bulk-callback","description":"<h1 id=\"send-bulk-callback-management\">Send Bulk Callback management</h1>\n<p>In <strong>bulk</strong> sending you can specify a URL with the <code>transactionCallback</code> parameter.</p>\n<p>Our server will make calls to this URL to notify the outcome of the sending once it is completed.</p>\n<h2 id=\"request\">Request</h2>\n<blockquote>\n<p><em>The \"<strong><strong>Content-Type</strong></strong>\" of this POST call will be \"<strong><strong>application/json</strong></strong>\"</em></p>\n</blockquote>\n<h2 id=\"description-response\">Description Response</h2>\n<p>Our server will accept these response codes to the call made to your URL</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td><code>OK</code></td>\n</tr>\n<tr>\n<td>Any other code</td>\n<td>Your URL will be retried a <strong>maximum of 20 times</strong></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"example-of-body-with-sending-in-error\">Example of body with sending in error</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"status\": \"ERROR\", \"errorMsg\": \"NO_CREDIT\", \"transactionId\": \"a1b2c3d4e5f6\"}\n\n</code></pre><h2 id=\"example-of-body-with-sending-completed\">Example of body with sending completed</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"status\": \"COMPLETED\",\n    \"from\": \"TestSender\",\n    \"text\": \"Sending TEST\",\n    \"transactionId\": \"a1b2c3d4e5f6\",\n    \"smsInserted\": 1,\n    \"smsNotInserted\": 0,\n    \"sms\":[\n       {\n          \"to\":\"39340000000\",\n          \"status\":\"INSERTED\",\n          \"id\":12345678\n       }\n    ]\n}\n\n</code></pre>","urlObject":{"protocol":"https","path":["tuo-percorso-bulk-callback"],"host":["tuodominio","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8baa8cf-2f66-43e1-b84c-cfc3dfa0434e"}],"id":"848d6d7f-8335-4142-ab08-8d568544fea8","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"ce12e8b1-bba8-4b33-9f3e-05aa748fca0f","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"9e9d15ad-a73a-4d6e-9bb6-4223f4f405bc","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"848d6d7f-8335-4142-ab08-8d568544fea8","description":""}],"auth":{"type":"basic","basic":{"username":"{{auth_key}}","password":"{{auth_secret}}"}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["//pm.request.headers.add({key:'Accept', value:'{{header_accept_value}}'});"],"id":"edd69574-3124-4c27-9297-923ba277f4a2"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"a7030c9c-d16d-47ae-8251-343cada56b82"}}]}