Migrated from Redmine #702 | Author: phuong tran
Status: Feedback | Priority: High, I’m very impatient | Created: 2021-05-31
Hi,
I have facing some issue:
i had book successful and had invoice id.
then I don’t know how to apply promo code. Can you help me.
I called applyPromoCode($id, $code) with id is my invoice_id, and code i created in Coupons & Gift Cards
but this return
{“error”:{“code”:-32601,“message”:“Method not found”,“data”:null},“id”:“1”,“jsonrpc”:“2.0”}
My request payload
{“jsonrpc”:“2.0”,“id”:1,“method”:“applyPromoCode”,“params”:[3888,“5Bqg7du”]}
and request URL
https://user-api.simplybook.asia/
Am I doing something wrong or not? Or can you show me how to implement it?
Thanks.