Skip to main content

Outlet Properties

This section specifies how a partner can update the outlet information.

Update Outlet Properties

By using this method, you can update your restaurant outlet information such as outlet is open or close.

PATCH /integrations/gofood/outlets/{outlet_id}/v1/properties

Sample Request

Sample Request
curl -X PATCH https://api.partner-sandbox.gobiz.co.id/integrations/gofood/outlets/{outlet_id}/v1/properties \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access-token}' \
-d $'
{
"force_close": false
}
'

Path Parameters

NameDescriptionTypeRequired
outlet_idID of the restaurant for which you want to update the status.StringRequired

Request Parameters

JSON AttributeDescriptionTypeRequired
force_closeRestaurant outlet status.BooleanRequired

Sample Response - 200 Success

{
"success": true,
"data":
{
"force_close": false
}
}

Response Parameter - 200 Success

JSON AttributeDescriptionType
successStatus of the request. Value true indicates successful submission of the request.Boolean
dataDetails of the updated restaurant.Object
» force_closerestaurant outlet status.Boolean
note
  • To perform this operation, you must be authenticated using go_auth_authorization_code(gofood:outlet:write) using Owner or Manager roles.
  • Possible error responses are 401, 404, 406, and 415. Please refer Error Glossary.