Billing

Redeem a promo code

Changed on

Redeems a promo code once per tenant and returns the granted credit. Credits reduce upcoming invoices until the balance or the code expiry is reached.

post/tenants/{tenant_id}/billing/promo_codes

Request

  • Base URL
    https://api.laserdata.cloud
  • Auth
    • API key in header ld-api-key
    • or API key in cookie session

Path parameters

tenant_idinteger required
Example:7261845022003200000

Tenant identifier

Request body

codestring required

Response

Credit granted

amountstring required
created_atstring date-time required
currency'USD' required
expires_atstring date-time nullable
idinteger required
promo_code_idinteger required
remainingstring required
tenant_idinteger required

Example response

{
  "tenant_id": 7261845022003200000
}

Changes