refacil-commerce-mcp 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -23
- package/dist/core/resources.js +3 -3
- package/dist/core/resources.js.map +1 -1
- package/dist/core/tools.d.ts +2 -1
- package/dist/core/tools.js +337 -617
- package/dist/core/tools.js.map +1 -1
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -3366,37 +3366,63 @@ The `email` field must comply with strict validation rules to prevent errors dur
|
|
|
3366
3366
|
|
|
3367
3367
|
The `address` field must comply with the following validation rules:
|
|
3368
3368
|
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
-
|
|
3374
|
-
|
|
3375
|
-
-
|
|
3376
|
-
|
|
3377
|
-
-
|
|
3378
|
-
|
|
3379
|
-
-
|
|
3380
|
-
|
|
3369
|
+
### Validation Rules
|
|
3370
|
+
|
|
3371
|
+
1. **Cannot start with numeric characters** - The first character after trimming cannot be a digit (0-9)
|
|
3372
|
+
2. **First character must be**:
|
|
3373
|
+
- A letter (uppercase or lowercase): `A-Z`, `a-z`
|
|
3374
|
+
- A vowel with Spanish acute accent: `á`, `é`, `í`, `ó`, `ú`, `Á`, `É`, `Í`, `Ó`, `Ú`
|
|
3375
|
+
- The letter ñ/Ñ
|
|
3376
|
+
- The letter ü/Ü (with diaeresis)
|
|
3377
|
+
- A whitespace character (space, tab, etc.) — though after `trim()`, this is effectively not possible at the start
|
|
3378
|
+
3. **Subsequent characters (position 2 onwards) can be**:
|
|
3379
|
+
- All characters allowed for the first position, plus:
|
|
3380
|
+
- Digits: `0-9`
|
|
3381
|
+
- Special address characters: `#`, `-`, `.`, `,`
|
|
3382
|
+
|
|
3383
|
+
### Allowed Characters Summary
|
|
3384
|
+
|
|
3385
|
+
| Category | Characters |
|
|
3386
|
+
| --- | --- |
|
|
3387
|
+
| Letters (no accent) | `A-Z`, `a-z` |
|
|
3388
|
+
| Accented vowels | `á`, `é`, `í`, `ó`, `ú`, `Á`, `É`, `Í`, `Ó`, `Ú` |
|
|
3389
|
+
| Special Spanish letters | `ñ`, `Ñ`, `ü`, `Ü` |
|
|
3390
|
+
| Digits (not at start) | `0-9` |
|
|
3391
|
+
| Whitespace | Space, tab, etc. |
|
|
3392
|
+
| Address symbols | `#`, `-`, `.`, `,` |
|
|
3381
3393
|
|
|
3382
|
-
|
|
3394
|
+
### NOT Allowed Characters
|
|
3395
|
+
|
|
3396
|
+
| Category | Examples |
|
|
3397
|
+
| --- | --- |
|
|
3398
|
+
| Other punctuation | `; : ! ? ¡ ¿ " ' ( ) [ ] { }` |
|
|
3399
|
+
| Mathematical/monetary | `+ * / % = < > ^ ~ € $ @ &` |
|
|
3400
|
+
| Underscore and separators | `_ | \` |
|
|
3401
|
+
| Other accented letters | `ç`, `ã`, `õ`, `ô`, `ä`, `ö`, `ê`, `â`, `î`, `û` |
|
|
3402
|
+
| Non-Latin alphabets | Cyrillic, Greek, Arabic, Chinese, etc. |
|
|
3403
|
+
| Emojis | 🙂 😁 🏠 |
|
|
3404
|
+
|
|
3405
|
+
### Valid Examples
|
|
3383
3406
|
|
|
3384
3407
|
- `Calle 123 #45-67`
|
|
3385
|
-
|
|
3386
3408
|
- `Carrera 7 Bis #8-24`
|
|
3387
|
-
|
|
3388
3409
|
- `Avenida Principal, Casa 5`
|
|
3389
|
-
|
|
3390
3410
|
- `Avenida Pérez Galdós`
|
|
3391
|
-
|
|
3411
|
+
- `Av. Simón Bolívar 123`
|
|
3412
|
+
- `Cl 10 Sur #45-20`
|
|
3413
|
+
- `Urbanización La Ñora, Bloque 3`
|
|
3392
3414
|
|
|
3393
|
-
|
|
3415
|
+
### Invalid Examples
|
|
3394
3416
|
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3417
|
+
| Address | Reason |
|
|
3418
|
+
| --- | --- |
|
|
3419
|
+
| `123 Calle Principal` | Starts with a number |
|
|
3420
|
+
| `Calle @Principal` | Contains `@` (not allowed) |
|
|
3421
|
+
| `Dirección <>` | Contains angle brackets |
|
|
3422
|
+
| `Calle_45 #12-34` | Contains underscore `_` |
|
|
3423
|
+
| `Calle 5 #12-34!` | Contains exclamation mark `!` |
|
|
3424
|
+
| `Rua São Paulo 10` | Contains `ã` (not in allowed accents) |
|
|
3425
|
+
| `Avenida (Frente al parque)` | Contains parentheses `()` |
|
|
3400
3426
|
|
|
3401
3427
|
|
|
3402
3428
|
### Payload for Custom Sell
|
package/dist/core/resources.js
CHANGED
|
@@ -44,7 +44,7 @@ export const resources = [
|
|
|
44
44
|
"name": "Previsora - Documentation",
|
|
45
45
|
"description": "Here you will find all the endpoints related to the sale of SOAT PREVISORA.\n\n## Timeout Configuration\n\nThe following timeout values are configured for PREVISORA provider operations:\n\n| Provider | Min (seconds) | Max (seconds) | Timeout (seconds) |\n| --- | --- | --- | --- |\n| PREVISORA | 0 | 300 | 300 |\n\n**Important:**\n\nBased on the current operation of the insurance company **PREVISORA**, the waiting time (timeout) for sales processing has been adjusted to **5 minutes (300 seconds)**. This change addresses the need to ensure that all transactions are processed correctly, even in scenarios where delays may occur.\n\nIn addition, the API guarantees up to **2 automatic retries** in case a timeout occurs during processing. Although this behavior is not common in the API solution, it has been implemented to ensure the continuity and success of sales operations.\n\nIt is recommended to take this configuration into account when implementing integrations with PREVISORA services, in order to ensure proper error handling and an optimal user experience.\n\n## Test Environment\n\n### Available Test Scenarios\n\nTo test error scenarios and different response types, the following vehicle license plates are available:\n\n#### Error Handling\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| All | TIM001 | Timeout | Simulates timeout scenario |\n| All | ERR400 | System Error | Ocurrió un error inesperado. Consulte con el Administrador del sistema |\n| All | ERR401 | Authentication Error | No ha sido posible autenticarse, el token es incorrecto o el usuario no se encuentra activo |\n\n#### Quote Operations\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| Quote | ABC123 | Success Standard | Success: Vehículo, camioneta, bus |\n| Quote | ABC124 | Success with Discount | Standard vehicle with discount applied |\n| Quote | ABC125 | Electric Vehicle | Electric car pricing |\n| Quote | ABC126 | Law Discount | Legal discount application |\n| Quote | ABC127 | Transit Authority Error | La placa no está asociada a algún organismo de tránsito |\n\n#### Issue Operations\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| Issue | ABC123 | Success Standard | Success: Vehículo, camioneta, bus |\n| Issue | ABC124 | Success with Discount | Successfully issued with discount |\n\n#### Consult Operations\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| Consult | ABC123 | Issued | Policy has been issued |\n| Consult | ABC124 | Not Issued | Policy has not been issued |\n\n### Usage Notes\n\n- **Test Plates**: Use the provided test plates to simulate different scenarios during development and testing\n \n- **Error Simulation**: TIM001 and ERR-prefixed plates are specifically designed to test error handling\n \n- **Success Flows**: ABC123 generally represents successful operations across different methods\n \n- **Edge Cases**: ABC124-ABC127 cover various business scenarios including discounts and restrictions\n \n- There is a complementary file containing additional test scenarios not listed in this documentation. You can access it here: [Additional Test Scenarios Folder](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)",
|
|
46
46
|
"mimeType": "text/markdown",
|
|
47
|
-
"content": "# Previsora\n\nHere you will find all the endpoints related to the sale of SOAT PREVISORA.\n\n## Timeout Configuration\n\nThe following timeout values are configured for PREVISORA provider operations:\n\n| Provider | Min (seconds) | Max (seconds) | Timeout (seconds) |\n| --- | --- | --- | --- |\n| PREVISORA | 0 | 300 | 300 |\n\n**Important:**\n\nBased on the current operation of the insurance company **PREVISORA**, the waiting time (timeout) for sales processing has been adjusted to **5 minutes (300 seconds)**. This change addresses the need to ensure that all transactions are processed correctly, even in scenarios where delays may occur.\n\nIn addition, the API guarantees up to **2 automatic retries** in case a timeout occurs during processing. Although this behavior is not common in the API solution, it has been implemented to ensure the continuity and success of sales operations.\n\nIt is recommended to take this configuration into account when implementing integrations with PREVISORA services, in order to ensure proper error handling and an optimal user experience.\n\n## Test Environment\n\n### Available Test Scenarios\n\nTo test error scenarios and different response types, the following vehicle license plates are available:\n\n#### Error Handling\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| All | TIM001 | Timeout | Simulates timeout scenario |\n| All | ERR400 | System Error | Ocurrió un error inesperado. Consulte con el Administrador del sistema |\n| All | ERR401 | Authentication Error | No ha sido posible autenticarse, el token es incorrecto o el usuario no se encuentra activo |\n\n#### Quote Operations\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| Quote | ABC123 | Success Standard | Success: Vehículo, camioneta, bus |\n| Quote | ABC124 | Success with Discount | Standard vehicle with discount applied |\n| Quote | ABC125 | Electric Vehicle | Electric car pricing |\n| Quote | ABC126 | Law Discount | Legal discount application |\n| Quote | ABC127 | Transit Authority Error | La placa no está asociada a algún organismo de tránsito |\n\n#### Issue Operations\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| Issue | ABC123 | Success Standard | Success: Vehículo, camioneta, bus |\n| Issue | ABC124 | Success with Discount | Successfully issued with discount |\n\n#### Consult Operations\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| Consult | ABC123 | Issued | Policy has been issued |\n| Consult | ABC124 | Not Issued | Policy has not been issued |\n\n### Usage Notes\n\n- **Test Plates**: Use the provided test plates to simulate different scenarios during development and testing\n \n- **Error Simulation**: TIM001 and ERR-prefixed plates are specifically designed to test error handling\n \n- **Success Flows**: ABC123 generally represents successful operations across different methods\n \n- **Edge Cases**: ABC124-ABC127 cover various business scenarios including discounts and restrictions\n \n- There is a complementary file containing additional test scenarios not listed in this documentation. You can access it here: [Additional Test Scenarios Folder](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n\n## Endpoints\n\n### query | Quote\n\n**Method**: `POST`\n\n**Path**: `/product/query`\n\n`Allows performing a custom query on the platform. Send the request body with the necessary parameters for the query in the format specified by the QueryBody object. The response will include the results of the query in case of success.`\n\nThe following is an example of a SOAT insurance request for a vehicle. The following required data must be provided: productId (in this case, 1014006), queryType (in this case SOATFullData), document number and vehicle registration number.\n\n**Note:**\n\nIt is important to remember that in the response of this product, several of its data points are crucial as they must be sent in the service that performs the sale (/sells/sell). The necessary data are as follows: amount, vehDetail, and userDetail.\n\n### Payload for Custom Query\n\nThe following payload is required for performing a custom query:\n\n- `productId`: (number, required) Identifies the product for which the query is being made.\n\n- `documentType`: (number, required) Specifies the type of document. Allowed values:\n \n - `1`: CEDULA DE CIUDADANIA\n - `2`: CEDULA DE EXTRANJERIA\n - `3`: NIT\n - `4`: TARJETA DE IDENTIDAD\n \n- `document`: (string, required) The document number for identification purposes.\n \n Length validation rules based on `documentType`:\n \n - **For `documentType = 1` (CEDULA DE CIUDADANIA)**:\n - Minimum length: 7 numeric characters\n - Maximum length: 10 numeric characters\n \n - **For `documentType = 2` (CEDULA DE EXTRANJERIA)**:\n - Minimum length: 5 characters (alphanumeric allowed)\n - Maximum length: 15 characters (alphanumeric allowed)\n \n - **For `documentType = 3` (NIT)**:\n - Minimum length: 6 numeric characters (includes verification digit – VD)\n - Maximum length: 11 numeric characters (includes VD)\n - Must be sent **without hyphen (-)** and must include the verification digit.\n \n Additional rules based on length:\n - If length is 11, must start with \"1\" → (new CC + VD)\n - If length is 10, must start with \"8\" or \"9\" → (NIT + VD)\n - If length is 9 or less, can start with any digit → (old CC + VD)\n \n 💡 **VD (Verification Digit)**: A verification digit is a number mathematically calculated by DIAN (Dirección de Impuestos y Aduanas Nacionales) to validate that the NIT was entered correctly. It is included as part of the document number.\n \n - **For `documentType = 4` (TARJETA DE IDENTIDAD)**:\n - Minimum length: 10 numeric characters\n - Maximum length: 11 numeric characters\n \n \n- `queryType`: (string, required) Specifies the type of query to be performed.\n \n- `license`: (string, required) The license plate of the vehicle.\n\n### query | Consult\n\n**Method**: `POST`\n\n**Path**: `/product/query`\n\n`Returns the information of the last policy issued for the license plate. If the policy is queried on days after its issuance, the service will not return the requested information. It is important to clarify that this endpoint does not retrieve failed sales in the system.`\n\n### Payload for Consult Query\n\nThe following payload is required for performing a custom query:\n\n- `productId`: (number, required) Identifies the product for which the query is being made.\n \n- `queryType`: (string, required) Specifies the type of query to be performed, in this case have to be \\`SOATPolicy\\`.\n \n- `license`: (string, required) The license plate of the vehicle.\n\n### sell | Previsora\n\n**Method**: `POST`\n\n**Path**: `/sells/sell`\n\n`Allows performing a sale on the platform. Send the request body with the necessary parameters for the sale in the format specified by the SellBody object. This operation will return a response that includes information about the sale in case of success.`\n\n**Product restrictions**\n\n- Allows selling SOAT in the name of a person who is not the owner of the vehicle.\n \n- SOAT can be sold for a PRIVATE CAR.\n \n- SOAT can be sold for a PRIVATE MOTORCYCLE.\n \n- SOAT can be sold for a PUBLIC SERVICE VEHICLE.\n \n- SOAT cannot be sold to vehicles with 0 KM.\n \n- Sales hours are from 12:30 AM to 11:30 PM.\n \n- SOAT can be sold up to 30 days before its expiration.\n \n- The definition of the Administrative Cost and Commission for the sale of SOAT can be validated with your Refacil Commercial Advisor.\n \n- The insurance companies are directly responsible for sending the issued SOAT via email. The API provides a URL from the provider for downloading the SOAT.\n \n\nExample of a payment request for the Previsora product. The necessary information is provided, such as the productId (in this case, 1014006) and other relevant data, all attributes are mandatory.\n\n**Note:**\n\nIt is important to remember that to perform a sale using this service, several crucial data points must be sent. Some of these data points are obtained from the `/products/query` Quote Service. The necessary data are as follows: `amount`, `vehDetail`, and `userDetail`.\n\nSome data obtained from the /products/query service may be null; however, this data is mandatory for the sale process and must be filled in.\n\nIn addition to the `userDetail` object, three additional attributes must be sent: `gender`, `RegimenTypeId`, and `RutId`.\n\nThe possible values for each of the aforementioned attributes are as follows:\n\n- `gender`:\n \n - M = Male\n \n - F = Female\n \n- `RegimenTypeId`:\n \n - 1 = Responsible for IVA\n \n - 2 = Not responsible for IVA\n \n- `RutId`:\n \n - 1 = Large taxpayer\n \n - 2 = Self-withholding agent\n \n - 3 = IVA withholding agent\n \n - 4 = Simple taxation regime\n \n - 5 = Not applicable\n \n - 6 = Large taxpayer-Self-withholding agent-IVA withholding agent\n \n - 7 = Self-withholding agent-IVA withholding agent\n \n - 8 = Large taxpayer-IVA withholding agent\n \n- `cityCode`: DANE code\n \n- `stateCode`: This field is populated based on the **state** sheet [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n- To check the values for the other parameters, please refer [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n\n## Field Validations\n\n### **Name and Last Name Format Requirements**\n\nThe validation rules for the `name` and `lastName` fields in the `userDetail` object depend on the person type:\n\n**For Natural Persons (Personas Naturales):**\n\n- Must contain only letters (uppercase and lowercase)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words (for compound names)\n \n- Minimum length of 3 characters\n \n- Does not allow numbers\n \n- Does not allow special characters such as `@`, `#`\n \n\n**For Legal Entities (Personas Jurídicas):**\n\n- Allows alphanumeric characters (letters and numbers)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words\n \n- Minimum length of 3 characters\n \n- Does not allow special characters such as `@`, `#`\n \n\n### Email Format Requirements\n\nThe `email` field must comply with strict validation rules to prevent errors during the issuance process:\n\n- Must contain only letters and numbers (no accents or special characters like á, é, etc.)\n \n- Allows only single separators: `.` (period), `_` (underscore), `-` (hyphen)\n \n- Cannot have consecutive separators (e.g., `..` or `--`)\n \n- Cannot start or end with separators\n \n- Domain must have at least 2 characters in the top-level domain (TLD)\n \n- Must not contain spaces or the `@` symbol except as the domain separator\n \n\n**Valid examples:**\n\n- `usuario@gmail.com`\n \n- `nombre.apellido@empresa.co`\n \n- `user_name@dominio.com`\n \n- `user-123@test.com.co`\n \n\n**Invalid examples:**\n\n- `usuario.@gmail.com` (separator at the end before @)\n \n- `user..name@domain.com` (consecutive separators)\n \n- `@domain.com` (missing local part)\n \n- `usuarioá@gmail.com` (contains accented characters)\n \n- `campohernández@gmail.com` (contains special characters with encoding issues)\n \n- `johndoe@---gmail.com` (multiple consecutive hyphens)\n \n\n### Address Format Requirements\n\nThe `address` field must comply with the following validation rules:\n\n- Cannot start with numeric characters\n \n- Must start with a letter (with or without accents)\n \n- Allows only standard alphanumeric characters\n \n- Allows basic special characters: `#`, `-`, `.`, `,`\n \n- Allows letters with accents and `ñ`\n \n- Does not allow anomalous special characters\n \n\n**Valid examples:**\n\n- `Calle 123 #45-67`\n \n- `Carrera 7 Bis #8-24`\n \n- `Avenida Principal, Casa 5`\n \n- `Avenida Pérez Galdós`\n \n\n**Invalid examples:**\n\n- `123 Calle Principal` (starts with a number)\n \n- `Calle @$% 123` (contains invalid special characters)\n \n- `Dirección <>` (contains angle brackets)\n \n\n### Payload for Custom Sell\n\nThe following payload is required for performing a custom sell:\n\n> **Note:** According to the provider's official documentation, the `name` and `lastName` fields are mandatory. \n \n\n- `productId`: (number, required) Identifies the product for which the sale is being made.\n \n- `data`: (object, required) Contains specific sale data.\n \n - `license`: (string, required) License plate of the vehicle.\n \n - `productId`: (string, required) Product identification (empty in this example).\n \n - `cellphone`: (string, required) User's cellphone number.\n \n - `document`: (string, required) User's document number. For NIT, this field must include the verification digit and must be sent **without hyphen (-)**.\n \n - `terminal`:\n \n - `id`: A unique identifier for the merchant (POS) that is generating the SOAT sale transaction for the API client. If there is no merchant under the API client's network, the same merchant ID assigned by Refacil should be sent in the `id` field.\n \n - `amount`: (object, required) Details about the sale amount.\n \n - `TariffCode`: (string, required) Tariff code.\n \n - `InsurancePremium`: (number, required) Insurance premium.\n \n - `InsuranceTax`: (number, required) Insurance tax.\n \n - `InsuranceFine`: (number, required) Insurance fine.\n \n - `Total`: (number, required) Total.\n \n - `TotalWithDiscountAmount`: (number, required) Total with discount amount.\n \n - `DiscountAmount`: (number, required) Discount amount.\n \n - `ElectricDiscount`: (numbe, requiredr) Electric discount.\n \n - `PercentageElectricDiscount`: (number, required) Percentage electric discount.\n \n - `InsurancePremiumFormatted`: (string, required) Formatted insurance premium.\n \n - `InsuranceTaxFormatted`: (string, required) Formatted insurance tax.\n \n - `InsuranceFineFormatted`: (string, required) Formatted insurance fine.\n \n - `TotalFormatted`: (string, required) Formatted total.\n \n - `DiscountAmountFormatted`: (string, required) Formatted discount amount.\n \n - `TotalWithDiscountAmountFormatted`: (string, required) Formatted total with discount amount.\n \n - `createdAt`: (string, required) Creation date.\n \n - `dateStart`: (string, required) Start date.\n \n - `dateEnd`: (string, required) End date.\n \n - `amount`: (number, required) Amount.\n \n - `amountDiscount`: (number, required) Discount amount.\n \n - `amountOthers`: (number, required) Other amounts.\n \n - `amountTotal`: (number, required) Total amount.\n \n - `hash`: (string, required) Hash.\n \n - `runt`: (number, required) Value for RUNT.\n \n - `codeFasecolda`: (number, required) Fasecolda code.\n \n - `typeCost`: (number, required) Cost type.\n \n - `Law2161Discount`: (number, required) Law 2161 discount.\n \n - `discount`: (number, required) Discount.\n \n - `vehDetail`: (object) Vehicle details.\n \n - `vehicleLineId`: (number, required) Vehicle line ID.\n \n - `vehicleClassId`: (number, required) Vehicle class ID.\n \n - `vehicleClassMinistryId`: (number, required) Vehicle class ID (Ministry).\n \n - `serviceTypeId`: (number, required) Service type ID.\n \n - `vehicleBodyTypeId`: (number, required) Vehicle body type ID.\n \n - `vehicleDescription`: (string, required) Vehicle description.\n \n - `vehDescription`: (string, required) Vehicle description.\n \n - `queryId`: (string, required) Query ID.\n \n - `noSerie`: (string, required) Serial number.\n \n - `noMotor`: (string, required) Motor number. If this field is empty, it must be filled with the value from the VIN field.\n \n - `noChasis`: (string, required) Chassis number.\n \n - `cc`: (number, required) Cubic centimeters.\n \n - `type`: (string, required) Type.\n \n - `gas`: (string, required) Gas.\n \n - `year`: (number, required) Year.\n \n - `passengers`: (number, required) Passengers.\n \n - `brand`: (string, required) Brand.\n \n - `brandId`: (number, required) Brand ID.\n \n - `vin`: (string, required) Vehicle identification number (VIN).\n \n - `lineCode`: (string, required) Line code.\n \n - `service`: (string, required) Service.\n \n - `zone`: (string, required) Zone.\n \n - `weight`: (number, required) Weight.\n \n - `cityId`: (number, required) City ID.\n \n - `userDetail`: (object, required) User details.\n \n - `name`: (string) User's name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `lastName`: (string, required) User's last name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `docNumber`: (string, required) User's document number.\n \n - `cellphone`: (string) User's cellphone number. Must be a valid Colombian cellphone number starting with \"3\" followed by exactly 9 digits (e.g., \"3001234567\").\n \n - `email`: (string, required) User's email. Must be a valid email address format (e.g., \"[user@domain.com](https://mailto:user@domain.com)\").\n \n - `phone`: (string) User's phone.\n \n - `docType`: (number, required) User's document type.\n \n - `address`: (string, required) User's address.\n \n - `cityCode`: (integer, required) User's city code.\n \n - `stateCode`: (integer, required) User's state code.\n \n - `addressType`: (number, required) User's address type.\n \n - `typePerson`: (string) Type of person (e.g., 'F' for natural person, 'J' for legal person).\n \n - `gender`: (string) User's gender.\n \n - `RegimenTypeId`: (string, required) User's regime type ID.\n \n - `RutId`: (number, required) User's RUT ID.\n \n- `amount`: (number, required) Total amount of the sale.\n \n- `moveTmpBalance`: (boolean) Indicates whether to move temporary balance.\n \n\n`Note`: If the VIN data is not available, the API will use the chassis number as a replacement.\n\nAfter the sale has been successfully completed, the response will follow a structure similar to the following. **This response will be returned within a timeout of 120,000 milliseconds (2 minutes).** In this response, important information is provided, such as the balance of the main wallet and the balance of the profit wallet. Additionally, within the 'billData' object, you will find the fundamental information necessary to generate the sales receipt that will be delivered to the end customer.\n\n"
|
|
47
|
+
"content": "# Previsora\n\nHere you will find all the endpoints related to the sale of SOAT PREVISORA.\n\n## Timeout Configuration\n\nThe following timeout values are configured for PREVISORA provider operations:\n\n| Provider | Min (seconds) | Max (seconds) | Timeout (seconds) |\n| --- | --- | --- | --- |\n| PREVISORA | 0 | 300 | 300 |\n\n**Important:**\n\nBased on the current operation of the insurance company **PREVISORA**, the waiting time (timeout) for sales processing has been adjusted to **5 minutes (300 seconds)**. This change addresses the need to ensure that all transactions are processed correctly, even in scenarios where delays may occur.\n\nIn addition, the API guarantees up to **2 automatic retries** in case a timeout occurs during processing. Although this behavior is not common in the API solution, it has been implemented to ensure the continuity and success of sales operations.\n\nIt is recommended to take this configuration into account when implementing integrations with PREVISORA services, in order to ensure proper error handling and an optimal user experience.\n\n## Test Environment\n\n### Available Test Scenarios\n\nTo test error scenarios and different response types, the following vehicle license plates are available:\n\n#### Error Handling\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| All | TIM001 | Timeout | Simulates timeout scenario |\n| All | ERR400 | System Error | Ocurrió un error inesperado. Consulte con el Administrador del sistema |\n| All | ERR401 | Authentication Error | No ha sido posible autenticarse, el token es incorrecto o el usuario no se encuentra activo |\n\n#### Quote Operations\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| Quote | ABC123 | Success Standard | Success: Vehículo, camioneta, bus |\n| Quote | ABC124 | Success with Discount | Standard vehicle with discount applied |\n| Quote | ABC125 | Electric Vehicle | Electric car pricing |\n| Quote | ABC126 | Law Discount | Legal discount application |\n| Quote | ABC127 | Transit Authority Error | La placa no está asociada a algún organismo de tránsito |\n\n#### Issue Operations\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| Issue | ABC123 | Success Standard | Success: Vehículo, camioneta, bus |\n| Issue | ABC124 | Success with Discount | Successfully issued with discount |\n\n#### Consult Operations\n\n| Method | Plate | Scenario | Description |\n| --- | --- | --- | --- |\n| Consult | ABC123 | Issued | Policy has been issued |\n| Consult | ABC124 | Not Issued | Policy has not been issued |\n\n### Usage Notes\n\n- **Test Plates**: Use the provided test plates to simulate different scenarios during development and testing\n \n- **Error Simulation**: TIM001 and ERR-prefixed plates are specifically designed to test error handling\n \n- **Success Flows**: ABC123 generally represents successful operations across different methods\n \n- **Edge Cases**: ABC124-ABC127 cover various business scenarios including discounts and restrictions\n \n- There is a complementary file containing additional test scenarios not listed in this documentation. You can access it here: [Additional Test Scenarios Folder](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n\n## Endpoints\n\n### query | Quote\n\n**Method**: `POST`\n\n**Path**: `/product/query`\n\n`Allows performing a custom query on the platform. Send the request body with the necessary parameters for the query in the format specified by the QueryBody object. The response will include the results of the query in case of success.`\n\nThe following is an example of a SOAT insurance request for a vehicle. The following required data must be provided: productId (in this case, 1014006), queryType (in this case SOATFullData), document number and vehicle registration number.\n\n**Note:**\n\nIt is important to remember that in the response of this product, several of its data points are crucial as they must be sent in the service that performs the sale (/sells/sell). The necessary data are as follows: amount, vehDetail, and userDetail.\n\n### Payload for Custom Query\n\nThe following payload is required for performing a custom query:\n\n- `productId`: (number, required) Identifies the product for which the query is being made.\n\n- `documentType`: (number, required) Specifies the type of document. Allowed values:\n \n - `1`: CEDULA DE CIUDADANIA\n - `2`: CEDULA DE EXTRANJERIA\n - `3`: NIT\n - `4`: TARJETA DE IDENTIDAD\n \n- `document`: (string, required) The document number for identification purposes.\n \n Length validation rules based on `documentType`:\n \n - **For `documentType = 1` (CEDULA DE CIUDADANIA)**:\n - Minimum length: 7 numeric characters\n - Maximum length: 10 numeric characters\n \n - **For `documentType = 2` (CEDULA DE EXTRANJERIA)**:\n - Minimum length: 5 characters (alphanumeric allowed)\n - Maximum length: 15 characters (alphanumeric allowed)\n \n - **For `documentType = 3` (NIT)**:\n - Minimum length: 6 numeric characters (includes verification digit – VD)\n - Maximum length: 11 numeric characters (includes VD)\n - Must be sent **without hyphen (-)** and must include the verification digit.\n \n Additional rules based on length:\n - If length is 11, must start with \"1\" → (new CC + VD)\n - If length is 10, must start with \"8\" or \"9\" → (NIT + VD)\n - If length is 9 or less, can start with any digit → (old CC + VD)\n \n 💡 **VD (Verification Digit)**: A verification digit is a number mathematically calculated by DIAN (Dirección de Impuestos y Aduanas Nacionales) to validate that the NIT was entered correctly. It is included as part of the document number.\n \n - **For `documentType = 4` (TARJETA DE IDENTIDAD)**:\n - Minimum length: 10 numeric characters\n - Maximum length: 11 numeric characters\n \n \n- `queryType`: (string, required) Specifies the type of query to be performed.\n \n- `license`: (string, required) The license plate of the vehicle.\n\n### query | Consult\n\n**Method**: `POST`\n\n**Path**: `/product/query`\n\n`Returns the information of the last policy issued for the license plate. If the policy is queried on days after its issuance, the service will not return the requested information. It is important to clarify that this endpoint does not retrieve failed sales in the system.`\n\n### Payload for Consult Query\n\nThe following payload is required for performing a custom query:\n\n- `productId`: (number, required) Identifies the product for which the query is being made.\n \n- `queryType`: (string, required) Specifies the type of query to be performed, in this case have to be \\`SOATPolicy\\`.\n \n- `license`: (string, required) The license plate of the vehicle.\n\n### sell | Previsora\n\n**Method**: `POST`\n\n**Path**: `/sells/sell`\n\n`Allows performing a sale on the platform. Send the request body with the necessary parameters for the sale in the format specified by the SellBody object. This operation will return a response that includes information about the sale in case of success.`\n\n**Product restrictions**\n\n- Allows selling SOAT in the name of a person who is not the owner of the vehicle.\n \n- SOAT can be sold for a PRIVATE CAR.\n \n- SOAT can be sold for a PRIVATE MOTORCYCLE.\n \n- SOAT can be sold for a PUBLIC SERVICE VEHICLE.\n \n- SOAT cannot be sold to vehicles with 0 KM.\n \n- Sales hours are from 12:30 AM to 11:30 PM.\n \n- SOAT can be sold up to 30 days before its expiration.\n \n- The definition of the Administrative Cost and Commission for the sale of SOAT can be validated with your Refacil Commercial Advisor.\n \n- The insurance companies are directly responsible for sending the issued SOAT via email. The API provides a URL from the provider for downloading the SOAT.\n \n\nExample of a payment request for the Previsora product. The necessary information is provided, such as the productId (in this case, 1014006) and other relevant data, all attributes are mandatory.\n\n**Note:**\n\nIt is important to remember that to perform a sale using this service, several crucial data points must be sent. Some of these data points are obtained from the `/products/query` Quote Service. The necessary data are as follows: `amount`, `vehDetail`, and `userDetail`.\n\nSome data obtained from the /products/query service may be null; however, this data is mandatory for the sale process and must be filled in.\n\nIn addition to the `userDetail` object, three additional attributes must be sent: `gender`, `RegimenTypeId`, and `RutId`.\n\nThe possible values for each of the aforementioned attributes are as follows:\n\n- `gender`:\n \n - M = Male\n \n - F = Female\n \n- `RegimenTypeId`:\n \n - 1 = Responsible for IVA\n \n - 2 = Not responsible for IVA\n \n- `RutId`:\n \n - 1 = Large taxpayer\n \n - 2 = Self-withholding agent\n \n - 3 = IVA withholding agent\n \n - 4 = Simple taxation regime\n \n - 5 = Not applicable\n \n - 6 = Large taxpayer-Self-withholding agent-IVA withholding agent\n \n - 7 = Self-withholding agent-IVA withholding agent\n \n - 8 = Large taxpayer-IVA withholding agent\n \n- `cityCode`: DANE code\n \n- `stateCode`: This field is populated based on the **state** sheet [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n- To check the values for the other parameters, please refer [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n\n## Field Validations\n\n### **Name and Last Name Format Requirements**\n\nThe validation rules for the `name` and `lastName` fields in the `userDetail` object depend on the person type:\n\n**For Natural Persons (Personas Naturales):**\n\n- Must contain only letters (uppercase and lowercase)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words (for compound names)\n \n- Minimum length of 3 characters\n \n- Does not allow numbers\n \n- Does not allow special characters such as `@`, `#`\n \n\n**For Legal Entities (Personas Jurídicas):**\n\n- Allows alphanumeric characters (letters and numbers)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words\n \n- Minimum length of 3 characters\n \n- Does not allow special characters such as `@`, `#`\n \n\n### Email Format Requirements\n\nThe `email` field must comply with strict validation rules to prevent errors during the issuance process:\n\n- Must contain only letters and numbers (no accents or special characters like á, é, etc.)\n \n- Allows only single separators: `.` (period), `_` (underscore), `-` (hyphen)\n \n- Cannot have consecutive separators (e.g., `..` or `--`)\n \n- Cannot start or end with separators\n \n- Domain must have at least 2 characters in the top-level domain (TLD)\n \n- Must not contain spaces or the `@` symbol except as the domain separator\n \n\n**Valid examples:**\n\n- `usuario@gmail.com`\n \n- `nombre.apellido@empresa.co`\n \n- `user_name@dominio.com`\n \n- `user-123@test.com.co`\n \n\n**Invalid examples:**\n\n- `usuario.@gmail.com` (separator at the end before @)\n \n- `user..name@domain.com` (consecutive separators)\n \n- `@domain.com` (missing local part)\n \n- `usuarioá@gmail.com` (contains accented characters)\n \n- `campohernández@gmail.com` (contains special characters with encoding issues)\n \n- `johndoe@---gmail.com` (multiple consecutive hyphens)\n \n\n### Address Format Requirements\n\nThe `address` field must comply with the following validation rules:\n\n### Validation Rules\n\n1. **Cannot start with numeric characters** - The first character after trimming cannot be a digit (0-9)\n2. **First character must be**:\n - A letter (uppercase or lowercase): `A-Z`, `a-z`\n - A vowel with Spanish acute accent: `á`, `é`, `í`, `ó`, `ú`, `Á`, `É`, `Í`, `Ó`, `Ú`\n - The letter ñ/Ñ\n - The letter ü/Ü (with diaeresis)\n - A whitespace character (space, tab, etc.) — though after `trim()`, this is effectively not possible at the start\n3. **Subsequent characters (position 2 onwards) can be**:\n - All characters allowed for the first position, plus:\n - Digits: `0-9`\n - Special address characters: `#`, `-`, `.`, `,`\n\n### Allowed Characters Summary\n\n| Category | Characters |\n| --- | --- |\n| Letters (no accent) | `A-Z`, `a-z` |\n| Accented vowels | `á`, `é`, `í`, `ó`, `ú`, `Á`, `É`, `Í`, `Ó`, `Ú` |\n| Special Spanish letters | `ñ`, `Ñ`, `ü`, `Ü` |\n| Digits (not at start) | `0-9` |\n| Whitespace | Space, tab, etc. |\n| Address symbols | `#`, `-`, `.`, `,` |\n\n### NOT Allowed Characters\n\n| Category | Examples |\n| --- | --- |\n| Other punctuation | `; : ! ? ¡ ¿ \" ' ( ) [ ] { }` |\n| Mathematical/monetary | `+ * / % = < > ^ ~ € $ @ &` |\n| Underscore and separators | `_ | \\` |\n| Other accented letters | `ç`, `ã`, `õ`, `ô`, `ä`, `ö`, `ê`, `â`, `î`, `û` |\n| Non-Latin alphabets | Cyrillic, Greek, Arabic, Chinese, etc. |\n| Emojis | 🙂 😁 🏠 |\n\n### Valid Examples\n\n- `Calle 123 #45-67`\n- `Carrera 7 Bis #8-24`\n- `Avenida Principal, Casa 5`\n- `Avenida Pérez Galdós`\n- `Av. Simón Bolívar 123`\n- `Cl 10 Sur #45-20`\n- `Urbanización La Ñora, Bloque 3`\n\n### Invalid Examples\n\n| Address | Reason |\n| --- | --- |\n| `123 Calle Principal` | Starts with a number |\n| `Calle @Principal` | Contains `@` (not allowed) |\n| `Dirección <>` | Contains angle brackets |\n| `Calle_45 #12-34` | Contains underscore `_` |\n| `Calle 5 #12-34!` | Contains exclamation mark `!` |\n| `Rua São Paulo 10` | Contains `ã` (not in allowed accents) |\n| `Avenida (Frente al parque)` | Contains parentheses `()` |\n \n\n### Payload for Custom Sell\n\nThe following payload is required for performing a custom sell:\n\n> **Note:** According to the provider's official documentation, the `name` and `lastName` fields are mandatory. \n \n\n- `productId`: (number, required) Identifies the product for which the sale is being made.\n \n- `data`: (object, required) Contains specific sale data.\n \n - `license`: (string, required) License plate of the vehicle.\n \n - `productId`: (string, required) Product identification (empty in this example).\n \n - `cellphone`: (string, required) User's cellphone number.\n \n - `document`: (string, required) User's document number. For NIT, this field must include the verification digit and must be sent **without hyphen (-)**.\n \n - `terminal`:\n \n - `id`: A unique identifier for the merchant (POS) that is generating the SOAT sale transaction for the API client. If there is no merchant under the API client's network, the same merchant ID assigned by Refacil should be sent in the `id` field.\n \n - `amount`: (object, required) Details about the sale amount.\n \n - `TariffCode`: (string, required) Tariff code.\n \n - `InsurancePremium`: (number, required) Insurance premium.\n \n - `InsuranceTax`: (number, required) Insurance tax.\n \n - `InsuranceFine`: (number, required) Insurance fine.\n \n - `Total`: (number, required) Total.\n \n - `TotalWithDiscountAmount`: (number, required) Total with discount amount.\n \n - `DiscountAmount`: (number, required) Discount amount.\n \n - `ElectricDiscount`: (numbe, requiredr) Electric discount.\n \n - `PercentageElectricDiscount`: (number, required) Percentage electric discount.\n \n - `InsurancePremiumFormatted`: (string, required) Formatted insurance premium.\n \n - `InsuranceTaxFormatted`: (string, required) Formatted insurance tax.\n \n - `InsuranceFineFormatted`: (string, required) Formatted insurance fine.\n \n - `TotalFormatted`: (string, required) Formatted total.\n \n - `DiscountAmountFormatted`: (string, required) Formatted discount amount.\n \n - `TotalWithDiscountAmountFormatted`: (string, required) Formatted total with discount amount.\n \n - `createdAt`: (string, required) Creation date.\n \n - `dateStart`: (string, required) Start date.\n \n - `dateEnd`: (string, required) End date.\n \n - `amount`: (number, required) Amount.\n \n - `amountDiscount`: (number, required) Discount amount.\n \n - `amountOthers`: (number, required) Other amounts.\n \n - `amountTotal`: (number, required) Total amount.\n \n - `hash`: (string, required) Hash.\n \n - `runt`: (number, required) Value for RUNT.\n \n - `codeFasecolda`: (number, required) Fasecolda code.\n \n - `typeCost`: (number, required) Cost type.\n \n - `Law2161Discount`: (number, required) Law 2161 discount.\n \n - `discount`: (number, required) Discount.\n \n - `vehDetail`: (object) Vehicle details.\n \n - `vehicleLineId`: (number, required) Vehicle line ID.\n \n - `vehicleClassId`: (number, required) Vehicle class ID.\n \n - `vehicleClassMinistryId`: (number, required) Vehicle class ID (Ministry).\n \n - `serviceTypeId`: (number, required) Service type ID.\n \n - `vehicleBodyTypeId`: (number, required) Vehicle body type ID.\n \n - `vehicleDescription`: (string, required) Vehicle description.\n \n - `vehDescription`: (string, required) Vehicle description.\n \n - `queryId`: (string, required) Query ID.\n \n - `noSerie`: (string, required) Serial number.\n \n - `noMotor`: (string, required) Motor number. If this field is empty, it must be filled with the value from the VIN field.\n \n - `noChasis`: (string, required) Chassis number.\n \n - `cc`: (number, required) Cubic centimeters.\n \n - `type`: (string, required) Type.\n \n - `gas`: (string, required) Gas.\n \n - `year`: (number, required) Year.\n \n - `passengers`: (number, required) Passengers.\n \n - `brand`: (string, required) Brand.\n \n - `brandId`: (number, required) Brand ID.\n \n - `vin`: (string, required) Vehicle identification number (VIN).\n \n - `lineCode`: (string, required) Line code.\n \n - `service`: (string, required) Service.\n \n - `zone`: (string, required) Zone.\n \n - `weight`: (number, required) Weight.\n \n - `cityId`: (number, required) City ID.\n \n - `userDetail`: (object, required) User details.\n \n - `name`: (string) User's name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `lastName`: (string, required) User's last name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `docNumber`: (string, required) User's document number.\n \n - `cellphone`: (string) User's cellphone number. Must be a valid Colombian cellphone number starting with \"3\" followed by exactly 9 digits (e.g., \"3001234567\").\n \n - `email`: (string, required) User's email. Must be a valid email address format (e.g., \"[user@domain.com](https://mailto:user@domain.com)\").\n \n - `phone`: (string) User's phone.\n \n - `docType`: (number, required) User's document type.\n \n - `address`: (string, required) User's address.\n \n - `cityCode`: (integer, required) User's city code.\n \n - `stateCode`: (integer, required) User's state code.\n \n - `addressType`: (number, required) User's address type.\n \n - `typePerson`: (string) Type of person (e.g., 'F' for natural person, 'J' for legal person).\n \n - `gender`: (string) User's gender.\n \n - `RegimenTypeId`: (string, required) User's regime type ID.\n \n - `RutId`: (number, required) User's RUT ID.\n \n- `amount`: (number, required) Total amount of the sale.\n \n- `moveTmpBalance`: (boolean) Indicates whether to move temporary balance.\n \n\n`Note`: If the VIN data is not available, the API will use the chassis number as a replacement.\n\nAfter the sale has been successfully completed, the response will follow a structure similar to the following. **This response will be returned within a timeout of 120,000 milliseconds (2 minutes).** In this response, important information is provided, such as the balance of the main wallet and the balance of the profit wallet. Additionally, within the 'billData' object, you will find the fundamental information necessary to generate the sales receipt that will be delivered to the end customer.\n\n"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"uri": "postman://collection/refacil-commerce-api/folder/luck-and-chance",
|
|
@@ -399,9 +399,9 @@ export const resources = [
|
|
|
399
399
|
{
|
|
400
400
|
"uri": "postman://collection/refacil-commerce-api/endpoint/post/sells/sell",
|
|
401
401
|
"name": "POST /sells/sell - Endpoint Documentation",
|
|
402
|
-
"description": "`Allows performing a sale on the platform. Send the request body with the necessary parameters for the sale in the format specified by the SellBody object. This operation will return a response that includes information about the sale in case of success.`\n\n**Product restrictions**\n\n- Allows selling SOAT in the name of a person who is not the owner of the vehicle.\n \n- SOAT can be sold for a PRIVATE CAR.\n \n- SOAT can be sold for a PRIVATE MOTORCYCLE.\n \n- SOAT can be sold for a PUBLIC SERVICE VEHICLE.\n \n- SOAT cannot be sold to vehicles with 0 KM.\n \n- Sales hours are from 12:30 AM to 11:30 PM.\n \n- SOAT can be sold up to 30 days before its expiration.\n \n- The definition of the Administrative Cost and Commission for the sale of SOAT can be validated with your Refacil Commercial Advisor.\n \n- The insurance companies are directly responsible for sending the issued SOAT via email. The API provides a URL from the provider for downloading the SOAT.\n \n\nExample of a payment request for the Previsora product. The necessary information is provided, such as the productId (in this case, 1014006) and other relevant data, all attributes are mandatory.\n\n**Note:**\n\nIt is important to remember that to perform a sale using this service, several crucial data points must be sent. Some of these data points are obtained from the `/products/query` Quote Service. The necessary data are as follows: `amount`, `vehDetail`, and `userDetail`.\n\nSome data obtained from the /products/query service may be null; however, this data is mandatory for the sale process and must be filled in.\n\nIn addition to the `userDetail` object, three additional attributes must be sent: `gender`, `RegimenTypeId`, and `RutId`.\n\nThe possible values for each of the aforementioned attributes are as follows:\n\n- `gender`:\n \n - M = Male\n \n - F = Female\n \n- `RegimenTypeId`:\n \n - 1 = Responsible for IVA\n \n - 2 = Not responsible for IVA\n \n- `RutId`:\n \n - 1 = Large taxpayer\n \n - 2 = Self-withholding agent\n \n - 3 = IVA withholding agent\n \n - 4 = Simple taxation regime\n \n - 5 = Not applicable\n \n - 6 = Large taxpayer-Self-withholding agent-IVA withholding agent\n \n - 7 = Self-withholding agent-IVA withholding agent\n \n - 8 = Large taxpayer-IVA withholding agent\n \n- `cityCode`: DANE code\n \n- `stateCode`: This field is populated based on the **state** sheet [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n- To check the values for the other parameters, please refer [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n\n## Field Validations\n\n### **Name and Last Name Format Requirements**\n\nThe validation rules for the `name` and `lastName` fields in the `userDetail` object depend on the person type:\n\n**For Natural Persons (Personas Naturales):**\n\n- Must contain only letters (uppercase and lowercase)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words (for compound names)\n \n- Minimum length of 3 characters\n \n- Does not allow numbers\n \n- Does not allow special characters such as `@`, `#`\n \n\n**For Legal Entities (Personas Jurídicas):**\n\n- Allows alphanumeric characters (letters and numbers)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words\n \n- Minimum length of 3 characters\n \n- Does not allow special characters such as `@`, `#`\n \n\n### Email Format Requirements\n\nThe `email` field must comply with strict validation rules to prevent errors during the issuance process:\n\n- Must contain only letters and numbers (no accents or special characters like á, é, etc.)\n \n- Allows only single separators: `.` (period), `_` (underscore), `-` (hyphen)\n \n- Cannot have consecutive separators (e.g., `..` or `--`)\n \n- Cannot start or end with separators\n \n- Domain must have at least 2 characters in the top-level domain (TLD)\n \n- Must not contain spaces or the `@` symbol except as the domain separator\n \n\n**Valid examples:**\n\n- `usuario@gmail.com`\n \n- `nombre.apellido@empresa.co`\n \n- `user_name@dominio.com`\n \n- `user-123@test.com.co`\n \n\n**Invalid examples:**\n\n- `usuario.@gmail.com` (separator at the end before @)\n \n- `user..name@domain.com` (consecutive separators)\n \n- `@domain.com` (missing local part)\n \n- `usuarioá@gmail.com` (contains accented characters)\n \n- `campohernández@gmail.com` (contains special characters with encoding issues)\n \n- `johndoe@---gmail.com` (multiple consecutive hyphens)\n \n\n### Address Format Requirements\n\nThe `address` field must comply with the following validation rules:\n\n- Cannot start with numeric characters\n \n- Must start with a letter (with or without accents)\n \n- Allows only standard alphanumeric characters\n \n- Allows basic special characters: `#`, `-`, `.`, `,`\n \n- Allows letters with accents and `ñ`\n \n- Does not allow anomalous special characters\n \n\n**Valid examples:**\n\n- `Calle 123 #45-67`\n \n- `Carrera 7 Bis #8-24`\n \n- `Avenida Principal, Casa 5`\n \n- `Avenida Pérez Galdós`\n \n\n**Invalid examples:**\n\n- `123 Calle Principal` (starts with a number)\n \n- `Calle @$% 123` (contains invalid special characters)\n \n- `Dirección <>` (contains angle brackets)\n \n\n### Payload for Custom Sell\n\nThe following payload is required for performing a custom sell:\n\n> **Note:** According to the provider's official documentation, the `name` and `lastName` fields are mandatory. \n \n\n- `productId`: (number, required) Identifies the product for which the sale is being made.\n \n- `data`: (object, required) Contains specific sale data.\n \n - `license`: (string, required) License plate of the vehicle.\n \n - `productId`: (string, required) Product identification (empty in this example).\n \n - `cellphone`: (string, required) User's cellphone number.\n \n - `document`: (string, required) User's document number. For NIT, this field must include the verification digit and must be sent **without hyphen (-)**.\n \n - `terminal`:\n \n - `id`: A unique identifier for the merchant (POS) that is generating the SOAT sale transaction for the API client. If there is no merchant under the API client's network, the same merchant ID assigned by Refacil should be sent in the `id` field.\n \n - `amount`: (object, required) Details about the sale amount.\n \n - `TariffCode`: (string, required) Tariff code.\n \n - `InsurancePremium`: (number, required) Insurance premium.\n \n - `InsuranceTax`: (number, required) Insurance tax.\n \n - `InsuranceFine`: (number, required) Insurance fine.\n \n - `Total`: (number, required) Total.\n \n - `TotalWithDiscountAmount`: (number, required) Total with discount amount.\n \n - `DiscountAmount`: (number, required) Discount amount.\n \n - `ElectricDiscount`: (numbe, requiredr) Electric discount.\n \n - `PercentageElectricDiscount`: (number, required) Percentage electric discount.\n \n - `InsurancePremiumFormatted`: (string, required) Formatted insurance premium.\n \n - `InsuranceTaxFormatted`: (string, required) Formatted insurance tax.\n \n - `InsuranceFineFormatted`: (string, required) Formatted insurance fine.\n \n - `TotalFormatted`: (string, required) Formatted total.\n \n - `DiscountAmountFormatted`: (string, required) Formatted discount amount.\n \n - `TotalWithDiscountAmountFormatted`: (string, required) Formatted total with discount amount.\n \n - `createdAt`: (string, required) Creation date.\n \n - `dateStart`: (string, required) Start date.\n \n - `dateEnd`: (string, required) End date.\n \n - `amount`: (number, required) Amount.\n \n - `amountDiscount`: (number, required) Discount amount.\n \n - `amountOthers`: (number, required) Other amounts.\n \n - `amountTotal`: (number, required) Total amount.\n \n - `hash`: (string, required) Hash.\n \n - `runt`: (number, required) Value for RUNT.\n \n - `codeFasecolda`: (number, required) Fasecolda code.\n \n - `typeCost`: (number, required) Cost type.\n \n - `Law2161Discount`: (number, required) Law 2161 discount.\n \n - `discount`: (number, required) Discount.\n \n - `vehDetail`: (object) Vehicle details.\n \n - `vehicleLineId`: (number, required) Vehicle line ID.\n \n - `vehicleClassId`: (number, required) Vehicle class ID.\n \n - `vehicleClassMinistryId`: (number, required) Vehicle class ID (Ministry).\n \n - `serviceTypeId`: (number, required) Service type ID.\n \n - `vehicleBodyTypeId`: (number, required) Vehicle body type ID.\n \n - `vehicleDescription`: (string, required) Vehicle description.\n \n - `vehDescription`: (string, required) Vehicle description.\n \n - `queryId`: (string, required) Query ID.\n \n - `noSerie`: (string, required) Serial number.\n \n - `noMotor`: (string, required) Motor number. If this field is empty, it must be filled with the value from the VIN field.\n \n - `noChasis`: (string, required) Chassis number.\n \n - `cc`: (number, required) Cubic centimeters.\n \n - `type`: (string, required) Type.\n \n - `gas`: (string, required) Gas.\n \n - `year`: (number, required) Year.\n \n - `passengers`: (number, required) Passengers.\n \n - `brand`: (string, required) Brand.\n \n - `brandId`: (number, required) Brand ID.\n \n - `vin`: (string, required) Vehicle identification number (VIN).\n \n - `lineCode`: (string, required) Line code.\n \n - `service`: (string, required) Service.\n \n - `zone`: (string, required) Zone.\n \n - `weight`: (number, required) Weight.\n \n - `cityId`: (number, required) City ID.\n \n - `userDetail`: (object, required) User details.\n \n - `name`: (string) User's name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `lastName`: (string, required) User's last name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `docNumber`: (string, required) User's document number.\n \n - `cellphone`: (string) User's cellphone number. Must be a valid Colombian cellphone number starting with \"3\" followed by exactly 9 digits (e.g., \"3001234567\").\n \n - `email`: (string, required) User's email. Must be a valid email address format (e.g., \"[user@domain.com](https://mailto:user@domain.com)\").\n \n - `phone`: (string) User's phone.\n \n - `docType`: (number, required) User's document type.\n \n - `address`: (string, required) User's address.\n \n - `cityCode`: (integer, required) User's city code.\n \n - `stateCode`: (integer, required) User's state code.\n \n - `addressType`: (number, required) User's address type.\n \n - `typePerson`: (string) Type of person (e.g., 'F' for natural person, 'J' for legal person).\n \n - `gender`: (string) User's gender.\n \n - `RegimenTypeId`: (string, required) User's regime type ID.\n \n - `RutId`: (number, required) User's RUT ID.\n \n- `amount`: (number, required) Total amount of the sale.\n \n- `moveTmpBalance`: (boolean) Indicates whether to move temporary balance.\n \n\n`Note`: If the VIN data is not available, the API will use the chassis number as a replacement.\n\nAfter the sale has been successfully completed, the response will follow a structure similar to the following. **This response will be returned within a timeout of 120,000 milliseconds (2 minutes).** In this response, important information is provided, such as the balance of the main wallet and the balance of the profit wallet. Additionally, within the 'billData' object, you will find the fundamental information necessary to generate the sales receipt that will be delivered to the end customer.",
|
|
402
|
+
"description": "`Allows performing a sale on the platform. Send the request body with the necessary parameters for the sale in the format specified by the SellBody object. This operation will return a response that includes information about the sale in case of success.`\n\n**Product restrictions**\n\n- Allows selling SOAT in the name of a person who is not the owner of the vehicle.\n \n- SOAT can be sold for a PRIVATE CAR.\n \n- SOAT can be sold for a PRIVATE MOTORCYCLE.\n \n- SOAT can be sold for a PUBLIC SERVICE VEHICLE.\n \n- SOAT cannot be sold to vehicles with 0 KM.\n \n- Sales hours are from 12:30 AM to 11:30 PM.\n \n- SOAT can be sold up to 30 days before its expiration.\n \n- The definition of the Administrative Cost and Commission for the sale of SOAT can be validated with your Refacil Commercial Advisor.\n \n- The insurance companies are directly responsible for sending the issued SOAT via email. The API provides a URL from the provider for downloading the SOAT.\n \n\nExample of a payment request for the Previsora product. The necessary information is provided, such as the productId (in this case, 1014006) and other relevant data, all attributes are mandatory.\n\n**Note:**\n\nIt is important to remember that to perform a sale using this service, several crucial data points must be sent. Some of these data points are obtained from the `/products/query` Quote Service. The necessary data are as follows: `amount`, `vehDetail`, and `userDetail`.\n\nSome data obtained from the /products/query service may be null; however, this data is mandatory for the sale process and must be filled in.\n\nIn addition to the `userDetail` object, three additional attributes must be sent: `gender`, `RegimenTypeId`, and `RutId`.\n\nThe possible values for each of the aforementioned attributes are as follows:\n\n- `gender`:\n \n - M = Male\n \n - F = Female\n \n- `RegimenTypeId`:\n \n - 1 = Responsible for IVA\n \n - 2 = Not responsible for IVA\n \n- `RutId`:\n \n - 1 = Large taxpayer\n \n - 2 = Self-withholding agent\n \n - 3 = IVA withholding agent\n \n - 4 = Simple taxation regime\n \n - 5 = Not applicable\n \n - 6 = Large taxpayer-Self-withholding agent-IVA withholding agent\n \n - 7 = Self-withholding agent-IVA withholding agent\n \n - 8 = Large taxpayer-IVA withholding agent\n \n- `cityCode`: DANE code\n \n- `stateCode`: This field is populated based on the **state** sheet [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n- To check the values for the other parameters, please refer [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n\n## Field Validations\n\n### **Name and Last Name Format Requirements**\n\nThe validation rules for the `name` and `lastName` fields in the `userDetail` object depend on the person type:\n\n**For Natural Persons (Personas Naturales):**\n\n- Must contain only letters (uppercase and lowercase)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words (for compound names)\n \n- Minimum length of 3 characters\n \n- Does not allow numbers\n \n- Does not allow special characters such as `@`, `#`\n \n\n**For Legal Entities (Personas Jurídicas):**\n\n- Allows alphanumeric characters (letters and numbers)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words\n \n- Minimum length of 3 characters\n \n- Does not allow special characters such as `@`, `#`\n \n\n### Email Format Requirements\n\nThe `email` field must comply with strict validation rules to prevent errors during the issuance process:\n\n- Must contain only letters and numbers (no accents or special characters like á, é, etc.)\n \n- Allows only single separators: `.` (period), `_` (underscore), `-` (hyphen)\n \n- Cannot have consecutive separators (e.g., `..` or `--`)\n \n- Cannot start or end with separators\n \n- Domain must have at least 2 characters in the top-level domain (TLD)\n \n- Must not contain spaces or the `@` symbol except as the domain separator\n \n\n**Valid examples:**\n\n- `usuario@gmail.com`\n \n- `nombre.apellido@empresa.co`\n \n- `user_name@dominio.com`\n \n- `user-123@test.com.co`\n \n\n**Invalid examples:**\n\n- `usuario.@gmail.com` (separator at the end before @)\n \n- `user..name@domain.com` (consecutive separators)\n \n- `@domain.com` (missing local part)\n \n- `usuarioá@gmail.com` (contains accented characters)\n \n- `campohernández@gmail.com` (contains special characters with encoding issues)\n \n- `johndoe@---gmail.com` (multiple consecutive hyphens)\n \n\n### Address Format Requirements\n\nThe `address` field must comply with the following validation rules:\n\n### Validation Rules\n\n1. **Cannot start with numeric characters** - The first character after trimming cannot be a digit (0-9)\n2. **First character must be**:\n - A letter (uppercase or lowercase): `A-Z`, `a-z`\n - A vowel with Spanish acute accent: `á`, `é`, `í`, `ó`, `ú`, `Á`, `É`, `Í`, `Ó`, `Ú`\n - The letter ñ/Ñ\n - The letter ü/Ü (with diaeresis)\n - A whitespace character (space, tab, etc.) — though after `trim()`, this is effectively not possible at the start\n3. **Subsequent characters (position 2 onwards) can be**:\n - All characters allowed for the first position, plus:\n - Digits: `0-9`\n - Special address characters: `#`, `-`, `.`, `,`\n\n### Allowed Characters Summary\n\n| Category | Characters |\n| --- | --- |\n| Letters (no accent) | `A-Z`, `a-z` |\n| Accented vowels | `á`, `é`, `í`, `ó`, `ú`, `Á`, `É`, `Í`, `Ó`, `Ú` |\n| Special Spanish letters | `ñ`, `Ñ`, `ü`, `Ü` |\n| Digits (not at start) | `0-9` |\n| Whitespace | Space, tab, etc. |\n| Address symbols | `#`, `-`, `.`, `,` |\n\n### NOT Allowed Characters\n\n| Category | Examples |\n| --- | --- |\n| Other punctuation | `; : ! ? ¡ ¿ \" ' ( ) [ ] { }` |\n| Mathematical/monetary | `+ * / % = < > ^ ~ € $ @ &` |\n| Underscore and separators | `_ | \\` |\n| Other accented letters | `ç`, `ã`, `õ`, `ô`, `ä`, `ö`, `ê`, `â`, `î`, `û` |\n| Non-Latin alphabets | Cyrillic, Greek, Arabic, Chinese, etc. |\n| Emojis | 🙂 😁 🏠 |\n\n### Valid Examples\n\n- `Calle 123 #45-67`\n- `Carrera 7 Bis #8-24`\n- `Avenida Principal, Casa 5`\n- `Avenida Pérez Galdós`\n- `Av. Simón Bolívar 123`\n- `Cl 10 Sur #45-20`\n- `Urbanización La Ñora, Bloque 3`\n\n### Invalid Examples\n\n| Address | Reason |\n| --- | --- |\n| `123 Calle Principal` | Starts with a number |\n| `Calle @Principal` | Contains `@` (not allowed) |\n| `Dirección <>` | Contains angle brackets |\n| `Calle_45 #12-34` | Contains underscore `_` |\n| `Calle 5 #12-34!` | Contains exclamation mark `!` |\n| `Rua São Paulo 10` | Contains `ã` (not in allowed accents) |\n| `Avenida (Frente al parque)` | Contains parentheses `()` |\n \n\n### Payload for Custom Sell\n\nThe following payload is required for performing a custom sell:\n\n> **Note:** According to the provider's official documentation, the `name` and `lastName` fields are mandatory. \n \n\n- `productId`: (number, required) Identifies the product for which the sale is being made.\n \n- `data`: (object, required) Contains specific sale data.\n \n - `license`: (string, required) License plate of the vehicle.\n \n - `productId`: (string, required) Product identification (empty in this example).\n \n - `cellphone`: (string, required) User's cellphone number.\n \n - `document`: (string, required) User's document number. For NIT, this field must include the verification digit and must be sent **without hyphen (-)**.\n \n - `terminal`:\n \n - `id`: A unique identifier for the merchant (POS) that is generating the SOAT sale transaction for the API client. If there is no merchant under the API client's network, the same merchant ID assigned by Refacil should be sent in the `id` field.\n \n - `amount`: (object, required) Details about the sale amount.\n \n - `TariffCode`: (string, required) Tariff code.\n \n - `InsurancePremium`: (number, required) Insurance premium.\n \n - `InsuranceTax`: (number, required) Insurance tax.\n \n - `InsuranceFine`: (number, required) Insurance fine.\n \n - `Total`: (number, required) Total.\n \n - `TotalWithDiscountAmount`: (number, required) Total with discount amount.\n \n - `DiscountAmount`: (number, required) Discount amount.\n \n - `ElectricDiscount`: (numbe, requiredr) Electric discount.\n \n - `PercentageElectricDiscount`: (number, required) Percentage electric discount.\n \n - `InsurancePremiumFormatted`: (string, required) Formatted insurance premium.\n \n - `InsuranceTaxFormatted`: (string, required) Formatted insurance tax.\n \n - `InsuranceFineFormatted`: (string, required) Formatted insurance fine.\n \n - `TotalFormatted`: (string, required) Formatted total.\n \n - `DiscountAmountFormatted`: (string, required) Formatted discount amount.\n \n - `TotalWithDiscountAmountFormatted`: (string, required) Formatted total with discount amount.\n \n - `createdAt`: (string, required) Creation date.\n \n - `dateStart`: (string, required) Start date.\n \n - `dateEnd`: (string, required) End date.\n \n - `amount`: (number, required) Amount.\n \n - `amountDiscount`: (number, required) Discount amount.\n \n - `amountOthers`: (number, required) Other amounts.\n \n - `amountTotal`: (number, required) Total amount.\n \n - `hash`: (string, required) Hash.\n \n - `runt`: (number, required) Value for RUNT.\n \n - `codeFasecolda`: (number, required) Fasecolda code.\n \n - `typeCost`: (number, required) Cost type.\n \n - `Law2161Discount`: (number, required) Law 2161 discount.\n \n - `discount`: (number, required) Discount.\n \n - `vehDetail`: (object) Vehicle details.\n \n - `vehicleLineId`: (number, required) Vehicle line ID.\n \n - `vehicleClassId`: (number, required) Vehicle class ID.\n \n - `vehicleClassMinistryId`: (number, required) Vehicle class ID (Ministry).\n \n - `serviceTypeId`: (number, required) Service type ID.\n \n - `vehicleBodyTypeId`: (number, required) Vehicle body type ID.\n \n - `vehicleDescription`: (string, required) Vehicle description.\n \n - `vehDescription`: (string, required) Vehicle description.\n \n - `queryId`: (string, required) Query ID.\n \n - `noSerie`: (string, required) Serial number.\n \n - `noMotor`: (string, required) Motor number. If this field is empty, it must be filled with the value from the VIN field.\n \n - `noChasis`: (string, required) Chassis number.\n \n - `cc`: (number, required) Cubic centimeters.\n \n - `type`: (string, required) Type.\n \n - `gas`: (string, required) Gas.\n \n - `year`: (number, required) Year.\n \n - `passengers`: (number, required) Passengers.\n \n - `brand`: (string, required) Brand.\n \n - `brandId`: (number, required) Brand ID.\n \n - `vin`: (string, required) Vehicle identification number (VIN).\n \n - `lineCode`: (string, required) Line code.\n \n - `service`: (string, required) Service.\n \n - `zone`: (string, required) Zone.\n \n - `weight`: (number, required) Weight.\n \n - `cityId`: (number, required) City ID.\n \n - `userDetail`: (object, required) User details.\n \n - `name`: (string) User's name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `lastName`: (string, required) User's last name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `docNumber`: (string, required) User's document number.\n \n - `cellphone`: (string) User's cellphone number. Must be a valid Colombian cellphone number starting with \"3\" followed by exactly 9 digits (e.g., \"3001234567\").\n \n - `email`: (string, required) User's email. Must be a valid email address format (e.g., \"[user@domain.com](https://mailto:user@domain.com)\").\n \n - `phone`: (string) User's phone.\n \n - `docType`: (number, required) User's document type.\n \n - `address`: (string, required) User's address.\n \n - `cityCode`: (integer, required) User's city code.\n \n - `stateCode`: (integer, required) User's state code.\n \n - `addressType`: (number, required) User's address type.\n \n - `typePerson`: (string) Type of person (e.g., 'F' for natural person, 'J' for legal person).\n \n - `gender`: (string) User's gender.\n \n - `RegimenTypeId`: (string, required) User's regime type ID.\n \n - `RutId`: (number, required) User's RUT ID.\n \n- `amount`: (number, required) Total amount of the sale.\n \n- `moveTmpBalance`: (boolean) Indicates whether to move temporary balance.\n \n\n`Note`: If the VIN data is not available, the API will use the chassis number as a replacement.\n\nAfter the sale has been successfully completed, the response will follow a structure similar to the following. **This response will be returned within a timeout of 120,000 milliseconds (2 minutes).** In this response, important information is provided, such as the balance of the main wallet and the balance of the profit wallet. Additionally, within the 'billData' object, you will find the fundamental information necessary to generate the sales receipt that will be delivered to the end customer.",
|
|
403
403
|
"mimeType": "text/markdown",
|
|
404
|
-
"content": "# sell | Previsora\n\n## Request Details\n\n**Method**: `POST`\n\n**Path**: `/sells/sell`\n\n## Description\n\n`Allows performing a sale on the platform. Send the request body with the necessary parameters for the sale in the format specified by the SellBody object. This operation will return a response that includes information about the sale in case of success.`\n\n**Product restrictions**\n\n- Allows selling SOAT in the name of a person who is not the owner of the vehicle.\n \n- SOAT can be sold for a PRIVATE CAR.\n \n- SOAT can be sold for a PRIVATE MOTORCYCLE.\n \n- SOAT can be sold for a PUBLIC SERVICE VEHICLE.\n \n- SOAT cannot be sold to vehicles with 0 KM.\n \n- Sales hours are from 12:30 AM to 11:30 PM.\n \n- SOAT can be sold up to 30 days before its expiration.\n \n- The definition of the Administrative Cost and Commission for the sale of SOAT can be validated with your Refacil Commercial Advisor.\n \n- The insurance companies are directly responsible for sending the issued SOAT via email. The API provides a URL from the provider for downloading the SOAT.\n \n\nExample of a payment request for the Previsora product. The necessary information is provided, such as the productId (in this case, 1014006) and other relevant data, all attributes are mandatory.\n\n**Note:**\n\nIt is important to remember that to perform a sale using this service, several crucial data points must be sent. Some of these data points are obtained from the `/products/query` Quote Service. The necessary data are as follows: `amount`, `vehDetail`, and `userDetail`.\n\nSome data obtained from the /products/query service may be null; however, this data is mandatory for the sale process and must be filled in.\n\nIn addition to the `userDetail` object, three additional attributes must be sent: `gender`, `RegimenTypeId`, and `RutId`.\n\nThe possible values for each of the aforementioned attributes are as follows:\n\n- `gender`:\n \n - M = Male\n \n - F = Female\n \n- `RegimenTypeId`:\n \n - 1 = Responsible for IVA\n \n - 2 = Not responsible for IVA\n \n- `RutId`:\n \n - 1 = Large taxpayer\n \n - 2 = Self-withholding agent\n \n - 3 = IVA withholding agent\n \n - 4 = Simple taxation regime\n \n - 5 = Not applicable\n \n - 6 = Large taxpayer-Self-withholding agent-IVA withholding agent\n \n - 7 = Self-withholding agent-IVA withholding agent\n \n - 8 = Large taxpayer-IVA withholding agent\n \n- `cityCode`: DANE code\n \n- `stateCode`: This field is populated based on the **state** sheet [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n- To check the values for the other parameters, please refer [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n\n## Field Validations\n\n### **Name and Last Name Format Requirements**\n\nThe validation rules for the `name` and `lastName` fields in the `userDetail` object depend on the person type:\n\n**For Natural Persons (Personas Naturales):**\n\n- Must contain only letters (uppercase and lowercase)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words (for compound names)\n \n- Minimum length of 3 characters\n \n- Does not allow numbers\n \n- Does not allow special characters such as `@`, `#`\n \n\n**For Legal Entities (Personas Jurídicas):**\n\n- Allows alphanumeric characters (letters and numbers)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words\n \n- Minimum length of 3 characters\n \n- Does not allow special characters such as `@`, `#`\n \n\n### Email Format Requirements\n\nThe `email` field must comply with strict validation rules to prevent errors during the issuance process:\n\n- Must contain only letters and numbers (no accents or special characters like á, é, etc.)\n \n- Allows only single separators: `.` (period), `_` (underscore), `-` (hyphen)\n \n- Cannot have consecutive separators (e.g., `..` or `--`)\n \n- Cannot start or end with separators\n \n- Domain must have at least 2 characters in the top-level domain (TLD)\n \n- Must not contain spaces or the `@` symbol except as the domain separator\n \n\n**Valid examples:**\n\n- `usuario@gmail.com`\n \n- `nombre.apellido@empresa.co`\n \n- `user_name@dominio.com`\n \n- `user-123@test.com.co`\n \n\n**Invalid examples:**\n\n- `usuario.@gmail.com` (separator at the end before @)\n \n- `user..name@domain.com` (consecutive separators)\n \n- `@domain.com` (missing local part)\n \n- `usuarioá@gmail.com` (contains accented characters)\n \n- `campohernández@gmail.com` (contains special characters with encoding issues)\n \n- `johndoe@---gmail.com` (multiple consecutive hyphens)\n \n\n### Address Format Requirements\n\nThe `address` field must comply with the following validation rules:\n\n- Cannot start with numeric characters\n \n- Must start with a letter (with or without accents)\n \n- Allows only standard alphanumeric characters\n \n- Allows basic special characters: `#`, `-`, `.`, `,`\n \n- Allows letters with accents and `ñ`\n \n- Does not allow anomalous special characters\n \n\n**Valid examples:**\n\n- `Calle 123 #45-67`\n \n- `Carrera 7 Bis #8-24`\n \n- `Avenida Principal, Casa 5`\n \n- `Avenida Pérez Galdós`\n \n\n**Invalid examples:**\n\n- `123 Calle Principal` (starts with a number)\n \n- `Calle @$% 123` (contains invalid special characters)\n \n- `Dirección <>` (contains angle brackets)\n \n\n### Payload for Custom Sell\n\nThe following payload is required for performing a custom sell:\n\n> **Note:** According to the provider's official documentation, the `name` and `lastName` fields are mandatory. \n \n\n- `productId`: (number, required) Identifies the product for which the sale is being made.\n \n- `data`: (object, required) Contains specific sale data.\n \n - `license`: (string, required) License plate of the vehicle.\n \n - `productId`: (string, required) Product identification (empty in this example).\n \n - `cellphone`: (string, required) User's cellphone number.\n \n - `document`: (string, required) User's document number. For NIT, this field must include the verification digit and must be sent **without hyphen (-)**.\n \n - `terminal`:\n \n - `id`: A unique identifier for the merchant (POS) that is generating the SOAT sale transaction for the API client. If there is no merchant under the API client's network, the same merchant ID assigned by Refacil should be sent in the `id` field.\n \n - `amount`: (object, required) Details about the sale amount.\n \n - `TariffCode`: (string, required) Tariff code.\n \n - `InsurancePremium`: (number, required) Insurance premium.\n \n - `InsuranceTax`: (number, required) Insurance tax.\n \n - `InsuranceFine`: (number, required) Insurance fine.\n \n - `Total`: (number, required) Total.\n \n - `TotalWithDiscountAmount`: (number, required) Total with discount amount.\n \n - `DiscountAmount`: (number, required) Discount amount.\n \n - `ElectricDiscount`: (numbe, requiredr) Electric discount.\n \n - `PercentageElectricDiscount`: (number, required) Percentage electric discount.\n \n - `InsurancePremiumFormatted`: (string, required) Formatted insurance premium.\n \n - `InsuranceTaxFormatted`: (string, required) Formatted insurance tax.\n \n - `InsuranceFineFormatted`: (string, required) Formatted insurance fine.\n \n - `TotalFormatted`: (string, required) Formatted total.\n \n - `DiscountAmountFormatted`: (string, required) Formatted discount amount.\n \n - `TotalWithDiscountAmountFormatted`: (string, required) Formatted total with discount amount.\n \n - `createdAt`: (string, required) Creation date.\n \n - `dateStart`: (string, required) Start date.\n \n - `dateEnd`: (string, required) End date.\n \n - `amount`: (number, required) Amount.\n \n - `amountDiscount`: (number, required) Discount amount.\n \n - `amountOthers`: (number, required) Other amounts.\n \n - `amountTotal`: (number, required) Total amount.\n \n - `hash`: (string, required) Hash.\n \n - `runt`: (number, required) Value for RUNT.\n \n - `codeFasecolda`: (number, required) Fasecolda code.\n \n - `typeCost`: (number, required) Cost type.\n \n - `Law2161Discount`: (number, required) Law 2161 discount.\n \n - `discount`: (number, required) Discount.\n \n - `vehDetail`: (object) Vehicle details.\n \n - `vehicleLineId`: (number, required) Vehicle line ID.\n \n - `vehicleClassId`: (number, required) Vehicle class ID.\n \n - `vehicleClassMinistryId`: (number, required) Vehicle class ID (Ministry).\n \n - `serviceTypeId`: (number, required) Service type ID.\n \n - `vehicleBodyTypeId`: (number, required) Vehicle body type ID.\n \n - `vehicleDescription`: (string, required) Vehicle description.\n \n - `vehDescription`: (string, required) Vehicle description.\n \n - `queryId`: (string, required) Query ID.\n \n - `noSerie`: (string, required) Serial number.\n \n - `noMotor`: (string, required) Motor number. If this field is empty, it must be filled with the value from the VIN field.\n \n - `noChasis`: (string, required) Chassis number.\n \n - `cc`: (number, required) Cubic centimeters.\n \n - `type`: (string, required) Type.\n \n - `gas`: (string, required) Gas.\n \n - `year`: (number, required) Year.\n \n - `passengers`: (number, required) Passengers.\n \n - `brand`: (string, required) Brand.\n \n - `brandId`: (number, required) Brand ID.\n \n - `vin`: (string, required) Vehicle identification number (VIN).\n \n - `lineCode`: (string, required) Line code.\n \n - `service`: (string, required) Service.\n \n - `zone`: (string, required) Zone.\n \n - `weight`: (number, required) Weight.\n \n - `cityId`: (number, required) City ID.\n \n - `userDetail`: (object, required) User details.\n \n - `name`: (string) User's name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `lastName`: (string, required) User's last name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `docNumber`: (string, required) User's document number.\n \n - `cellphone`: (string) User's cellphone number. Must be a valid Colombian cellphone number starting with \"3\" followed by exactly 9 digits (e.g., \"3001234567\").\n \n - `email`: (string, required) User's email. Must be a valid email address format (e.g., \"[user@domain.com](https://mailto:user@domain.com)\").\n \n - `phone`: (string) User's phone.\n \n - `docType`: (number, required) User's document type.\n \n - `address`: (string, required) User's address.\n \n - `cityCode`: (integer, required) User's city code.\n \n - `stateCode`: (integer, required) User's state code.\n \n - `addressType`: (number, required) User's address type.\n \n - `typePerson`: (string) Type of person (e.g., 'F' for natural person, 'J' for legal person).\n \n - `gender`: (string) User's gender.\n \n - `RegimenTypeId`: (string, required) User's regime type ID.\n \n - `RutId`: (number, required) User's RUT ID.\n \n- `amount`: (number, required) Total amount of the sale.\n \n- `moveTmpBalance`: (boolean) Indicates whether to move temporary balance.\n \n\n`Note`: If the VIN data is not available, the API will use the chassis number as a replacement.\n\nAfter the sale has been successfully completed, the response will follow a structure similar to the following. **This response will be returned within a timeout of 120,000 milliseconds (2 minutes).** In this response, important information is provided, such as the balance of the main wallet and the balance of the profit wallet. Additionally, within the 'billData' object, you will find the fundamental information necessary to generate the sales receipt that will be delivered to the end customer.\n\n## Headers\n\n- **Authorization**: Bearer {{tokenLoginRegister}}\n\n## Request Body\n\n**Type**: `raw`\n\n```json\n{\n \"productId\": 1014006,\n \"data\": {\n \"license\": \"ABC123\",\n \"productId\": 1014006,\n \"cellphone\": \"3001234567\",\n \"document\": \"1111111\",\n \"terminal\": {\n \"id\": \"123456\"\n },\n \"amount\": {\n \"TariffCode\": \"920\",\n \"InsurancePremium\": 907900,\n \"InsuranceTax\": 453950,\n \"InsuranceFine\": 1700,\n \"Total\": 1363550,\n \"TotalWithDiscountAmount\": 1363550,\n \"DiscountAmount\": 0,\n \"ElectricDiscount\": 0,\n \"PercentageElectricDiscount\": 0,\n \"InsurancePremiumFormatted\": \"$907.900\",\n \"InsuranceTaxFormatted\": \"$453.950\",\n \"InsuranceFineFormatted\": \"$1.700\",\n \"TotalFormatted\": \"$1.363.550\",\n \"DiscountAmountFormatted\": \"$0\",\n \"TotalWithDiscountAmountFormatted\": \"$1.363.550\",\n \"createdAt\": \"2020-02-20T10:23:24.000Z\",\n \"dateStart\": \"2020-02-20\",\n \"dateEnd\": \"2021-02-19\",\n \"amount\": 1413550,\n \"amountDiscount\": 0,\n \"amountOthers\": 50000,\n \"amountTotal\": 1413550,\n \"hash\": \"ba931ea8d2b57c9248ec4285c45efdddfdfff4d8\",\n \"runt\": 1700,\n \"codeFasecolda\": 0,\n \"typeCost\": 0,\n \"Law2161Discount\": 0,\n \"discount\": 0\n },\n \"vehDetail\": {\n \"vehicleLineId\": 5560,\n \"vehicleClassId\": 8,\n \"vehicleClassMinistryId\": 28,\n \"serviceTypeId\": 2,\n \"vehicleBodyTypeId\": 8,\n \"vehicleDescription\": \"NISSAN URVAN - 2012\",\n \"vehDescription\": \"NISSAN URVAN - 2012\",\n \"queryId\": \"\",\n \"noSerie\": \"\",\n \"noMotor\": \"Z0796987CM\",\n \"noChasis\": \"JN1MG4E25Z0796987\",\n \"cc\": 2953,\n \"type\": \"CERRADA\",\n \"gas\": \"\",\n \"year\": 2012,\n \"passengers\": 16,\n \"brand\": \"NISSAN\",\n \"brandId\": 64,\n \"vin\": \"JN1MG4E25Z0796987\",\n \"lineCode\": \"\",\n \"service\": \"\",\n \"zone\": \"\",\n \"weight\": 0,\n \"cityId\": 5266\n },\n \"userDetail\": {\n \"name\": \"Nombre\",\n \"lastName\": \"Apellido\",\n \"docNumber\": \"1111111\",\n \"cellphone\": \"3001234567\",\n \"email\": \"contacto@gmail.com\",\n \"phone\": \"\",\n \"docType\": 1,\n \"address\": \"Calle 1 # 1 - 01\",\n \"cityCode\": 76834,\n \"stateCode\": 76,\n \"addressType\": 1,\n \"typePerson\": \"F\",\n \"gender\": \"M\",\n \"RegimenTypeId\": \"2\",\n \"RutId\": 5\n }\n },\n \"amount\": 1413550\n}\n```\n\n"
|
|
404
|
+
"content": "# sell | Previsora\n\n## Request Details\n\n**Method**: `POST`\n\n**Path**: `/sells/sell`\n\n## Description\n\n`Allows performing a sale on the platform. Send the request body with the necessary parameters for the sale in the format specified by the SellBody object. This operation will return a response that includes information about the sale in case of success.`\n\n**Product restrictions**\n\n- Allows selling SOAT in the name of a person who is not the owner of the vehicle.\n \n- SOAT can be sold for a PRIVATE CAR.\n \n- SOAT can be sold for a PRIVATE MOTORCYCLE.\n \n- SOAT can be sold for a PUBLIC SERVICE VEHICLE.\n \n- SOAT cannot be sold to vehicles with 0 KM.\n \n- Sales hours are from 12:30 AM to 11:30 PM.\n \n- SOAT can be sold up to 30 days before its expiration.\n \n- The definition of the Administrative Cost and Commission for the sale of SOAT can be validated with your Refacil Commercial Advisor.\n \n- The insurance companies are directly responsible for sending the issued SOAT via email. The API provides a URL from the provider for downloading the SOAT.\n \n\nExample of a payment request for the Previsora product. The necessary information is provided, such as the productId (in this case, 1014006) and other relevant data, all attributes are mandatory.\n\n**Note:**\n\nIt is important to remember that to perform a sale using this service, several crucial data points must be sent. Some of these data points are obtained from the `/products/query` Quote Service. The necessary data are as follows: `amount`, `vehDetail`, and `userDetail`.\n\nSome data obtained from the /products/query service may be null; however, this data is mandatory for the sale process and must be filled in.\n\nIn addition to the `userDetail` object, three additional attributes must be sent: `gender`, `RegimenTypeId`, and `RutId`.\n\nThe possible values for each of the aforementioned attributes are as follows:\n\n- `gender`:\n \n - M = Male\n \n - F = Female\n \n- `RegimenTypeId`:\n \n - 1 = Responsible for IVA\n \n - 2 = Not responsible for IVA\n \n- `RutId`:\n \n - 1 = Large taxpayer\n \n - 2 = Self-withholding agent\n \n - 3 = IVA withholding agent\n \n - 4 = Simple taxation regime\n \n - 5 = Not applicable\n \n - 6 = Large taxpayer-Self-withholding agent-IVA withholding agent\n \n - 7 = Self-withholding agent-IVA withholding agent\n \n - 8 = Large taxpayer-IVA withholding agent\n \n- `cityCode`: DANE code\n \n- `stateCode`: This field is populated based on the **state** sheet [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n- To check the values for the other parameters, please refer [here.](https://refacil01-my.sharepoint.com/:f:/g/personal/w_sarmiento_refacil_com/EnvRlRK92WlHuuBfU6Zyom0BvCFmPG_OzhU-te-6ZQ0jMw)\n \n\n## Field Validations\n\n### **Name and Last Name Format Requirements**\n\nThe validation rules for the `name` and `lastName` fields in the `userDetail` object depend on the person type:\n\n**For Natural Persons (Personas Naturales):**\n\n- Must contain only letters (uppercase and lowercase)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words (for compound names)\n \n- Minimum length of 3 characters\n \n- Does not allow numbers\n \n- Does not allow special characters such as `@`, `#`\n \n\n**For Legal Entities (Personas Jurídicas):**\n\n- Allows alphanumeric characters (letters and numbers)\n \n- Allows letters with accents: `á, é, í, ó, ú, Á, É, Í, Ó, Ú`\n \n- Allows Spanish special characters: `ñ, Ñ, ü, Ü`\n \n- Allows spaces between words\n \n- Minimum length of 3 characters\n \n- Does not allow special characters such as `@`, `#`\n \n\n### Email Format Requirements\n\nThe `email` field must comply with strict validation rules to prevent errors during the issuance process:\n\n- Must contain only letters and numbers (no accents or special characters like á, é, etc.)\n \n- Allows only single separators: `.` (period), `_` (underscore), `-` (hyphen)\n \n- Cannot have consecutive separators (e.g., `..` or `--`)\n \n- Cannot start or end with separators\n \n- Domain must have at least 2 characters in the top-level domain (TLD)\n \n- Must not contain spaces or the `@` symbol except as the domain separator\n \n\n**Valid examples:**\n\n- `usuario@gmail.com`\n \n- `nombre.apellido@empresa.co`\n \n- `user_name@dominio.com`\n \n- `user-123@test.com.co`\n \n\n**Invalid examples:**\n\n- `usuario.@gmail.com` (separator at the end before @)\n \n- `user..name@domain.com` (consecutive separators)\n \n- `@domain.com` (missing local part)\n \n- `usuarioá@gmail.com` (contains accented characters)\n \n- `campohernández@gmail.com` (contains special characters with encoding issues)\n \n- `johndoe@---gmail.com` (multiple consecutive hyphens)\n \n\n### Address Format Requirements\n\nThe `address` field must comply with the following validation rules:\n\n### Validation Rules\n\n1. **Cannot start with numeric characters** - The first character after trimming cannot be a digit (0-9)\n2. **First character must be**:\n - A letter (uppercase or lowercase): `A-Z`, `a-z`\n - A vowel with Spanish acute accent: `á`, `é`, `í`, `ó`, `ú`, `Á`, `É`, `Í`, `Ó`, `Ú`\n - The letter ñ/Ñ\n - The letter ü/Ü (with diaeresis)\n - A whitespace character (space, tab, etc.) — though after `trim()`, this is effectively not possible at the start\n3. **Subsequent characters (position 2 onwards) can be**:\n - All characters allowed for the first position, plus:\n - Digits: `0-9`\n - Special address characters: `#`, `-`, `.`, `,`\n\n### Allowed Characters Summary\n\n| Category | Characters |\n| --- | --- |\n| Letters (no accent) | `A-Z`, `a-z` |\n| Accented vowels | `á`, `é`, `í`, `ó`, `ú`, `Á`, `É`, `Í`, `Ó`, `Ú` |\n| Special Spanish letters | `ñ`, `Ñ`, `ü`, `Ü` |\n| Digits (not at start) | `0-9` |\n| Whitespace | Space, tab, etc. |\n| Address symbols | `#`, `-`, `.`, `,` |\n\n### NOT Allowed Characters\n\n| Category | Examples |\n| --- | --- |\n| Other punctuation | `; : ! ? ¡ ¿ \" ' ( ) [ ] { }` |\n| Mathematical/monetary | `+ * / % = < > ^ ~ € $ @ &` |\n| Underscore and separators | `_ | \\` |\n| Other accented letters | `ç`, `ã`, `õ`, `ô`, `ä`, `ö`, `ê`, `â`, `î`, `û` |\n| Non-Latin alphabets | Cyrillic, Greek, Arabic, Chinese, etc. |\n| Emojis | 🙂 😁 🏠 |\n\n### Valid Examples\n\n- `Calle 123 #45-67`\n- `Carrera 7 Bis #8-24`\n- `Avenida Principal, Casa 5`\n- `Avenida Pérez Galdós`\n- `Av. Simón Bolívar 123`\n- `Cl 10 Sur #45-20`\n- `Urbanización La Ñora, Bloque 3`\n\n### Invalid Examples\n\n| Address | Reason |\n| --- | --- |\n| `123 Calle Principal` | Starts with a number |\n| `Calle @Principal` | Contains `@` (not allowed) |\n| `Dirección <>` | Contains angle brackets |\n| `Calle_45 #12-34` | Contains underscore `_` |\n| `Calle 5 #12-34!` | Contains exclamation mark `!` |\n| `Rua São Paulo 10` | Contains `ã` (not in allowed accents) |\n| `Avenida (Frente al parque)` | Contains parentheses `()` |\n \n\n### Payload for Custom Sell\n\nThe following payload is required for performing a custom sell:\n\n> **Note:** According to the provider's official documentation, the `name` and `lastName` fields are mandatory. \n \n\n- `productId`: (number, required) Identifies the product for which the sale is being made.\n \n- `data`: (object, required) Contains specific sale data.\n \n - `license`: (string, required) License plate of the vehicle.\n \n - `productId`: (string, required) Product identification (empty in this example).\n \n - `cellphone`: (string, required) User's cellphone number.\n \n - `document`: (string, required) User's document number. For NIT, this field must include the verification digit and must be sent **without hyphen (-)**.\n \n - `terminal`:\n \n - `id`: A unique identifier for the merchant (POS) that is generating the SOAT sale transaction for the API client. If there is no merchant under the API client's network, the same merchant ID assigned by Refacil should be sent in the `id` field.\n \n - `amount`: (object, required) Details about the sale amount.\n \n - `TariffCode`: (string, required) Tariff code.\n \n - `InsurancePremium`: (number, required) Insurance premium.\n \n - `InsuranceTax`: (number, required) Insurance tax.\n \n - `InsuranceFine`: (number, required) Insurance fine.\n \n - `Total`: (number, required) Total.\n \n - `TotalWithDiscountAmount`: (number, required) Total with discount amount.\n \n - `DiscountAmount`: (number, required) Discount amount.\n \n - `ElectricDiscount`: (numbe, requiredr) Electric discount.\n \n - `PercentageElectricDiscount`: (number, required) Percentage electric discount.\n \n - `InsurancePremiumFormatted`: (string, required) Formatted insurance premium.\n \n - `InsuranceTaxFormatted`: (string, required) Formatted insurance tax.\n \n - `InsuranceFineFormatted`: (string, required) Formatted insurance fine.\n \n - `TotalFormatted`: (string, required) Formatted total.\n \n - `DiscountAmountFormatted`: (string, required) Formatted discount amount.\n \n - `TotalWithDiscountAmountFormatted`: (string, required) Formatted total with discount amount.\n \n - `createdAt`: (string, required) Creation date.\n \n - `dateStart`: (string, required) Start date.\n \n - `dateEnd`: (string, required) End date.\n \n - `amount`: (number, required) Amount.\n \n - `amountDiscount`: (number, required) Discount amount.\n \n - `amountOthers`: (number, required) Other amounts.\n \n - `amountTotal`: (number, required) Total amount.\n \n - `hash`: (string, required) Hash.\n \n - `runt`: (number, required) Value for RUNT.\n \n - `codeFasecolda`: (number, required) Fasecolda code.\n \n - `typeCost`: (number, required) Cost type.\n \n - `Law2161Discount`: (number, required) Law 2161 discount.\n \n - `discount`: (number, required) Discount.\n \n - `vehDetail`: (object) Vehicle details.\n \n - `vehicleLineId`: (number, required) Vehicle line ID.\n \n - `vehicleClassId`: (number, required) Vehicle class ID.\n \n - `vehicleClassMinistryId`: (number, required) Vehicle class ID (Ministry).\n \n - `serviceTypeId`: (number, required) Service type ID.\n \n - `vehicleBodyTypeId`: (number, required) Vehicle body type ID.\n \n - `vehicleDescription`: (string, required) Vehicle description.\n \n - `vehDescription`: (string, required) Vehicle description.\n \n - `queryId`: (string, required) Query ID.\n \n - `noSerie`: (string, required) Serial number.\n \n - `noMotor`: (string, required) Motor number. If this field is empty, it must be filled with the value from the VIN field.\n \n - `noChasis`: (string, required) Chassis number.\n \n - `cc`: (number, required) Cubic centimeters.\n \n - `type`: (string, required) Type.\n \n - `gas`: (string, required) Gas.\n \n - `year`: (number, required) Year.\n \n - `passengers`: (number, required) Passengers.\n \n - `brand`: (string, required) Brand.\n \n - `brandId`: (number, required) Brand ID.\n \n - `vin`: (string, required) Vehicle identification number (VIN).\n \n - `lineCode`: (string, required) Line code.\n \n - `service`: (string, required) Service.\n \n - `zone`: (string, required) Zone.\n \n - `weight`: (number, required) Weight.\n \n - `cityId`: (number, required) City ID.\n \n - `userDetail`: (object, required) User details.\n \n - `name`: (string) User's name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `lastName`: (string, required) User's last name.\n \n - Must have at least **3 characters** and cannot contain special characters.\n \n - No maximum length is configured.\n \n - `docNumber`: (string, required) User's document number.\n \n - `cellphone`: (string) User's cellphone number. Must be a valid Colombian cellphone number starting with \"3\" followed by exactly 9 digits (e.g., \"3001234567\").\n \n - `email`: (string, required) User's email. Must be a valid email address format (e.g., \"[user@domain.com](https://mailto:user@domain.com)\").\n \n - `phone`: (string) User's phone.\n \n - `docType`: (number, required) User's document type.\n \n - `address`: (string, required) User's address.\n \n - `cityCode`: (integer, required) User's city code.\n \n - `stateCode`: (integer, required) User's state code.\n \n - `addressType`: (number, required) User's address type.\n \n - `typePerson`: (string) Type of person (e.g., 'F' for natural person, 'J' for legal person).\n \n - `gender`: (string) User's gender.\n \n - `RegimenTypeId`: (string, required) User's regime type ID.\n \n - `RutId`: (number, required) User's RUT ID.\n \n- `amount`: (number, required) Total amount of the sale.\n \n- `moveTmpBalance`: (boolean) Indicates whether to move temporary balance.\n \n\n`Note`: If the VIN data is not available, the API will use the chassis number as a replacement.\n\nAfter the sale has been successfully completed, the response will follow a structure similar to the following. **This response will be returned within a timeout of 120,000 milliseconds (2 minutes).** In this response, important information is provided, such as the balance of the main wallet and the balance of the profit wallet. Additionally, within the 'billData' object, you will find the fundamental information necessary to generate the sales receipt that will be delivered to the end customer.\n\n## Headers\n\n- **Authorization**: Bearer {{tokenLoginRegister}}\n\n## Request Body\n\n**Type**: `raw`\n\n```json\n{\n \"productId\": 1014006,\n \"data\": {\n \"license\": \"ABC123\",\n \"productId\": 1014006,\n \"cellphone\": \"3001234567\",\n \"document\": \"1111111\",\n \"terminal\": {\n \"id\": \"123456\"\n },\n \"amount\": {\n \"TariffCode\": \"920\",\n \"InsurancePremium\": 907900,\n \"InsuranceTax\": 453950,\n \"InsuranceFine\": 1700,\n \"Total\": 1363550,\n \"TotalWithDiscountAmount\": 1363550,\n \"DiscountAmount\": 0,\n \"ElectricDiscount\": 0,\n \"PercentageElectricDiscount\": 0,\n \"InsurancePremiumFormatted\": \"$907.900\",\n \"InsuranceTaxFormatted\": \"$453.950\",\n \"InsuranceFineFormatted\": \"$1.700\",\n \"TotalFormatted\": \"$1.363.550\",\n \"DiscountAmountFormatted\": \"$0\",\n \"TotalWithDiscountAmountFormatted\": \"$1.363.550\",\n \"createdAt\": \"2020-02-20T10:23:24.000Z\",\n \"dateStart\": \"2020-02-20\",\n \"dateEnd\": \"2021-02-19\",\n \"amount\": 1413550,\n \"amountDiscount\": 0,\n \"amountOthers\": 50000,\n \"amountTotal\": 1413550,\n \"hash\": \"ba931ea8d2b57c9248ec4285c45efdddfdfff4d8\",\n \"runt\": 1700,\n \"codeFasecolda\": 0,\n \"typeCost\": 0,\n \"Law2161Discount\": 0,\n \"discount\": 0\n },\n \"vehDetail\": {\n \"vehicleLineId\": 5560,\n \"vehicleClassId\": 8,\n \"vehicleClassMinistryId\": 28,\n \"serviceTypeId\": 2,\n \"vehicleBodyTypeId\": 8,\n \"vehicleDescription\": \"NISSAN URVAN - 2012\",\n \"vehDescription\": \"NISSAN URVAN - 2012\",\n \"queryId\": \"\",\n \"noSerie\": \"\",\n \"noMotor\": \"Z0796987CM\",\n \"noChasis\": \"JN1MG4E25Z0796987\",\n \"cc\": 2953,\n \"type\": \"CERRADA\",\n \"gas\": \"\",\n \"year\": 2012,\n \"passengers\": 16,\n \"brand\": \"NISSAN\",\n \"brandId\": 64,\n \"vin\": \"JN1MG4E25Z0796987\",\n \"lineCode\": \"\",\n \"service\": \"\",\n \"zone\": \"\",\n \"weight\": 0,\n \"cityId\": 5266\n },\n \"userDetail\": {\n \"name\": \"Nombre\",\n \"lastName\": \"Apellido\",\n \"docNumber\": \"1111111\",\n \"cellphone\": \"3001234567\",\n \"email\": \"contacto@gmail.com\",\n \"phone\": \"\",\n \"docType\": 1,\n \"address\": \"Calle 1 # 1 - 01\",\n \"cityCode\": 76834,\n \"stateCode\": 76,\n \"addressType\": 1,\n \"typePerson\": \"F\",\n \"gender\": \"M\",\n \"RegimenTypeId\": \"2\",\n \"RutId\": 5\n }\n },\n \"amount\": 1413550\n}\n```\n\n"
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
"uri": "postman://collection/refacil-commerce-api/endpoint/post/sells/sell",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../src/core/resources.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,uBAAuB;AACvB,MAAM,CAAC,MAAM,SAAS,GAAkB;IACtC;QACE,KAAK,EAAE,2CAA2C;QAClD,MAAM,EAAE,0CAA0C;QAClD,aAAa,EAAE,4sCAA4sC;QAC3tC,UAAU,EAAE,eAAe;QAC3B,SAAS,EAAE,0yFAA0yF;KACtzF;IACD;QACE,KAAK,EAAE,+DAA+D;QACtE,MAAM,EAAE,8BAA8B;QACtC,aAAa,EAAE,4sCAA4sC;QAC3tC,UAAU,EAAE,eAAe;QAC3B,SAAS,EAAE,kvCAAkvC;KAC9vC;IACD;QACE,KAAK,EAAE,wDAAwD;QAC/D,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,iLAAiL;QAChM,UAAU,EAAE,eAAe;QAC3B,SAAS,EAAE,+3CAA+3C;KAC34C;IACD;QACE,KAAK,EAAE,uDAAuD;QAC9D,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,qqDAAqqD;QACprD,UAAU,EAAE,eAAe;QAC3B,SAAS,EAAE,msDAAmsD;KAC/sD;IACD;QACE,KAAK,EAAE,sDAAsD;QAC7D,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,uxBAAuxB;QACtyB,UAAU,EAAE,eAAe;QAC3B,SAAS,EAAE,4yMAA4yM;KACxzM;IACD;QACE,KAAK,EAAE,4DAA4D;QACnE,MAAM,EAAE,2BA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AAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACnC,CAAC"}
|
package/dist/core/tools.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
interface Tool {
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
5
|
-
|
|
5
|
+
/** Esquema Zod: el SDK MCP espera un Zod schema (safeParseAsync / zodToJsonSchema), no JSON Schema plano */
|
|
6
|
+
inputSchema: z.ZodTypeAny;
|
|
6
7
|
jsonSchema: Record<string, any>;
|
|
7
8
|
endpoint: string;
|
|
8
9
|
method: string;
|