Bet

Place bet on auction

  • The auction must be active.

  • Bet amount can not be less than the application price.

  • Bet amount cannot be less than or equal to the amount of the maximum bet at the auction.

method: POST

url: https://ninjalender.online/client/bet/place

Headers:

header key

header content

Content-Type:

application/json;

Authorization:

Bearer AToken;

Where AToken is the token that was received during authorization.

After purchasing the application, its data can be sent to your webhook for the prompt acceptance of the application to work. To activate this feature you need to contact us and provide a webhook`s url.

Request body:

Key

Type

Required

Description

params

JSON.object

+

Request parameters

params:

Key

Type

Required

Description

auction_id

int

+

id of auction

amount

number

+

bet amount

response:

Key

Type

Description

code

int

Response code

message

string

Message

data

JSON.array

Response data

data.id

int

id of bet

Request example:

{
  "params": {
    "auction_id": 419,
    "amount": 125
  }
}

Response example:

[
  {
    "code": 0,
    "message": "ok",
    "data": {
      "id": 6785
    }
  }
]

List of errors:

Key

Message

-99

System error! Try again later or contact us

-98

Expired token

-2000001

Invalid token

-2050101

Params is required

-2050102

Auction id must not be blank

-2050103

Auction not found

-2050104

Bet amount must be an integer

-2050105

Amount must be >0

-2050106

Amount must be a number

-2050107

Amount must not be blank

-2050108

Amount cant be lower than or equal to max Auction bet

-2050109

Amount cant be lower than loan price

Last updated