Waffle API
  1. Game
Waffle API
  • Overview
  • Authentication
    • Get access token
      POST
    • Refresh token
      POST
    • Revoke token
      POST
  • Game
    • List games
      GET
    • Get loyalty program by ID
      GET
    • Create new game
      POST
    • Update game by ID
      PUT
    • Delete game by ID
      DELETE
  • Ticket
  • Game Account
    • List game accounts
      GET
    • Get game account by ID
      GET
    • Search game accounts
      POST
  • Report
  • Game Service
    • Gen Token
      POST
    • Login
      POST
    • List games
      GET
    • Verify Session
      GET
  1. Game

Delete game by ID

Developing
Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
DELETE
https://dev.your-api-server.com
/v1/games/{game-id}
Last modified:2024-04-09 14:32:39
OperationId:delete-game-program

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
game-id
string 
required
Header Params
Content-Type
string 
required
Default:
application/json
Body Params application/json
gameName
string 
required
Example
{
  "gameName": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://dev.your-api-server.com/v1/games/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "gameName": "string"
}'

Responses

🟢200OK
text/plain
Body
id
string <uuid>
read-onlyrequired
The assigned ID of the loyalty program. Updates to the loyalty program do not modify the identifier.
<= 36 characters
status
enum<string> 
optional
Whether the program is currently active.
Allowed values:
ACTIVEINACTIVE
name
string 
optional
availableTime
object 
optional
The scheduling information that defines when transaction can qualify to earn points from an ACTIVE program.
startDate
string <date-time>
optional
endDate
string <date-time>
optional
timePeriods
string 
required
A list of iCalendar (RFC 5545) events (VEVENT).
Example:
BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;UNTIL=20221001T000000;BYDAY=TU\nEND:VEVENT
terminology
object 
optional
A cosmetic name for the “points” currency.
one
string 
required
A singular unit for a point (for example, 1 point is called 1 star).
>= 1 characters
other
string 
required
A plural unit for point (for example, 10 points is called 10 stars).
>= 1 characters
createdAt
string <date-time>
read-onlyoptional
updatedAt
string <date-time>
read-onlyoptional
Modified at 2024-04-09 14:32:39
Previous
Update game by ID
Next
List game accounts
Built with