{"info":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","description":"<html><head></head><body><p>Para el uso de nuestra API es necesario tramitar un token con nuestro equipo de soporte por cada una de las empresas que serán emisoras de documentos electrónicos.</p>\n<p>Entorno de pruebas:<br><a href=\"https://pruebas.plemsi.com\">https://pruebas.plemsi.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15737545","collectionId":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","publishedId":"UVJbJHv7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"2ACE50"},"publishDate":"2021-11-26T23:25:59.000Z"},"item":[{"name":"Primeros pasos","item":[{"name":"Test Connection","id":"3d7131bc-0158-4a37-98d3-4aceed90a918","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/ping","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","ping"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d7131bc-0158-4a37-98d3-4aceed90a918"}],"id":"fe1afd16-fef5-4983-9499-ef521d64cecd","description":"<p>Realiza la conexión inicial con nuestra API mediante estos servicios. Esto te permitirá conocer si el token suministrado es correcto, junto con el nombre de la empresa asociada al mismo.</p>\n","event":[{"listen":"prerequest","script":{"id":"53a2a05c-1d0b-492e-88fb-22395e86bbf7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6395c574-d96b-4ec7-8c97-7142af5aac2f","type":"text/javascript","exec":[""]}}],"_postman_id":"fe1afd16-fef5-4983-9499-ef521d64cecd","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Basics","item":[{"name":"Get All DNI Types","id":"033d8d84-d7ab-421d-8185-9a2335b3121e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/typeDocumentIdentification","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","typeDocumentIdentification"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"033d8d84-d7ab-421d-8185-9a2335b3121e"},{"name":"Get All Municipalities","id":"b74cecca-b012-4ede-baf0-f45ac8e2e802","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/municipality","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","municipality"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b74cecca-b012-4ede-baf0-f45ac8e2e802"},{"name":"Get All Municipalities Verbose","id":"e686e4df-4afd-4600-ae37-68fcd5aed6fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/municipality/complete","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","municipality","complete"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e686e4df-4afd-4600-ae37-68fcd5aed6fa"},{"name":"Get All Countries","id":"671f0cc3-093a-42e8-b86c-965c00956413","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/country","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","country"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"671f0cc3-093a-42e8-b86c-965c00956413"},{"name":"Get All Departments","id":"119aa786-cb9a-4a7e-8963-c71ad0e8de91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/department","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","department"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"119aa786-cb9a-4a7e-8963-c71ad0e8de91"},{"name":"Get All Regime Types","id":"ba35ecec-0ad6-42b5-8659-cf065ec7ad0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/typeRegime","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","typeRegime"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba35ecec-0ad6-42b5-8659-cf065ec7ad0c"},{"name":"Get All Liabilities Types","id":"1b6504f9-ff31-4fce-bf2c-e9763f443258","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/typeLiability","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","typeLiability"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b6504f9-ff31-4fce-bf2c-e9763f443258"},{"name":"Get All Operations Types","id":"46778312-907c-4a26-8bc0-d41bc248b72f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/typeOperation","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","typeOperation"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"46778312-907c-4a26-8bc0-d41bc248b72f"},{"name":"Get All Organizations Types","id":"041eff55-5a35-44ae-a0bf-a6cd06184979","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/typeOrganization","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","typeOrganization"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"041eff55-5a35-44ae-a0bf-a6cd06184979"},{"name":"Get All Tax And Holdings","id":"91976503-cb81-499e-9447-21dde8ad8697","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/tax","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","tax"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"91976503-cb81-499e-9447-21dde8ad8697"},{"name":"Get All Unit Measures","id":"fe125e34-0b95-4dc1-ac1e-1fd492bc2f49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/unitMeasure","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","unitMeasure"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fe125e34-0b95-4dc1-ac1e-1fd492bc2f49"},{"name":"Get All Payment Methods","id":"89d889b2-7df7-406f-89de-e5fc0f57ea2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/paymentMethod","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","paymentMethod"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"89d889b2-7df7-406f-89de-e5fc0f57ea2c"},{"name":"Get All Payment Forms","id":"1c70ff88-da37-4277-9e48-18c4a0ae5467","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/paymentForm","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","paymentForm"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1c70ff88-da37-4277-9e48-18c4a0ae5467"},{"name":"Get All Item Identification Types","id":"47aca47b-f5af-41ac-b7b7-ea728fa8a7ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/typeItemIdentification","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","typeItemIdentification"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"47aca47b-f5af-41ac-b7b7-ea728fa8a7ad"},{"name":"Get All Event Rejection Types","id":"019fc3eb-ce10-447c-8a8a-05e209595e94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/typeRejection","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","typeRejection"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"019fc3eb-ce10-447c-8a8a-05e209595e94"},{"name":"Get All DIAN Document Types","id":"51369d8e-ac83-4143-ab61-98b0d5434959","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/typeDocument","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","typeDocument"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"51369d8e-ac83-4143-ab61-98b0d5434959"},{"name":"Get All DIAN Health Sector Operations Types","id":"9039c193-f531-40db-8b69-8d30ed9460db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/healthTypeOperation","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","healthTypeOperation"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9039c193-f531-40db-8b69-8d30ed9460db"},{"name":"Get All DIAN Health Sector Contracting Payment Methods Types","id":"aea1670b-b0bf-49b4-b144-3a899883d6fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/healthContractingPaymentMethod","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","healthContractingPaymentMethod"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"aea1670b-b0bf-49b4-b144-3a899883d6fd"},{"name":"Get All DIAN Health Sector Coverages Types","id":"7deb3097-9375-4ea9-980a-ec240e257708","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/healthCoverage","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","healthCoverage"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7deb3097-9375-4ea9-980a-ec240e257708"},{"name":"Get All DIAN Health Payment Collection Types","id":"cd31bd50-c066-4eac-8b86-20ea2939e151","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/list/paymentCollection","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","list","paymentCollection"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd31bd50-c066-4eac-8b86-20ea2939e151"}],"id":"0d270749-834c-41af-8b45-3f1e22267597","_postman_id":"0d270749-834c-41af-8b45-3f1e22267597","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Facturas","item":[{"name":"Obtener una factura","id":"c75998ff-7a69-47b8-ae76-e6bf8c1cfc0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/invoice/one?by=cude&value=1234","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice","one"],"host":["https://pruebas.plemsi.com"],"query":[{"description":{"content":"<p>Este campo puede tomar los valores de [cude, number, id]</p>\n","type":"text/plain"},"key":"by","value":"cude"},{"key":"value","value":"1234"}],"variable":[]}},"response":[],"_postman_id":"c75998ff-7a69-47b8-ae76-e6bf8c1cfc0b"},{"name":"Obtener todas las facturas","id":"a18144f6-83ed-4efc-a185-a970b3e198b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/invoice?limit=10","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[{"description":{"content":"<p>Quantity to retrieve</p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[],"_postman_id":"a18144f6-83ed-4efc-a185-a970b3e198b9"},{"name":"Emitir una nueva factura electrónica","id":"f673e126-639f-408c-b1d8-277d647fc590","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2022-03-14\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"SETT\",\r\n    \"number\": 1019,\r\n    \"orderReference\": {\r\n        \"id_order\": \"COT2022043155\"\r\n    },\r\n    \"send_email\": true,\r\n    \"attachment1\": {\r\n        \"filename\": \"prueba.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"attachment2\": {\r\n        \"filename\": \"prueba2.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"6\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 117,\r\n        \"municipality_id\": 149, //Campo que indica la ciudad de residencia del adquiriente (solo se puede enviar uno al mismo tiempo [_id o _code]) - para este caso se utiliza el código que se puede ver en el servicio de \"basics/GetAllMunicipalities\"\r\n        \"municipality_code\": \"11001\", //para este caso se utiliza el código DANE que representa a la ciudad\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1, // 1 -> Contado, 2 -> Crédito\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2022-04-14\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 10000,\r\n        \"base_amount\": 1000000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 188100,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"with_holding_tax_total\": [{\r\n            \"tax_id\": 6,\r\n            \"percent\": 1,\r\n            \"tax_amount\": 9900,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000, //PRECIO UNITARIO DEL ITEM **SIN IMPUESTOS**\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"NOTA PERSONALIZADA A NIVEL DE FACTURA - NOTAS ADICIONALES\",\r\n    \"allowanceTotal\": 10000, //VALOR TOTAL DE LOS DESCUENTOS A NIVEL DE FACTURA\r\n    \"invoiceBaseTotal\": 1000000, //VALOR BRUTO O ANTES DE IMPUESTOS\r\n    \"invoiceTaxExclusiveTotal\": 990000, //VALOR BASE PARA IMPUESTOS\r\n    \"invoiceTaxInclusiveTotal\": 1188100, //VALOR BRUTO MAS EL VALOR DE LOS IMPUESTOS\r\n    \"totalToPay\": 1178100, //VALOR FINAL O TOTAL A PAGAR\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/invoice","description":"<p>En la emisión de una factura electrónica es posible agregar sub totales personalizados para enriquecer aún más la información contenida en esta sin embargo, estos sub totales no serán informados ante la DIAN y solo se reportará en valor neto de la factura, es decir, los totales que conciernen a la sumatoria de los impuestos, descuentos y valor bruto de cada item reportado, esto quiere decir que los valores reportados en los campos \"customSubTotals\" y \"finalTotalToPay\" son meramente informativos</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f673e126-639f-408c-b1d8-277d647fc590"},{"name":"Emitir una nueva factura electrónica de Mandato (DRAFT)","id":"a1f54157-1c64-49e0-ac86-fbd6ca4504f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"type_operation_id\": 11, //Tipo de operación Mandato\r\n    \"date\": \"2026-11-10\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"SETT\",\r\n    \"number\": 1019,\r\n    \"orderReference\": {\r\n        \"id_order\": \"COT2022043155\"\r\n    },\r\n    \"send_email\": true,\r\n    \"attachment1\": {\r\n        \"filename\": \"prueba.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"attachment2\": {\r\n        \"filename\": \"prueba2.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"6\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 117,\r\n        \"municipality_id\": 149, //Campo que indica la ciudad de residencia del adquiriente (solo se puede enviar uno al mismo tiempo [_id o _code]) - para este caso se utiliza el código que se puede ver en el servicio de \"basics/GetAllMunicipalities\"\r\n        \"municipality_code\": \"11001\", //para este caso se utiliza el código DANE que representa a la ciudad\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1, // 1 -> Contado, 2 -> Crédito\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2022-04-14\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 10000,\r\n        \"base_amount\": 1000000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 188100,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"with_holding_tax_total\": [{\r\n            \"tax_id\": 6,\r\n            \"percent\": 1,\r\n            \"tax_amount\": 9900,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000, //PRECIO UNITARIO DEL ITEM **SIN IMPUESTOS**\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10,\r\n        \"third_party_agent\": { //Información del mandante, si está presente se marca la linea como ingreso para terceros, si no está presente se marca como ingreso propio\r\n            \"type_document_identification_id\": 6,\r\n            \"identification_number\": \"223322332233\",\r\n            \"dv\": 2\r\n        }\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"NOTA PERSONALIZADA A NIVEL DE FACTURA - NOTAS ADICIONALES\",\r\n    \"allowanceTotal\": 10000, //VALOR TOTAL DE LOS DESCUENTOS A NIVEL DE FACTURA\r\n    \"invoiceBaseTotal\": 1000000, //VALOR BRUTO O ANTES DE IMPUESTOS\r\n    \"invoiceTaxExclusiveTotal\": 990000, //VALOR BASE PARA IMPUESTOS\r\n    \"invoiceTaxInclusiveTotal\": 1188100, //VALOR BRUTO MAS EL VALOR DE LOS IMPUESTOS\r\n    \"totalToPay\": 1178100, //VALOR FINAL O TOTAL A PAGAR\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/invoice","description":"<p>En la emisión de una factura electrónica es posible agregar sub totales personalizados para enriquecer aún más la información contenida en esta sin embargo, estos sub totales no serán informados ante la DIAN y solo se reportará en valor neto de la factura, es decir, los totales que conciernen a la sumatoria de los impuestos, descuentos y valor bruto de cada item reportado, esto quiere decir que los valores reportados en los campos \"customSubTotals\" y \"finalTotalToPay\" son meramente informativos</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1f54157-1c64-49e0-ac86-fbd6ca4504f0"},{"name":"Emitir una nueva factura electrónica a cliente extranjero","id":"1f9e5b54-5035-4199-91db-8d6ebe1acb2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2022-03-14\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"SETT\",\r\n    \"number\": 1019,\r\n    \"orderReference\": {\r\n        \"id_order\": \"COT2022043155\"\r\n    },\r\n    \"send_email\": true,\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"type_document_identification_id\": 9,\r\n        \"country_id\": 65, //Campo que indica el país de residencia del adquiriente (solo se puede enviar uno al mismo tiempo [_id o _code]) - para este caso se utiliza el código que se puede ver en el servicio de \"basics/GetAllCountries\"\r\n        \"country_code\": \"US\", //para este caso se utiliza el código DANE que representa a la ciudad\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1, // 1 -> Contado, 2 -> Crédito\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2022-04-14\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 10000,\r\n        \"base_amount\": 1000000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 188100,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"with_holding_tax_total\": [{\r\n            \"tax_id\": 6,\r\n            \"percent\": 1,\r\n            \"tax_amount\": 9900,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"NOTA PERSONALIZADA A NIVEL DE FACTURA - NOTAS ADICIONALES\",\r\n    \"allowanceTotal\": 10000, //VALOR TOTAL DE LOS DESCUENTOS A NIVEL DE FACTURA\r\n    \"invoiceBaseTotal\": 1000000, //VALOR BRUTO O ANTES DE IMPUESTOS\r\n    \"invoiceTaxExclusiveTotal\": 990000, //VALOR BASE PARA IMPUESTOS\r\n    \"invoiceTaxInclusiveTotal\": 1188100, //VALOR BRUTO MAS EL VALOR DE LOS IMPUESTOS\r\n    \"totalToPay\": 1178100, //VALOR FINAL O TOTAL A PAGAR\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/invoice","description":"<p>En la emisión de una factura electrónica es posible agregar sub totales personalizados para enriquecer aún más la información contenida en esta sin embargo, estos sub totales no serán informados ante la DIAN y solo se reportará en valor neto de la factura, es decir, los totales que conciernen a la sumatoria de los impuestos, descuentos y valor bruto de cada item reportado, esto quiere decir que los valores reportados en los campos \"customSubTotals\" y \"finalTotalToPay\" son meramente informativos</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f9e5b54-5035-4199-91db-8d6ebe1acb2e"},{"name":"Emitir una nueva factura electrónica Sector Salud","id":"2b647967-8bd8-45b0-aa3c-ea78e671db21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2025-02-20\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"SETT\",\r\n    \"number\": 1019,\r\n    \"send_email\": true,\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"6\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 117,\r\n        \"municipality_id\": 149, //Campo que indica la ciudad de residencia del adquiriente (solo se puede enviar uno al mismo timepo [_id o _code]) - para este caso se utiliza el código que se puede ver en el servicio de \"basics/GetAllMunicipalities\"\r\n        \"municipality_code\": \"11001\", //para este caso se utiliza el código DANE que representa a la ciudad\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1, // 1 -> Contado, 2 -> Crédito\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2025-03-20\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 10000,\r\n        \"base_amount\": 1000000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 188100,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"with_holding_tax_total\": [{\r\n            \"tax_id\": 6,\r\n            \"percent\": 1,\r\n            \"tax_amount\": 9900,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"NOTA PERSONALIZADA A NIVEL DE FACTURA - NOTAS ADICIONALES\",\r\n    \"allowanceTotal\": 10000, //VALOR TOTAL DE LOS DESCUENTOS A NIVEL DE FACTURA\r\n    \"invoiceBaseTotal\": 1000000, //VALOR BRUTO O ANTES DE IMPUESTOS\r\n    \"invoiceTaxExclusiveTotal\": 990000, //VALOR BASE PARA IMPUESTOS\r\n    \"invoiceTaxInclusiveTotal\": 1188100, //VALOR BRUTO MAS EL VALOR DE LOS IMPUESTOS\r\n    \"totalToPay\": 1178100, //VALOR FINAL O TOTAL A PAGAR\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"prepayments\": [{\r\n        \"amount\": 20100,\r\n        \"type_health_collection_id\": 1, //CONSULTAR LISTADO DE TIPOS DE RECAUDO (Get All DIAN Health Payment Collection Types) || ESTE CAMPO SOLO ES TOMADO EN CUENTA PARA FACTURAS SECTOR SALUD\r\n        \"received_date\": \"2025-02-20\",\r\n        \"paid_date\": \"2025-02-20\"\r\n    }],\r\n    \"invoice_period\": {\r\n        \"start_date\": \"2025-02-01\",\r\n        \"end_date\": \"2025-02-28\"\r\n    },\r\n    \"health_fields\": {\r\n        \"type_operation_id\": 1, //CONSULTAR LISTADO DE TIPOS DE OPERACIÓN SECTOR SALUD\r\n        \"provider_code\": \"C0001\", //CÓDIGO PROVEEDOR DE SERVICIOS DE SALUD\r\n        \"contracting_payment_method_id\": 1, //CONSULTAR LISTADO DE MODALIDADES DE PAGO\r\n        \"type_coverage_id\": 1, //CONSULTAR LISTADO DE COVERTURAS\r\n        \"contract_number\": \"0000000\",\r\n        \"policy_number\": \"0000000\",\r\n        \"copayment\": 0,\r\n        \"moderating_fee\": 20100,\r\n        \"recovery_fee\": 0,\r\n        \"shared_payment\": 0\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/invoice","description":"<p>En la emisión de una factura electrónica es posible agregar sub totales personalizados para enriquecer aún más la información contenida en esta sin embargo, estos sub totales no serán informados ante la DIAN y solo se reportará en valor neto de la factura, es decir, los totales que conciernen a la sumatoria de los impuestos, descuentos y valor bruto de cada item reportado, esto quiere decir que los valores reportados en los campos \"customSubTotals\" y \"finalTotalToPay\" son meramente informativos</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b647967-8bd8-45b0-aa3c-ea78e671db21"},{"name":"Emitir una nueva factura electrónica con los datos mínimos del adquiriente","id":"9373b8f6-c2e7-411c-a2e5-6622065fa7db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2022-03-14\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"SETT\",\r\n    \"number\": 1019,\r\n    \"orderReference\": {\r\n        \"id_order\": \"COT2022043155\"\r\n    },\r\n    \"send_email\": true,\r\n    \"attachment1\": {\r\n        \"filename\": \"prueba.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"attachment2\": {\r\n        \"filename\": \"prueba2.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"type_document_identification_id\": 3\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1,\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2022-04-14\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 10000,\r\n        \"base_amount\": 1000000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 188100,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"NOTA PERSONALIZADA A NIVEL DE FACTURA - NOTAS ADICIONALES\",\r\n    \"allowanceTotal\": 10000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 990000,\r\n    \"invoiceTaxInclusiveTotal\": 1188100,\r\n    \"totalToPay\": 1178100,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/invoice","description":"<p>En la emisión de una factura electrónica es posible agregar sub totales personalizados para enriquecer aún más la información contenida en esta sin embargo, estos sub totales no serán informados ante la DIAN y solo se reportará en valor neto de la factura, es decir, los totales que conciernen a la sumatoria de los impuestos, descuentos y valor bruto de cada item reportado, esto quiere decir que los valores reportados en los campos \"customSubTotals\" y \"finalTotalToPay\" son meramente informativos</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9373b8f6-c2e7-411c-a2e5-6622065fa7db"},{"name":"Emitir una nueva factura electrónica en contingencia 03","id":"c10a2f5b-8e10-4cc3-8a91-fc16caf05a29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2024-10-15\",\r\n    \"time\": \"19:30:00\",\r\n    \"resolution\": \"CONT03\", //SE DEBE REGISTRAR UNA NUMERACIÓN ESPECIFICA PARA ESTE TIPO DE DOCUMENTO, PUEDE ENCONTRAR LOS DETALLE EN LA EJEMPLIFICACIÓN DE REGISTRO DE RESOLUCIÓN\r\n    \"prefix\": \"CONT\",\r\n    \"number\": 1,\r\n    \"isContingency03\": true, //SE DEBE ENVIAR ESTE IDENTIFICADOR DE FORMA OBLIGATORIA SI SE DESEA EMITIR LA FACTURA EN CONTINGENCIA 03\r\n    \"additionalDocumentReference\": {\r\n        \"consecutive\": \"TAL341\", //CONSECUTIVO DE LA FACTURA DE PAPEL O TALONARIO REALIZADA MIENTRAS SE MANTUVO LA CONTINGENCIA (PREFIJO + NÚMERO)\r\n        \"issue_date\": \"2024-10-14\" //FECHA EN QUE SE LE GENERÓ LA FACTURA DE TALONARIO O PAPEL AL CLIENTE\r\n    },\r\n    \"send_email\": true,\r\n    \"attachment1\": {\r\n        \"filename\": \"prueba.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"attachment2\": {\r\n        \"filename\": \"prueba2.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"type_document_identification_id\": 3\r\n    },\r\n    \"payment\": [{\r\n        \"payment_form_id\": 1,\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2024-11-15\",\r\n        \"duration_measure\": \"30\",\r\n        \"paid_amount\": 1178100\r\n    }],\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 10000,\r\n        \"base_amount\": 1000000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 188100,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10\r\n    }],\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"NOTA PERSONALIZADA A NIVEL DE FACTURA - NOTAS ADICIONALES\",\r\n    \"allowanceTotal\": 10000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 990000,\r\n    \"invoiceTaxInclusiveTotal\": 1188100,\r\n    \"totalToPay\": 1178100,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/invoice","description":"<p>En la emisión de una factura electrónica en contingencia es necesario enviar los campos <code>isContingecy03</code> y <code>additionalDocumentReference</code> los cuales le indicaran al sistema los datos necesarios para poder realizar la correcta emisión de este tipo de documento electrónico</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c10a2f5b-8e10-4cc3-8a91-fc16caf05a29"},{"name":"Emitir una nueva factura electrónica con cargos","id":"79bc03bb-d0b5-4e81-872e-e10d30eea626","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2022-03-14\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"SETT\",\r\n    \"number\": 1019,\r\n    \"orderReference\": {\r\n        \"id_order\": \"COT2022043155\"\r\n    },\r\n    \"send_email\": true,\r\n    \"attachment1\": {\r\n        \"filename\": \"prueba.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"attachment2\": {\r\n        \"filename\": \"prueba2.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"6\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 117,\r\n        \"municipality_id\": 249,\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1,\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2022-04-14\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalCharges\": [ //CARGOS GENERALES APLICADOS AL DOCUMENTO, NO DEPENDEN DE LOS PRODUCTOS\r\n        {\r\n            \"allowance_charge_reason\": \"Cargo general\",\r\n            \"multiplier_factor_numeric\": 10,\r\n            \"amount\": \"1100.00\",\r\n            \"base_amount\": \"11000.00\",\r\n            \"charge_percent\": 10\r\n        }\r\n    ],\r\n    \"items\": [\r\n        {\r\n            \"code\": \"1\",\r\n            \"description\": \"producto 2\",\r\n            \"notes\": \"\",\r\n            \"unit_measure_id\": 70,\r\n            \"free_of_charge_indicator\": false,\r\n            \"line_extension_amount\": \"11000.00\",\r\n            \"price_amount\": \"10000.00\",\r\n            \"invoiced_quantity\": 1,\r\n            \"base_quantity\": 1,\r\n            \"tax_totals\": [\r\n                {\r\n                    \"tax_id\": 1,\r\n                    \"percent\": \"5.00\",\r\n                    \"taxable_amount\": \"11000.00\",\r\n                    \"tax_amount\": \"550.00\",\r\n                    \"displayName\": \"IVA 5%\"\r\n                }\r\n            ],\r\n            \"type_item_identification_id\": 4,\r\n            \"allowance_charges\": [ //ESTE CAMPO ES UTILIZADO TANTO PARA DESCUENTOS COMO PARA CARGOS A NIVEL DE PRODUCTO\r\n                {\r\n                    \"charge_indicator\": true, //LA FORMA DE IDENTIFICAR QUE ESTO ES UN CARGO ES CUANDO ESTE CAMPO TIENE EL VALOR BOOLEANO true\r\n                    \"allowance_charge_reason\": \"Cargo por producto\",\r\n                    \"multiplier_factor_numeric\": 10,\r\n                    \"amount\": 1000,\r\n                    \"base_amount\": 10000\r\n                }\r\n            ]\r\n        }\r\n    ],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"NOTA PERSONALIZADA A NIVEL DE FACTURA - NOTAS ADICIONALES\",\r\n    \"allowanceTotal\": 0,\r\n    \"chargeTotal\": 1100,\r\n    \"invoiceBaseTotal\": 11000,\r\n    \"invoiceTaxExclusiveTotal\": 11000,\r\n    \"invoiceTaxInclusiveTotal\": 11550,\r\n    \"totalToPay\": 12650,\r\n    \"allTaxTotals\": [\r\n        {\r\n            \"tax_id\": 1,\r\n            \"percent\": \"5.00\",\r\n            \"taxable_amount\": \"11000.00\",\r\n            \"tax_amount\": \"550.00\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/invoice","description":"<p>En la emisión de una factura electrónica es posible agregar sub totales personalizados para enriquecer aún más la información contenida en esta sin embargo, estos sub totales no serán informados ante la DIAN y solo se reportará en valor neto de la factura, es decir, los totales que conciernen a la sumatoria de los impuestos, descuentos y valor bruto de cada item reportado, esto quiere decir que los valores reportados en los campos \"customSubTotals\" y \"finalTotalToPay\" son meramente informativos</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"79bc03bb-d0b5-4e81-872e-e10d30eea626"},{"name":"Emitir una nueva factura electrónica con impuesto a Bolsas Plásticas","id":"9085c241-92da-4233-a3bf-98e2fefc0f18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2023-02-27\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"SETT\",\r\n    \"number\": 50005,\r\n    \"orderReference\": {\r\n        \"id_order\": \"COT2022043155\"\r\n    },\r\n    \"send_email\": false,\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"6\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 117,\r\n        \"municipality_id\": 249,\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1,\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2023-02-27\",\r\n        \"duration_measure\": \"1\"\r\n    },\r\n    \"items\": [\r\n        {\r\n            \"unit_measure_id\": 70,\r\n            \"line_extension_amount\": 1000000,\r\n            \"free_of_charge_indicator\": false,\r\n            \"tax_totals\": [\r\n                {\r\n                    \"tax_id\": 1,\r\n                    \"percent\": 19,\r\n                    \"tax_amount\": 190000,\r\n                    \"taxable_amount\": 1000000\r\n                }\r\n            ],\r\n            \"description\": \"Descripción de la linea o producto\",\r\n            \"notes\": \"Notas adicionales sobre la linea\",\r\n            \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n            \"type_item_identification_id\": 1,\r\n            \"price_amount\": 100000,\r\n            \"base_quantity\": 10,\r\n            \"invoiced_quantity\": 10\r\n        },\r\n        { //SE DEBE ENVIAR UN ITEM CORRESPONDIENTE A LA CANTIDAD DE BOLSAS Y LA INFORMACIÓN BASE PARA EL CÁLCULO DEL IMPUESTO\r\n            \"unit_measure_id\": 70,\r\n            \"invoiced_quantity\": 10,\r\n            \"line_extension_amount\": 0,\r\n            \"free_of_charge_indicator\": true, //ESTE CAMPO TOMA EL VALOR BOOLEANO TRUE DEBIDO A QUE EL CAMPO line_extension_amount ES 0\r\n            \"tax_totals\": [\r\n                {\r\n                    \"tax_id\": 10, //CÓDIGO PARA INDICAR IMPUESTO AL CONSUMO DE BOLSA PLASTICA\r\n                    \"unit_measure_id\": 70,\r\n                    \"tax_amount\": 500, //VALOR TOTAL DEL IMPUESTO\r\n                    \"per_unit_amount\": 50, // VALOR BASE DE IMPUESTO POR UNIDAD\r\n                    \"base_unit_measure\": 1 //VALOR CONSTANTE DE NOTACIÓN UNITARIA\r\n                }\r\n            ],\r\n            \"description\": \"INCBP IMPUESTO NACIONAL AL CONSUMO DE BOLSAS PLASTICAS\",\r\n            \"code\": \"BOLSA\",\r\n            \"type_item_identification_id\": 4,\r\n            \"price_amount\": 50,\r\n            \"base_quantity\": 1\r\n        }\r\n    ],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"NOTA PERSONALIZADA A NIVEL DE FACTURA - NOTAS ADICIONALES\",\r\n    \"allowanceTotal\": 0,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 1000000,\r\n    \"invoiceTaxInclusiveTotal\": 1190500,\r\n    \"totalToPay\": 1190500,\r\n    \"allTaxTotals\": [\r\n        {\r\n            \"tax_id\": 1,\r\n            \"tax_amount\": 190000,\r\n            \"percent\": 19,\r\n            \"taxable_amount\": 1000000\r\n        },\r\n        {\r\n            \"tax_id\": 10,\r\n            \"tax_amount\": 500,\r\n            \"unit_measure_id\": 70,\r\n            \"per_unit_amount\": 50,\r\n            \"base_unit_measure\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/invoice","description":"<p>En la emisión de una factura electrónica es posible agregar sub totales personalizados para enriquecer aún más la información contenida en esta sin embargo, estos sub totales no serán informados ante la DIAN y solo se reportará en valor neto de la factura, es decir, los totales que conciernen a la sumatoria de los impuestos, descuentos y valor bruto de cada item reportado, esto quiere decir que los valores reportados en los campos \"customSubTotals\" y \"finalTotalToPay\" son meramente informativos</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9085c241-92da-4233-a3bf-98e2fefc0f18"},{"name":"Emitir una nueva factura electrónica a Consumidor Final","id":"5e9d49cb-124a-4f13-a688-837c83fd736d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2022-03-14\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"SETT\",\r\n    \"number\": 1019,\r\n    \"orderReference\": {\r\n        \"id_order\": \"COT2022043155\"\r\n    },\r\n    \"send_email\": true,\r\n    \"attachment1\": {\r\n        \"filename\": \"prueba.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"attachment2\": {\r\n        \"filename\": \"prueba2.xml\",\r\n        \"b64data\": \"-> lugar para el archivo convertido a base64 string\"\r\n    },\r\n    \"isFinalCustomer\": true, // Se debe enviar esta clave con el valor booleano true para que el sistema detecte la emisión a consumidor final y realice las configuraciones y asignaciones necesarias\r\n    \"payment\": {\r\n        \"payment_form_id\": 1,\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"04/14/2022\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 10000,\r\n        \"base_amount\": 1000000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 188100,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"NOTA PERSONALIZADA A NIVEL DE FACTURA - NOTAS ADICIONALES\",\r\n    \"allowanceTotal\": 10000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 990000,\r\n    \"invoiceTaxInclusiveTotal\": 1188100,\r\n    \"totalToPay\": 1178100,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/invoice","description":"<p>En la emisión de una factura electrónica es posible agregar sub totales personalizados para enriquecer aún más la información contenida en esta sin embargo, estos sub totales no serán informados ante la DIAN y solo se reportará en valor neto de la factura, es decir, los totales que conciernen a la sumatoria de los impuestos, descuentos y valor bruto de cada item reportado, esto quiere decir que los valores reportados en los campos \"customSubTotals\" y \"finalTotalToPay\" son meramente informativos</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5e9d49cb-124a-4f13-a688-837c83fd736d"},{"name":"Obtener representación gráfica de una factura","id":"8d896a8d-e9dc-4a5b-98e6-51d8b3bb1ecd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/invoice/pdf/eb4a0ca5dfcb2341d1a48b724ad5a403caf2cf5ade13956470f74dc539130f13bb651e57ceded0ba328fd9d2bb932578","description":"<p>El servicio retorna una respuesta JSON que a su vez contiene un campo llamado \"data\" el cuál contiene la representación gráfica codificada en base64</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice","pdf","eb4a0ca5dfcb2341d1a48b724ad5a403caf2cf5ade13956470f74dc539130f13bb651e57ceded0ba328fd9d2bb932578"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8d896a8d-e9dc-4a5b-98e6-51d8b3bb1ecd"},{"name":"Obtener XML de una factura","id":"6b78cf0e-46e8-4d8d-b455-e3fc6a83f153","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/invoice/xml/eb4a0ca5dfcb2341d1a48b724ad5a403caf2cf5ade13956470f74dc539130f13bb651e57ceded0ba328fd9d2bb932578","description":"<p>El servicio retorna una respuesta JSON que a su vez contiene un campo llamado \"data\" dentro del cuál contiene el XML (AttachedDocument) codificado en base64 y el nombre de archivo asignado al documento</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","invoice","xml","eb4a0ca5dfcb2341d1a48b724ad5a403caf2cf5ade13956470f74dc539130f13bb651e57ceded0ba328fd9d2bb932578"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b78cf0e-46e8-4d8d-b455-e3fc6a83f153"}],"id":"e34264b2-bf43-4e47-a29b-85475b75b509","_postman_id":"e34264b2-bf43-4e47-a29b-85475b75b509","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Notas Débito","item":[{"name":"Obtener todas las notas débito","id":"ff03320d-e187-494a-836e-6f2e1b070823","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/debit?page=1&perPage=2&filterByCustomer=1067987456&filterByInvoiceNumber=5000001","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","debit"],"host":["https://pruebas.plemsi.com"],"query":[{"key":"page","value":"1"},{"key":"perPage","value":"2"},{"key":"filterByCustomer","value":"1067987456"},{"key":"filterByInvoiceNumber","value":"5000001"}],"variable":[]}},"response":[],"_postman_id":"ff03320d-e187-494a-836e-6f2e1b070823"},{"name":"Emitir Nota Débito","id":"287dcadf-5a72-490c-8d6e-1cfafd219e22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"prefix\": \"PDN\",\r\n    \"number\": 1,\r\n    \"invoiceReference\": {\r\n        \"number\": \"SETT550\",\r\n        \"uuid\": \"123456789\",\r\n        \"issue_date\": \"2021-11-19\"\r\n    },\r\n    \"discrepancy\": {\r\n        \"code\": 3,\r\n        \"description\": \"Cambio del valor\"\r\n    },\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"2\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 2,\r\n        \"municipality_id\": 249,\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1,\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2021-11-20\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 1000,\r\n        \"base_amount\": 100000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 19000,\r\n            \"taxable_amount\": 1000000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"Notas adicionales sobre el documento\",\r\n    \"allowanceTotal\": 100000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 900000,\r\n    \"invoiceTaxInclusiveTotal\": 9190000,\r\n    \"totalToPay\": 919000,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 19000,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 1000000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 5,\r\n        \"tax_amount\": 15000,\r\n        \"percent\": 15,\r\n        \"taxable_amount\": 1000000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/debit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","debit"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"287dcadf-5a72-490c-8d6e-1cfafd219e22"},{"name":"Obtener XML de una Nota Débito","id":"30074f1c-3278-40f5-93e9-b3c5aa4ce0b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/debit/xml/eb4a0ca5dfcb2341d1a48b724ad5a403caf2cf5ade13956470f74dc539130f13bb651e57ceded0ba328fd9d2bb932578","description":"<p>El servicio retorna una respuesta JSON que a su vez contiene un campo llamado \"data\" dentro del cuál contiene el XML (AttachedDocument) codificado en base64 y el nombre de archivo asignado al documento</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","debit","xml","eb4a0ca5dfcb2341d1a48b724ad5a403caf2cf5ade13956470f74dc539130f13bb651e57ceded0ba328fd9d2bb932578"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"30074f1c-3278-40f5-93e9-b3c5aa4ce0b4"},{"name":"Obtener una Nota Débito","id":"b760f117-8e09-4c1a-ac53-9d03c8ebfd37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/debit/one?by=cude&value=1234","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","debit","one"],"host":["https://pruebas.plemsi.com"],"query":[{"description":{"content":"<p>Este campo puede tomar los valores de [cude, number, id]</p>\n","type":"text/plain"},"key":"by","value":"cude"},{"key":"value","value":"1234"}],"variable":[]}},"response":[],"_postman_id":"b760f117-8e09-4c1a-ac53-9d03c8ebfd37"}],"id":"e311e66d-d349-455f-a173-db1dd4ed162c","_postman_id":"e311e66d-d349-455f-a173-db1dd4ed162c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Clientes","item":[{"name":"Registrar nuevo cliente","id":"8a6a2d75-644f-4534-9d26-334ed127c6e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"dni\": {\r\n        \"type\": \"CC\",\r\n        \"number\": \"1067876456\",\r\n        \"verificationDigit\": \"2\"\r\n    },\r\n    \"fullname\": \"Juanito Pepe\",\r\n    \"type\": \"legal\", //Persona Natural(natural) o Juridica(legal)\r\n    \"address\": {\r\n        \"country\": \"Colombia\",\r\n        \"state\": \"Bogotá D.c\",\r\n        \"city\": \"BOGOTÁ D.C.\",\r\n        \"streetAddress\": \"Cra 56 #25-234\"\r\n    },\r\n    \"phone\": \"3003003030\",\r\n    \"email\": \"juanito@pepe.com\",\r\n    \"tributary\": { //Información tributaria\r\n        \"liability\": \"No Responsable\",\r\n        \"liabilities\": [\"No Responsable\", \"Autorretenedor\"],\r\n        \"regime\": \"Responsable de IVA\",\r\n        \"merchantRegistration\": \"00000000\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/customer","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","customer"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a6a2d75-644f-4534-9d26-334ed127c6e8"},{"name":"Obtener todos los clientes","id":"45da16fc-797b-438b-b8dc-1662e9381998","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/customer","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","customer"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"45da16fc-797b-438b-b8dc-1662e9381998"},{"name":"Obtener un cliente por ID","id":"117cc7c8-0ba2-4ee1-bfe1-eb7ea66bf1f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/customer/1234567890","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","customer","1234567890"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"117cc7c8-0ba2-4ee1-bfe1-eb7ea66bf1f8"},{"name":"Obtener datos de un cliente desde la DIAN","id":"1da28627-428b-48d3-9985-d4a3d6a846d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/customer/dian/basic-info/:type_document_id/:identification_number","description":"<p>Servicio que consume la información almacenada en los sistemas de la DIAN sobre un cliente/adquiriente según la resolución 202 de 2025</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","customer","dian","basic-info",":type_document_id",":identification_number"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[{"description":{"content":"<p>Tipo de documento del cliente basado en la codificación Plemsi</p>\n","type":"text/plain"},"type":"any","value":"3","key":"type_document_id"},{"description":{"content":"<p>Número de identificación del cliente</p>\n","type":"text/plain"},"type":"any","value":"1067333333","key":"identification_number"}]}},"response":[],"_postman_id":"1da28627-428b-48d3-9985-d4a3d6a846d1"},{"name":"Obtener clientes por filtros","id":"c99827bf-5839-4abe-a00b-688d2ed9ffcd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"filters\": {\r\n        \"dni\": \"10675342\",\r\n        \"fullname\": \"Juanito Pepe\",\r\n        \"email\": \"juanito@pepe.com\",\r\n        \"phone\": \"3003003030\"\r\n    },\r\n    \"useAndOperator\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/customer/all/filtered","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","customer","all","filtered"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c99827bf-5839-4abe-a00b-688d2ed9ffcd"},{"name":"Actualizar la información de un cliente","id":"8e664268-b529-40b4-ad53-9cdbd8c21b31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"//Solo se debería incluir la información que se desea actualizar basandose en el esquema completo\r\n{\r\n    \"dni\": {\r\n        \"type\": \"CC\",\r\n        \"number\": \"1067876456\",\r\n        \"verificationDigit\": \"2\"\r\n    },\r\n    \"fullname\": \"Juanito Pepe De La Mar\",\r\n    \"type\": \"legal\", //Persona Natural(natural) o Juridica(legal)\r\n    \"address\": {\r\n        \"country\": \"Colombia\",\r\n        \"state\": \"Bogotá D.c\",\r\n        \"city\": \"BOGOTÁ D.C.\",\r\n        \"streetAddress\": \"Cra 56 #25-234\"\r\n    },\r\n    \"phone\": \"3003003030\",\r\n    \"email\": \"juanito@pepe.com\",\r\n    \"tributary\": { //Información tributaria\r\n        \"liability\": \"No Responsable\",\r\n        \"liabilities\": [\"No Responsable\", \"Autorretenedor\"],\r\n        \"regime\": \"Responsable de IVA\",\r\n        \"merchantRegistration\": \"00000000\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/customer/619e9047c489fc41ec248235","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","customer","619e9047c489fc41ec248235"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e664268-b529-40b4-ad53-9cdbd8c21b31"}],"id":"945d2f54-2e32-4d1d-9796-c3ec5fd23fd0","_postman_id":"945d2f54-2e32-4d1d-9796-c3ec5fd23fd0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Notas Crédito","item":[{"name":"Obtener todas las notas crédito","id":"953030f4-edcd-479a-8a2a-1ea437c96f27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/credit?page=1&perPage=2&filterByCustomer=1067987456&filterByInvoiceNumber=5000002","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","credit"],"host":["https://pruebas.plemsi.com"],"query":[{"key":"page","value":"1"},{"key":"perPage","value":"2"},{"key":"filterByCustomer","value":"1067987456"},{"key":"filterByInvoiceNumber","value":"5000002"}],"variable":[]}},"response":[],"_postman_id":"953030f4-edcd-479a-8a2a-1ea437c96f27"},{"name":"Emitir Nota Crédito","id":"80eb429a-ec55-4eef-a48f-241a00002ac2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"prefix\": \"PCN\",\r\n    \"number\": 1,\r\n    \"send_email\": true,\r\n    \"invoiceReference\": {\r\n        \"number\": \"SETT551\", //CONSECUTIVO O CBC:ID DE LA FACTURA A REFERENCIAR\r\n        \"uuid\": \"123456788\", //CUFE DE LA FACTURA A REFERENCIAR\r\n        \"issue_date\": \"2021-11-19\" //FECHA DE EMISIÓN DE LA FACTURA A REFERENCIAR\r\n    },\r\n    \"discrepancy\": {\r\n        \"code\": 2,\r\n        \"description\": \"Anulación solicitada por el emisor\"\r\n    },\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"2\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 2,\r\n        \"municipality_id\": 249,\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1,\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"2021-11-20\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 1000,\r\n        \"base_amount\": 100000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 19000,\r\n            \"taxable_amount\": 1000000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"Notas adicionales sobre el documento\",\r\n    \"allowanceTotal\": 100000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 900000,\r\n    \"invoiceTaxInclusiveTotal\": 9190000,\r\n    \"totalToPay\": 919000,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 19000,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 1000000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 5,\r\n        \"tax_amount\": 15000,\r\n        \"percent\": 15,\r\n        \"taxable_amount\": 1000000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/credit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","credit"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"80eb429a-ec55-4eef-a48f-241a00002ac2"},{"name":"Emitir Nota Crédito Sin Referencia a Factura","id":"a5b7430a-fbeb-4b2c-84c0-9269693a70c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"prefix\": \"PCN\",\r\n    \"number\": 1,\r\n    \"send_email\": true,\r\n    \"validityPeriod\": {\r\n        \"start_date\": \"2024-04-01\",\r\n        \"end_date\": \"2024-04-30\"\r\n    },\r\n    \"discrepancy\": {\r\n        \"code\": 2,\r\n        \"description\": \"Anulación solicitada por el emisor\"\r\n    },\r\n    \"customer\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"type_document_identification_id\": 3\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 1000,\r\n        \"base_amount\": 100000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 19000,\r\n            \"taxable_amount\": 1000000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"notes\": \"Notas adicionales sobre el documento\",\r\n    \"allowanceTotal\": 100000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 900000,\r\n    \"invoiceTaxInclusiveTotal\": 9190000,\r\n    \"totalToPay\": 919000,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 19000,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 1000000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 5,\r\n        \"tax_amount\": 15000,\r\n        \"percent\": 15,\r\n        \"taxable_amount\": 1000000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/credit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","credit"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5b7430a-fbeb-4b2c-84c0-9269693a70c4"},{"name":"Obtener XML de una Nota Crédito","id":"abfe1dfa-29d6-4595-b2e6-91ece4e4862b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/credit/xml/eb4a0ca5dfcb2341d1a48b724ad5a403caf2cf5ade13956470f74dc539130f13bb651e57ceded0ba328fd9d2bb932578","description":"<p>El servicio retorna una respuesta JSON que a su vez contiene un campo llamado \"data\" dentro del cuál contiene el XML (AttachedDocument) codificado en base64 y el nombre de archivo asignado al documento</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","credit","xml","eb4a0ca5dfcb2341d1a48b724ad5a403caf2cf5ade13956470f74dc539130f13bb651e57ceded0ba328fd9d2bb932578"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"abfe1dfa-29d6-4595-b2e6-91ece4e4862b"},{"name":"Obtener una Nota Crédito","id":"77176033-e7a3-4e00-8e16-ba50e0ae389b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/credit/one?by=cude&value=1234","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","credit","one"],"host":["https://pruebas.plemsi.com"],"query":[{"description":{"content":"<p>Este campo puede tomar los valores de [cude, number, id]</p>\n","type":"text/plain"},"key":"by","value":"cude"},{"key":"value","value":"1234"}],"variable":[]}},"response":[],"_postman_id":"77176033-e7a3-4e00-8e16-ba50e0ae389b"}],"id":"c9f3a707-20f4-492b-83e3-4a269acc12c2","_postman_id":"c9f3a707-20f4-492b-83e3-4a269acc12c2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Generalidades","item":[{"name":"Obtener Los Folios Restantes de todas las resoluciones registradas","id":"2c500326-8cf4-42f8-a62f-fb86b863f782","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/resolution/remaining-numbers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","resolution","remaining-numbers"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c500326-8cf4-42f8-a62f-fb86b863f782"},{"name":"Obtener Los Folios Restantes de una resolución registrada","id":"ef431d0f-1aed-4f6c-b327-b65231028de4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/resolution/remaining-numbers/18760000001","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","resolution","remaining-numbers","18760000001"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef431d0f-1aed-4f6c-b327-b65231028de4"},{"name":"Reenviar correo con un documento electrónico de venta previamente emitido","id":"47c40b10-a006-45c0-979a-eaa4913f6fb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"cude\": \"SETT356\", //Puede buscarse por CUDE o por Número, Aplica para facturas, notas crédito y débito\r\n    \"targetEmail\": \"prueba@plemsi.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/general/utility/send-email","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","general","utility","send-email"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"47c40b10-a006-45c0-979a-eaa4913f6fb2"},{"name":"[DEPRECATED] Obtener la información de un documento electrónico de VENTA","id":"567f3b31-21af-4baf-a20e-1e5fe144225c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/general/some/SETT356","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","general","some","SETT356"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"567f3b31-21af-4baf-a20e-1e5fe144225c"}],"id":"27434f37-c752-4371-a8cd-0ad6a439b84d","_postman_id":"27434f37-c752-4371-a8cd-0ad6a439b84d","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Documento Soporte","item":[{"name":"Emitir nuevo documento soporte","id":"4ee958b2-9ffe-4563-8899-27d7d9012471","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2022-10-01\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"DS\",\r\n    \"number\": 1,\r\n    \"seller\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"6\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"postal_zone_code\": \"11001\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 117,\r\n        \"municipality_id\": 249,\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1,\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"04/14/2022\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 10000,\r\n        \"base_amount\": 1000000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 188100,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10,\r\n        \"brandname\": \"MARCA DEL ARTICULO\",\r\n        \"modelname\": \"MODELO DEL ARTICULO\",\r\n        \"start_date\": \"2022-10-01\", //DEBE SER LA MISMA FECHA DE EMISIÓN PARA DOCUMENTOS SOPORTE POR OPERACIÓN O 6 DÍAS ANTERIORES PARA DOCUMENTO SOPORTE POR ACUMULADO SEMANAL\r\n        \"type_generation_transmition_id\": 1 // DEBE SER 1 PARA DOCUMENTOS SOPORTE POR OPERACIÓN O 2 PARA DOCUMENTOS SOPORTE POR ACUMULADO SEMANAL\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"allowanceTotal\": 10000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 990000,\r\n    \"invoiceTaxInclusiveTotal\": 1188100,\r\n    \"totalToPay\": 1178100,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/purchase/invoice","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","purchase","invoice"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ee958b2-9ffe-4563-8899-27d7d9012471"},{"name":"Obtener todos los documento soporte","id":"cadac4ef-aa7b-465c-91ec-02ac828a9649","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"2022-10-01\",\r\n    \"time\": \"19:30:00\",\r\n    \"prefix\": \"DS\",\r\n    \"number\": 1,\r\n    \"seller\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"6\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"postal_zone_code\": \"11001\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 117,\r\n        \"municipality_id\": 249,\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"payment\": {\r\n        \"payment_form_id\": 1,\r\n        \"payment_method_id\": 10,\r\n        \"payment_due_date\": \"04/14/2022\",\r\n        \"duration_measure\": \"30\"\r\n    },\r\n    \"generalAllowances\": [{\r\n        \"allowance_charge_reason\": \"Motivo del descuento OPCIONAL\",\r\n        \"allowance_percent\": 1,\r\n        \"amount\": 10000,\r\n        \"base_amount\": 1000000\r\n    }],\r\n    \"items\": [{\r\n        \"unit_measure_id\": 70,\r\n        \"line_extension_amount\": 1000000,\r\n        \"free_of_charge_indicator\": false,\r\n        \"allowance_charges\": [{\r\n            \"charge_indicator\": false,\r\n            \"allowance_charge_reason\": \"Descripción del descuento\",\r\n            \"multiplier_factor_numeric\": 1,\r\n            \"amount\": 10000,\r\n            \"base_amount\": 1000000\r\n        }],\r\n        \"tax_totals\": [{\r\n            \"tax_id\": 1,\r\n            \"percent\": 19,\r\n            \"tax_amount\": 188100,\r\n            \"taxable_amount\": 990000\r\n        }],\r\n        \"description\": \"Descripción de la linea o producto\",\r\n        \"notes\": \"Notas adicionales sobre la linea\",\r\n        \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n        \"type_item_identification_id\": 1,\r\n        \"price_amount\": 100000,\r\n        \"base_quantity\": 10,\r\n        \"invoiced_quantity\": 10,\r\n        \"brandname\": \"MARCA DEL ARTICULO\",\r\n        \"modelname\": \"MODELO DEL ARTICULO\",\r\n        \"start_date\": \"2022-10-01\", //DEBE SER LA MISMA FECHA DE EMISIÓN PARA DOCUMENTOS SOPORTE POR OPERACIÓN O 6 DÍAS ANTERIORES PARA DOCUMENTO SOPORTE POR ACUMULADO SEMANAL\r\n        \"type_generation_transmition_id\": 1 // DEBE SER 1 PARA DOCUMENTOS SOPORTE POR OPERACIÓN O 2 PARA DOCUMENTOS SOPORTE POR ACUMULADO SEMANAL\r\n    }],\r\n    \"resolution\": \"18760000001\",\r\n    \"resolutionText\": \"Texto de resolución opcional para informar al receptor de la factura\",\r\n    \"head_note\": \"Encabezado de Factura\",\r\n    \"foot_note\": \"Pié de página de Factura\",\r\n    \"allowanceTotal\": 10000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 990000,\r\n    \"invoiceTaxInclusiveTotal\": 1188100,\r\n    \"totalToPay\": 1178100,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/purchase/invoice?page=1&perPage=10&state=Emitted","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","purchase","invoice"],"host":["https://pruebas.plemsi.com"],"query":[{"key":"page","value":"1"},{"key":"perPage","value":"10"},{"description":{"content":"<p>Emitted,Error,Deleted,Pending</p>\n","type":"text/plain"},"key":"state","value":"Emitted"}],"variable":[]}},"response":[],"_postman_id":"cadac4ef-aa7b-465c-91ec-02ac828a9649"},{"name":"Obtener un Documento Soporte","id":"2d372e1c-214c-4026-bbef-2a8a223c2a4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/purchase/invoice/one?by=cude&value=1234","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","purchase","invoice","one"],"host":["https://pruebas.plemsi.com"],"query":[{"description":{"content":"<p>Este campo puede tomar los valores de [cude, number, id]</p>\n","type":"text/plain"},"key":"by","value":"cude"},{"key":"value","value":"1234"}],"variable":[]}},"response":[],"_postman_id":"2d372e1c-214c-4026-bbef-2a8a223c2a4a"}],"id":"476f8412-6812-4ae0-b34f-580ffa14deea","_postman_id":"476f8412-6812-4ae0-b34f-580ffa14deea","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Nota Crédito a Documento Soporte","item":[{"name":"Emitir nueva nota crédito a documento soporte","id":"73e6c0fe-29d0-4d45-942d-4e2c2dadfe39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discrepancy\": {\r\n        \"code\": 2,\r\n        \"description\": \"Anulación solicitada por el emisor\"\r\n    },\r\n    \"resolution\": \"PNDS\",\r\n    \"prefix\": \"PND\",\r\n    \"number\": 1,\r\n    \"items\": [\r\n        {\r\n            \"unit_measure_id\": 70,\r\n            \"line_extension_amount\": 1000000,\r\n            \"free_of_charge_indicator\": false,\r\n            \"allowance_charges\": [\r\n                {\r\n                    \"charge_indicator\": false,\r\n                    \"allowance_charge_reason\": \"Descripción del descuento\",\r\n                    \"multiplier_factor_numeric\": 1,\r\n                    \"amount\": 10000,\r\n                    \"base_amount\": 1000000\r\n                }\r\n            ],\r\n            \"tax_totals\": [\r\n                {\r\n                    \"tax_id\": 1,\r\n                    \"percent\": 19,\r\n                    \"tax_amount\": 188100,\r\n                    \"taxable_amount\": 990000\r\n                }\r\n            ],\r\n            \"description\": \"Descripción de la linea o producto\",\r\n            \"notes\": \"Notas adicionales sobre la linea\",\r\n            \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n            \"type_item_identification_id\": 1,\r\n            \"price_amount\": 100000,\r\n            \"base_quantity\": 10,\r\n            \"invoiced_quantity\": 10\r\n        }\r\n    ],\r\n    \"seller\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"6\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"postal_zone_code\": \"11001\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 117,\r\n        \"municipality_id\": 249,\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"foot_note\": \"\",\r\n    \"head_note\": \"\",\r\n    \"invoiceReference\": {\r\n        \"issue_date\": \"2022-09-20\",\r\n        \"uuid\": \"----->CUDS DOCUMENTO SOPORTE<------\",\r\n        \"number\": \"DS1\"\r\n    },\r\n    \"generalAllowances\": [],\r\n    \"allowanceTotal\": 10000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 990000,\r\n    \"invoiceTaxInclusiveTotal\": 1188100,\r\n    \"totalToPay\": 1178100,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/purchase/credit","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","purchase","credit"],"host":["https://pruebas.plemsi.com"],"query":[{"disabled":true,"description":{"content":"<p>Esta opción solo debe ser utilizada cuando se esté referenciando un documento soporte que no haya sido emitido desde Plemsi</p>\n","type":"text/plain"},"key":"isExternal","value":"true"}],"variable":[]}},"response":[],"_postman_id":"73e6c0fe-29d0-4d45-942d-4e2c2dadfe39"},{"name":"Obtener todas las notas crédito a documento soporte","id":"02288213-e52b-431c-9d7e-1e7736d5f61a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discrepancy\": {\r\n        \"code\": 2,\r\n        \"description\": \"Anulación solicitada por el emisor\"\r\n    },\r\n    \"resolution\": \"PNDS\",\r\n    \"prefix\": \"PND\",\r\n    \"number\": 1,\r\n    \"items\": [\r\n        {\r\n            \"unit_measure_id\": 70,\r\n            \"line_extension_amount\": 1000000,\r\n            \"free_of_charge_indicator\": false,\r\n            \"allowance_charges\": [\r\n                {\r\n                    \"charge_indicator\": false,\r\n                    \"allowance_charge_reason\": \"Descripción del descuento\",\r\n                    \"multiplier_factor_numeric\": 1,\r\n                    \"amount\": 10000,\r\n                    \"base_amount\": 1000000\r\n                }\r\n            ],\r\n            \"tax_totals\": [\r\n                {\r\n                    \"tax_id\": 1,\r\n                    \"percent\": 19,\r\n                    \"tax_amount\": 188100,\r\n                    \"taxable_amount\": 990000\r\n                }\r\n            ],\r\n            \"description\": \"Descripción de la linea o producto\",\r\n            \"notes\": \"Notas adicionales sobre la linea\",\r\n            \"code\": \"CODIGO-ITEM-O-PRODUCTO\",\r\n            \"type_item_identification_id\": 1,\r\n            \"price_amount\": 100000,\r\n            \"base_quantity\": 10,\r\n            \"invoiced_quantity\": 10\r\n        }\r\n    ],\r\n    \"seller\": {\r\n        \"identification_number\": \"123456789\",\r\n        \"dv\": \"6\",\r\n        \"name\": \"Pepito Begambre Viloria\",\r\n        \"phone\": \"3003003030\",\r\n        \"address\": \"Cra 4ta #12-56\",\r\n        \"postal_zone_code\": \"11001\",\r\n        \"email\": \"pepibegavil@mail.com\",\r\n        \"merchant_registration\": \"00000000\",\r\n        \"type_document_identification_id\": 3,\r\n        \"type_organization_id\": 1,\r\n        \"type_liability_id\": 117,\r\n        \"municipality_id\": 249,\r\n        \"type_regime_id\": 1\r\n    },\r\n    \"foot_note\": \"\",\r\n    \"head_note\": \"\",\r\n    \"invoiceReference\": {\r\n        \"issue_date\": \"2022-09-20\",\r\n        \"uuid\": \"----->CUDS DOCUMENTO SOPORTE<------\",\r\n        \"number\": \"DS1\"\r\n    },\r\n    \"generalAllowances\": [],\r\n    \"allowanceTotal\": 10000,\r\n    \"invoiceBaseTotal\": 1000000,\r\n    \"invoiceTaxExclusiveTotal\": 990000,\r\n    \"invoiceTaxInclusiveTotal\": 1188100,\r\n    \"totalToPay\": 1178100,\r\n    \"allTaxTotals\": [{\r\n        \"tax_id\": 1,\r\n        \"tax_amount\": 188100,\r\n        \"percent\": 19,\r\n        \"taxable_amount\": 990000\r\n    }],\r\n    \"allHoldingsTaxTotals\": [{\r\n        \"tax_id\": 6,\r\n        \"tax_amount\": 99000,\r\n        \"percent\": 10,\r\n        \"taxable_amount\": 990000\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/purchase/credit?page=1&perPage=10","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","purchase","credit"],"host":["https://pruebas.plemsi.com"],"query":[{"key":"page","value":"1"},{"key":"perPage","value":"10"}],"variable":[]}},"response":[],"_postman_id":"02288213-e52b-431c-9d7e-1e7736d5f61a"},{"name":"Obtener una nota crédito a Documento soporte","id":"75e31132-e7ba-4937-95c0-79f7f689254e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/purchase/credit/one?by=cude&value=1234","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","purchase","credit","one"],"host":["https://pruebas.plemsi.com"],"query":[{"description":{"content":"<p>Este campo puede tomar los valores de [cude, number, id]</p>\n","type":"text/plain"},"key":"by","value":"cude"},{"key":"value","value":"1234"}],"variable":[]}},"response":[],"_postman_id":"75e31132-e7ba-4937-95c0-79f7f689254e"}],"id":"6d37eb4d-3511-4210-a162-5dbc436ebc78","_postman_id":"6d37eb4d-3511-4210-a162-5dbc436ebc78","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Gestión","item":[{"name":"Obtener la información de la empresa utilizada","id":"973ce780-9877-43dc-a4f6-fbd067ac3e78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/common/company","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","company"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"973ce780-9877-43dc-a4f6-fbd067ac3e78"},{"name":"Actualizar la información de la empresa utilizada","id":"23da4f5c-7f7c-4d9b-9af0-cd2bc9b27c29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"fullname\": \"Some Big Company\",\r\n  \"name\": {\r\n      \"first\": \"Some\",\r\n      \"others\": \"\"\r\n  },\r\n  \"lastname\": {\r\n      \"first\": \"Big\",\r\n      \"second\": \"Company\"\r\n  },\r\n  \"email\": { //Para llaves compuestas o de tipo Object, se debe enviar todo el contenido, ya que la llave principal se sobre escribirá con el contenido que se envíe\r\n    \"general\": \"fake@bigcompany.com\",\r\n    \"billing\": \"fakebilling@bigcompany.com\"\r\n  },\r\n  \"address\": {\r\n    \"country\": 46,\r\n    \"state\": 5,\r\n    \"city\": 149\r\n  },\r\n  \"tributary\": {\r\n    \"liabilities\": [\r\n        \"Autorretenedor\"\r\n    ],\r\n    \"regime\": \"Responsable de IVA\",\r\n    \"merchantRegistration\": \"00000000\",\r\n    \"liability\": \"Autorretenedor\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/common/company/update","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","common","company","update"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"23da4f5c-7f7c-4d9b-9af0-cd2bc9b27c29"}],"id":"5ad56460-5e13-405b-9fc8-801f9fa9a324","_postman_id":"5ad56460-5e13-405b-9fc8-801f9fa9a324","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Eventos Radian","item":[{"name":"Obtener todos los eventos registrados","id":"d00bb170-336a-4d41-ac5f-18c863a1444f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/event?page=1&perPage=15&state=Emitted&referencedDocument=xxxxxxxx","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","event"],"host":["https://pruebas.plemsi.com"],"query":[{"description":{"content":"<p>página</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>resultados por página</p>\n","type":"text/plain"},"key":"perPage","value":"15"},{"description":{"content":"<p>Emitted,Error,Pending</p>\n","type":"text/plain"},"key":"state","value":"Emitted"},{"description":{"content":"<p>CUFE factura a la que se relacionó el evento</p>\n","type":"text/plain"},"key":"referencedDocument","value":"xxxxxxxx"}],"variable":[]}},"response":[],"_postman_id":"d00bb170-336a-4d41-ac5f-18c863a1444f"},{"name":"Obtener un evento","id":"68acc213-dd65-49e7-8608-161e433189a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/event/one/xxxxxxxxxxxx","description":"<p>El valor xxxxxxxxxxxxx deberá ser reemplazado por el campo \"_id\" asignado a cada evento registrado en el sistema Plemsi</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","event","one","xxxxxxxxxxxx"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"68acc213-dd65-49e7-8608-161e433189a3"},{"name":"Emitir Evento con los datos mínimos","id":"ba558681-2129-4d7a-937c-9683bfceda79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"document_reference\": {\r\n    \"number\": \"SETT1000000\", //Consecutivo de la factura referenciada (Prefijo + número)\r\n    \"uuid\": \"2d5cb0f4ff2e10b3ba0a2cb058a94547f99da634e3525b22122176c3befdfaa949110e4xxxxxxxxxxxxxx\", //CUFE de la factura referenciada\r\n    \"type_document_id\": 1 //Constante para factura electrónica de venta\r\n  },\r\n  \"receiver\": {\r\n    \"identification_number\": \"90100000\", //NIT del emisor de la factura\r\n    \"dv\": \"3\", //Dígito de verificación del NIT del emisor de la factura\r\n    \"name\": \"PLEMSI\", // Nombre o razón social del emisor de la factura\r\n    \"email\": \"notificaciones@empresa.com\", //(OPCIONAL) Correo electrónico del emisor de la factura electrónica | a este correo se enviará la notificación de la emisión del evento y el respectivo ZIP \r\n    \"type_document_identification_id\": 6 // Tipo de identificación del emisor de la factura\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/event/X","description":"<p>El valor X en la url debe ser reemplazado con los identificadores de tipo entero de cada evento que se relacionan de la siguiente manera:</p>\n<ol>\n<li>Acuse de recibo</li>\n<li>Rechazo de factura</li>\n<li>Recepción de mercancía</li>\n<li>Aceptación Expresa de factura</li>\n</ol>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","event","X"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba558681-2129-4d7a-937c-9683bfceda79"},{"name":"Emitir Evento con información de quién lo ejecuta","id":"2f28d45b-3d0c-41b1-86c4-19bafbe18c19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"document_reference\": {\r\n    \"number\": \"SETT1000000\", //Consecutivo de la factura referenciada (Prefijo + número)\r\n    \"uuid\": \"2d5cb0f4ff2e10b3ba0a2cb058a94547f99da634e3525b22122176c3befdfaa949110e4xxxxxxxxxxxxxx\", //CUFE de la factura referenciada\r\n    \"type_document_id\": 1 //Constante para factura electrónica de venta\r\n  },\r\n  \"receiver\": {\r\n    \"identification_number\": \"90100000\", //NIT del emisor de la factura\r\n    \"dv\": \"3\", //Dígito de verificación del NIT del emisor de la factura\r\n    \"name\": \"PLEMSI\", // Nombre o razón social del emisor de la factura\r\n    \"email\": \"notificaciones@empresa.com\", //(OPCIONAL) Correo electrónico del emisor de la factura electrónica | a este correo se enviará la notificación de la emisión del evento y el respectivo ZIP \r\n    \"type_document_identification_id\": 6 // Tipo de identificación del emisor de la factura\r\n  },\r\n  \"issuer\": {\r\n    \"identification_number\": \"10670000000\", //Documento de identificación de quién ejecuta el evento\r\n    \"first_name\": \"Pepito\", // Nombre(s) de quién ejecuta el evento\r\n    \"last_name\": \"Perez\", // Apellido(s) de quién ejecuta el evento\r\n    \"organization_department\": \"Administrativa\", // Departamento o área de la empresa a la que pertenece quién ejecuta el evento\r\n    \"job_title\": \"Representante legal\" // Cargo de quién ejecuta el evento\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/event/X","description":"<p>El valor X en la url debe ser reemplazado con los identificadores de tipo entero de cada evento que se relacionan de la siguiente manera:</p>\n<ol>\n<li>Acuse de recibo</li>\n<li>Rechazo de factura</li>\n<li>Recepción de mercancía</li>\n<li>Aceptación Expresa de factura</li>\n</ol>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","event","X"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f28d45b-3d0c-41b1-86c4-19bafbe18c19"},{"name":"Emitir Evento de rechazo de factura","id":"c978ce2d-8cfd-4a3d-92b1-8552755527dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"document_reference\": {\r\n    \"number\": \"SETT1000000\", //Consecutivo de la factura referenciada (Prefijo + número)\r\n    \"uuid\": \"2d5cb0f4ff2e10b3ba0a2cb058a94547f99da634e3525b22122176c3befdfaa949110e4xxxxxxxxxxxxxx\", //CUFE de la factura referenciada\r\n    \"type_document_id\": 1 //Constante para factura electrónica de venta\r\n  },\r\n  \"receiver\": {\r\n    \"identification_number\": \"90100000\", //NIT del emisor de la factura\r\n    \"dv\": \"3\", //Dígito de verificación del NIT del emisor de la factura\r\n    \"name\": \"PLEMSI\", // Nombre o razón social del emisor de la factura\r\n    \"email\": \"notificaciones@empresa.com\", //(OPCIONAL) Correo electrónico del emisor de la factura electrónica | a este correo se enviará la notificación de la emisión del evento y el respectivo ZIP \r\n    \"type_document_identification_id\": 6 // Tipo de identificación del emisor de la factura\r\n  },\r\n  \"type_rejection_id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/event/2","description":"<p>Para consultar los motivos de rechazo disponibles, remitirse al apartado de Basics en esta documentación</p>\n<p>La consulta es la que lleva por nombre \"Get All Event Rejection Types\"</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","event","2"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c978ce2d-8cfd-4a3d-92b1-8552755527dc"}],"id":"587f621b-e60c-4e15-952c-f019f423b6f4","_postman_id":"587f621b-e60c-4e15-952c-f019f423b6f4","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Docs. Equivalentes","item":[{"name":"POS","item":[{"name":"Emitir factura POS","id":"1e06fd76-dae6-45d5-9674-09cc7be33d97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"number\": 31,\r\n  \"date\": \"2024-01-06\",\r\n  \"time\": \"04:08:12\",\r\n  \"sendToEmail\": \"a@mail.com\", //Campo opcional para enviar correo electrónico de notificación con el AttachedDocument del documento POS\r\n  \"softwareManufacturer\": {\r\n    \"ownerName\": \"Juanito Perez\",\r\n    \"softwareName\": \"Plemsi\",\r\n    \"companyName\": \"ECA S.A.S\"\r\n  },\r\n  \"customerProfit\": { //Campo opcional para registrar la información del programa de fidelización del comercio\r\n    \"customerCode\": \"100100100\",\r\n    \"customerName\": \"Cliente\",\r\n    \"profit\": \"100\"\r\n  },\r\n  \"payPointInfo\": { //Campo opcional para registrar los detalles del punto de pago desde el que se emitió el DE POS\r\n    \"code\": \"CP1476\",\r\n    \"address\": \"Calle 89 Local 102\",\r\n    \"cashierName\": \"Pepito Gomez\",\r\n    \"payPointType\": \"Caja Auxiliar\",\r\n    \"saleCode\": \"V2398123\"\r\n  },\r\n  \"resolution\": \"18760000001\",\r\n  \"prefix\": \"EPOS\",\r\n  \"head_note\": \"PRUEBA DE TEXTO LIBRE QUE DEBE POSICIONARSE EN EL ENCABEZADO DE PAGINA DE LA REPRESENTACION GRAFICA DE LA FACTURA ELECTRONICA VALIDACION PREVIA DIAN\",\r\n  \"foot_note\": \"PRUEBA DE TEXTO LIBRE QUE DEBE POSICIONARSE EN EL PIE DE PAGINA DE LA REPRESENTACION GRAFICA DE LA FACTURA ELECTRONICA VALIDACION PREVIA DIAN\",\r\n  \"payment\": {\r\n    \"payment_form_id\": 1,\r\n    \"payment_method_id\": 30,\r\n    \"payment_due_date\": \"2024-01-06\",\r\n    \"duration_measure\": \"1\"\r\n  },\r\n  \"invoiceBaseTotal\": \"1000.00\",\r\n  \"invoiceTaxExclusiveTotal\": \"1000.00\",\r\n  \"invoiceTaxInclusiveTotal\": \"1190.00\",\r\n  \"totalToPay\": \"1190.00\",\r\n  \"allTaxTotals\": [\r\n    {\r\n      \"tax_id\": 1,\r\n      \"tax_amount\": 190,\r\n      \"percent\": 19,\r\n      \"taxable_amount\": 1000\r\n    }\r\n  ],\r\n  \"items\": [\r\n    {\r\n      \"unit_measure_id\": 70,\r\n      \"invoiced_quantity\": \"1\",\r\n      \"line_extension_amount\": \"1000.00\",\r\n      \"free_of_charge_indicator\": false,\r\n      \"tax_totals\": [\r\n        {\r\n          \"tax_id\": 1,\r\n          \"tax_amount\": 190,\r\n          \"taxable_amount\": 1000,\r\n          \"percent\": 19\r\n        }\r\n      ],\r\n      \"description\": \"COMISION POR SERVICIOS\",\r\n      \"notes\": \"ESTA ES UNA PRUEBA DE NOTA DE DETALLE DE LINEA.\",\r\n      \"code\": \"COMISION\",\r\n      \"type_item_identification_id\": 4,\r\n      \"price_amount\": \"1000.00\",\r\n      \"base_quantity\": \"1\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/equivalent/pos","description":"<p>Para utilizar el servicio deben utilizar el APIKEY suministrada que es especial para poder consumir esta funcionalidad.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","equivalent","pos"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e06fd76-dae6-45d5-9674-09cc7be33d97"},{"name":"Obtener todas las facturas POS","id":"bd82effe-5186-4a40-978b-8b59ec1124ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/equivalent/pos?page=1&perPage=10&search=EPOS10&from=2024-01-01&to=2024-01-31","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","equivalent","pos"],"host":["https://pruebas.plemsi.com"],"query":[{"key":"page","value":"1"},{"key":"perPage","value":"10"},{"key":"search","value":"EPOS10"},{"key":"from","value":"2024-01-01"},{"key":"to","value":"2024-01-31"}],"variable":[]}},"response":[],"_postman_id":"bd82effe-5186-4a40-978b-8b59ec1124ec"},{"name":"Obtener un documento POS","id":"740ee8e9-a769-4704-8fe1-0667a8062514","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/equivalent/pos/one?by=cude&value=1234","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","equivalent","pos","one"],"host":["https://pruebas.plemsi.com"],"query":[{"description":{"content":"<p>Este campo puede tomar los valores de [cude, number, id]</p>\n","type":"text/plain"},"key":"by","value":"cude"},{"key":"value","value":"1234"}],"variable":[]}},"response":[],"_postman_id":"740ee8e9-a769-4704-8fe1-0667a8062514"}],"id":"09a37d45-d948-49b3-8874-2a5de0d0f761","_postman_id":"09a37d45-d948-49b3-8874-2a5de0d0f761","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Emitir Nota Crédito a Doc. Equivalente","id":"d5bf7bf7-8a63-47e2-bbcf-85003f0fc486","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"number\": 11,\r\n  \"date\": \"2023-01-06\",\r\n  \"time\": \"04:08:12\",\r\n  \"resolution\": \"EDNC10\",\r\n  \"prefix\": \"EDNC\",\r\n  \"invoiceReference\": {\r\n    \"uuid\": \"42abde6b26bae368....\", //CUDE DEL DOCUMENTO EQUIVALENTE QUE SE QUIERA REFERENCIAR\r\n    \"number\": \"EPOS22\",\r\n    \"issue_date\": \"2024-01-06\",\r\n    \"type_document_id\": 14 // ESTE ES UN CAMPO DESIGNADO PARA INDICAR EL TIPO DE DOCUMENTO EQUIVALENTE AL QUE SE ASOCIARÁ LA NOTA CRÉDITO, PARA POS SIEMPRE SERÁ 14\r\n  },\r\n  \"discrepancy\": {\r\n    \"code\": \"2\",\r\n    \"description\": \"Anulación solicitada por el emisor\"\r\n  },\r\n  \"invoiceBaseTotal\": \"1000.00\",\r\n  \"invoiceTaxExclusiveTotal\": \"1000.00\",\r\n  \"invoiceTaxInclusiveTotal\": \"1190.00\",\r\n  \"totalToPay\": \"1190.00\",\r\n  \"allTaxTotals\": [\r\n    {\r\n      \"tax_id\": 1,\r\n      \"tax_amount\": 190,\r\n      \"percent\": 19,\r\n      \"taxable_amount\": 1000\r\n    }\r\n  ],\r\n  \"items\": [\r\n    {\r\n      \"unit_measure_id\": 70,\r\n      \"invoiced_quantity\": \"1\",\r\n      \"line_extension_amount\": \"1000.00\",\r\n      \"free_of_charge_indicator\": false,\r\n      \"tax_totals\": [\r\n        {\r\n          \"tax_id\": 1,\r\n          \"tax_amount\": 190,\r\n          \"taxable_amount\": 1000,\r\n          \"percent\": 19\r\n        }\r\n      ],\r\n      \"description\": \"COMISION POR SERVICIOS\",\r\n      \"notes\": \"ESTA ES UNA PRUEBA DE NOTA DE DETALLE DE LINEA.\",\r\n      \"code\": \"COMISION\",\r\n      \"type_item_identification_id\": 4,\r\n      \"price_amount\": \"1000.00\",\r\n      \"base_quantity\": \"1\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/equivalent/credit","description":"<p>Para utilizar el servicio deben utilizar el APIKEY suministrada que es especial para poder consumir esta funcionalidad.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","equivalent","credit"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5bf7bf7-8a63-47e2-bbcf-85003f0fc486"},{"name":"Obtener todas las Notas Crédito a Doc. Equivalente","id":"4f409d30-0e39-485b-bf5e-f96ca26d25ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/equivalent/credit?page=1&perPage=10&search=NCE10&state=Emitted&from=2024-06-01&to=2024-06-30","description":"<p>Para utilizar el servicio deben utilizar el APIKEY suministrada que es especial para poder consumir esta funcionalidad.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","equivalent","credit"],"host":["https://pruebas.plemsi.com"],"query":[{"key":"page","value":"1"},{"key":"perPage","value":"10"},{"description":{"content":"<p>Consecutivo de la nota crédito a filtrar</p>\n","type":"text/plain"},"key":"search","value":"NCE10"},{"description":{"content":"<p>Emitted,Error,Pending</p>\n","type":"text/plain"},"key":"state","value":"Emitted"},{"description":{"content":"<p>Limite inferior de fecha a filtrar</p>\n","type":"text/plain"},"key":"from","value":"2024-06-01"},{"description":{"content":"<p>Limite superior de fecha a filtrar</p>\n","type":"text/plain"},"key":"to","value":"2024-06-30"}],"variable":[]}},"response":[],"_postman_id":"4f409d30-0e39-485b-bf5e-f96ca26d25ef"}],"id":"70694694-fe02-4ff1-820d-b09e0a98d0e6","_postman_id":"70694694-fe02-4ff1-820d-b09e0a98d0e6","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}},{"name":"Numeraciones","item":[{"name":"Crear nueva resolución","id":"a8899bac-8dfe-4dec-9fec-f884a05866b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"date_from\": \"2021-11-17\",\r\n  \"date_to\": \"2021-11-30\",\r\n  \"prefix\": \"TAL\",\r\n  \"from\": 1,\r\n  \"to\": 10,\r\n  \"resolution\": \"877886786\",\r\n  \"resolution_date\": \"2021-11-17\",\r\n  \"type_resolution\": 1, // 1 - Electrónica\r\n  \"type_document_id\": 1 // 1- Factura, 3- Factura en contingencia 03, 4- Nota Crédito, 5- Nota Débito,  | default: 1\r\n}","options":{"raw":{"language":"json"}}},"url":"https://pruebas.plemsi.com/api/billing/resolution","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","resolution"],"host":["https://pruebas.plemsi.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8899bac-8dfe-4dec-9fec-f884a05866b3"},{"name":"Obtener resoluciones","id":"6a8a83d5-8214-455a-b210-eaa61606b213","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://pruebas.plemsi.com/api/billing/resolution?page=1&perPage=2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}},"urlObject":{"path":["api","billing","resolution"],"host":["https://pruebas.plemsi.com"],"query":[{"key":"page","value":"1"},{"key":"perPage","value":"2"}],"variable":[]}},"response":[],"_postman_id":"6a8a83d5-8214-455a-b210-eaa61606b213"}],"id":"bc6edd82-a35a-4d12-aeab-a16b4aacc6f7","_postman_id":"bc6edd82-a35a-4d12-aeab-a16b4aacc6f7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]},"isInherited":true,"source":{"_postman_id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","id":"b6ab1dbe-2c12-4292-b274-d3cad0e003a6","name":"Public Plemsi API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345"}]}},"event":[{"listen":"prerequest","script":{"id":"cfec82e1-b0da-4c07-8429-8d1c242fae7c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"494bec34-4bde-4ac7-8c8e-42eb657198c1","type":"text/javascript","exec":[""]}}],"variable":[{"key":"token_api","value":"12345"},{"key":"BASE_URL","value":"https://pruebas.plemsi.com"}]}