File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,38 @@ paths:
194194 application/json :
195195 schema :
196196 $ref : ' #/components/schemas/ErrorResponse'
197+ /api/v1/user/billing/voucher-claims :
198+ post :
199+ tags :
200+ - api
201+ operationId : create_voucher_claim
202+ requestBody :
203+ content :
204+ application/json :
205+ schema :
206+ $ref : ' #/components/schemas/VoucherClaimCreate'
207+ required : true
208+ responses :
209+ ' 204 ' :
210+ description : Voucher claimed
211+ ' 400 ' :
212+ description : Invalid code
213+ content :
214+ application/json :
215+ schema :
216+ $ref : ' #/components/schemas/ErrorResponse'
217+ ' 409 ' :
218+ description : Already subscribed
219+ content :
220+ application/json :
221+ schema :
222+ $ref : ' #/components/schemas/ErrorResponse'
223+ ' 500 ' :
224+ description : Internal server error
225+ content :
226+ application/json :
227+ schema :
228+ $ref : ' #/components/schemas/ErrorResponse'
197229 /api/v1/workspace/{workspace_id} :
198230 get :
199231 tags :
@@ -453,6 +485,13 @@ components:
453485 type : string
454486 updated_at :
455487 $ref : ' #/components/schemas/Timestamp'
488+ VoucherClaimCreate :
489+ type : object
490+ required :
491+ - code
492+ properties :
493+ code :
494+ type : string
456495 Workspace :
457496 type : object
458497 required :
You can’t perform that action at this time.
0 commit comments