Documentation

Carte en cours du clonage...

Merci d'attendre la fin du clonage avant de modifier quoi que ce soit.

API ERRORS RESPONSES

API errors responses

Foxorder's API includes an error management system, this system allows users to have assistance in case of error.

Depending on the type of errors, the error message is often explicit (typing, null, format, etc.) otherwise, it indicates the source of the error and possibly the solution.

Logo
Endpoint Method Error code => message
/api/v2/promotions/check
POST
  • 400
    => Invalid input
    • code
      • => Promotion code already used
      • => This value should not be blank.
      • => This value should not be null.
      • => This value should be a valid string.
    • mode
      • => This value should not be blank.
      • => This value should not be null.
      • => Invalid mode.
    • promotion
      • => The promotion is invalid.
      • => The customer is invalid for this promotion.
      • => This promotion is disabled.
      • => This promotion has expired.
      • => This promotion has already been used.
      • => This promotion is valid only for your first order.
/api/v2/promotions/{id}
GET
  • 401
    => Invalid User
  • 404
    => Resource not found
/api/v2/promotions/{id}/attach-image
POST
  • 401
    => Access Denied
  • 400
    => Image file is required
  • 400
    => Invalid input
  • 404
    => Resource not found
  • 422
    => Unprocessable entity
Loading…
Loading the web debug toolbar…
Attempt #