REST API v2.13

Influencer Vouchers

Item of type influencervoucher.

Get Influencer Voucher

Endpoint

GET sites/{siteid}/influencervouchers/{influencercode}

HTTP Response Status

200

OK. Returns data (see below).

400

Bad Request. Invalid syntax, missing required argument or invalid request.

401

Unauthorized. Authorization failed.

404

Resource not found. The url is invalid.

429

Too Many Requests.

500

Internal Server Error.

Returns

Returns and item of type influencervoucher

Example

Request

GET https://api.mysitoo.com/v2/accounts/1500/sites/1/influencervouchers/PREPARE4SUMMER.json

Response

{ "influencercode": "PREPARE4SUMMER", "influencername": "Taylor Smith", "voucherpassword": "Lzs5MvMr", "vouchercode": null, "vouchername": null, "vouchercomment": null, "redeemable": true }

Add Influencer Voucher Transaction

Endpoint

POST sites/{siteid}/influencervouchers/{influencercode}/transactions

HTTP Response Status

200

OK. Returns data (see below).

400

Bad Request. Invalid syntax, missing required argument or invalid request.

401

Unauthorized. Authorization failed.

404

Resource not found. The url is invalid.

429

Too Many Requests.

500

Internal Server Error.

Returns

Returns an item of type influencervouchertransactionresponse

Example

Request

POST https://api.mysitoo.com/v2/accounts/1500/sites/1/influencervouchers/PREPARE4SUMMER/transactions.json { "moneyordertotal": "100.00", "moneyinfluencertotal": "80.00", "moneyinfluencerdiscount": "20.00", "currencycode": "USD" }

Response

{ "transactionid": "4" }

Delete Influencer Voucher Transaction

Endpoint

DELETE sites/{siteid}/influencervouchers/{influencercode}/transactions/{transactionid}

HTTP Response Status

200

OK. Returns data (see below).

400

Bad Request. Invalid syntax, missing required argument or invalid request.

401

Unauthorized. Authorization failed.

404

Resource not found. The url is invalid.

429

Too Many Requests.

500

Internal Server Error.

Returns

Returns true if successful

Example

Request

DELETE https://api.mysitoo.com/v2/accounts/1500/sites/1/influencervouchers/PREPARE4SUMMER/transactions/4.json

Response

true