The API, as it answers today.
Two headers, one envelope. Try the calls against the sandbox from this page. Tokens stay in this tab and nowhere else.
No tokens yet? Request an integration review: it is free before any agreement, and we arrange sandbox access.
- You get three things from the dataset owner: the
datasetname,X-API-TOKENandX-DATA-TOKEN. - Run
ping/200first. It needs no token and returns the IP address the owner must allow. - Press Authorize, paste the two tokens, then open a call, press Try it out and Execute. The server variable
datasetdefaults tosandbox, the shared test dataset; in your own dataset every call is real.
The API has five calls. Every path begins with https://kupon.plus/api; the reference below and the YAML file describe each call with its parameters and responses.
- getVoucherByValue
GET /{dataset}/getVoucherByValue/{value}– issue one voucher of the given value. - getVoucherByValueWithMetadata
POST /{dataset}/getVoucherByValue/{value}– issue one voucher and store your metadata with it. - cancelVoucher
PUT /{dataset}/cancelVoucher/{voucherid}– cancel a voucher you were issued. - reportJson1
GET /{dataset}/report:json1/{requested_date}– daily report of your issued and cancelled vouchers. - ping
GET /{dataset}/ping/{requested_response}– test the connection and see your IP address.
Loading the API description…