Truck and Flight - AMOE **

Credit Truck Sweepstakes Entries via AMOE

POST /users/{user_id}/entries/credit

This API is used to credit a specified number of truck or flight sweepstakes entries to a user’s account.

Body

Name
Type
Description

amount

number

Number of the entries to credit

type

string (enum)

"truck" (default) or "flight"

description

string (optional)

Description or reason for crediting entries

idempotency_key

string

Idempotency key

Response

{
  "status": "success",
  "user_id": string,
  "type": string, // "truck" or "flight"
  "new_entry_balance": number
  "transaction_id": string  // Unique ID for the ticketing action
}

Debit Entries from User

POST /users/{user_id}/entries/debit

This API is used to debit (subtract) a specified number of truck or flight sweepstakes entries from a user’s account.

Body

Name
Type
Description

amount

number

Number of tickets to debit

type

string (enum)

"truck" (default) or "flight"

description

string (optional)

Description or reason for debiting entries

idempotency_key

string

Idempotency key

Response

{
  "status": "success",
  "user_id": string,
  "type": string, // "truck" or "flight"
  "new_entry_balance": number,
  "transaction_id": "string"  // Unique ID for the ticketing action
}

Last updated

Was this helpful?