Team

Spend credits from a team

POST
/api/v1/team/transaction/spend
/api/v1/team/transaction/spend

The Authorization access token

Authorization

Authorization
Required
<token>

Please enter a valid access token

In: header

Request Body

application/jsonOptional

The transaction details

teamId
Required
string

Minimum length: 1

amount
Required
integer

Format: "int64"

type
Required
integer

Format: "int32"Value in: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19
curl -X POST "https://example.com/api/v1/team/transaction/spend" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "teamId": "string",
    "amount": 0,
    "type": 0
  }'

OK