Skip to main content

Coupons

Introduction#

Coupons are objects used to give insentive to the user to invite people to use the app.

A user can add a coupon in their identity to improve their identity (access to the app, more storage, ...)

They are linked to an identity.

Attach a coupon to an identity#

This route let a user attach a coupon to their identity.

Request#

POST https://api.misakey.com/identities/:id/coupons

Cookies:

  • accesstoken (opaque token) (ACR >= 1): mid claim as the identity id.
  • tokentype: must be bearer

Headers:

  • X-CSRF-Token: a token to prevent from CSRF attacks, delivered at the end of the auth flow

Path Parameters:

  • value (string): the value of the coupon.

Response#

Code:

HTTP 204 NO CONTENT