curl --request PATCH \
--url https://api.spacebring.com/subscriptions/v1/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subscription": {
"advanceInvoicing": {
"days": 123,
"type": "days"
},
"endDate": "2023-11-07T05:31:56Z",
"items": [
{
"autoUpdateFromProduct": true,
"avigilonAltaGroupRef": 123,
"brivoGroupRef": 123,
"commitmentCycles": 123,
"couponRef": "<string>",
"createDate": "2023-11-07T05:31:56Z",
"credits": 123,
"customEnd": true,
"customStart": true,
"customTax": {
"enabled": true,
"rate": 123
},
"dayPasses": 123,
"discounts": {
"creditPackages": 123,
"desks": 123,
"equipment": 123,
"events": 123,
"rooms": 123,
"shop": 123
},
"endDate": "2023-11-07T05:31:56Z",
"entire": true,
"exclusiveAccess": {
"resourceRefs": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"ezeepBlueGroupRef": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kisiGroupRef": 123,
"plan": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"planRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": 123,
"quantity": 123,
"resourceRef": "<string>",
"saltoksAccessGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"tapkeyGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tier": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"tierRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"pausePaymentCollection": {
"behavior": "draft",
"resumesAt": "2023-11-07T05:31:56Z"
},
"payWithInvoice": {
"creditPackages": true,
"desks": true,
"equipment": true,
"events": true,
"parking": true,
"rooms": true,
"shop": true
},
"startDate": "2023-11-07T05:31:56Z"
}
}
'{
"message": "<string>",
"type": "<string>"
}Update a certain subscription.
subscriptionscurl --request PATCH \
--url https://api.spacebring.com/subscriptions/v1/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subscription": {
"advanceInvoicing": {
"days": 123,
"type": "days"
},
"endDate": "2023-11-07T05:31:56Z",
"items": [
{
"autoUpdateFromProduct": true,
"avigilonAltaGroupRef": 123,
"brivoGroupRef": 123,
"commitmentCycles": 123,
"couponRef": "<string>",
"createDate": "2023-11-07T05:31:56Z",
"credits": 123,
"customEnd": true,
"customStart": true,
"customTax": {
"enabled": true,
"rate": 123
},
"dayPasses": 123,
"discounts": {
"creditPackages": 123,
"desks": 123,
"equipment": 123,
"events": 123,
"rooms": 123,
"shop": 123
},
"endDate": "2023-11-07T05:31:56Z",
"entire": true,
"exclusiveAccess": {
"resourceRefs": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"ezeepBlueGroupRef": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kisiGroupRef": 123,
"plan": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"planRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": 123,
"quantity": 123,
"resourceRef": "<string>",
"saltoksAccessGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"tapkeyGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tier": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"tierRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"pausePaymentCollection": {
"behavior": "draft",
"resumesAt": "2023-11-07T05:31:56Z"
},
"payWithInvoice": {
"creditPackages": true,
"desks": true,
"equipment": true,
"events": true,
"parking": true,
"rooms": true,
"shop": true
},
"startDate": "2023-11-07T05:31:56Z"
}
}
'{
"message": "<string>",
"type": "<string>"
}See our authentication documentation for how to authorize your requests
The id of the network. Required when using bearer token authentication
The id of the subscription.
Show child attributes
No Content