/vouchers

GET {{baseUrl}}/vouchers?fields=<string>&sort=<string>&count=<integer>&offset=<integer>&code=<string>

Returns all vouchers. By default the first 50 regular vouchers are returned, sorted by creation date

Request Params

KeyDatatypeRequiredDescription
fieldsstringComma seperated list of properties to include
sortstringIf not included, results are sorted by creation date
countstringThe maximum number of results to be returned
offsetstringThe starting position for the returned values
codestringSpecify the voucher's code (E.g. 10POUND to return all vouchers with that code)

RESPONSES

status: OK

[{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;discount&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cnumber\u003e&quot;},&quot;validFrom&quot;:&quot;\u003cstring\u003e&quot;,&quot;expiresOn&quot;:&quot;\u003cstring\u003e&quot;,&quot;target&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cnumber\u003e&quot;,&quot;ids&quot;:[&quot;\u003cinteger\u003e&quot;,&quot;\u003cinteger\u003e&quot;]},&quot;active&quot;:&quot;\u003cboolean\u003e&quot;,&quot;uses&quot;:&quot;\u003cinteger\u003e&quot;,&quot;used&quot;:&quot;\u003cinteger\u003e&quot;,&quot;customerUses&quot;:&quot;\u003cinteger\u003e&quot;,&quot;comments&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;discount&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cnumber\u003e&quot;},&quot;validFrom&quot;:&quot;\u003cstring\u003e&quot;,&quot;expiresOn&quot;:&quot;\u003cstring\u003e&quot;,&quot;target&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;value&quot;:&quot;\u003cnumber\u003e&quot;,&quot;ids&quot;:[&quot;\u003cinteger\u003e&quot;,&quot;\u003cinteger\u003e&quot;]},&quot;active&quot;:&quot;\u003cboolean\u003e&quot;,&quot;uses&quot;:&quot;\u003cinteger\u003e&quot;,&quot;used&quot;:&quot;\u003cinteger\u003e&quot;,&quot;customerUses&quot;:&quot;\u003cinteger\u003e&quot;,&quot;comments&quot;:&quot;\u003cstring\u003e&quot;}]