refacil-commerce-mcp 1.0.9 → 1.0.11
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 +71 -272
- package/dist/core/resources.js +49 -42
- package/dist/core/resources.js.map +1 -1
- package/dist/core/tools.d.ts +5 -4
- package/dist/core/tools.js +140 -55
- 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
|
+
- **33 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
|
|
@@ -214,6 +214,14 @@ To prevent abuse and repeated attempts in a short period, this endpoint applies
|
|
|
214
214
|
|
|
215
215
|
If these limits are exceeded, the API will temporarily reject additional calls, effectively asking the client to **wait a moment before trying again**.
|
|
216
216
|
|
|
217
|
+
### Token expiration
|
|
218
|
+
|
|
219
|
+
The access token **expires after 2 hours of inactivity**—that is, after **2 consecutive hours** with **no** authenticated API request using that token. **Expiry is based on idle time, not on how long ago the token was issued.** Successful requests that send the token typically **reset the inactivity window**; integrations that may remain idle longer than **2 hours** should plan to log in again or treat auth errors as described in **Integration guidance**.
|
|
220
|
+
|
|
221
|
+
### Integration guidance
|
|
222
|
+
|
|
223
|
+
When a protected request fails because the token is **invalid or expired** (including after an idle timeout), the API may respond with **401 Unauthorized** or **403 Forbidden** (or another documented authentication error for this API). **Call this login again** to obtain a **new** token, update the `Authorization` header, and **retry the original request once**. Use a clear policy to avoid infinite loops: one login plus one retry per failed call is the standard pattern; if authentication still fails, stop retrying and investigate credentials, user blocking, or rate limits.
|
|
224
|
+
|
|
217
225
|
---
|
|
218
226
|
|
|
219
227
|
### Request Body
|
|
@@ -222,8 +230,6 @@ If these limits are exceeded, the API will temporarily reject additional calls,
|
|
|
222
230
|
|
|
223
231
|
- `secretKey` (string) `required` - Secret key for authentication
|
|
224
232
|
|
|
225
|
-
- `saveSession` (boolean) - Flag that, if sent as `false`, allows the generated token to have an expiration of 12 hours.
|
|
226
|
-
|
|
227
233
|
|
|
228
234
|
---
|
|
229
235
|
|
|
@@ -237,7 +243,7 @@ If these limits are exceeded, the API will temporarily reject additional calls,
|
|
|
237
243
|
|
|
238
244
|
- `tokenType` (string) - Type of the token (e.g., "Bearer").
|
|
239
245
|
|
|
240
|
-
- `token` (string) -
|
|
246
|
+
- `token` (string) - Bearer access token. It expires after **2 hours of inactivity** (see **Token expiration**).
|
|
241
247
|
|
|
242
248
|
|
|
243
249
|
---
|
|
@@ -255,7 +261,6 @@ If these limits are exceeded, the API will temporarily reject additional calls,
|
|
|
255
261
|
| 400 | `validators.secretKey.required` | `El campo secretKey es obligatorio.` | `secretKey` is absent |
|
|
256
262
|
| 400 | `validators.secretKey.isString` | `El campo secretKey debe ser de tipo string` | `secretKey` is not a string |
|
|
257
263
|
| 400 | `validators.secretKey.isNotEmpty` | `El campo secretKey no puede estar vacío.` | `secretKey` is empty or whitespace-only |
|
|
258
|
-
| 400 | — | `The saveSession field must be of type boolean.` | `saveSession` is present but not a boolean |
|
|
259
264
|
| 400 | `auth.invalid` | `Credenciales inválidas` | User does not exist or incorrect password |
|
|
260
265
|
| 400 | `user.blocked` | `Estás bloqueado` | User is blocked — do not retry; contact support (body may include `notify: true`) |
|
|
261
266
|
| 400 | `auth.invalid.TimeOuthLoginFaild` | `No se ha superado el tiempo de bloqueo por intentos` | Account temporarily locked after failed login attempts. Body includes `code: 5002` and optionally `diferentTimes` (minutes remaining before unlock) |
|
|
@@ -858,19 +863,67 @@ The response will include the results of the query in case of success.
|
|
|
858
863
|
| ownAgreementId | null | Campo del body: ownAgreementId |
|
|
859
864
|
| data | object | Campo del body: data |
|
|
860
865
|
|
|
861
|
-
### `
|
|
866
|
+
### `query_convenio_vendo`
|
|
862
867
|
|
|
863
|
-
|
|
868
|
+
---
|
|
869
|
+
|
|
870
|
+
### Description
|
|
871
|
+
|
|
872
|
+
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.
|
|
873
|
+
|
|
874
|
+
---
|
|
875
|
+
|
|
876
|
+
### Request Body Schema
|
|
877
|
+
|
|
878
|
+
- productId (number) `required`: Identifier of the product to perform the query.
|
|
879
|
+
|
|
880
|
+
- queryType (string) `required`: Type of query to be performed.
|
|
881
|
+
|
|
882
|
+
- ownAgreementId (null): Identifier of the own agreement, if applicable.
|
|
883
|
+
|
|
884
|
+
- data (object) `required`: Additional data for the query.
|
|
885
|
+
|
|
886
|
+
- reference (string) `required`: Reference for the query.
|
|
887
|
+
|
|
864
888
|
|
|
865
|
-
|
|
889
|
+
---
|
|
866
890
|
|
|
867
|
-
|
|
891
|
+
### Response Body Schema
|
|
868
892
|
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
893
|
+
- message (string): Response message.
|
|
894
|
+
|
|
895
|
+
- messageCode (string): Code related to the response message.
|
|
896
|
+
|
|
897
|
+
- data (object): Response data object.
|
|
898
|
+
|
|
899
|
+
- payload (object): Payload data.
|
|
900
|
+
|
|
901
|
+
- amount (number): Amount related to the product.
|
|
902
|
+
|
|
903
|
+
- productId (number): ID of the product.
|
|
904
|
+
|
|
905
|
+
- productName (string): Name of the product.
|
|
906
|
+
|
|
907
|
+
- reference (string): Reference related to the query.
|
|
908
|
+
|
|
909
|
+
- hashEchoData (string): Hash echo data.
|
|
910
|
+
|
|
911
|
+
- hash (string): Hash value.
|
|
912
|
+
|
|
913
|
+
- amountEditable (boolean): Indicates if the amount is editable.
|
|
914
|
+
|
|
915
|
+
**Parámetros:**
|
|
916
|
+
|
|
917
|
+
| Name | Type | Description |
|
|
918
|
+
| --- | --- | --- |
|
|
919
|
+
| productId | number | Campo del body: productId |
|
|
920
|
+
| queryType | string | Campo del body: queryType |
|
|
921
|
+
| ownAgreementId | number | Campo del body: ownAgreementId |
|
|
922
|
+
| data | object | Campo del body: data |
|
|
923
|
+
|
|
924
|
+
### `query`
|
|
925
|
+
|
|
926
|
+
**Important:** This request will be processed within a timeout of **30,000 milliseconds (30 seconds)**.
|
|
874
927
|
|
|
875
928
|
**Parámetros:**
|
|
876
929
|
|
|
@@ -978,20 +1031,6 @@ Allows performing a sale on the platform. Send the request body with the necessa
|
|
|
978
1031
|
|
|
979
1032
|
- `message`: String representing the message (required)
|
|
980
1033
|
|
|
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
|
-
|
|
995
1034
|
**Parámetros:**
|
|
996
1035
|
|
|
997
1036
|
| Name | Type | Description |
|
|
@@ -1061,19 +1100,6 @@ The following payload is required for performing a custom query:
|
|
|
1061
1100
|
|
|
1062
1101
|
- `license`: (string, optional) The license plate of the vehicle.
|
|
1063
1102
|
|
|
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
|
-
|
|
1077
1103
|
**Parámetros:**
|
|
1078
1104
|
|
|
1079
1105
|
| Name | Type | Description |
|
|
@@ -1176,35 +1202,6 @@ The following payload is required for performing a custom sell:
|
|
|
1176
1202
|
|
|
1177
1203
|
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.
|
|
1178
1204
|
|
|
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
|
-
|
|
1208
1205
|
**Parámetros:**
|
|
1209
1206
|
|
|
1210
1207
|
| Name | Type | Description |
|
|
@@ -1935,40 +1932,6 @@ Allows performing a sale on the platform. Send the request body with the necessa
|
|
|
1935
1932
|
|
|
1936
1933
|
**Important:** This response will be returned within a timeout of **60,000 milliseconds (60 seconds)**.
|
|
1937
1934
|
|
|
1938
|
-
---
|
|
1939
|
-
|
|
1940
|
-
## Request Schema
|
|
1941
|
-
|
|
1942
|
-
- `productId`: Number representing the product identifier (required)
|
|
1943
|
-
|
|
1944
|
-
- `amount`: Number representing the payment amount (required)
|
|
1945
|
-
|
|
1946
|
-
- `data`: Object containing additional transaction data (required)
|
|
1947
|
-
|
|
1948
|
-
- `cellphone`: String containing the customer's cellphone number (required)
|
|
1949
|
-
|
|
1950
|
-
- `document`: String containing the customer's identification document number (required)
|
|
1951
|
-
|
|
1952
|
-
- `name`: String containing the customer's first name (required)
|
|
1953
|
-
|
|
1954
|
-
- `lastname`: String containing the customer's last name (required)
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
---
|
|
1958
|
-
|
|
1959
|
-
### Test Data
|
|
1960
|
-
|
|
1961
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
1962
|
-
|
|
1963
|
-
| Field | Example Value |
|
|
1964
|
-
|-------|---------------|
|
|
1965
|
-
| productId | 603 |
|
|
1966
|
-
| amount | 100 |
|
|
1967
|
-
| data.cellphone | "3200000000" |
|
|
1968
|
-
| data.document | "1023900000" |
|
|
1969
|
-
| data.name | "Pachito" |
|
|
1970
|
-
| data.lastname | "Hernesto" |
|
|
1971
|
-
|
|
1972
1935
|
**Parámetros:**
|
|
1973
1936
|
|
|
1974
1937
|
| Name | Type | Description |
|
|
@@ -1987,28 +1950,6 @@ Allows performing a sale on the platform. Send the request body with the necessa
|
|
|
1987
1950
|
|
|
1988
1951
|
**Important:** This response will be returned within a timeout of **60,000 milliseconds (60 seconds)**.
|
|
1989
1952
|
|
|
1990
|
-
---
|
|
1991
|
-
|
|
1992
|
-
## Request Schema
|
|
1993
|
-
|
|
1994
|
-
- `productId`: Number representing the product identifier (required)
|
|
1995
|
-
|
|
1996
|
-
- `data`: Object containing additional transaction data (required)
|
|
1997
|
-
|
|
1998
|
-
- `cellphone`: String containing the customer's cellphone number (required)
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
---
|
|
2002
|
-
|
|
2003
|
-
### Test Data
|
|
2004
|
-
|
|
2005
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2006
|
-
|
|
2007
|
-
| Field | Example Value |
|
|
2008
|
-
|-------|---|
|
|
2009
|
-
| productId | 200048 |
|
|
2010
|
-
| data.cellphone | "3215302000" |
|
|
2011
|
-
|
|
2012
1953
|
**Parámetros:**
|
|
2013
1954
|
|
|
2014
1955
|
| Name | Type | Description |
|
|
@@ -2108,16 +2049,6 @@ Allows performing a bill payment operation on the platform. Send the request bod
|
|
|
2108
2049
|
|
|
2109
2050
|
**Important:** This response will be returned within a timeout of **60,000 milliseconds (60 seconds)**.
|
|
2110
2051
|
|
|
2111
|
-
### Test Data
|
|
2112
|
-
|
|
2113
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2114
|
-
|
|
2115
|
-
| Field | Example Value |
|
|
2116
|
-
|-------|---------------|
|
|
2117
|
-
| productId | 50 |
|
|
2118
|
-
| amount | 1000 |
|
|
2119
|
-
| data.cellphone | "3015874044" |
|
|
2120
|
-
|
|
2121
2052
|
**Parámetros:**
|
|
2122
2053
|
|
|
2123
2054
|
| Name | Type | Description |
|
|
@@ -2219,17 +2150,6 @@ Allows performing a sale on the platform. Send the request body with the necessa
|
|
|
2219
2150
|
|
|
2220
2151
|
**Important:** This response will be returned within a timeout of **60,000 milliseconds (60 seconds)**.
|
|
2221
2152
|
|
|
2222
|
-
### Test Data
|
|
2223
|
-
|
|
2224
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2225
|
-
|
|
2226
|
-
| Field | Example Value |
|
|
2227
|
-
|-------|---------------|
|
|
2228
|
-
| productId | 202 |
|
|
2229
|
-
| amount | 50 |
|
|
2230
|
-
| data.cellphone | "3015874029" |
|
|
2231
|
-
| data.email | "correo@refacil.com" |
|
|
2232
|
-
|
|
2233
2153
|
**Parámetros:**
|
|
2234
2154
|
|
|
2235
2155
|
| Name | Type | Description |
|
|
@@ -2325,16 +2245,6 @@ Allows performing a bill payment operation on the platform. Send the request bod
|
|
|
2325
2245
|
|
|
2326
2246
|
- `message`: String representing the message (required)
|
|
2327
2247
|
|
|
2328
|
-
### Test Data
|
|
2329
|
-
|
|
2330
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2331
|
-
|
|
2332
|
-
| Field | Example Value |
|
|
2333
|
-
|-------|---------------|
|
|
2334
|
-
| productId | 1014005 |
|
|
2335
|
-
| data.cellphone | "3104784242" |
|
|
2336
|
-
| data.email | "fake@refacil.com" |
|
|
2337
|
-
|
|
2338
2248
|
**Parámetros:**
|
|
2339
2249
|
|
|
2340
2250
|
| Name | Type | Description |
|
|
@@ -2429,16 +2339,6 @@ Allows performing a bill payment operation on the platform. Send the request bod
|
|
|
2429
2339
|
|
|
2430
2340
|
- `message`: String representing the message (required)
|
|
2431
2341
|
|
|
2432
|
-
### Test Data
|
|
2433
|
-
|
|
2434
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2435
|
-
|
|
2436
|
-
| Field | Example Value |
|
|
2437
|
-
|-------|---------------|
|
|
2438
|
-
| productId | 100777 |
|
|
2439
|
-
| data.cellphone | "3104784242" |
|
|
2440
|
-
| data.email | "fake@refacil.com" |
|
|
2441
|
-
|
|
2442
2342
|
**Parámetros:**
|
|
2443
2343
|
|
|
2444
2344
|
| Name | Type | Description |
|
|
@@ -2533,16 +2433,6 @@ Allows performing a bill payment operation on the platform. Send the request bod
|
|
|
2533
2433
|
|
|
2534
2434
|
- `message`: String representing the message (required)
|
|
2535
2435
|
|
|
2536
|
-
### Test Data
|
|
2537
|
-
|
|
2538
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2539
|
-
|
|
2540
|
-
| Field | Example Value |
|
|
2541
|
-
|-------|---------------|
|
|
2542
|
-
| productId | 1014004 |
|
|
2543
|
-
| data.cellphone | "3104784242" |
|
|
2544
|
-
| data.email | "fake@refacil.com" |
|
|
2545
|
-
|
|
2546
2436
|
**Parámetros:**
|
|
2547
2437
|
|
|
2548
2438
|
| Name | Type | Description |
|
|
@@ -2550,7 +2440,7 @@ Use the following example values to test this endpoint in the QA environment:
|
|
|
2550
2440
|
| data | object | Campo del body: data |
|
|
2551
2441
|
| productId | number | Campo del body: productId |
|
|
2552
2442
|
|
|
2553
|
-
### `
|
|
2443
|
+
### `query_25`
|
|
2554
2444
|
|
|
2555
2445
|
---
|
|
2556
2446
|
|
|
@@ -2607,19 +2497,6 @@ If the request fails with the errorCode `product.errors.disabled` or a similar c
|
|
|
2607
2497
|
|
|
2608
2498
|
**Important:** This request will be processed within a timeout of **30,000 milliseconds (30 seconds)**.
|
|
2609
2499
|
|
|
2610
|
-
### Test Data
|
|
2611
|
-
|
|
2612
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2613
|
-
|
|
2614
|
-
| Field | Example Value |
|
|
2615
|
-
|-------|---------------|
|
|
2616
|
-
| queryType | "ConfirmData" |
|
|
2617
|
-
| productId | 231 |
|
|
2618
|
-
| data.carrierId | 231 |
|
|
2619
|
-
| data.cellphone | "3203550000" |
|
|
2620
|
-
| data.amount | 10000 |
|
|
2621
|
-
| data.reference | "1234567" |
|
|
2622
|
-
|
|
2623
2500
|
**Parámetros:**
|
|
2624
2501
|
|
|
2625
2502
|
| Name | Type | Description |
|
|
@@ -2729,19 +2606,6 @@ The timeout value specified below is directly established by the provider and mu
|
|
|
2729
2606
|
|
|
2730
2607
|
- `message`: String representing the message (required)
|
|
2731
2608
|
|
|
2732
|
-
### Test Data
|
|
2733
|
-
|
|
2734
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2735
|
-
|
|
2736
|
-
| Field | Example Value |
|
|
2737
|
-
|-------|---------------|
|
|
2738
|
-
| productId | 231 |
|
|
2739
|
-
| amount | 10000 |
|
|
2740
|
-
| data.plan | "AP" |
|
|
2741
|
-
| data.reference | "1234567" |
|
|
2742
|
-
| data.cellphone | "3203550000" |
|
|
2743
|
-
| data.hashEchoData | "eyJub21icmVfY2xpZW50ZSI6IkVMU1kgU0VyVklDRSIsImRpcmVjY2lvbiI6IlVSQiBWSUxMQSBWSUNUT1JJQSBDQVNBIDEwMyAtIFNBTiBNQVJUSU4iLCJkbmlfY2xpZW50ZSI6IjM5MDIyMDMxIiwiY29udHJhdG8iOiIxMjM0NTY3IiwidmFsb3JfdmVudGEiOiIxMDAwMCIsInBsYW4iOiIiLCJ0eXBlIjoiIn0=" |
|
|
2744
|
-
|
|
2745
2609
|
**Parámetros:**
|
|
2746
2610
|
|
|
2747
2611
|
| Name | Type | Description |
|
|
@@ -2752,7 +2616,7 @@ Use the following example values to test this endpoint in the QA environment:
|
|
|
2752
2616
|
| sellType | string | Campo del body: sellType |
|
|
2753
2617
|
| hash | string | Campo del body: hash |
|
|
2754
2618
|
|
|
2755
|
-
### `
|
|
2619
|
+
### `query_27`
|
|
2756
2620
|
|
|
2757
2621
|
---
|
|
2758
2622
|
|
|
@@ -2821,21 +2685,6 @@ If the request fails with the errorCode `product.errors.disabled` or a similar c
|
|
|
2821
2685
|
|
|
2822
2686
|
**Important:** This request will be processed within a timeout of **30,000 milliseconds (30 seconds)**.
|
|
2823
2687
|
|
|
2824
|
-
### Test Data
|
|
2825
|
-
|
|
2826
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2827
|
-
|
|
2828
|
-
| Field | Example Value |
|
|
2829
|
-
|-------|---------------|
|
|
2830
|
-
| queryType | "ConfirmData" |
|
|
2831
|
-
| productId | 230 |
|
|
2832
|
-
| data.carrierId | 230 |
|
|
2833
|
-
| data.cellphone | "3203550000" |
|
|
2834
|
-
| data.amount | 10000 |
|
|
2835
|
-
| data.reference | "1234567" |
|
|
2836
|
-
| data.plan | "AP" |
|
|
2837
|
-
| data.type | "PT" |
|
|
2838
|
-
|
|
2839
2688
|
**Parámetros:**
|
|
2840
2689
|
|
|
2841
2690
|
| Name | Type | Description |
|
|
@@ -2845,7 +2694,7 @@ Use the following example values to test this endpoint in the QA environment:
|
|
|
2845
2694
|
| data | object | Campo del body: data |
|
|
2846
2695
|
| ownAgreementId | null | Campo del body: ownAgreementId |
|
|
2847
2696
|
|
|
2848
|
-
### `
|
|
2697
|
+
### `sell_28`
|
|
2849
2698
|
|
|
2850
2699
|
---
|
|
2851
2700
|
|
|
@@ -2958,22 +2807,6 @@ The timeout value specified below is directly established by the provider and mu
|
|
|
2958
2807
|
|
|
2959
2808
|
- `message`: String representing the message (required)
|
|
2960
2809
|
|
|
2961
|
-
### Test Data
|
|
2962
|
-
|
|
2963
|
-
Use the following example values to test this endpoint in the QA environment:
|
|
2964
|
-
|
|
2965
|
-
| Field | Example Value |
|
|
2966
|
-
|-------|---------------|
|
|
2967
|
-
| productId | 230 |
|
|
2968
|
-
| amount | 10000 |
|
|
2969
|
-
| data.cellphone | "3203550000" |
|
|
2970
|
-
| data.plan | "AP" |
|
|
2971
|
-
| data.reference | "1234567" |
|
|
2972
|
-
| data.type | "PT" |
|
|
2973
|
-
| data.valorAseo | 5000 |
|
|
2974
|
-
| data.valorEnergia | 5000 |
|
|
2975
|
-
| data.hashEchoData | "eyJub21icmVfY2xpZW50ZSI6IkVMU1kgU0VyVklDRSIsImRpcmVjY2lvbiI6IlVSQiBWSUxMQSBWSUNUT1JJQSBDQVNBIDEwMyAtIFNBTiBNQVJUSU4iLCJkbmlfY2xpZW50ZSI6IjM5MDIyMDMxIiwiY29udHJhdG8iOiIxMjM0NTY3IiwidmFsb3JfdmVudGEiOiIxMDAwMCIsInZhbG9yX2FzZW8iOjUwMDAsInZhbG9yX2VuZXJnaWEiOjUwMDAsImNlbHVsYXIiOiIzMjAzNTUwMDAwIiwiaWRDb25maXJtYWNpb24iOiJzZGpha3NkamRqYS1kYXMwZGRhbnNkMDItZnNhZGthc2RrNTYiLCJwbGFuIjoiQVAiLCJ0eXBlIjoiUFQifQ==" |
|
|
2976
|
-
|
|
2977
2810
|
**Parámetros:**
|
|
2978
2811
|
|
|
2979
2812
|
| Name | Type | Description |
|
|
@@ -2984,7 +2817,7 @@ Use the following example values to test this endpoint in the QA environment:
|
|
|
2984
2817
|
| sellType | string | Campo del body: sellType |
|
|
2985
2818
|
| hash | string | Campo del body: hash |
|
|
2986
2819
|
|
|
2987
|
-
### `
|
|
2820
|
+
### `query_29`
|
|
2988
2821
|
|
|
2989
2822
|
Here you will find all the endpoints related to Transfiya correspondent selling.
|
|
2990
2823
|
|
|
@@ -3232,23 +3065,6 @@ curl --location --globoff 'https://acme.refacil.local/transfiYaNotifications' \
|
|
|
3232
3065
|
|
|
3233
3066
|
**Step 9: Transaction marked as failed:** If the transaction status changes to "REJECTED," the transaction is officially marked as failed within the system.
|
|
3234
3067
|
|
|
3235
|
-
---
|
|
3236
|
-
|
|
3237
|
-
## Request Schema
|
|
3238
|
-
|
|
3239
|
-
- `productId`: Number representing the product identifier (required)
|
|
3240
|
-
|
|
3241
|
-
- `amount`: Number representing the transaction amount in cents (required)
|
|
3242
|
-
|
|
3243
|
-
- `webhookUrl`: String containing the URL to receive transaction status notifications (required)
|
|
3244
|
-
|
|
3245
|
-
- `data`: Object containing additional transaction data (required)
|
|
3246
|
-
|
|
3247
|
-
- `cellphone`: String containing the customer's cellphone number (required)
|
|
3248
|
-
|
|
3249
|
-
- `bankName`: String containing the target bank name (required)
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
3068
|
---
|
|
3253
3069
|
|
|
3254
3070
|
### Test Phone Numbers
|
|
@@ -3416,23 +3232,6 @@ Automatically rejected: 3002491283
|
|
|
3416
3232
|
|
|
3417
3233
|
- **No commission processing**: Since the transaction failed, no commissions are processed for this transaction.
|
|
3418
3234
|
|
|
3419
|
-
---
|
|
3420
|
-
|
|
3421
|
-
## Request Schema
|
|
3422
|
-
|
|
3423
|
-
- `productId`: Number representing the product identifier (required)
|
|
3424
|
-
|
|
3425
|
-
- `amount`: Number representing the deposit amount in cents (required)
|
|
3426
|
-
|
|
3427
|
-
- `webhookUrl`: String containing the URL to receive transaction status notifications (required)
|
|
3428
|
-
|
|
3429
|
-
- `data`: Object containing additional transaction data (required)
|
|
3430
|
-
|
|
3431
|
-
- `cellphone`: String containing the customer's cellphone number (required)
|
|
3432
|
-
|
|
3433
|
-
- `bankName`: String containing the target bank name for the deposit (required)
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
3235
|
---
|
|
3437
3236
|
|
|
3438
3237
|
### Test Phone Numbers
|