Getting Started
Endpoints
- Benefit Applications
- Benefits
- Bookings
- Companies
- Event Tickets
- Feed Posts
- Invoices
- Invoice Items
- Locations
- Memberships
- Networks
- Orders
- Plans
- Products
- Resources
- Subscriptions
- Support Tickets
- Transactions
- Visitors
Bookings
Create booking
Create a booking.
OAuth
Required scopes:resources
POST
/
resources
/
bookings
/
v1
curl --request POST \
--url https://api.spacebring.com/resources/bookings/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"booking": {
"endDate": "2023-11-07T05:31:56Z",
"memo": "<string>",
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"title": "<string>",
"membershipRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}'
{
"booking": {
"attendees": [
{
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"about": "<string>",
"email": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"createDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memo": "<string>",
"membershipRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment": {
"amount": 123,
"currencyCode": "<string>",
"invoiceItemRef": "<string>",
"status": "succeeded",
"tax": {
"inclusive": true,
"rate": 123
},
"transactionRef": "<string>",
"type": "credits"
},
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seats": 123,
"startDate": "2023-11-07T05:31:56Z",
"title": "<string>",
"userOwner": {
"about": "<string>",
"email": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
}
Authorizations
See our authentication documentation for how to authorize your requests
Headers
The id of the network. Required when using bearer token authentication
Body
application/json
Response
201
application/json
Created
The amount of the payment
The currency code of the payment
The reference ID of the invoice item
Available options:
succeeded
, pending
, processing
, canceled
, failed
The reference ID of the transaction
Available options:
credits
, external
, flow
, fondy
, freedompay
, invoice
, kakaopay
, mercadopago
, paypal
, paystack
, plata
, stripe
, tap
, wayforpay
curl --request POST \
--url https://api.spacebring.com/resources/bookings/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"booking": {
"endDate": "2023-11-07T05:31:56Z",
"memo": "<string>",
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"title": "<string>",
"membershipRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}'
{
"booking": {
"attendees": [
{
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user": {
"about": "<string>",
"email": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"createDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"memo": "<string>",
"membershipRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment": {
"amount": 123,
"currencyCode": "<string>",
"invoiceItemRef": "<string>",
"status": "succeeded",
"tax": {
"inclusive": true,
"rate": 123
},
"transactionRef": "<string>",
"type": "credits"
},
"resourceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seats": 123,
"startDate": "2023-11-07T05:31:56Z",
"title": "<string>",
"userOwner": {
"about": "<string>",
"email": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
}