{ "openapi": "3.0.0", "info": { "contact": { "email": "visanet@gmail.com", "name": "VisaNet", "url": "http://www.visanet.com.pe" }, "description": "API related to RECURRENCE", "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "termsOfService": "http://www.visanet.com.pe", "title": "API Deaffiliate Product", "version": "1.0", "x-jentic-source-url": "https://api.swaggerhub.com/apis/VisaNetPeru/api.recurrence.deaffiliateProduct/1.0/swagger.json" }, "servers": [ { "url": "https://virtserver.swaggerhub.com/VisaNetPeru/api.recurrence.deaffiliateProduct/1.0" } ], "paths": { "/service/recurrence.deaffiliateProduct": { "post": { "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Response" } } }, "description": "successful operation" }, "401": { "description": "Unauthorized access" }, "500": { "description": "Invalid data" } }, "tags": [ "Recurrence Api" ], "description": "RESTful API to deaffiliate product.", "operationId": "doQuery", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Request" } } }, "description": "deaffiliate product", "required": true }, "summary": "Deaffiliate Product" } } }, "components": { "schemas": { "Header": { "type": "object" }, "MessageResponseHeader": { "properties": { "Status": { "properties": { "busResponseCode": { "example": "000", "type": "string" }, "busResponseMessage": { "example": "Éxito", "type": "string" }, "busResponseMsgId": { "example": "42524b45534241305c53077c8ce811e7955fac110b990000", "type": "string" }, "busResponseType": { "example": "0", "type": "string" }, "srvResponseCode": { "example": "000", "type": "string" }, "srvResponseMessage": { "example": "Registro de afiliacion con exito", "type": "string" } }, "type": "object" } }, "required": [ "errorCode", "errorMessage", "millis", "transactionUUID" ], "type": "object" }, "Request": { "properties": { "amount": { "description": "Importe\n", "example": 0.01, "type": "number" }, "channelId": { "description": "Código de canal de origen\n", "example": 3, "type": "integer" }, "companyId": { "description": "Company Id for operation", "example": "123", "type": "string" }, "currencyId": { "description": "Moneda de la transacción", "example": "604", "type": "string" }, "dataMap": { "properties": { "beneficiaryId": { "description": "Identificador del beneficiario en la plataforma REC ", "example": "897686889", "maxLength": 24, "type": "string" }, "channelId": { "description": "Canal consumidor. Enviar 6 (CE)", "example": "6", "maxLength": 1, "type": "string" }, "merchantId": { "description": "Código de comercio", "example": "341198210", "maxLength": 40, "type": "string" }, "productCode": { "description": "Valor registrado en el Sistema de Pagos Recurrente. (Plataforma REC)", "example": "1234", "maxLength": 40, "type": "string" } }, "required": [ "merchantId", "productCode", "channelId", "beneficiaryId" ], "type": "object" }, "dateTime": { "description": "Date time for operation in YYMMDD HH:MM:SS format", "example": "2018-08-06T23:11:43.878Z", "format": "date-time", "type": "string" }, "merchantId": { "description": "Código de comercio", "example": "341198210", "type": "string" }, "operationType": { "description": "Tipo de operación\n", "example": "S", "maxLength": 1, "type": "string" }, "referenceNumber": { "description": "Número de referencia", "example": "123456", "type": "string" }, "terminalId": { "description": "Número de terminal", "example": "11223344", "type": "string" }, "traceNumber": { "description": "Número de registro", "example": "123456", "type": "string" } }, "required": [ "terminalId", "companyId", "merchantId", "traceNumber", "referenceNumber", "dataMap" ], "type": "object" }, "Response": { "properties": { "amount": { "description": "Importe\n", "example": "000000000001", "type": "string" }, "currencyId": { "description": "Código de moneda\n", "example": "604", "maxLength": 3, "type": "string" }, "dataMap": { "properties": { "MessageResponse": { "properties": { "Body": { "properties": { "ComercioCambiarProductoBeneficiarioResponse": { "properties": { "apePatBeneficiario": { "description": "Apellido Paterno", "example": "Gómez", "type": "string" }, "apePatTarhabiente": { "description": "Apellido del tarjeta habiente", "example": "Perez", "type": "string" }, "codProducto": { "description": "Código de producto", "example": "PROD1", "type": "string" }, "idBeneficiario": { "description": "Id del beneficiario", "example": "79890909", "type": "string" }, "nomBeneficiario": { "description": "Nombre del beneficiario", "example": "María", "type": "string" }, "nomProducto": { "description": "Nombre de Producto", "example": "Producto Test", "type": "string" }, "nomTarHabiente": { "description": "Nombre del tarjeta habiente", "example": "Juan", "type": "string" } }, "type": "object" } }, "type": "object" }, "Header": { "$ref": "#/components/schemas/MessageResponseHeader" } }, "type": "object" } }, "type": "object" }, "dateTime": { "description": "Fecha de la transacción (Formato YYmmDDhhMMss)\n", "example": "161007223724", "maxLength": 14, "type": "string" }, "header": { "$ref": "#/components/schemas/Header" }, "merchantId": { "description": "Código del comercio\n", "example": "777777777", "maxLength": 9, "type": "string" }, "operationType": { "description": "Tipo de operación\n", "example": "S", "maxLength": 1, "type": "string" }, "status": { "description": "Código de respuesta 000 - Exito 400 - Error\n", "example": "000", "maxLength": 3, "type": "string" }, "traceNumber": { "description": "Número de transacción\n", "example": "123456", "maxLength": 6, "type": "string" } }, "type": "object" } }, "securitySchemes": { "accessToken": { "description": "Access token obtained from api.security", "in": "header", "name": "Authorization", "type": "apiKey" } } }, "tags": [ { "name": "Recurrence Api" } ] }