v1
latestOpenAPI 3.0.32026-07-12254440.6 KBCoupon
createCoupon
Create a new coupon entity
post/v1/coupon
Request body
Example request
{
"fixed_value_currency": "EUR",
"prices": {
"$relation": [
{
"entity_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"_files": {
"$relation": [
{
"entity_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"_manifest": [
"123e4567-e89b-12d3-a456-426614174000"
],
"__additional": {}
}Response
Coupon entity response
Example response
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"_files": {
"$relation": [
{
"entity_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"_owners": [
{
"org_id": "123",
"user_id": "123"
}
],
"_acl": {
"view": [
"org:456"
],
"edit": [
"org:456"
],
"delete": [
"org:456"
]
},
"fixed_value_currency": "EUR",
"prices": {
"$relation": [
{
"entity_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
},
"_manifest": [
"123e4567-e89b-12d3-a456-426614174000"
],
"__additional": {}
}