Products

Product objects describe goods that can be purchased by customers. In difference to tickets they are usually not directly linked to an event. Using Product Streams predefined combinations can be offered during a shopping experience.

Endpoints

Create a Product

Payload

name
Required
string

The name of the product

type
Required
string

The type of the product

voucherproductdonation

Optional Attributes

Collapse all
Responses
201
Created
400
Bad Request
401
Unauthorized

Was this section helpful?

YesNo
post
/api/products
{
"name": "string",
"description": "string",
"image": "string",
"type": "voucher",
"variants": [
{
"price": 10.5,
"priceType": "fixed",
"priceRange": {
"min": 10.5,
"max": 10.5
},
"taxable": true,
"taxRate": 10.5,
"compareAtPrice": 10.5,
"taxServiceTypeId": "string"
}
],
"voucherSettings": {
"limitedValidityPeriod": true,
"validityConfig": {
"amount": 10.5,
"type": 10.5,
"untilEndOfPeriod": true
},
"pdfImage": "string",
"disclaimer": "string",
"documentTemplateSettings": {
"templates": [
{
"templateId": "string",
"format": "A4",
"target": "thermal",
"type": "ticket"
}
]
}
},
"active": true,
"meta": {},
"isFulfillable": true,
"localization": {}
}
Response
application/json
{
"_id": "string",
"name": "string",
"active": true,
"isFulfillable": true,
"type": "voucher",
"image": "string",
"description": "string",
"variants": [
{
"_id": "string",
"priceType": "fixed",
"price": 10.5,
"priceRange": {
"min": 10.5,
"max": 10.5
},
"taxable": true,
"taxRate": 10.5,
"compareAtPrice": 10.5,
"taxServiceTypeId": "string"
}
],
"voucherSettings": {
"limitedValidityPeriod": true,
"validityConfig": {
"amount": 10.5,
"type": 10.5,
"untilEndOfPeriod": true
},
"pdfImage": "string",
"disclaimer": "string",
"documentTemplateSettings": {
"templates": [
{
"templateId": "string",
"format": "A4",
"target": "thermal",
"type": "ticket"
}
]
}
},
"sellerId": "string",
"meta": {},
"localization": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}

Get a Product

Query

No supported query parameters
Responses
200
OK
400
Bad Request
401
Unauthorized
404
Not Found

Was this section helpful?

YesNo
get
/api/products/{id}
Response
application/json
{
"_id": "string",
"name": "string",
"active": true,
"isFulfillable": true,
"type": "voucher",
"image": "string",
"description": "string",
"variants": [
{
"_id": "string",
"priceType": "fixed",
"price": 10.5,
"priceRange": {
"min": 10.5,
"max": 10.5
},
"taxable": true,
"taxRate": 10.5,
"compareAtPrice": 10.5,
"taxServiceTypeId": "string"
}
],
"voucherSettings": {
"limitedValidityPeriod": true,
"validityConfig": {
"amount": 10.5,
"type": 10.5,
"untilEndOfPeriod": true
},
"pdfImage": "string",
"disclaimer": "string",
"documentTemplateSettings": {
"templates": [
{
"templateId": "string",
"format": "A4",
"target": "thermal",
"type": "ticket"
}
]
}
},
"sellerId": "string",
"meta": {},
"localization": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}

Update a Product

Payload

name
Required
string

The name of the product

type
Required
string

The type of the product

voucherproductdonation

Optional Attributes

Collapse all
Responses
200
OK
400
Bad Request
401
Unauthorized
404
Not Found

Was this section helpful?

YesNo
put
/api/products/{id}
{
"name": "string",
"description": "string",
"image": "string",
"type": "voucher",
"variants": [
{
"_id": "string",
"price": 10.5,
"priceType": "fixed",
"priceRange": {
"min": 10.5,
"max": 10.5
},
"taxable": true,
"taxRate": 10.5,
"compareAtPrice": 10.5,
"taxServiceTypeId": "string"
}
],
"voucherSettings": {
"limitedValidityPeriod": true,
"validityConfig": {
"amount": 10.5,
"type": 10.5,
"untilEndOfPeriod": true
},
"pdfImage": "string",
"disclaimer": "string",
"documentTemplateSettings": {
"templates": [
{
"templateId": "string",
"format": "A4",
"target": "thermal",
"type": "ticket"
}
]
}
},
"active": true,
"meta": {},
"isFulfillable": true,
"localization": {}
}
Response
application/json
{
"_id": "string",
"name": "string",
"active": true,
"isFulfillable": true,
"type": "voucher",
"image": "string",
"description": "string",
"variants": [
{
"_id": "string",
"priceType": "fixed",
"price": 10.5,
"priceRange": {
"min": 10.5,
"max": 10.5
},
"taxable": true,
"taxRate": 10.5,
"compareAtPrice": 10.5,
"taxServiceTypeId": "string"
}
],
"voucherSettings": {
"limitedValidityPeriod": true,
"validityConfig": {
"amount": 10.5,
"type": 10.5,
"untilEndOfPeriod": true
},
"pdfImage": "string",
"disclaimer": "string",
"documentTemplateSettings": {
"templates": [
{
"templateId": "string",
"format": "A4",
"target": "thermal",
"type": "ticket"
}
]
}
},
"sellerId": "string",
"meta": {},
"localization": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}

Delete a Product

Query

No supported query parameters
Responses
200
OK
400
Bad Request
401
Unauthorized
404
Not Found

Was this section helpful?

YesNo
delete
/api/products/{id}
Response
application/json
{
"_id": "string",
"name": "string",
"active": true,
"isFulfillable": true,
"type": "voucher",
"image": "string",
"description": "string",
"variants": [
{
"_id": "string",
"priceType": "fixed",
"price": 10.5,
"priceRange": {
"min": 10.5,
"max": 10.5
},
"taxable": true,
"taxRate": 10.5,
"compareAtPrice": 10.5,
"taxServiceTypeId": "string"
}
],
"voucherSettings": {
"limitedValidityPeriod": true,
"validityConfig": {
"amount": 10.5,
"type": 10.5,
"untilEndOfPeriod": true
},
"pdfImage": "string",
"disclaimer": "string",
"documentTemplateSettings": {
"templates": [
{
"templateId": "string",
"format": "A4",
"target": "thermal",
"type": "ticket"
}
]
}
},
"sellerId": "string",
"meta": {},
"localization": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}

Get all Products

Query

top
Optional
number float

A limit on the number of objects to be returned. Can range between 1 and 1000.

skip
Optional
number float

The number of objects to skip for the requested result

name
Optional
string

The name of the product

type
Optional
string

The type of the product

voucherproductdonation
Responses
200
OK
400
Bad Request
401
Unauthorized

Was this section helpful?

YesNo
get
/api/products/rich
Response
application/json
{
"docs": [
{
"_id": "string",
"name": "string",
"active": true,
"isFulfillable": true,
"type": "voucher",
"image": "string",
"description": "string",
"variants": [
{
"_id": "string",
"priceType": "fixed",
"price": 10.5,
"priceRange": {
"min": 10.5,
"max": 10.5
},
"taxable": true,
"taxRate": 10.5,
"compareAtPrice": 10.5,
"taxServiceTypeId": "string"
}
],
"voucherSettings": {
"limitedValidityPeriod": true,
"validityConfig": {
"amount": 10.5,
"type": 10.5,
"untilEndOfPeriod": true
},
"pdfImage": "string",
"disclaimer": "string",
"documentTemplateSettings": {
"templates": [
{
"templateId": "string",
"format": "A4",
"target": "thermal",
"type": "ticket"
}
]
}
},
"sellerId": "string",
"meta": {},
"localization": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}
],
"total": 1
}

Create a Product Stream

Payload

name
Required
string

The name of the product stream.

Optional Attributes

Collapse all
Responses
201
Created
400
Bad Request
401
Unauthorized

Was this section helpful?

YesNo
post
/api/products/streams
{
"name": "string",
"active": true,
"products": []
}
Response
application/json
{
"_id": "string",
"name": "string",
"sellerId": "string",
"products": [],
"active": true,
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}

Get a Product Stream

Query

No supported query parameters
Responses
200
OK
400
Bad Request
401
Unauthorized
404
Not Found

Was this section helpful?

YesNo
get
/api/products/streams/{id}
Response
application/json
{
"_id": "string",
"name": "string",
"sellerId": "string",
"products": [],
"active": true,
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}

Update a Product Stream

Payload

name
Required
string

The name of the product stream.

Optional Attributes

Collapse all
Responses
200
OK
400
Bad Request
401
Unauthorized
404
Not Found

Was this section helpful?

YesNo
put
/api/products/streams/{id}
{
"name": "string",
"active": true,
"products": []
}
Response
application/json
{
"_id": "string",
"name": "string",
"sellerId": "string",
"products": [],
"active": true,
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}

Delete a Product Stream

Query

No supported query parameters
Responses
200
OK
400
Bad Request
401
Unauthorized
404
Not Found

Was this section helpful?

YesNo
delete
/api/products/streams/{id}
Response
application/json
{
"_id": "string",
"name": "string",
"sellerId": "string",
"products": [],
"active": true,
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}

Get all Product Streams

Query

top
Optional
number float

A limit on the number of objects to be returned. Can range between 1 and 1000.

skip
Optional
number float

The number of objects to skip for the requested result

name
Optional
string

The name of the product stream

Responses
200
OK
400
Bad Request
401
Unauthorized

Was this section helpful?

YesNo
get
/api/products/streams/rich
Response
application/json
{
"docs": [
{
"_id": "string",
"name": "string",
"sellerId": "string",
"products": [],
"active": true,
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}
],
"total": 1
}
PUBLIC

Get a Product Stream's Products

Query

No supported query parameters
Responses
200
OK
400
Bad Request
404
Not Found

Was this section helpful?

YesNo
get
/api/products/streams/{id}/products
Response
application/json
[
{
"_id": "string",
"name": "string",
"active": true,
"isFulfillable": true,
"type": "voucher",
"image": "string",
"description": "string",
"variants": [
{
"_id": "string",
"priceType": "fixed",
"price": 10.5,
"priceRange": {
"min": 10.5,
"max": 10.5
},
"taxable": true,
"taxRate": 10.5,
"compareAtPrice": 10.5,
"taxServiceTypeId": "string"
}
],
"voucherSettings": {
"limitedValidityPeriod": true,
"validityConfig": {
"amount": 10.5,
"type": 10.5,
"untilEndOfPeriod": true
},
"pdfImage": "string",
"disclaimer": "string",
"documentTemplateSettings": {
"templates": [
{
"templateId": "string",
"format": "A4",
"target": "thermal",
"type": "ticket"
}
]
}
},
"sellerId": "string",
"meta": {},
"localization": {},
"createdAt": "2030-01-23T23:00:00.123Z",
"updatedAt": "2030-01-23T23:00:00.123Z"
}
]