API error codes

List of custom error codes returned by the Luckycycle® API

CodeMessageDescription
600bad_api_keyAn invalid API Key was sent in the header of the "poke".
610bad_signatureFor the Javascript integration, the security signature does not match the expected token.
620bad_originThe URL from which the "poke" was made has not been white-listed in the operation backend.
621bad_refererThe URL from which the "poke" was made has not been white-listed in the operation backend.
630ip_not_authorizedThe IP from which the "poke" was made has not been white-listed in the operation backend.
640operation_archivedThe operation has been archived from the backend.
700operation_closedThe operation has been closed from the backend.
701operation_pausedThe operation has been temporarely paused and wont accept new "pokes" for the time being.
705no_operationThe given operation ID does not exist.
710too_earlyThe operation has not yet begin (start date set to later in the backend).
711too_lateThe operation has ended (end date set to earlier in the backend).
712time_between_2_pokesThe minimum time between two pokes by the same user has not yet been reached.
715draw_too_lateThe grace period for late player has ended (end date set to earlier in the backend).
720pp_userThe limit of maximum particpation per user has been reached.
730amount_not_positiveThe value of the basket (item_value variable) must be a float value higher than zero.
731amount_too_lowThe value of the basket is lower than the minimum amount set in the backend.
732amount_too_highThe value of the basket is higher than the maximum amount set in the backend.
733no_item_eligibleIn a campaign targeting a selection of product, no item in the cart is eligible to play.
740budget_reachedThe maximum budget for the campaign has been reached.
741max_draws_reachedThe maximum number of plays for the campaign has been reached.
750not_eligibleThis client of not eligible to play (based on filtering set in the backend).
751language_not_supportedThe language variable sent in the poke has not been set in the backend (should be 2 lowercase letters, such as "en", "fr", "nl", etc.)
752missing_user_uidNo user_uid given by the poke request.
800okSuccesfull request. Use the html_data variable to display the iframe.