{"info":{"_postman_id":"79d1b9ed-c769-4e9c-ba9e-b25741a97dc7","name":"8. YCS Fiscal Offline","description":"<html><head></head><body><h1 id=\"dll-library-documentation\">DLL Library Documentation</h1>\n<p>The <strong>YCS Fiscal</strong> allows you to process IVU Loto transactions with ease and simpliity, just with a few lines of code. Here's a quick documentation of how to utilize the YCS Fiscal library.</p>\n<p><strong>Step #1: Download the .DLL</strong><br>\n<a href=\"https://ycsfiles.blob.core.windows.net/dll-ycs-fiscal/YCS%20Fiscal.dll\">Download the library here</a><br></p>\n<p><strong>Step #2: Include the library in your project</strong><br>\nOnce you've downloaded the .dll, you'll need to include it on your project. <br></p>\n<p><strong>Step #3: How to get the control get the control code with 3 examples</strong><br></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-csharp\">using YCS_Fiscal;       // Add Namespace\n\n// Variables and Objects //\nYCSFiscal fiscal;       // YCS Fiscal DLL Object\nstring posID = \"0\";     // POS ID Assigned by YCS\n\npublic class YourClass\n{\n    public YourClass()\n    {\n        // Instantiate the YCS Fiscal object with your assigned POS ID //\n        fiscal = new YCSFiscal(posID);\n    }\n\n    private void ExampleMethod1()\n    {\n        // Generate a new fiscal print //\n        fiscal.generateNewFiscalPrint();\n        \n        // Store the generated Fiscal Print //\n        string fiscalLine1 = \"CONTROL: \" + fiscal.FiscalPrintLine1;\n        string fiscalLine2 = fiscal.FiscalPrintLine2;\n        string fiscalLine3 = fiscal.FiscalPrintLine3;\n        \n        // Print fiscalLine1, 2 and 3 on your receipt //\n        printReceipt(fiscalLine1, fiscalLine2, fiscalLine3);\n        \n        // Store Submit Token with the control code //\n        storeTransDetails(fiscal.fiscalToken, fiscalLine1);\n    }\n    \n    private void ExampleMethod2()\n    {\n        // Generate a new fiscal print //\n        fiscal.generateNewFiscalPrint();\n        \n        // Store the generated Fiscal Print //\n        string fiscalFooter = $\"CONTROL: {FiscalPrintLine1}\\n{FiscalPrintLine2}\\n{FiscalPrintLine3}\\n\";\n        \n        // Print fiscalFooter on your receipt //\n        printReceipt(fiscalFooter);\n        \n        // Store Submit Token with the control code //\n        storeTransDetails(fiscal.fiscalToken, fiscalLine1);\n    }\n    \n    private void ExampleMethod3()\n    {\n        // Generate a new fiscal print //\n        fiscal.generateNewFiscalPrint();\n        \n        // Store the generated Fiscal Print //\n        string fiscalFooter = string.Format(\"CONTROL: {0}{3}{1}{3}{2}{3}\", FiscalPrintLine1, FiscalPrintLine2, FiscalPrintLine3, Environment.NewLine);\n        \n        // or\n        //string fiscalFooter = string.Format(\"CONTROL: {0}\\n{1}\\n{2}\\n\", FiscalPrintLine1, FiscalPrintLine2, FiscalPrintLine3);\n        \n        // Print fiscalFooter on your receipt //\n        printReceipt(fiscalFooter);\n        \n        // Store Submit Token with the control code //\n        storeTransDetails(fiscal.fiscalToken, fiscalLine1);\n    }\n}\n\n</code></pre>\n<p><strong>Step #4: Transaction Signature and details</strong><br>\nNow that you've generated and printed the control code, you must save the control code <em>FiscalPrintLine1</em> and the transaction signature <em>fiscalToken</em> for when you report it via our web api. Read the API POST call, to understand how to send us your sale report. <br></p>\n<hr>\n<p><strong>Recomendations</strong></p>\n<ol>\n<li>Do not generate control codes from the same application that will be uploading transactions.</li>\n<li>You must add the string CONTROL: before the first FiscalPrintLine1.</li>\n<li>The control code text block must be aligned in a specific form, please review the examples below.</li>\n</ol>\n<p><strong>Examples of allowed control code alignments:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\n|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|\n|   RECEIPT HEADER TEXT         |\n|   DATE/TIME                   |\n|   STORE INFO                  |\n|                               |\n|   -------------------------   |\n|                               |\n|   Item                $1.00   |\n|   Item                $1.00   |\n|   Item                $1.00   |\n|                               |\n|   Subtotal:           $3.00   |\n|                               |\n|   -------------------------   |\n|     Store Promotion Text      |\n|                               |\n|   CONTROL: XXXXX-XXXXX        |\n|   YC                          |\n|   Processed by YCS PR Corp.   |\n|                               |\n|_______________________________|\n\n|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|\n|   RECEIPT HEADER TEXT         |\n|   DATE/TIME                   |\n|   STORE INFO                  |\n|                               |\n|   -------------------------   |\n|                               |\n|   Item                $1.00   |\n|   Item                $1.00   |\n|   Item                $1.00   |\n|                               |\n|   Subtotal:           $3.00   |\n|                               |\n|   -------------------------   |\n|     Store Promotion Text      |\n|                               |\n| CONTROL: XXXXX-XXXXX          |\n| YC                            |\n| Processed by YCS PR Corp.     |\n|                               |\n|_______________________________|\n\n</code></pre><p><strong>Examples of unallowed control code alignments:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\n|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|\n|   RECEIPT HEADER TEXT         |\n|   DATE/TIME                   |\n|   STORE INFO                  |\n|                               |\n|   -------------------------   |\n|                               |\n|   Item                $1.00   |\n|   Item                $1.00   |\n|   Item                $1.00   |\n|                               |\n|   Subtotal:           $3.00   |\n|                               |\n|   -------------------------   |\n|     Store Promotion Text      |\n|                               |\n|          CONTROL: XXXXX-XXXXX |\n|                            YC |\n|     Processed by YCS PR Corp. |\n|                               |\n|_______________________________|\n\n|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|\n|   RECEIPT HEADER TEXT         |\n|   DATE/TIME                   |\n|   STORE INFO                  |\n|                               |\n|   -------------------------   |\n|                               |\n|   Item                $1.00   |\n|   Item                $1.00   |\n|   Item                $1.00   |\n|                               |\n|   Subtotal:           $3.00   |\n|                               |\n|   -------------------------   |\n|     Store Promotion Text      |\n|                               |\n|      CONTROL: XXXXX-XXXXX     |\n|              YC               |\n|   Processed by YCS PR Corp.   |\n|                               |\n|_______________________________|\n\n</code></pre><h1 id=\"web-api-documentation\">Web API Documentation</h1>\n<p><strong>YCS Fiscal Offline</strong> is an API oriented for the implementation of Hacienda of Puerto Rico regulations. YCS Fiscal Offline API let you submit sales through an HTTPS request and retrieve a unique Fiscal number to be printer in the POS receipts.</p>\n<p>Submited sales are posted every day to \"Hacienda Dept\" automatically by YCS. The developers have the responsability to print the \"Fiscal Code\" to inform the customer receiving the receipt, it is a legal sale receipt and then report the transaction to \"Hacienda Dept\" via our API.</p>\n<p><strong>Allowed HTTPs requests:</strong></p>\n<blockquote>\n<p><strong>POST</strong>    : To upload sale information<br></p>\n</blockquote>\n<p><strong>Description Of Usual Server Responses:</strong></p>\n<blockquote>\n<p><strong>200 OK</strong> - the request was successful (some API calls may return 201 instead).<br>\n<strong>201 Created</strong> - the request was successful and a resource was created.<br>\n<strong>204 No Content</strong> - the request was successful but there is no representation to return (i.e. the response is empty).<br>\n<strong>400 Bad Request</strong> - the request could not be understood or was missing required parameters.<br>\n<strong>401 Unauthorized</strong> - authentication failed or user doesn't have permissions for requested operation.<br>\n<strong>403 Forbidden</strong> - access denied.<br>\n<strong>404 Not Found</strong> - resource was not found.405 Method Not Allowed - requested method is not supported for resource.<br></p>\n</blockquote>\n<h1 id=\"classes-definitions\">Classes Definitions</h1>\n<br>\n\n<p><strong>IVUSale class</strong><br></p>\n<blockquote>\n<p>Used on: </p>\n<ul>\n<li><a href=\"#e90d58a8-cda0-441f-b07b-01b19680626c\">POST -&gt; Submit Transaction</a></li>\n</ul>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Type</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>posId</td>\n<td><code>integer</code></td>\n<td>POS Identifier (Provided by YCS PR)</td>\n</tr>\n<tr>\n<td>ycsToken</td>\n<td><code>string</code></td>\n<td>POS signature</td>\n</tr>\n<tr>\n<td>time</td>\n<td><code>string</code></td>\n<td>Transaction time in <code>hh:mm:ss</code> format</td>\n</tr>\n<tr>\n<td>amount</td>\n<td><code>double</code></td>\n<td>Transaction Subtotal (w/o Taxes). Positive value only.</td>\n</tr>\n<tr>\n<td>munTax</td>\n<td><code>double</code></td>\n<td>Municipal Tax (1%). Positive value only.</td>\n</tr>\n<tr>\n<td>stTax</td>\n<td><code>double</code></td>\n<td>State Tax (10.5%). Positive value only.</td>\n</tr>\n<tr>\n<td>control</td>\n<td><code>string</code></td>\n<td>Control Code generated by YCS PR in <code>XXXXX-XXXXX</code> format</td>\n</tr>\n<tr>\n<td>tender</td>\n<td><code>string</code></td>\n<td>Transaction Tender: <code>CASH</code> or <code>CRED</code> (in UPPERCASE)</td>\n</tr>\n<tr>\n<td>dob</td>\n<td><code>double</code></td>\n<td>Transaction date in <code>yyyy-mm-dd</code> format</td>\n</tr>\n<tr>\n<td>transType</td>\n<td><code>string</code></td>\n<td>Transaction Type: <code>DB</code> (Sale), <code>CR</code> (Refund)</td>\n</tr>\n<tr>\n<td>fiscalToken</td>\n<td><code>string</code></td>\n<td>Transaction signature</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<p><strong>Response class</strong><br></p>\n<blockquote>\n<p>Used on: </p>\n<ul>\n<li><a href=\"#e90d58a8-cda0-441f-b07b-01b19680626c\">POST -&gt; Submit Transaction</a></li>\n</ul>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Type</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Result</td>\n<td><code>integer</code></td>\n<td>Result id</td>\n</tr>\n<tr>\n<td>Message</td>\n<td><code>string</code></td>\n<td>Result description</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h1 id=\"important\">IMPORTANT</h1>\n<p><strong>PRINTING specifications</strong><br></p>\n<p>Hacienda of Puerto Rico mandates that the fiscal control number must be inserted on the bottom portion of every receipt. Make note that it should only be printed on sales receipt that paid taxes and it should not be printed on reprints of the original copy and/or refunds or voids.</p>\n<p>You must insert the following lines at the end of the receipt.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>CONTROL: XXXXX-XXXXX \nYC\nProcessed by YCS PR Corp.\n</code></pre><p>*** Important notes:</p>\n<blockquote>\n<p>Control code can only be printed on sales receipts that paid taxes.\nReprints cannot print the Fiscal code.\nThe control code must always be printed on the bottom portion of the receipts.\nYou must always print the control code utilizing the format provided by Hacienda.\nDO NOT repeat the fiscal control number on two separate receipts. The code can only be printer ONCE.</p>\n</blockquote>\n<p><strong>Going LIVE</strong><br></p>\n<p>Once testing is complete, copies of the receipts should be send to YCS for approval. \nYCS will provide a production URL to complete the integration.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"DLL Library Documentation","slug":"dll-library-documentation"},{"content":"Web API Documentation","slug":"web-api-documentation"},{"content":"Classes Definitions","slug":"classes-definitions"},{"content":"IMPORTANT","slug":"important"}],"owner":"6395545","collectionId":"79d1b9ed-c769-4e9c-ba9e-b25741a97dc7","publishedId":"S1ENwxh7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-06-28T13:27:03.000Z"},"item":[{"name":"Submit Transaction","id":"e90d58a8-cda0-441f-b07b-01b19680626c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"posID\": 33,\r\n    \"ycsToken\": \"tcatest\",\r\n    \"time\": \"12:01:00\",\r\n    \"amount\": 1,\r\n    \"munTax\": 0,\r\n    \"stTax\": 0,\r\n    \"control\": \"XXXXX-XXXXX\",\r\n    \"tender\": \"CASH\",\r\n    \"dob\": \"01-01-2019\",\r\n    \"transType\": \"DB\",\r\n    \"fiscalToken\": \"aAA4ADYAYwBUAFUASQBzAGEAbwBYAFYAOQBiADgATwBtAEcATQBaAGIAZwA9AD0A\"\r\n}"},"url":"http://service.ycsapi.net/api/IVU","description":"<h1 id=\"post-version\">POST Version</h1>\n<p><strong>Submit Transaction</strong> allows you to upload the reported sales via the Fiscal TransUploader API. You're able to upload the following type of transactions:</p>\n<ul>\n<li>SALES</li>\n<li>REFUNDS</li>\n</ul>\n<p><strong>POST JSON Parameters</strong> <em>(See IVUSale class in the documnetation)</em><br /></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Type</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>posId</td>\n<td><code>integer</code></td>\n<td>POS Identifier (Provided by YCS PR)</td>\n</tr>\n<tr>\n<td>ycsToken</td>\n<td><code>string</code></td>\n<td>POS signature</td>\n</tr>\n<tr>\n<td>time</td>\n<td><code>string</code></td>\n<td>Transaction time in <code>hh:mm:ss</code> format</td>\n</tr>\n<tr>\n<td>amount</td>\n<td><code>double</code></td>\n<td>Transaction Subtotal (w/o Taxes). Positive value only.</td>\n</tr>\n<tr>\n<td>munTax</td>\n<td><code>double</code></td>\n<td>Municipal Tax (1%). Positive value only.</td>\n</tr>\n<tr>\n<td>stTax</td>\n<td><code>double</code></td>\n<td>State Tax (10.5%). Positive value only.</td>\n</tr>\n<tr>\n<td>control</td>\n<td><code>string</code></td>\n<td>Control Code generated by YCS PR in <code>XXXXX-XXXXX</code> format</td>\n</tr>\n<tr>\n<td>tender</td>\n<td><code>string</code></td>\n<td>Transaction Tender: <code>CASH</code> or <code>CRED</code></td>\n</tr>\n<tr>\n<td>dob</td>\n<td><code>double</code></td>\n<td>Transaction date in <code>yyyy-mm-dd</code> format</td>\n</tr>\n<tr>\n<td>transType</td>\n<td><code>string</code></td>\n<td>Transaction Type: <code>DB</code> (Sale), <code>CR</code> (Refund)</td>\n</tr>\n<tr>\n<td>fiscalToken</td>\n<td><code>string</code></td>\n<td>Transaction signature</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>OUTPUT Parameters</strong> <em>(See Response class in the documentation)</em><br /></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Variable</th>\n<th>Type</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Result</td>\n<td><code>integer</code></td>\n<td>Result id</td>\n</tr>\n<tr>\n<td>Message</td>\n<td><code>string</code></td>\n<td>Result description</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>JSON Response Example</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"Result\": 0,\n    \"Message\": \"OK\"\n}\n</code></pre>\n<p><strong>Error Messages Index Table</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Message</th>\n<th>Reason</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>No data was received.</code></td>\n<td>The server didn't receive any kind of data on the POST Request.</td>\n</tr>\n<tr>\n<td><code>POS ID is missing.</code></td>\n<td>No POS ID was provided.</td>\n</tr>\n<tr>\n<td><code>Time is missing.</code></td>\n<td>No transaction time was provided.</td>\n</tr>\n<tr>\n<td><code>Amount is missing.</code></td>\n<td>No subtotal amount was provided.</td>\n</tr>\n<tr>\n<td><code>MunTax is missing.</code></td>\n<td>No municipal tax amount was provided.</td>\n</tr>\n<tr>\n<td><code>StateTax is missing.</code></td>\n<td>No state tax amount was provided.</td>\n</tr>\n<tr>\n<td><code>Control code is missing.</code></td>\n<td>No control code was provided on the request.</td>\n</tr>\n<tr>\n<td><code>Tender is missing.</code></td>\n<td>No tender was provided.</td>\n</tr>\n<tr>\n<td><code>Date is missing.</code></td>\n<td>No date for the transaction was provided.</td>\n</tr>\n<tr>\n<td><code>TransType is missing.</code></td>\n<td>No value was provided for the transaction type.</td>\n</tr>\n<tr>\n<td><code>...</code></td>\n<td>Any other kind of error message, please contact YCS.</td>\n</tr>\n</tbody>\n</table>\n</div><p><em>You can see more examples on the api documentation.</em></p>\n<hr />\n","urlObject":{"protocol":"http","path":["api","IVU"],"host":["service","ycsapi","net"],"query":[],"variable":[]}},"response":[{"id":"4f9cbdc2-3bfb-4425-8f83-a341142f4344","name":"Error Example #3","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"posId\": 32,\n    \"ycsToken\" : \"test\",\n    \"time\": \"00:00:00\",\n    \"amount\": null,\n    \"munTax\": 0,\n    \"stTax\": 0,\n    \"control\": \"XXXXX-XXXXX\",\n    \"tender\": \"CASH\",\n    \"dob\": \"01-01-2019\",\n    \"transType\": \"DB\",\n    \"fiscalToken\": \"aAA4ADYAYwBUAFUASQBzAGEAbwBYAFYAOQBiADgATwBtAEcATQBaAGIAZwA9AD0A\"\n}"},"url":"http://service.ycsapi.net/api/IVU"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"159"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 10 Apr 2019 20:52:29 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"Result\": 2,\n    \"Message\": \"Amount is missng.\"\n}"},{"id":"85fe84c0-fdda-4d85-bba1-d8e208b3d1c7","name":"Error Example #2","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"http://service.ycsapi.net/api/IVU"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"162"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 10 Apr 2019 20:52:06 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"Result\": 2,\n    \"Message\": \"No data was received.\"\n}"},{"id":"c02ebfa7-b6cc-4495-bddd-b6ab91f58c88","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"posId\": 32,\n    \"ycsToken\" : \"test\",\n    \"time\": \"00:00:00\",\n    \"amount\": 1,\n    \"munTax\": 0,\n    \"stTax\": 0,\n    \"control\": \"XXXXX-XXXXX\",\n    \"tender\": \"CASH\",\n    \"dob\": \"01-01-2019\",\n    \"transType\": \"DB\",\n    \"fiscalToken\": \"aAA4ADYAYwBUAFUASQBzAGEAbwBYAFYAOQBiADgATwBtAEcATQBaAGIAZwA9AD0A\"\n}"},"url":"http://service.ycsapi.net/api/IVU"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"148"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 10 Apr 2019 19:21:05 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"Result\": 0,\n    \"Message\": \"OK\"\n}"},{"id":"eaa389b8-8c04-4fc9-af9b-c8ba121a85b4","name":"Error Example #1","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"posId\": 32,\n    \"ycsToken\" : \"test\",\n    \"time\": \"00:00:00\",\n    \"amount\": 1,\n    \"munTax\": 0,\n    \"stTax\": 0,\n    \"control\": \"XXXXX-XXXXX\",\n    \"tender\": \"CASH\",\n    \"dob\": \"01-01-2019\",\n    \"transType\": \"\",\n    \"fiscalToken\": \"aAA4ADYAYwBUAFUASQBzAGEAbwBYAFYAOQBiADgATwBtAEcATQBaAGIAZwA9AD0A\"\n}"},"url":"http://service.ycsapi.net/api/IVU"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"163"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Encoding","value":"gzip"},{"key":"Expires","value":"-1"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 10 Apr 2019 20:51:42 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"Result\": 2,\n    \"Message\": \"TransType is missing.\"\n}"}],"_postman_id":"e90d58a8-cda0-441f-b07b-01b19680626c"}],"event":[{"listen":"prerequest","script":{"id":"63533fd3-a428-4f00-956e-ed81149575b7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fa7e41f4-6a5e-4417-8e96-1c8ea504e366","type":"text/javascript","exec":[""]}}]}