post https://api.vendy.money/business/
This endpoint update details of the business by it's Id. One or more of request body parameters most be present or it will throw an error
Request:
Field | Type | Description |
---|---|---|
id | Integer | Unique identifier of business (Path Parameter) |
name | String | New business name |
country | String | New Country where business is located |
state | String | New State in country where business is located |
city | Enum(String) | New City in state where business is located |
postcode | String | New Code of numbers and letters part of a mailing address of business |
streetaddress | String | New Address of business |
Example request
curl --location 'https://api.vendy.money/business/930' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"name":"New Business Name",
"country": "nga",
"state": "Lagos",
"city": "Lagos",
"postcode": "10024",
"streetaddress": "No 2, Way road"
}'
Response:
Field | Type | Description |
---|---|---|
status | Boolean | States if request was successfully executed or not |
code | Integer | Internal code, success if 200 |
msg | String | Description of completed request |
data | JSON | Extra details |
Example response
{
"status": true,
"code": 200,
"msg": "Business updated",
"data": {}
}