Getting started
Endpoints
- Benefit applications
- Benefit categories
- Benefits
- Bookings
- Companies
- Events
- Event tickets
- Feed posts
- Invoices
- Invoice items
- Locations
- Memberships
- Networks
- Orders
- Plans
- Products
- Registrations
- Resources
- Shop categories
- Subscriptions
- Support tickets
- Transactions
- Visitors
Benefit applications
Apply for a benefit
Apply for a benefit.
OAuth
Required scopes:benefits
POST
/
benefits
/
applications
/
v1
Copy
curl --request POST \
--url https://api.spacebring.com/benefits/applications/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"application": {
"benefitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comment": "<string>"
}
}'
Copy
{
"application": {
"benefit": {
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mediaUrl": "<string>",
"subtitle": "<string>",
"title": "<string>"
},
"comment": "<string>",
"createDate": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "<string>",
"user": {
"about": "<string>",
"blocked": true,
"createDate": "2023-11-07T05:31:56Z",
"deleteDate": "2023-11-07T05:31:56Z",
"email": "jsmith@example.com",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"restricted": true,
"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
200
application/json
OK
The response is of type object
.
Copy
curl --request POST \
--url https://api.spacebring.com/benefits/applications/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"application": {
"benefitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"comment": "<string>"
}
}'
Copy
{
"application": {
"benefit": {
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mediaUrl": "<string>",
"subtitle": "<string>",
"title": "<string>"
},
"comment": "<string>",
"createDate": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "<string>",
"user": {
"about": "<string>",
"blocked": true,
"createDate": "2023-11-07T05:31:56Z",
"deleteDate": "2023-11-07T05:31:56Z",
"email": "jsmith@example.com",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"restricted": true,
"surname": "<string>"
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.