API for Coupons - 500

  • 25 October 2023
  • 1 reply
  • 47 views

Userlevel 1

I was wondering if you can guide me on the coupon functionality. We have a Partner Program coming up and need guidance on the same as this involves almost 25K Partners.

I would like to basically create two batches of single use coupons (250 each) for 5-6 different paid courses in Docebo. I see this possibility via API but it asks me details on usernames.
Unfortunately these need to be random codes that any user could use as a one time purchase.

Any used cased scenarios or sample body would be more than appreciated! :)
 


1 reply

Userlevel 7
Badge +3

Are you looking at this call:

 

Based on the Body Schema documentation, the userID is not the ID of the user to use it, but who created it, so like you’re account should be fine for them all and then anyone can use them. Have not actually used this myself, but from reading is what it loks like you are looking for.

Reply