Happy Business Starts Here

How to search for a Promo Code (via REST) using its Code, not Id?

Highlighted
Zuora Support

How to search for a Promo Code (via REST) using its Code, not Id?

Question: 

How to search for a Promo Code (via REST) using its Code, not Id?

 

Answers:

 

Yes, is it possible to search the promo code using REST API. Here are the complete request and responses.

 

Endpoint URL- https://promotion-codes.apps.zuora.com/api/v1/tools/promos/{code}/

 

Request:

 

It is not documented anywhere in Zuora but I did a test and I am able to search the promo code using the Code option in the postman tool and get the JSON results as an output.

GET 
https://promotion-codes.apps.zuora.com/api/v1/tools/promos/sarison/

Code:sarison

Response:

promocode.png

 

Hopefully, the above information could help to address your inquiry, and please feel free to let me know if you need further assistance.




If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √