Create Promotion

Create a new promotion.

post/api/v1/admin/billing/promotions

Request

  • Base URL: https://api.sanifu.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.sanifu.ai/api/v1/admin/billing/promotions
  • Auth: one of:
    • OAuth 2 (password, token URL auth/jwt/login)
    • HTTP basic

Request body

codestring required
descriptionstring required
credit_amountinteger required
credit_expiry_daysinteger nullable
expires_atstring date-time nullable
max_usesinteger nullable
new_users_onlyboolean

Response

Successful Response

public_idstring uuid nullable
created_atstring date-time nullable
created_by_idinteger nullable
updated_atstring date-time nullable
updated_by_idinteger nullable
is_archivedboolean nullable
archived_atstring date-time nullable
archived_by_idinteger nullable
codestring required
descriptionstring required
credit_amountinteger required
credit_expiry_daysinteger nullable
expires_atstring date-time nullable
max_usesinteger nullable
current_usesinteger required
new_users_onlyboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.