Reject a reservation
PATCHhttps://api.staging.powerapi.com/api/v1/reservations/:id/reject
Reject a reservation
Request
Path Parameters
id int32required
- application/vnd.api+json
Body
required
data
object
Responses
- 200
Reject a reservation
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
data
object
meta
object
{
"data": {
"id": "string",
"type": "reservations",
"links": {
"self": "string"
},
"attributes": {
"comment": "string",
"date": "string",
"email": "string",
"from": 0,
"marketing-agreement": true,
"name": "string",
"other-rejection-reason": "string",
"party-size": 0,
"phone": "string",
"phone-country-code": "string",
"phone-country-prefix": "string",
"reject-reason": "string",
"state": "string",
"status": "string",
"table": {
"id": 0,
"business_id": "string",
"floor_plan_id": "string",
"number": "string",
"number_of_seats": 0,
"uuid": "string",
"shape": "string",
"rotation": 0,
"position_x": 0,
"position_y": 0
},
"guest-id": "string",
"to": 0,
"created-at": "string"
},
"relationships": {
"bookings": {
"data": [
{
"type": "bookings",
"id": "string"
}
]
},
"tables": {
"links": {
"self": "string",
"related": "string"
}
},
"business": {
"links": {
"self": "string",
"related": "string"
}
},
"user": {
"links": {
"self": "string",
"related": "string"
}
}
}
},
"meta": {
"total-count": 0,
"total-pages": 0
}
}
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L -X PATCH 'https://api.staging.powerapi.com/api/v1/reservations/:id/reject' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"id": "string",
"type": "reservations",
"attributes": {
"reject_reason": "other",
"other_rejection_reason": "string"
}
}
}'
ResponseClear