Getting started
Endpoints
- Benefit applications
- Benefit categories
- Benefits
- Bookings
- Companies
- Events
- Event tickets
- Feed posts
- Invoices
- Invoice items
- Locations
- Memberships
- Networks
- Orders
- Plans
- Products
- Registrations
- Resources
- Shop categories
- Subscriptions
- Support tickets
- Transactions
- Visitors
Products
Create a product
Create a product in shop.
OAuth
Required scopes:shop
POST
/
shop
/
products
/
v1
Copy
curl --request POST \
--url https://api.spacebring.com/shop/products/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"product": {
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"featured": true,
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"media": [
{
"key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
],
"visibility": "<string>",
"order": {
"enabled": true,
"confirmationEmail": {
"enabled": true,
"template": "<string>"
}
},
"refundPolicy": "noRefund",
"options": [
{
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>",
"available": true,
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"enabled": true
}
},
"title": "<string>"
}
]
}
}'
Copy
{
"product": {
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createDate": "2023-11-07T05:31:56Z",
"description": "<string>",
"featured": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"imageUrl": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"media": [
{
"key": "<string>",
"url": "<string>"
}
],
"options": [
{
"available": true,
"createDate": "2023-11-07T05:31:56Z",
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"currencyCode": "<string>",
"enabled": true
}
},
"title": "<string>"
}
],
"order": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"enabled": true
},
"refundPolicy": "<string>",
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"visibility": "<string>"
}
}
Authorizations
See our authentication documentation for how to authorize your requests
Body
application/json
Response
201
application/json
Created
The response is of type object
.
Copy
curl --request POST \
--url https://api.spacebring.com/shop/products/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"product": {
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"featured": true,
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"media": [
{
"key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
],
"visibility": "<string>",
"order": {
"enabled": true,
"confirmationEmail": {
"enabled": true,
"template": "<string>"
}
},
"refundPolicy": "noRefund",
"options": [
{
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>",
"available": true,
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"enabled": true
}
},
"title": "<string>"
}
]
}
}'
Copy
{
"product": {
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createDate": "2023-11-07T05:31:56Z",
"description": "<string>",
"featured": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"imageUrl": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"media": [
{
"key": "<string>",
"url": "<string>"
}
],
"options": [
{
"available": true,
"createDate": "2023-11-07T05:31:56Z",
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"currencyCode": "<string>",
"enabled": true
}
},
"title": "<string>"
}
],
"order": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"enabled": true
},
"refundPolicy": "<string>",
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"visibility": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.