Skip to main content

Update Business Pickup Addresses

PATCH /api/v1/businesses/{businessId}/pickup-addresses

Description

Update the pickup addresses for a specific business.

Path Parameters

NameTypeDescription
businessIdstringThe ID of the business (path)

Request Body

  • Content Type: application/json
{
"pickUpAddresses": [
{
"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

Pickup addresses updated successfully.

Response Fields

FieldTypeDescription
statusbooleanIndicates if the operation was successful
statusCodeintegerStatus code
messagestringResponse message
dataobjectData related to the updated pickup addresses
errorsarrayList of error messages, if any

Example

{
"status": true,
"statusCode": 0,
"message": "Pickup addresses updated successfully",
"data": {},
"errors": []
}

Headers

Content-TypeValue
apiKey{{apiKey}}

Body

{
"pickUpAddresses": [
{
"address": "123 Main Street",
"country": {
"name": "USA",
"code": "US",
"currency": "USD"
},
"state": {
"name": "California",
"code": "CA"
},
"lga": {
"name": "Los Angeles County",
"code": "LAC"
},
"latitude": 34.0522,
"longitude": -118.2437
}
]
}

🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PATCH \ 
--url /api/v1/businesses/{businessId}/pickup-addresses \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!