Check promotion code
Say what a promotion code takes off before an admin opens Checkout with it. Answers 422 ``promotion_code_invalid`` for a code Stripe does not have, or no longer accepts. Checkout checks the code again when it opens.
POST
Say what a promotion code takes off before an admin opens Checkout with it.
Answers 422 promotion_code_invalid for a code Stripe does not have, or no longer
accepts. Checkout checks the code again when it opens.
workspaceTokenheader
AuthorizationBearer <vat_<opaque-token>>Expiring, hashed workspace token with explicit scopes.
workspace_id*Workspace IdFormat
uuidapplication/json- body
code*CodeMatch
^[A-Za-z0-9]{3,40}$Successful Response
application/json- response
amount_off_usd*string|nullcode*CodeThe code as Stripe stores it.
duration*DurationValue in
"once""repeating""forever"duration_in_months*integer|nullexpires_at*|nullpercent_off*string|nullsummary*SummaryWhat it takes off, in words: '20% off for 3 months'.
curl -X POST 'https://api.veriom.ai/v1/workspaces/497f6eca-6276-4993-bfeb-53cbbbba6f08/plan/promotion-code' \ -H 'Content-Type: application/json' \ -d '{ "code": "string"}'Example Response
{ "amount_off_usd": "string", "code": "string", "duration": "once", "duration_in_months": 0, "expires_at": "2019-08-24T14:15:22Z", "percent_off": "string", "summary": "string"}