refacil-commerce-mcp 1.0.8 → 1.0.10
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 +371 -62
- package/dist/core/resources.js +47 -54
- package/dist/core/resources.js.map +1 -1
- package/dist/core/tools.d.ts +4 -5
- package/dist/core/tools.js +57 -142
- package/dist/core/tools.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Servidor MCP (Model Context Protocol) generado automáticamente para la API refa
|
|
|
4
4
|
|
|
5
5
|
## 🚀 Características
|
|
6
6
|
|
|
7
|
-
- **
|
|
7
|
+
- **32 herramientas** generadas automáticamente desde la colección Postman
|
|
8
8
|
- **Autenticación flexible**: Username/SecretKey con renovación automática de tokens
|
|
9
9
|
- **Servidor HTTP** con Fastify
|
|
10
10
|
- **Protocolo MCP** estándar para integración con IDEs
|
|
@@ -858,67 +858,19 @@ The response will include the results of the query in case of success.
|
|
|
858
858
|
| ownAgreementId | null | Campo del body: ownAgreementId |
|
|
859
859
|
| data | object | Campo del body: data |
|
|
860
860
|
|
|
861
|
-
### `
|
|
862
|
-
|
|
863
|
-
---
|
|
864
|
-
|
|
865
|
-
### Description
|
|
866
|
-
|
|
867
|
-
This HTTP POST request is used to perform a custom query on the platform. The request body should be sent 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.
|
|
868
|
-
|
|
869
|
-
---
|
|
870
|
-
|
|
871
|
-
### Request Body Schema
|
|
872
|
-
|
|
873
|
-
- productId (number) `required`: Identifier of the product to perform the query.
|
|
874
|
-
|
|
875
|
-
- queryType (string) `required`: Type of query to be performed.
|
|
876
|
-
|
|
877
|
-
- ownAgreementId (null): Identifier of the own agreement, if applicable.
|
|
878
|
-
|
|
879
|
-
- data (object) `required`: Additional data for the query.
|
|
880
|
-
|
|
881
|
-
- reference (string) `required`: Reference for the query.
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
---
|
|
885
|
-
|
|
886
|
-
### Response Body Schema
|
|
887
|
-
|
|
888
|
-
- message (string): Response message.
|
|
889
|
-
|
|
890
|
-
- messageCode (string): Code related to the response message.
|
|
891
|
-
|
|
892
|
-
- data (object): Response data object.
|
|
893
|
-
|
|
894
|
-
- payload (object): Payload data.
|
|
895
|
-
|
|
896
|
-
- amount (number): Amount related to the product.
|
|
897
|
-
|
|
898
|
-
- productId (number): ID of the product.
|
|
899
|
-
|
|
900
|
-
- productName (string): Name of the product.
|
|
901
|
-
|
|
902
|
-
- reference (string): Reference related to the query.
|
|
903
|
-
|
|
904
|
-
- hashEchoData (string): Hash echo data.
|
|
905
|
-
|
|
906
|
-
- hash (string): Hash value.
|
|
907
|
-
|
|
908
|
-
- amountEditable (boolean): Indicates if the amount is editable.
|
|
861
|
+
### `query`
|
|
909
862
|
|
|
910
|
-
**
|
|
863
|
+
**Important:** This request will be processed within a timeout of **30,000 milliseconds (30 seconds)**.
|
|
911
864
|
|
|
912
|
-
|
|
913
|
-
| --- | --- | --- |
|
|
914
|
-
| productId | number | Campo del body: productId |
|
|
915
|
-
| queryType | string | Campo del body: queryType |
|
|
916
|
-
| ownAgreementId | number | Campo del body: ownAgreementId |
|
|
917
|
-
| data | object | Campo del body: data |
|
|
865
|
+
### Test Data
|
|
918
866
|
|
|
919
|
-
|
|
867
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
920
868
|
|
|
921
|
-
|
|
869
|
+
| Field | Example Value |
|
|
870
|
+
|-------|---------------|
|
|
871
|
+
| productId | 1587 |
|
|
872
|
+
| queryType | "BILLData" |
|
|
873
|
+
| data.reference | "63440172" |
|
|
922
874
|
|
|
923
875
|
**Parámetros:**
|
|
924
876
|
|
|
@@ -1026,6 +978,20 @@ Allows performing a sale on the platform. Send the request body with the necessa
|
|
|
1026
978
|
|
|
1027
979
|
- `message`: String representing the message (required)
|
|
1028
980
|
|
|
981
|
+
### Test Data
|
|
982
|
+
|
|
983
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
984
|
+
|
|
985
|
+
| Field | Example Value |
|
|
986
|
+
|-------|---------------|
|
|
987
|
+
| amount | 9999 |
|
|
988
|
+
| productId | 1587 |
|
|
989
|
+
| sellType | "Bill" |
|
|
990
|
+
| data.agreement | 2010910 |
|
|
991
|
+
| data.reference | "63440172" |
|
|
992
|
+
| data.cellphone | "3203550000" |
|
|
993
|
+
| data.hashEchoData | "eyJhZ3JlZW1lbnRJZCI6MzM3NDMsInJlZmVyZW5jZTEiOiI2MzQ0MDE3MiIsInJlZmVyZW5jZTIiOm51bGwsImFtb3VudCI6OTk5OSwiYWdyZWVtZW50TWVzc2FnZSI6IiIsImFncmVlbWVudENvZGUiOiIwMCIsInJlcXVpcmVzQW1vdW50IjoiMCIsImFkaXRpb25hbFZhbHVlNTRFY28iOiIwMTIzNDU2Nzg5MCIsImFkaXRpb25hbFZhbHVlNjJFY28iOiIxNTE2NTc4OTU1NjM0MjgxNjM4NzM5OTAyMjk1IiwiYWNjb3VudERhdGFBY3JlZGl0ZWQiOiI0NzU3NjY3MjA1ODE2Mzg3Mzk5MDIyOTUyMjc2IiwiYWRkaXRpb25hbENvbXBhbnlDb2RlIjoiMTUxNjU3ODk1NTYzNDI4MjgwNjI4MzcwMTIxMiIsImRhdGUiOiIyMDI2LTAzLTEwIiwidHJhY2UiOjUxMjF9" |
|
|
994
|
+
|
|
1029
995
|
**Parámetros:**
|
|
1030
996
|
|
|
1031
997
|
| Name | Type | Description |
|
|
@@ -1095,6 +1061,19 @@ The following payload is required for performing a custom query:
|
|
|
1095
1061
|
|
|
1096
1062
|
- `license`: (string, optional) The license plate of the vehicle.
|
|
1097
1063
|
|
|
1064
|
+
### Test Data
|
|
1065
|
+
|
|
1066
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
1067
|
+
|
|
1068
|
+
| Field | Example Value |
|
|
1069
|
+
|-------|---------------|
|
|
1070
|
+
| queryType | "SOATData" |
|
|
1071
|
+
| productId | 91 |
|
|
1072
|
+
| docType | "NIT" |
|
|
1073
|
+
| document | "819000939" |
|
|
1074
|
+
| cellphone | "3200000000" |
|
|
1075
|
+
| license | "NAC854" |
|
|
1076
|
+
|
|
1098
1077
|
**Parámetros:**
|
|
1099
1078
|
|
|
1100
1079
|
| Name | Type | Description |
|
|
@@ -1197,6 +1176,35 @@ The following payload is required for performing a custom sell:
|
|
|
1197
1176
|
|
|
1198
1177
|
After the sale has been successfully completed, the response will follow a structure similar to the following. 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. It is important to note that this step is mandatory, as it is a direct requirement from AXA Colpatria.
|
|
1199
1178
|
|
|
1179
|
+
### Test Data
|
|
1180
|
+
|
|
1181
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
1182
|
+
|
|
1183
|
+
| Field | Example Value |
|
|
1184
|
+
|-------|---------------|
|
|
1185
|
+
| productId | 91 |
|
|
1186
|
+
| amount | 557400 |
|
|
1187
|
+
| data.amount.amount | 556400 |
|
|
1188
|
+
| data.amount.runt | 2100 |
|
|
1189
|
+
| data.amount.prima | 364700 |
|
|
1190
|
+
| data.amount.contributions | 189600 |
|
|
1191
|
+
| data.amount.valueDiscountLaw | 0 |
|
|
1192
|
+
| data.amount.valueDiscountTotal | 0 |
|
|
1193
|
+
| data.amount.valuePayDiscount | 556400 |
|
|
1194
|
+
| data.amount.amountAdministrative | 566 |
|
|
1195
|
+
| data.amount.amountTotal | 557400 |
|
|
1196
|
+
| data.amount.dateStart | "2024-06-04" |
|
|
1197
|
+
| data.amount.dateEnd | "2025-06-03" |
|
|
1198
|
+
| data.amount.discount | 0 |
|
|
1199
|
+
| data.license | "EJV885" |
|
|
1200
|
+
| data.hashEchoData | "eyJpZFRyYW5zYWNjaW9uIjoiMmE2MDhjY2YtZjdiOS00ZGM1LTg2OTQtYTAyY2E0ODNkOWE4IiwiaWRDb3JyZWxhY2lvbiI6MTcxNzUzNDY0MTc1MH0=" |
|
|
1201
|
+
| data.cifrateAmount.hash | "eyJhbW91bnQiOjU1NzQwMH0=" |
|
|
1202
|
+
| data.cifrateAmount.hashEchoData | "ef3e40f13fa0430eb1dfa9a8e499e3a4ea81c42159b5ee3eccac88d8ef47198e32d28339fcf656704009a0b05802363b3016d921bcfd6aa8920558535aa75218" |
|
|
1203
|
+
| data.userDetail.cellphone | "3200000000" |
|
|
1204
|
+
| data.userDetail.email | "test@email.com" |
|
|
1205
|
+
| data.userDetail.document | "860002964" |
|
|
1206
|
+
| data.userDetail.docType | "NIT" |
|
|
1207
|
+
|
|
1200
1208
|
**Parámetros:**
|
|
1201
1209
|
|
|
1202
1210
|
| Name | Type | Description |
|
|
@@ -1331,6 +1339,18 @@ The following payload is required for performing a custom query:
|
|
|
1331
1339
|
|
|
1332
1340
|
**Important:** This request will be processed within a timeout of **30,000 milliseconds (30 seconds)**.
|
|
1333
1341
|
|
|
1342
|
+
### Test Data
|
|
1343
|
+
|
|
1344
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
1345
|
+
|
|
1346
|
+
| Field | Example Value |
|
|
1347
|
+
|-------|---------------|
|
|
1348
|
+
| productId | 1014006 |
|
|
1349
|
+
| documentType | 1 |
|
|
1350
|
+
| document | "1032363500" |
|
|
1351
|
+
| queryType | "SOATFullData" |
|
|
1352
|
+
| license | "XAZ975" |
|
|
1353
|
+
|
|
1334
1354
|
**Parámetros:**
|
|
1335
1355
|
|
|
1336
1356
|
| Name | Type | Description |
|
|
@@ -1423,6 +1443,16 @@ The following payload is required for performing a custom query:
|
|
|
1423
1443
|
|
|
1424
1444
|
- `license`: (string, required) The license plate of the vehicle.
|
|
1425
1445
|
|
|
1446
|
+
### Test Data
|
|
1447
|
+
|
|
1448
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
1449
|
+
|
|
1450
|
+
| Field | Example Value |
|
|
1451
|
+
|-------|---------------|
|
|
1452
|
+
| productId | 1014006 |
|
|
1453
|
+
| queryType | "SOATPolicy" |
|
|
1454
|
+
| license | "XAZ975" |
|
|
1455
|
+
|
|
1426
1456
|
**Parámetros:**
|
|
1427
1457
|
|
|
1428
1458
|
| Name | Type | Description |
|
|
@@ -1911,6 +1941,87 @@ The following payload is required for performing a custom sell:
|
|
|
1911
1941
|
|
|
1912
1942
|
After 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.
|
|
1913
1943
|
|
|
1944
|
+
### Test Data
|
|
1945
|
+
|
|
1946
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
1947
|
+
|
|
1948
|
+
| Field | Example Value |
|
|
1949
|
+
|-------|---------------|
|
|
1950
|
+
| productId | 1014006 |
|
|
1951
|
+
| amount | 1413550 |
|
|
1952
|
+
| data.license | "ABC123" |
|
|
1953
|
+
| data.productId | 1014006 |
|
|
1954
|
+
| data.cellphone | "3001234567" |
|
|
1955
|
+
| data.document | "1111111" |
|
|
1956
|
+
| data.terminal.id | "123456" |
|
|
1957
|
+
| data.amount.TariffCode | "920" |
|
|
1958
|
+
| data.amount.InsurancePremium | 907900 |
|
|
1959
|
+
| data.amount.InsuranceTax | 453950 |
|
|
1960
|
+
| data.amount.InsuranceFine | 1700 |
|
|
1961
|
+
| data.amount.Total | 1363550 |
|
|
1962
|
+
| data.amount.TotalWithDiscountAmount | 1363550 |
|
|
1963
|
+
| data.amount.DiscountAmount | 0 |
|
|
1964
|
+
| data.amount.ElectricDiscount | 0 |
|
|
1965
|
+
| data.amount.PercentageElectricDiscount | 0 |
|
|
1966
|
+
| data.amount.InsurancePremiumFormatted | "$907.900" |
|
|
1967
|
+
| data.amount.InsuranceTaxFormatted | "$453.950" |
|
|
1968
|
+
| data.amount.InsuranceFineFormatted | "$1.700" |
|
|
1969
|
+
| data.amount.TotalFormatted | "$1.363.550" |
|
|
1970
|
+
| data.amount.DiscountAmountFormatted | "$0" |
|
|
1971
|
+
| data.amount.TotalWithDiscountAmountFormatted | "$1.363.550" |
|
|
1972
|
+
| data.amount.createdAt | "2020-02-20T10:23:24.000Z" |
|
|
1973
|
+
| data.amount.dateStart | "2020-02-20" |
|
|
1974
|
+
| data.amount.dateEnd | "2021-02-19" |
|
|
1975
|
+
| data.amount.amount | 1413550 |
|
|
1976
|
+
| data.amount.amountDiscount | 0 |
|
|
1977
|
+
| data.amount.amountOthers | 50000 |
|
|
1978
|
+
| data.amount.amountTotal | 1413550 |
|
|
1979
|
+
| data.amount.hash | "ba931ea8d2b57c9248ec4285c45efdddfdfff4d8" |
|
|
1980
|
+
| data.amount.runt | 1700 |
|
|
1981
|
+
| data.amount.codeFasecolda | 0 |
|
|
1982
|
+
| data.amount.typeCost | 0 |
|
|
1983
|
+
| data.amount.Law2161Discount | 0 |
|
|
1984
|
+
| data.amount.discount | 0 |
|
|
1985
|
+
| data.vehDetail.vehicleLineId | 5560 |
|
|
1986
|
+
| data.vehDetail.vehicleClassId | 8 |
|
|
1987
|
+
| data.vehDetail.vehicleClassMinistryId | 28 |
|
|
1988
|
+
| data.vehDetail.serviceTypeId | 2 |
|
|
1989
|
+
| data.vehDetail.vehicleBodyTypeId | 8 |
|
|
1990
|
+
| data.vehDetail.vehicleDescription | "NISSAN URVAN - 2012" |
|
|
1991
|
+
| data.vehDetail.vehDescription | "NISSAN URVAN - 2012" |
|
|
1992
|
+
| data.vehDetail.queryId | "" |
|
|
1993
|
+
| data.vehDetail.noSerie | "" |
|
|
1994
|
+
| data.vehDetail.noMotor | "Z0796987CM" |
|
|
1995
|
+
| data.vehDetail.noChasis | "JN1MG4E25Z0796987" |
|
|
1996
|
+
| data.vehDetail.cc | 2953 |
|
|
1997
|
+
| data.vehDetail.type | "CERRADA" |
|
|
1998
|
+
| data.vehDetail.gas | "" |
|
|
1999
|
+
| data.vehDetail.year | 2012 |
|
|
2000
|
+
| data.vehDetail.passengers | 16 |
|
|
2001
|
+
| data.vehDetail.brand | "NISSAN" |
|
|
2002
|
+
| data.vehDetail.brandId | 64 |
|
|
2003
|
+
| data.vehDetail.vin | "JN1MG4E25Z0796987" |
|
|
2004
|
+
| data.vehDetail.lineCode | "" |
|
|
2005
|
+
| data.vehDetail.service | "" |
|
|
2006
|
+
| data.vehDetail.zone | "" |
|
|
2007
|
+
| data.vehDetail.weight | 0 |
|
|
2008
|
+
| data.vehDetail.cityId | 5266 |
|
|
2009
|
+
| data.userDetail.name | "Nombre" |
|
|
2010
|
+
| data.userDetail.lastName | "Apellido" |
|
|
2011
|
+
| data.userDetail.docNumber | "1111111" |
|
|
2012
|
+
| data.userDetail.cellphone | "3001234567" |
|
|
2013
|
+
| data.userDetail.email | "contacto@gmail.com" |
|
|
2014
|
+
| data.userDetail.phone | "" |
|
|
2015
|
+
| data.userDetail.docType | 1 |
|
|
2016
|
+
| data.userDetail.address | "Calle 1 # 1 - 01" |
|
|
2017
|
+
| data.userDetail.cityCode | 76834 |
|
|
2018
|
+
| data.userDetail.stateCode | 76 |
|
|
2019
|
+
| data.userDetail.addressType | 1 |
|
|
2020
|
+
| data.userDetail.typePerson | "F" |
|
|
2021
|
+
| data.userDetail.gender | "M" |
|
|
2022
|
+
| data.userDetail.RegimenTypeId | "2" |
|
|
2023
|
+
| data.userDetail.RutId | 5 |
|
|
2024
|
+
|
|
1914
2025
|
**Parámetros:**
|
|
1915
2026
|
|
|
1916
2027
|
| Name | Type | Description |
|
|
@@ -1927,6 +2038,40 @@ Allows performing a sale on the platform. Send the request body with the necessa
|
|
|
1927
2038
|
|
|
1928
2039
|
**Important:** This response will be returned within a timeout of **60,000 milliseconds (60 seconds)**.
|
|
1929
2040
|
|
|
2041
|
+
---
|
|
2042
|
+
|
|
2043
|
+
## Request Schema
|
|
2044
|
+
|
|
2045
|
+
- `productId`: Number representing the product identifier (required)
|
|
2046
|
+
|
|
2047
|
+
- `amount`: Number representing the payment amount (required)
|
|
2048
|
+
|
|
2049
|
+
- `data`: Object containing additional transaction data (required)
|
|
2050
|
+
|
|
2051
|
+
- `cellphone`: String containing the customer's cellphone number (required)
|
|
2052
|
+
|
|
2053
|
+
- `document`: String containing the customer's identification document number (required)
|
|
2054
|
+
|
|
2055
|
+
- `name`: String containing the customer's first name (required)
|
|
2056
|
+
|
|
2057
|
+
- `lastname`: String containing the customer's last name (required)
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
---
|
|
2061
|
+
|
|
2062
|
+
### Test Data
|
|
2063
|
+
|
|
2064
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2065
|
+
|
|
2066
|
+
| Field | Example Value |
|
|
2067
|
+
|-------|---------------|
|
|
2068
|
+
| productId | 603 |
|
|
2069
|
+
| amount | 100 |
|
|
2070
|
+
| data.cellphone | "3200000000" |
|
|
2071
|
+
| data.document | "1023900000" |
|
|
2072
|
+
| data.name | "Pachito" |
|
|
2073
|
+
| data.lastname | "Hernesto" |
|
|
2074
|
+
|
|
1930
2075
|
**Parámetros:**
|
|
1931
2076
|
|
|
1932
2077
|
| Name | Type | Description |
|
|
@@ -1945,6 +2090,28 @@ Allows performing a sale on the platform. Send the request body with the necessa
|
|
|
1945
2090
|
|
|
1946
2091
|
**Important:** This response will be returned within a timeout of **60,000 milliseconds (60 seconds)**.
|
|
1947
2092
|
|
|
2093
|
+
---
|
|
2094
|
+
|
|
2095
|
+
## Request Schema
|
|
2096
|
+
|
|
2097
|
+
- `productId`: Number representing the product identifier (required)
|
|
2098
|
+
|
|
2099
|
+
- `data`: Object containing additional transaction data (required)
|
|
2100
|
+
|
|
2101
|
+
- `cellphone`: String containing the customer's cellphone number (required)
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
---
|
|
2105
|
+
|
|
2106
|
+
### Test Data
|
|
2107
|
+
|
|
2108
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2109
|
+
|
|
2110
|
+
| Field | Example Value |
|
|
2111
|
+
|-------|---|
|
|
2112
|
+
| productId | 200048 |
|
|
2113
|
+
| data.cellphone | "3215302000" |
|
|
2114
|
+
|
|
1948
2115
|
**Parámetros:**
|
|
1949
2116
|
|
|
1950
2117
|
| Name | Type | Description |
|
|
@@ -2044,6 +2211,16 @@ Allows performing a bill payment operation on the platform. Send the request bod
|
|
|
2044
2211
|
|
|
2045
2212
|
**Important:** This response will be returned within a timeout of **60,000 milliseconds (60 seconds)**.
|
|
2046
2213
|
|
|
2214
|
+
### Test Data
|
|
2215
|
+
|
|
2216
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2217
|
+
|
|
2218
|
+
| Field | Example Value |
|
|
2219
|
+
|-------|---------------|
|
|
2220
|
+
| productId | 50 |
|
|
2221
|
+
| amount | 1000 |
|
|
2222
|
+
| data.cellphone | "3015874044" |
|
|
2223
|
+
|
|
2047
2224
|
**Parámetros:**
|
|
2048
2225
|
|
|
2049
2226
|
| Name | Type | Description |
|
|
@@ -2145,6 +2322,17 @@ Allows performing a sale on the platform. Send the request body with the necessa
|
|
|
2145
2322
|
|
|
2146
2323
|
**Important:** This response will be returned within a timeout of **60,000 milliseconds (60 seconds)**.
|
|
2147
2324
|
|
|
2325
|
+
### Test Data
|
|
2326
|
+
|
|
2327
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2328
|
+
|
|
2329
|
+
| Field | Example Value |
|
|
2330
|
+
|-------|---------------|
|
|
2331
|
+
| productId | 202 |
|
|
2332
|
+
| amount | 50 |
|
|
2333
|
+
| data.cellphone | "3015874029" |
|
|
2334
|
+
| data.email | "correo@refacil.com" |
|
|
2335
|
+
|
|
2148
2336
|
**Parámetros:**
|
|
2149
2337
|
|
|
2150
2338
|
| Name | Type | Description |
|
|
@@ -2240,6 +2428,16 @@ Allows performing a bill payment operation on the platform. Send the request bod
|
|
|
2240
2428
|
|
|
2241
2429
|
- `message`: String representing the message (required)
|
|
2242
2430
|
|
|
2431
|
+
### Test Data
|
|
2432
|
+
|
|
2433
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2434
|
+
|
|
2435
|
+
| Field | Example Value |
|
|
2436
|
+
|-------|---------------|
|
|
2437
|
+
| productId | 1014005 |
|
|
2438
|
+
| data.cellphone | "3104784242" |
|
|
2439
|
+
| data.email | "fake@refacil.com" |
|
|
2440
|
+
|
|
2243
2441
|
**Parámetros:**
|
|
2244
2442
|
|
|
2245
2443
|
| Name | Type | Description |
|
|
@@ -2334,6 +2532,16 @@ Allows performing a bill payment operation on the platform. Send the request bod
|
|
|
2334
2532
|
|
|
2335
2533
|
- `message`: String representing the message (required)
|
|
2336
2534
|
|
|
2535
|
+
### Test Data
|
|
2536
|
+
|
|
2537
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2538
|
+
|
|
2539
|
+
| Field | Example Value |
|
|
2540
|
+
|-------|---------------|
|
|
2541
|
+
| productId | 100777 |
|
|
2542
|
+
| data.cellphone | "3104784242" |
|
|
2543
|
+
| data.email | "fake@refacil.com" |
|
|
2544
|
+
|
|
2337
2545
|
**Parámetros:**
|
|
2338
2546
|
|
|
2339
2547
|
| Name | Type | Description |
|
|
@@ -2428,6 +2636,16 @@ Allows performing a bill payment operation on the platform. Send the request bod
|
|
|
2428
2636
|
|
|
2429
2637
|
- `message`: String representing the message (required)
|
|
2430
2638
|
|
|
2639
|
+
### Test Data
|
|
2640
|
+
|
|
2641
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2642
|
+
|
|
2643
|
+
| Field | Example Value |
|
|
2644
|
+
|-------|---------------|
|
|
2645
|
+
| productId | 1014004 |
|
|
2646
|
+
| data.cellphone | "3104784242" |
|
|
2647
|
+
| data.email | "fake@refacil.com" |
|
|
2648
|
+
|
|
2431
2649
|
**Parámetros:**
|
|
2432
2650
|
|
|
2433
2651
|
| Name | Type | Description |
|
|
@@ -2435,7 +2653,7 @@ Allows performing a bill payment operation on the platform. Send the request bod
|
|
|
2435
2653
|
| data | object | Campo del body: data |
|
|
2436
2654
|
| productId | number | Campo del body: productId |
|
|
2437
2655
|
|
|
2438
|
-
### `
|
|
2656
|
+
### `query_24`
|
|
2439
2657
|
|
|
2440
2658
|
---
|
|
2441
2659
|
|
|
@@ -2492,6 +2710,19 @@ If the request fails with the errorCode `product.errors.disabled` or a similar c
|
|
|
2492
2710
|
|
|
2493
2711
|
**Important:** This request will be processed within a timeout of **30,000 milliseconds (30 seconds)**.
|
|
2494
2712
|
|
|
2713
|
+
### Test Data
|
|
2714
|
+
|
|
2715
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2716
|
+
|
|
2717
|
+
| Field | Example Value |
|
|
2718
|
+
|-------|---------------|
|
|
2719
|
+
| queryType | "ConfirmData" |
|
|
2720
|
+
| productId | 231 |
|
|
2721
|
+
| data.carrierId | 231 |
|
|
2722
|
+
| data.cellphone | "3203550000" |
|
|
2723
|
+
| data.amount | 10000 |
|
|
2724
|
+
| data.reference | "1234567" |
|
|
2725
|
+
|
|
2495
2726
|
**Parámetros:**
|
|
2496
2727
|
|
|
2497
2728
|
| Name | Type | Description |
|
|
@@ -2601,6 +2832,19 @@ The timeout value specified below is directly established by the provider and mu
|
|
|
2601
2832
|
|
|
2602
2833
|
- `message`: String representing the message (required)
|
|
2603
2834
|
|
|
2835
|
+
### Test Data
|
|
2836
|
+
|
|
2837
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2838
|
+
|
|
2839
|
+
| Field | Example Value |
|
|
2840
|
+
|-------|---------------|
|
|
2841
|
+
| productId | 231 |
|
|
2842
|
+
| amount | 10000 |
|
|
2843
|
+
| data.plan | "AP" |
|
|
2844
|
+
| data.reference | "1234567" |
|
|
2845
|
+
| data.cellphone | "3203550000" |
|
|
2846
|
+
| data.hashEchoData | "eyJub21icmVfY2xpZW50ZSI6IkVMU1kgU0VyVklDRSIsImRpcmVjY2lvbiI6IlVSQiBWSUxMQSBWSUNUT1JJQSBDQVNBIDEwMyAtIFNBTiBNQVJUSU4iLCJkbmlfY2xpZW50ZSI6IjM5MDIyMDMxIiwiY29udHJhdG8iOiIxMjM0NTY3IiwidmFsb3JfdmVudGEiOiIxMDAwMCIsInBsYW4iOiIiLCJ0eXBlIjoiIn0=" |
|
|
2847
|
+
|
|
2604
2848
|
**Parámetros:**
|
|
2605
2849
|
|
|
2606
2850
|
| Name | Type | Description |
|
|
@@ -2611,7 +2855,7 @@ The timeout value specified below is directly established by the provider and mu
|
|
|
2611
2855
|
| sellType | string | Campo del body: sellType |
|
|
2612
2856
|
| hash | string | Campo del body: hash |
|
|
2613
2857
|
|
|
2614
|
-
### `
|
|
2858
|
+
### `query_26`
|
|
2615
2859
|
|
|
2616
2860
|
---
|
|
2617
2861
|
|
|
@@ -2680,6 +2924,21 @@ If the request fails with the errorCode `product.errors.disabled` or a similar c
|
|
|
2680
2924
|
|
|
2681
2925
|
**Important:** This request will be processed within a timeout of **30,000 milliseconds (30 seconds)**.
|
|
2682
2926
|
|
|
2927
|
+
### Test Data
|
|
2928
|
+
|
|
2929
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
2930
|
+
|
|
2931
|
+
| Field | Example Value |
|
|
2932
|
+
|-------|---------------|
|
|
2933
|
+
| queryType | "ConfirmData" |
|
|
2934
|
+
| productId | 230 |
|
|
2935
|
+
| data.carrierId | 230 |
|
|
2936
|
+
| data.cellphone | "3203550000" |
|
|
2937
|
+
| data.amount | 10000 |
|
|
2938
|
+
| data.reference | "1234567" |
|
|
2939
|
+
| data.plan | "AP" |
|
|
2940
|
+
| data.type | "PT" |
|
|
2941
|
+
|
|
2683
2942
|
**Parámetros:**
|
|
2684
2943
|
|
|
2685
2944
|
| Name | Type | Description |
|
|
@@ -2689,7 +2948,7 @@ If the request fails with the errorCode `product.errors.disabled` or a similar c
|
|
|
2689
2948
|
| data | object | Campo del body: data |
|
|
2690
2949
|
| ownAgreementId | null | Campo del body: ownAgreementId |
|
|
2691
2950
|
|
|
2692
|
-
### `
|
|
2951
|
+
### `sell_27`
|
|
2693
2952
|
|
|
2694
2953
|
---
|
|
2695
2954
|
|
|
@@ -2802,6 +3061,22 @@ The timeout value specified below is directly established by the provider and mu
|
|
|
2802
3061
|
|
|
2803
3062
|
- `message`: String representing the message (required)
|
|
2804
3063
|
|
|
3064
|
+
### Test Data
|
|
3065
|
+
|
|
3066
|
+
Use the following example values to test this endpoint in the QA environment:
|
|
3067
|
+
|
|
3068
|
+
| Field | Example Value |
|
|
3069
|
+
|-------|---------------|
|
|
3070
|
+
| productId | 230 |
|
|
3071
|
+
| amount | 10000 |
|
|
3072
|
+
| data.cellphone | "3203550000" |
|
|
3073
|
+
| data.plan | "AP" |
|
|
3074
|
+
| data.reference | "1234567" |
|
|
3075
|
+
| data.type | "PT" |
|
|
3076
|
+
| data.valorAseo | 5000 |
|
|
3077
|
+
| data.valorEnergia | 5000 |
|
|
3078
|
+
| data.hashEchoData | "eyJub21icmVfY2xpZW50ZSI6IkVMU1kgU0VyVklDRSIsImRpcmVjY2lvbiI6IlVSQiBWSUxMQSBWSUNUT1JJQSBDQVNBIDEwMyAtIFNBTiBNQVJUSU4iLCJkbmlfY2xpZW50ZSI6IjM5MDIyMDMxIiwiY29udHJhdG8iOiIxMjM0NTY3IiwidmFsb3JfdmVudGEiOiIxMDAwMCIsInZhbG9yX2FzZW8iOjUwMDAsInZhbG9yX2VuZXJnaWEiOjUwMDAsImNlbHVsYXIiOiIzMjAzNTUwMDAwIiwiaWRDb25maXJtYWNpb24iOiJzZGpha3NkamRqYS1kYXMwZGRhbnNkMDItZnNhZGthc2RrNTYiLCJwbGFuIjoiQVAiLCJ0eXBlIjoiUFQifQ==" |
|
|
3079
|
+
|
|
2805
3080
|
**Parámetros:**
|
|
2806
3081
|
|
|
2807
3082
|
| Name | Type | Description |
|
|
@@ -2812,7 +3087,7 @@ The timeout value specified below is directly established by the provider and mu
|
|
|
2812
3087
|
| sellType | string | Campo del body: sellType |
|
|
2813
3088
|
| hash | string | Campo del body: hash |
|
|
2814
3089
|
|
|
2815
|
-
### `
|
|
3090
|
+
### `query_28`
|
|
2816
3091
|
|
|
2817
3092
|
Here you will find all the endpoints related to Transfiya correspondent selling.
|
|
2818
3093
|
|
|
@@ -3060,6 +3335,23 @@ curl --location --globoff 'https://acme.refacil.local/transfiYaNotifications' \
|
|
|
3060
3335
|
|
|
3061
3336
|
**Step 9: Transaction marked as failed:** If the transaction status changes to "REJECTED," the transaction is officially marked as failed within the system.
|
|
3062
3337
|
|
|
3338
|
+
---
|
|
3339
|
+
|
|
3340
|
+
## Request Schema
|
|
3341
|
+
|
|
3342
|
+
- `productId`: Number representing the product identifier (required)
|
|
3343
|
+
|
|
3344
|
+
- `amount`: Number representing the transaction amount in cents (required)
|
|
3345
|
+
|
|
3346
|
+
- `webhookUrl`: String containing the URL to receive transaction status notifications (required)
|
|
3347
|
+
|
|
3348
|
+
- `data`: Object containing additional transaction data (required)
|
|
3349
|
+
|
|
3350
|
+
- `cellphone`: String containing the customer's cellphone number (required)
|
|
3351
|
+
|
|
3352
|
+
- `bankName`: String containing the target bank name (required)
|
|
3353
|
+
|
|
3354
|
+
|
|
3063
3355
|
---
|
|
3064
3356
|
|
|
3065
3357
|
### Test Phone Numbers
|
|
@@ -3227,6 +3519,23 @@ Automatically rejected: 3002491283
|
|
|
3227
3519
|
|
|
3228
3520
|
- **No commission processing**: Since the transaction failed, no commissions are processed for this transaction.
|
|
3229
3521
|
|
|
3522
|
+
---
|
|
3523
|
+
|
|
3524
|
+
## Request Schema
|
|
3525
|
+
|
|
3526
|
+
- `productId`: Number representing the product identifier (required)
|
|
3527
|
+
|
|
3528
|
+
- `amount`: Number representing the deposit amount in cents (required)
|
|
3529
|
+
|
|
3530
|
+
- `webhookUrl`: String containing the URL to receive transaction status notifications (required)
|
|
3531
|
+
|
|
3532
|
+
- `data`: Object containing additional transaction data (required)
|
|
3533
|
+
|
|
3534
|
+
- `cellphone`: String containing the customer's cellphone number (required)
|
|
3535
|
+
|
|
3536
|
+
- `bankName`: String containing the target bank name for the deposit (required)
|
|
3537
|
+
|
|
3538
|
+
|
|
3230
3539
|
---
|
|
3231
3540
|
|
|
3232
3541
|
### Test Phone Numbers
|