POST
/
plans
/
v1
Create a plan
curl --request POST \
  --url https://api.spacebring.com/plans/v1 \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "plan": {
    "access": {
      "brivoGroupRef": 123,
      "kisiGroupRef": 123,
      "saltoksAccessGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "tapkeyGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "credits": 123,
    "customTax": {
      "enabled": true,
      "rate": 123
    },
    "dayPasses": 123,
    "description": "<string>",
    "discounts": {
      "creditPackages": 123,
      "desks": 123,
      "events": 123,
      "rooms": 123,
      "shop": 123
    },
    "locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "period": "day",
    "price": 123,
    "printing": {
      "ezeepBlueGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "selfSignup": {
      "enabled": true,
      "type": "immediate"
    },
    "title": "<string>"
  }
}'
{
  "plan": {
    "access": {
      "brivoGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "kisiGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "saltoksAccessGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "tapkeyGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "createDate": "2023-11-07T05:31:56Z",
    "credits": 123,
    "customTax": {
      "enabled": true,
      "rate": 123
    },
    "dayPasses": 123,
    "description": "<string>",
    "discounts": {
      "creditPackages": 123,
      "desks": 123,
      "events": 123,
      "rooms": 123,
      "shop": 123
    },
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "period": "day",
    "price": 123,
    "printing": {
      "ezeepBlueGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "selfSignup": {
      "enabled": true,
      "type": "immediate"
    },
    "title": "<string>"
  }
}

Authorizations

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Body

application/json

Response

201
application/json

Created

The response is of type object.