{"swagger":"2.0","info":{"description":"Api Documentation","version":"1.0.0","title":"Api Documentation","termsOfService":"urn:tos","contact":{},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}},"host":"180.250.56.100:8080","basePath":"/","tags":[{"name":"Self Onboarding API"}],"paths":{"/customer":{"post":{"tags":["Self Onboarding API"],"summary":"Create Customer","operationId":"createCustomerUsingPOST","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"X-API-Key","in":"header","description":"API Key","required":true,"type":"string","x-example":"api-key"},{"in":"body","name":"customerDTO","description":"customerDTO","required":true,"schema":{"$ref":"#/definitions/customer"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/CreateCustomerResponse"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ValidateCustomerErrorResponse"}},"403":{"description":"Forbidden"}},"deprecated":false}},"/customer/validate":{"post":{"tags":["Self Onboarding API"],"summary":"Validate Customer Information","operationId":"validateCustomerUsingPOST","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"X-API-Key","in":"header","description":"API Key","required":true,"type":"string","x-example":"api-key"},{"in":"body","name":"validateCustomerDTO","description":"validateCustomerDTO","required":true,"schema":{"$ref":"#/definitions/validateCustomer"}}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/ValidateCustomerResponse"}},"400":{"description":"Bad Request","schema":{"$ref":"#/definitions/ValidateCustomerErrorResponse"}},"403":{"description":"Forbidden"}},"deprecated":false}}},"definitions":{"CreateCustomerResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"status":{"type":"string"}},"title":"CreateCustomerResponse"},"ValidateCustomerError":{"type":"object","properties":{"key":{"type":"string"},"message":{"type":"string"}},"title":"ValidateCustomerError"},"ValidateCustomerErrorResponse":{"type":"object","properties":{"error":{"$ref":"#/definitions/ValidateCustomerError"}},"title":"ValidateCustomerErrorResponse"},"ValidateCustomerResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"status":{"type":"string"}},"title":"ValidateCustomerResponse"},"address":{"type":"object","required":["apartment","city","country","floor","postalCode","province","street","streetNumber"],"properties":{"street":{"type":"string"},"streetNumber":{"type":"string"},"floor":{"type":"string"},"apartment":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string","example":"LA PLATA, RESISTENCIA, BUENOS AIRES, ..."},"province":{"type":"string","example":"BUENOS AIRES, CHACO, CIUDAD AUTONOMA DE BUENOS AIRES, ..."},"country":{"type":"string","example":"ARGENTINA"}},"title":"address"},"customer":{"type":"object","required":["activity","address","callbackUrl","customerInformation","emailAddress","fantasyName","iibbCategorization","income","ivaCategorization","legalRepresentatives","liableSubject"],"properties":{"customerInformation":{"$ref":"#/definitions/customerInformation"},"emailAddress":{"type":"string"},"fantasyName":{"type":"string"},"activity":{"type":"string","enum":["Accesorios y Bijouterie","Artículos y servicios para el hogar","Asistencia Profesional","..."]},"income":{"type":"number","format":"double"},"liableSubject":{"type":"boolean"},"legalRepresentatives":{"type":"array","example":"empty array [] for customerType=HUMAN_PERSON, at least one element for customerType=COMPANY","items":{"$ref":"#/definitions/customerInformation"}},"ivaCategorization":{"type":"string","enum":["RESPONSABLE_INSCRIPTO","MONOTRIBUTO","EXENTO","NO_ALCANZADO","NO_CATEGORIZADO","CONSUMIDOR_FINAL"]},"iibbCategorization":{"type":"string","enum":["EXENTO","CONTRIBUYENTE_LOCAL","CONVENIO_MULTILATERAL","REGIMEN_SIMPLIFICADO","ALICUOTA_DIFERENCIAL","ALICUOTA_MORIGERADA","NO_INFORMADO","CONTRIBUYENTE_LOCAL_CABA","CONTRIBUYENTE_LOCAL_BUENOS_AIRES"]},"iibbNumber":{"type":"string"},"iibbExclusionDateSince":{"type":"string","format":"date","example":"yyyy-mm-dd"},"iibbExclusionDateUntil":{"type":"string","format":"date","example":"yyyy-mm-dd"},"address":{"$ref":"#/definitions/address"},"callbackUrl":{"type":"string"}},"title":"customer"},"customerInformation":{"type":"object","required":["customerType","documentNumber","documentType","firstName","fullName","gender","lastName","politicallyExposed","taxUniqueKey"],"properties":{"fullName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string","example":"empty for customerType=COMPANY"},"documentType":{"type":"string","enum":["DNI","LIBRETA_DE_ENROLAMIENTO","LIBRETA_CIVICA","PASAPORTE","CEDULA_DE_IDENTIDAD","DNI_EXTRANJERO","CUIT","CUIL","CDI","CEDULA_MILITAR","DNRP","UNKNOWN"]},"documentNumber":{"type":"integer","format":"int64"},"taxUniqueKey":{"type":"integer","format":"int64"},"gender":{"type":"string","enum":["FEMALE","MALE","UNKNOWN"]},"birthDate":{"type":"string","format":"date","example":"yyyy-mm-dd (required for customerType=HUMAN_PERSON)"},"incorporationDate":{"type":"string","format":"date","example":"yyyy-mm-dd (required for customerType=COMPANY)"},"customerType":{"type":"string","enum":["HUMAN_PERSON","COMPANY"]},"politicallyExposed":{"type":"boolean"}},"title":"customerInformation"},"validateCustomer":{"type":"object","required":["callbackUrl","customerInformation","emailAddress"],"properties":{"customerInformation":{"$ref":"#/definitions/customerInformation"},"emailAddress":{"type":"string"},"callbackUrl":{"type":"string"}},"title":"validateCustomer"}}}