Update Business Pickup Address
PATCH /api/v1/businesses/{businessId}/pickup-addresses/{addressId}
Description
Update the pickup address for a business.
Path Parameters
| Name | Type | Description |
|---|---|---|
businessId | string | The ID of the business (path) |
addressId | string | The ID of the address (path) |
Request Body
- Content Type:
application/json
{
"address": "string",
"country": {
"name": "string",
"code": "string",
"currency": "string"
},
"state": {
"name": "string",
"code": "string"
},
"lga": {
"name": "string",
"code": "string"
},
"latitude": 0,
"longitude": 0
}
Response Code: 200 - OK
Description
The pickup address was updated successfully.
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
Body
{
"address": "123 Main St",
"country": {
"name": "Nigeria",
"code": "NG",
"currency": "NGN"
},
"state": {
"name": "Lagos",
"code": "LA"
},
"lga": {
"name": "Ikeja",
"code": "IKJ"
},
"latitude": 6.5244,
"longitude": 3.3792
}
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/businesses/{businessId}/pickup-addresses/{addressId} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!