Generate a batch of gated access codes
POST/item/items/:merchant_item_oid/gated_codes/generate
Returns randomly generated codes using a profanity-safe charset (vowel-free, 0/1 removed). Codes are NOT persisted; submit them via PUT or POST to commit.
Request
Responses
- 200
- 400
- 401
- 410
- 429
- 500
Successful response
Status Code 400: bad request input such as invalid json
Response Headers
UC-REST-ERROR
Contains human readable error message
Status Code 401: invalid credentials supplied
Response Headers
UC-REST-ERROR
Contains human readable error message
Status Code 410: Your authorized application has been disabled by UltraCart
Response Headers
UC-REST-ERROR
Contains human readable error message
Status Code 429: you have exceeded the allowed API call rate limit for your application.
Response Headers
UC-REST-ERROR
Contains human readable error message
Status Code 500: any server side error. the body will contain a generic server error message
Response Headers
UC-REST-ERROR
Contains human readable error message
Was this page helpful?