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,
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "chargeExpiringDayPasses",
"companyRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
}
}
'{
"transaction": {
"amount": 123,
"company": {
"billingAddress": "<string>",
"businessAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"createDate": "2023-11-07T05:31:56Z",
"credits": {
"expiring": 123,
"permanent": 123
},
"dayPasses": {
"expiring": 123
},
"deleteDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"legalName": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"notes": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taxId": "<string>",
"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"
}
}Create a day passes transaction.
transactionscurl --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,
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "chargeExpiringDayPasses",
"companyRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
}
}
'{
"transaction": {
"amount": 123,
"company": {
"billingAddress": "<string>",
"businessAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"createDate": "2023-11-07T05:31:56Z",
"credits": {
"expiring": 123,
"permanent": 123
},
"dayPasses": {
"expiring": 123
},
"deleteDate": "2023-11-07T05:31:56Z",
"id": "<string>",
"legalName": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"notes": "<string>",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"taxId": "<string>",
"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"
}
}See our authentication documentation for how to authorize your requests
The id of the network. Required when using bearer token authentication
Show child attributes
The location id where to create a company.
The membership id to charge or transfer day passes from.
chargeExpiringDayPasses, transferExpiringDayPasses The company id to charge or transfer day passes to.
The description of the transaction.
Created
Show child attributes
Show child attributes
Show child attributes
The date and time in ISO 8601 format, e.g. 2021-05-21T10:00:00Z
The date and time in ISO 8601 format, e.g. 2021-05-21T10:00:00Z
Use to attach key-value data to the object. Available only for admins.
The date and time in ISO 8601 format, e.g. 2021-05-21T10:00:00Z
chargeExpiringDayPasses, transferExpiringDayPasses