{
	"info": {
		"_postman_id": "c4c46a30-8a0a-409a-97b9-2b28105fa87d",
		"name": "FIS Copy",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "20885411",
		"_collection_link": "https://orange-rocket-155215.postman.co/workspace/CDC~477c9bb4-8fba-4d20-ae60-48414ea1bf63/collection/20885411-c4c46a30-8a0a-409a-97b9-2b28105fa87d?action=share&source=collection_link&creator=20885411"
	},
	"item": [
		{
			"name": "API FIS2022 DG",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"function doHttpSig() {",
							"    var navigator = {};",
							"    var window = {};",
							"    eval(pm.environment.get(\"jsrsasign-js\"));",
							"    ",
							"    var sig = new KJUR.crypto.Signature({\"alg\": \"SHA256withECDSA\", \"prov\": \"cryptojs/jsrsa\"});",
							" //   sig.init({d: pm.environment.get(\"private_key\").trim().replace(/[\\x00-\\x1F\\x7F-\\x9F]/g, \"\"), curve: \"secp384r1\"});",
							"    sig.init({d: pm.environment.get(\"private_key\").trim().replace(/[\\x00-\\x1F\\x7F-\\x9F]/g, \"\"), curve: \"secp384r1\"}); ",
							"    sig.updateString(request.data);",
							"    postman.setEnvironmentVariable(\"signature\", sig.sign());",
							"}",
							"",
							"if (!pm.environment.has(\"jsrsasign-js\") || pm.environment.get(\"jsrsasign-js\")=== \"\") {",
							"    console.log(\"La biblioteca jsrasign aún no se ha descargado. Descargando ahora.\");",
							"    pm.sendRequest({",
							"        url: \"https://cdnjs.cloudflare.com/ajax/libs/jsrsasign/8.0.12/jsrsasign-all-min.js\",",
							"        method: \"GET\",",
							"        body: {}",
							"    }, function (err, res) {",
							"        postman.setEnvironmentVariable(\"jsrsasign-js\", res.text());",
							"        doHttpSig();",
							"    });",
							"} else {",
							"    doHttpSig();",
							"}"
						],
						"type": "text/javascript"
					}
				}
			],
			"protocolProfileBehavior": {
				"disabledSystemHeaders": {
					"content-type": true
				}
			},
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					},
					{
						"key": "x-api-key",
						"value": "{{x-api-key}}",
						"type": "text"
					},
					{
						"key": "x-signature",
						"value": "{{signature}}",
						"type": "text"
					},
					{
						"key": "password",
						"value": "{{password}}",
						"type": "text"
					},
					{
						"key": "username",
						"value": "{{username}}",
						"type": "text"
					},
					{
						"key": "Otorgante",
						"value": "000268",
						"type": "text"
					},
					{
						"key": "Usuario",
						"value": "989",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"primerNombre\": \"YAZMIN DEL SOCORRO\",\n    \"apellidoPaterno\": \"HERRERA\",\n    \"apellidoMaterno\": \"CAAMAL\",\n    \"fechaNacimiento\": \"14-05-1975\",\n    \"rfc\": \"GAGP8512318Z2\",\n    \"direccion\": \"SIN NOMBRE\",\n    \"coloniaPoblacion\": \"EL ALACRAN\",\n    \"ciudad\": \"CANDELARIA LOXICHA\",\n    \"estado\": \"OAX\",\n    \"pais\": \"MEX\",\n    \"delegacionMunicipio\": \"LOXICHA\",\n    \"cp\": \"70950\"\n}"
				},
				"url": {
					"raw": "https://circulodecredito-dev.apigee.net/v1/fis2022/obtenerScore",
					"protocol": "https",
					"host": [
						"circulodecredito-dev",
						"apigee",
						"net"
					],
					"path": [
						"v1",
						"fis2022",
						"obtenerScore"
					]
				}
			},
			"response": [
				{
					"name": "FIS 2022 DG",
					"originalRequest": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"primerNombre\": \"PEDRO\",\n    \"apellidoPaterno\": \"GARZA\",\n    \"apellidoMaterno\": \"GARCIA\",\n    \"fechaNacimiento\": \"31-12-1985\",\n    \"rfc\": \"GAGP8512318Z2\",\n    \"direccion\": \"INSURGENTES SUR 1007\",\n    \"coloniaPoblacion\": \"INSURGENTES\",\n    \"ciudad\": \"MEXICO\",\n    \"estado\": \"DF\",\n    \"pais\": \"MEX\",\n    \"delegacionMunicipio\": \"BENITO JUAREZ\",\n    \"cp\": \"11230\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{URL}}/obtenerScore",
							"protocol": "http",
							"host": [
								"10",
								"77",
								"50",
								"90"
							],
							"port": "7011",
							"path": [
								"obtenerScore"
							]
						}
					},
					"_postman_previewlanguage": "Text",
					"header": [],
					"cookie": [],
					"body": ""
				},
				{
					"name": "FIS 2022 DG Copy",
					"originalRequest": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"primerNombre\": \"YAZMIN DEL SOCORRO\",\n    \"apellidoPaterno\": \"HERRERA\",\n    \"apellidoMaterno\": \"CAAMAL\",\n    \"fechaNacimiento\": \"14-05-1975\",\n    \"rfc\": \"GAGP8512318Z2\",\n    \"direccion\": \"SIN NOMBRE\",\n    \"coloniaPoblacion\": \"EL ALACRAN\",\n    \"ciudad\": \"CANDELARIA LOXICHA\",\n    \"estado\": \"OAX\",\n    \"pais\": \"MEX\",\n    \"delegacionMunicipio\": \"LOXICHA\",\n    \"cp\": 45750\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{URL}}/obtenerScore",
							"protocol": "http",
							"host": [
								"10",
								"77",
								"50",
								"90"
							],
							"port": "7011",
							"path": [
								"obtenerScore"
							]
						}
					},
					"_postman_previewlanguage": "Text",
					"header": [],
					"cookie": [],
					"body": ""
				}
			]
		},
		{
			"name": "API FIS2022 Folios",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"function doHttpSig() {",
							"    var navigator = {};",
							"    var window = {};",
							"    eval(pm.environment.get(\"jsrsasign-js\"));",
							"    ",
							"    var sig = new KJUR.crypto.Signature({\"alg\": \"SHA256withECDSA\", \"prov\": \"cryptojs/jsrsa\"});",
							" //   sig.init({d: pm.environment.get(\"private_key\").trim().replace(/[\\x00-\\x1F\\x7F-\\x9F]/g, \"\"), curve: \"secp384r1\"});",
							"    sig.init({d: pm.environment.get(\"private_key\").trim().replace(/[\\x00-\\x1F\\x7F-\\x9F]/g, \"\"), curve: \"secp384r1\"}); ",
							"    sig.updateString(request.data);",
							"    postman.setEnvironmentVariable(\"signature\", sig.sign());",
							"}",
							"",
							"if (!pm.environment.has(\"jsrsasign-js\") || pm.environment.get(\"jsrsasign-js\")=== \"\") {",
							"    console.log(\"La biblioteca jsrasign aún no se ha descargado. Descargando ahora.\");",
							"    pm.sendRequest({",
							"        url: \"https://cdnjs.cloudflare.com/ajax/libs/jsrsasign/8.0.12/jsrsasign-all-min.js\",",
							"        method: \"GET\",",
							"        body: {}",
							"    }, function (err, res) {",
							"        postman.setEnvironmentVariable(\"jsrsasign-js\", res.text());",
							"        doHttpSig();",
							"    });",
							"} else {",
							"    doHttpSig();",
							"}"
						],
						"type": "text/javascript"
					}
				}
			],
			"protocolProfileBehavior": {
				"disabledSystemHeaders": {
					"content-type": true
				}
			},
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "text"
					},
					{
						"key": "x-api-key",
						"value": "{{x-api-key}}",
						"type": "text"
					},
					{
						"key": "x-signature",
						"value": "{{signature}}",
						"type": "text"
					},
					{
						"key": "password",
						"value": "{{password}}",
						"type": "text"
					},
					{
						"key": "username",
						"value": "{{username}}",
						"type": "text"
					},
					{
						"key": "Otorgante",
						"value": "000268",
						"type": "text"
					},
					{
						"key": "Usuario",
						"value": "989",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"folioOtorgante\": 1234312,\n    \"folioConsulta\": 389941833\n}"
				},
				"url": {
					"raw": "https://circulodecredito-dev.apigee.net/v1/fis2022/obtenerScore",
					"protocol": "https",
					"host": [
						"circulodecredito-dev",
						"apigee",
						"net"
					],
					"path": [
						"v1",
						"fis2022",
						"obtenerScore"
					]
				}
			},
			"response": [
				{
					"name": "FIS 2022 FOLIOS 8604",
					"originalRequest": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"folioOtorgante\": 1234312,\n    \"folioConsulta\": 390018604\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{URL}}/obtenerScore",
							"protocol": "http",
							"host": [
								"10",
								"77",
								"50",
								"90"
							],
							"port": "7011",
							"path": [
								"obtenerScore"
							]
						}
					},
					"_postman_previewlanguage": "Text",
					"header": [],
					"cookie": [],
					"body": ""
				},
				{
					"name": "FIS 2022 FOLIOS 9386",
					"originalRequest": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"folioOtorgante\": 1234312,\n    \"folioConsulta\": 390009386\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{URL}}/obtenerScore",
							"protocol": "http",
							"host": [
								"10",
								"77",
								"50",
								"90"
							],
							"port": "7011",
							"path": [
								"obtenerScore"
							]
						}
					},
					"_postman_previewlanguage": "Text",
					"header": [],
					"cookie": [],
					"body": ""
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		},
		{
			"value": "",
			"type": "string",
			"disabled": true
		}
	]
}