Apps
Deposit Funds into App Wallet
Deposit funds into an app's wallet from its bank account.
POST
/
v2
/
apps
/
{app_id}
/
deposit
Authorization
Path
Body
curl --request POST \
--url https://api.dots.dev/api/v2/apps/{app_id}/deposit \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"amount": 123,
"created": "2023-11-07T05:31:56Z",
"external_data": {
"account_id": "<string>",
"external_id": "<string>",
"platform": "ach"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": "<string>",
"status": "created",
"transactions": [
{
"amount": 123,
"created": "2023-11-07T05:31:56Z",
"destination_name": "<string>",
"id": 123,
"metadata": "<string>",
"source_name": "<string>",
"type": "balance"
}
],
"type": "refill",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Authorizations
Authorization
string
headerrequiredBasic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
app_id
string
requiredThe ID of the App.
Body
application/json
amount
integer
requiredThe amount to deposit in cents.
idempotency_key
string
Idempotency key in UUID format.
Response
200 - application/json
amount
number
created
string
external_data
object
id
string
metadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
status
enum<string>
Available options:
created
, pending
, failed
, completed
, flagged
transactions
object[]
type
enum<string>
Available options:
refill
, payout
, balance
user_id
string
curl --request POST \
--url https://api.dots.dev/api/v2/apps/{app_id}/deposit \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"amount": 123,
"created": "2023-11-07T05:31:56Z",
"external_data": {
"account_id": "<string>",
"external_id": "<string>",
"platform": "ach"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": "<string>",
"status": "created",
"transactions": [
{
"amount": 123,
"created": "2023-11-07T05:31:56Z",
"destination_name": "<string>",
"id": 123,
"metadata": "<string>",
"source_name": "<string>",
"type": "balance"
}
],
"type": "refill",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}