POST Api/Business/Add

Request Information

URI Parameters

None.

Body Parameters

AddBusinessRequest
NameDescriptionTypeAdditional information
businessName

Nombre del negocio

string

None.

status

Estatus del negocio (Activo o Inactivo)

boolean

None.

userRegister

Usuario que registra el negocio

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "businessName": "sample string 1",
  "status": true,
  "userRegister": 3
}

application/xml, text/xml

Sample:
<AddBusinessRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <businessName>sample string 1</businessName>
  <status>true</status>
  <userRegister>3</userRegister>
</AddBusinessRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GenericResponse
NameDescriptionTypeAdditional information
success

La solicitud se realizo correctamente

boolean

None.

error

Error arrojado por la API

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "error": "sample string 2"
}

application/xml, text/xml

Sample:
<GenericResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <success>true</success>
  <error>sample string 2</error>
</GenericResponse>