Partners (2.0.0)

Download OpenAPI specification:Download

DrCash API for Partners

Address

Rota responsável por retornar uma lista de endereços para um usuário

SecurityoAuth2ClientCredentials
Request
path Parameters
userId
required
string or null
Responses
200

Return a list of addresses for a user

400

Unable to return a list of addresses by user id due to validation error

404

No address registered by this user id in the system was found

get/api/v1/users/{userId}/addresses
Response samples
application/json
[
  • {
    }
]

Rota responsável por adicionar um novo endereço de usuário

SecurityoAuth2ClientCredentials
Request
path Parameters
userId
required
string or null
Request Body schema:
country
required
string
state
required
string
city
required
string
neighborhood
required
string
street
required
string
number
required
string
zipCode
required
string
propertyTypeId
required
integer <int32>
complement
string or null
Responses
200

Add a new user address

400

Unable to add a new user's address due to validation error

post/api/v1/users/{userId}/addresses
Request samples
{
  • "country": "Brasil",
  • "state": "MG",
  • "city": "Unaí",
  • "neighborhood": "Divineia",
  • "street": "Av. Governador valadares",
  • "number": "123",
  • "zipCode": "12345-678",
  • "propertyTypeId": 1,
  • "complement": "ap 9"
}
Response samples
application/json
{
  • "id": 1,
  • "country": "Brasil",
  • "zipCode": "12345-678",
  • "state": "MG",
  • "city": "Unaí",
  • "neighborhood": "Divineia",
  • "street": "Av. Governador valadares",
  • "number": "123",
  • "complement": "ap 9",
  • "latitude": 0,
  • "longitude": 0,
  • "propertyType": {
    }
}

Rota responsável por adicionar um novo endereço de clínica

SecurityoAuth2ClientCredentials
Request
path Parameters
clinicId
required
integer <int32>
Request Body schema:
country
required
string
state
required
string
city
required
string
neighborhood
required
string
street
required
string
number
required
string
zipCode
required
string
propertyTypeId
required
integer <int32>
complement
string or null
Responses
200

Add a new clinic address

400

Unable to add a new clinic's address due to validation error

post/api/v1/clinics/{clinicId}/addresses
Request samples
{
  • "country": "Brasil",
  • "state": "MG",
  • "city": "Unaí",
  • "neighborhood": "Divineia",
  • "street": "Av. Governador valadares",
  • "number": "123",
  • "zipCode": "12345-678",
  • "propertyTypeId": 1,
  • "complement": "ap 9"
}
Response samples
application/json
{
  • "id": 1,
  • "country": "Brasil",
  • "zipCode": "12345-678",
  • "state": "MG",
  • "city": "Unaí",
  • "neighborhood": "Divineia",
  • "street": "Av. Governador valadares",
  • "number": "123",
  • "complement": "ap 9",
  • "latitude": 0,
  • "longitude": 0,
  • "propertyType": {
    }
}

Rota responsável pela atualização de endereço de uma clínica

SecurityoAuth2ClientCredentials
Request
path Parameters
clinicId
required
integer <int32>
version
required
string
Request Body schema:
state
required
string
country
required
string
city
required
string
neighborhood
required
string
street
required
string
number
required
string
zipCode
required
string
propertyTypeId
required
integer <int32>
complement
string or null
Responses
200

Atualizar o endereço de uma clínica

400

Não foi possível atualizar o endereço de uma clínica devido a um erro de validação

put/api/v1/clinics/{clinicId}/addresses
Request samples
{
  • "state": "MG",
  • "country": "Brasil",
  • "city": "Unaí",
  • "neighborhood": "Divineia",
  • "street": "Av. Governador valadares",
  • "number": "123",
  • "zipCode": "12345-678",
  • "propertyTypeId": 1,
  • "complement": "ap 9"
}
Response samples
application/json
{
  • "id": 1,
  • "country": "Brasil",
  • "zipCode": "12345-678",
  • "state": "MG",
  • "city": "Unaí",
  • "neighborhood": "Divineia",
  • "street": "Av. Governador valadares",
  • "number": "123",
  • "complement": "ap 9",
  • "latitude": 0,
  • "longitude": 0,
  • "distance": 0,
  • "propertyType": {
    }
}

Rota responsável por devolver uma lista de endereços para um beneficiário

SecurityoAuth2ClientCredentials
Request
path Parameters
beneficiaryId
required
integer <int32>
Responses
200

Return a list of addresses for a beneficiary id

400

Unable to return a list of addresses by beneficiary id due to validation error

404

No address registered by this beneficiary id in the system was found

get/api/v1/beneficiaries/{beneficiaryId}/addresses
Response samples
application/json
[
  • {
    }
]

Rota responsável por adicionar um novo endereço para um beneficiário

SecurityoAuth2ClientCredentials
Request
path Parameters
beneficiaryId
required
integer <int32>
Request Body schema:
country
required
string
state
required
string
city
required
string
neighborhood
required
string
street
required
string
number
required
string
zipCode
required
string
propertyTypeId
required
integer <int32>
complement
string or null
Responses
200

Add a new beneficiary address

400

Unable to add a new beneficiary's address due to validation error

post/api/v1/beneficiaries/{beneficiaryId}/addresses
Request samples
{
  • "country": "Brasil",
  • "state": "MG",
  • "city": "Unaí",
  • "neighborhood": "Divineia",
  • "street": "Av. Governador valadares",
  • "number": "123",
  • "zipCode": "12345-678",
  • "propertyTypeId": 1,
  • "complement": "ap 9"
}
Response samples
application/json
{
  • "id": 1,
  • "country": "Brasil",
  • "zipCode": "12345-678",
  • "state": "MG",
  • "city": "Unaí",
  • "neighborhood": "Divineia",
  • "street": "Av. Governador valadares",
  • "number": "123",
  • "complement": "ap 9",
  • "latitude": 0,
  • "longitude": 0,
  • "propertyType": {
    }
}

Rota responsável por deletar um endereço

SecurityoAuth2ClientCredentials
Request
path Parameters
addressId
required
integer <int32>
Responses
204

Delete a beneficiary address

400

Não foi possível excluir o endereço de um beneficiário devido a um erro de validação

delete/api/v1/addresses/{addressId}
Response samples
application/json
{
  • "errors": [ ],
  • "httpStatus": 500
}

Rota responsável por retornar uma lista de tipos de propriedade

SecurityoAuth2ClientCredentials
Responses
200

Return a list of property types

400

Unable to return a list property types due to validation error

get/api/v1/addresses/property-types
Response samples
application/json
[
  • {
    }
]