When consumers consume a voucher, you will get another new voucher which is only sent to you. after that, you can redeem you voucher. Everything works as simple as possible
https://voucash.com/api/payment
names | type | description | required |
---|---|---|---|
order_id | string | uniqure id for your order | true |
amount | number | desired amount | true |
currency | string | the currency you want to accept | require |
notify_url | string | callback url | true |
voucher | string | voucher submitted by consumer | true |
{
code: 0,
message: "ok",
data: {
//非常重要!用来提现
voucher: "hello, world"
}
}