REST API v2. Authenticate with a Bearer JWT in the Authorization header unless an endpoint is marked public.
Servers​
https://v2-staging.tscheckout.comCurrent host
Get a list of stored value codes​
GET
/api/v2/stored-value-codes
Authorizations​
bearerAuth
Type
HTTP (bearer)
Parameters​
Query Parameters
status
Filter by status
Type
string
Valid values
"active""inactive""soldOut""expired"Example
"active"expired
Filter by expired codes (true/1 for expired, false/0 for active)
Example
"true"Responses​
Stored value code list
application/json
{
 Â
 Â
 Â
 Â
 Â
 Â
}
Create stored value code​
Get stored value code by ID​
Delete stored value code​
Update stored value code​
PATCH
/api/v2/stored-value-codes/{id}
Update stored value code by id in request body
Authorizations​
bearerAuth
Type
HTTP (bearer)
Parameters​
Path Parameters
id*
Stored value code ID
Type
Requiredinteger
Format
"int64"Request Body​
application/json
"string"
Responses​
Stored value code updated
application/json
{
 Â
}
Bulk delete stored value codes​
GET /api/v2/stored-value-code/​
GET /api/v2/stored-value-code/{id}​
Create a new StoredValueCode​
POST
/api/v2/stored-value-code
Creates a new Stored Value Code from the data POSTed
Authorizations​
bearerAuth
Type
HTTP (bearer)
Request Body​
application/json
{
 Â
 Â
 Â
 Â
 Â
 Â
}
