Create an event
POST
https://api-v2.test.eldowallet.fr/events
Creates an event, i.e. the ticket template (name, dates, locations, colours, strip image) shared by all its passes. The request is sent as multipart/form-data and returns the created event.
Good to know
- Body is
multipart/form-data: nested objects (colors,security,locations…) are sent as a JSON string, booleans as"true"/"false". Images: PNG or JPEG, 1 KB to 5 MB. - Uses barcodeType (not barcodeFormat as in coupons/transits/hotels). Nested objects (date, locations, colors, security) are sent as JSON strings in multipart. date.startDate must be before endDate and doorOpeningHour before startDate. price is 0..9999.99. contactPhone must be E.164-like (+...).
Request
header parameters
x-langstringLanguage for responsesenum:en,frdefault:"en"
Body
multipart/form-data requiredstripstring <binary> requiredbarcodeTypestring requiredenum:AZTEC,CODE_128,PDF_417,QR_CODE,NONEnamestring requiredlocationsobject[]longitudenumber requiredlatitudenumber requiredaddressstring requiredmaxLength: 500locationNamestring requiredmaxLength: 500
dateobjectstartDatestring <date-time>endDatestring <date-time>doorOpeningHourstring <date-time>
pricenumbermin: 0max: 9999.99gainUnitstringenum:NONE,EURO,USD,MAD,POINTSdescriptionstringtermsstringsubscriptionMessagestringemailSubscriptionMessagestringcontactPhonestringpattern:^\+(?:[0-9] ?){6,14}[0-9]$emailstring <email>websitestring <uri>colorsobject requiredbackgroundColorstring requiredlabelColorstring requiredforegroundColorstring required
securityobjectenableOneTimeUsebooleandisableIOSPassSharingbooleandisablePassLinkSharingbooleandisableMultipleHoldersbooleanenableSecurityAnimationbooleanenableRotatingBarcodeboolean
PKTextAlignmentLeftstringenum:CHAIR,ACCESS,PRICE,ZONE,INACTIVEPKTextAlignmentCenterstringenum:ROW,INACTIVEPKTextAlignmentRightstringenum:INACTIVE,TYPE,SEAT,PLACE,ARMCHAIR,LOCATION,PORT
Responses
- 201
- 400
- 401
- 403
- 404
- 415
- 500
- 503
Schema
application/jsonstatusstring requiredenum:PENDING,ACTIF,ENDEDdefault:"PENDING"walletoneOf required- Wallet
namestring requiredlogostring requirediconstring requiredandroidLogostringdisplayIdentifiantboolean requiredpassBuilderPassTemplateIdstringpassBuilderBusinessIdstringpassBuilderTokenstringidentifierstring requiredidentifierQrstring requiredaddressstringwebsitestring requiredservicePhonestring requiredbusinessPhonestring requiredsocialMediaobject requiredlinkedinstringfacebookstringinstagramstringtiktokstringtwitterstringyoutubestringsnapchatstringpintereststringredditstringwhatsappstringtelegramstring
additionalContactsobject[] requiredtitlestring requiredvaluestring requiredkindstring requiredenum:URL,PHONE,EMAIL
termsAndConditionsobject requiredtypestring requiredenum:PDF,URL,NONEcustomUrlstringpdfUrlstring
webHookUrlstring requiredrootDomainstring requiredtimezonestringallowedPassesstring[] requiredenum:ALL,EVENT_TICKET,TRANSIT,CINEMA,BOARDING_PASS,COUPON,GENERIC,STORE_CARD,OFFER,HOTELexpiredCleanupEnabledboolean required_idstring requiredcreatedAtstring <date-time> requiredupdatedAtstring <date-time> required
- option 2
- Wallet
barcodeTypestring requiredenum:AZTEC,CODE_128,PDF_417,QR_CODE,NONEnamestring requiredlocationsobject[] requiredlongitudenumberlatitudenumberaddressstringlocationNamestring
dateobjectstartDatestring <date-time>endDatestring <date-time>doorOpeningHourstring <date-time>
pricenumbergainUnitstringenum:NONE,EURO,USD,MAD,POINTSdescriptionstringtermsstringsubscriptionMessagestring requiredemailSubscriptionMessagestring requiredcontactPhonestringemailstringwebsitestringcolorsobject requiredlabelColorstring requiredbackgroundColorstring requiredforegroundColorstring required
securityobjectenableOneTimeUsebooleandisableIOSPassSharingbooleandisablePassLinkSharingbooleandisableMultipleHoldersbooleanenableSecurityAnimationbooleanenableRotatingBarcodeboolean
passBuilderPassTemplateIdstringstripstringPKTextAlignmentLeftstringenum:CHAIR,ACCESS,PRICE,ZONE,INACTIVEPKTextAlignmentCenterstringenum:ROW,INACTIVEPKTextAlignmentRightstringenum:INACTIVE,TYPE,SEAT,PLACE,ARMCHAIR,LOCATION,PORT_idstring requiredcreatedAtstring <date-time> requiredupdatedAtstring <date-time> required
VALIDATION_ERROR · INVALID_JSON · INVALID_MULTIPART
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
UNAUTHORIZED
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
FORBIDDEN
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
MODEL_NOT_FOUND
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
UNSUPPORTED_MEDIA_TYPE
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
UNKNOWN_ERROR
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email
PASS_BUILDER_ERROR
Schema
application/jsonmessagestring requiredexample:Promo code already existserrorCodestring requiredexample:400:PROMO_CODE_ALREADY_EXISTSpathstring requiredexample:/couponsdatestring <date-time> requireddetailsobjectvalidationErrorsobject[]fieldstringexample:emailmessagestringexample:email must be an email