Skip to main content
POST
Withdraw Credits

Headers

x-api-key
string
required

The API key to authenticate with.

Path Parameters

app_user_id
string
required

The app user id of the user to withdraw credits from.

Body

application/json
key
string
required

The key of the credit reward to withdraw

Example:

"credit-reward"

amount
integer
required

The amount of credits to withdraw

Required range: x >= 1
Example:

100

operation_id
string | null

An optional operation id that ensures the same operation won't be performed again

Example:

"821fae4b5-0123-4567-9152-5297086a161c"

Response

The result of the withdrawal of credits

data
object
required