Transactions
Create a day passes transaction
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
Transactions
Create a day passes transaction
Create a day passes transaction.
OAuth
Required scopes:transactions
POST
/
transactions
/
day_passes
/
v1
curl --request POST \
--url https://api.spacebring.com/transactions/day_passes/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"transaction": {
"amount": 123,
"companyRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "chargeExpiringDayPasses"
}
}'
{
"transaction": {
"amount": 123,
"company": {
"createDate": "<string>",
"id": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"notes": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"companyRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createDate": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "chargeExpiringDayPasses",
"user": {
"about": "<string>",
"email": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
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
The location id where to create a company.
The membership id to charge or transfer day passes from.
Available options:
chargeExpiringDayPasses
, transferExpiringDayPasses
The company id to charge or transfer day passes to.
The description of the transaction.
Response
201
application/json
Created
Use to attach key-value data to the object. Available only for admins.
Available options:
chargeExpiringDayPasses
, transferExpiringDayPasses
curl --request POST \
--url https://api.spacebring.com/transactions/day_passes/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"transaction": {
"amount": 123,
"companyRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "chargeExpiringDayPasses"
}
}'
{
"transaction": {
"amount": 123,
"company": {
"createDate": "<string>",
"id": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"notes": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"companyRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createDate": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "chargeExpiringDayPasses",
"user": {
"about": "<string>",
"email": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}