SendRegning

Create new discount code

Verison: 1.0 (read more)
  • All created discount codes will be valid (if entered by participant) for the associated event, until deleted.
  • The amount will be subtracted from the invoice total when the host approve the participant sign-up. This means that the amount for any discount codes must be less than the event price.
  • The participants can’t combine or use multiple codes when signing up for an event.

Request

1
POST /host/events/{number}/discount-codes
1
2
3
4
{
    "code": "Jul 2016",
    "amount": 100.00
}
Name Description Required Type Limitation
code The code the participant must enter to obtain the discount when signing up for an event. Case insensitive comparison. mandatory String 15 characters
amount Discount amount in NOK mandatory Number 13 characters, including punctuation marks and signs. Must be a positive value less than the event price.

Response

HTTP/1.1 201 CREATED

The response contains a Location header referring to the created entity.

e.g.

1
Location: https://www.sendregning.no/host/events/{number}/discount-codes/1

Please fetch the entity using the Location value to get the generated number, do not try to parse/regexp the string in any way!