Skip to main content
PATCH
/
action
/
{id}
/
fees-withdrawal
Register fees withdrawal for mini app
curl --request PATCH \
  --url http://localhost:4000/v1/action/{id}/fees-withdrawal \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id_user": "123e4567-e89b-12d3-a456-426614174000",
  "id_mini_app": "123e4567-e89b-12d3-a456-426614174000",
  "amount": 100.5,
  "blockchain_network": 43114,
  "tx_hash": "0x1234567890abcdef...",
  "status": "pending"
}
'
{
  "success": true,
  "message": "Fees withdrawal registered",
  "statusCode": 200,
  "timestamp": "2023-11-07T05:31:56Z",
  "path": "mini-apps/{id}/fees-withdrawal"
}

Authorizations

Authorization
string
header
required

Use this format: ApiKey <your_api_key>

Path Parameters

id
string
required

Mini app UUID

Body

application/json
id_user
string
required

User ID

Example:

"123e4567-e89b-12d3-a456-426614174000"

id_mini_app
string
required

Mini app ID

Example:

"123e4567-e89b-12d3-a456-426614174000"

amount
number
required

Withdrawal amount

Example:

100.5

blockchain_network
number
required

Blockchain network ID

Example:

43114

tx_hash
string
required

Transaction hash

Example:

"0x1234567890abcdef..."

status
enum<string>
required

Withdrawal status

Available options:
pending,
completed,
failed
Example:

"pending"

Response

Fees withdrawal registered successfully

success
boolean
Example:

true

message
string
Example:

"Fees withdrawal registered"

statusCode
number
Example:

200

timestamp
string<date-time>
path
string
Example:

"mini-apps/{id}/fees-withdrawal"