discount resource
Create discount resource
post/v1/organizers/{organizerId}/events/{eventId}/discounts
Request
- Base URLhttps://api.plusbilletterie.helloasso.com
- URLhttps://api.plusbilletterie.helloasso.com/v1/organizers/{organizerId}/events/{eventId}/discounts
- AuthAPI key in header X-API-KEY
Path parameters
organizerIdstring objectId required
Resource identifier.
eventIdstring objectId required
Resource identifier.
Request body
Example request
{
"name": "x",
"status": "enabled",
"type": "ratio",
"rules": [
{
"scope": "optional"
}
],
"maxCount": -9007199254740991
}Response
Success
Example response
{
"name": "x",
"status": "enabled",
"type": "ratio",
"rules": [
{
"scope": "optional"
}
],
"maxCount": -9007199254740991,
"_id": "64b7f8b6f23a4a4f3d0a9b12",
"_createdAt": "2024-01-01T00:00:00.000Z",
"_updatedAt": "2024-01-01T00:00:00.000Z",
"_reference": "string"
}Changes
No recorded changes to this operation across all 1 revision of this API.