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

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Headers

spacebring-network-id
string

The id of the network. Required when using bearer token authentication

Body

application/json
transaction
object
required

Response

201
application/json
Created
transaction
object