Skip to main content
cURL
curl --request POST \
  --url https://api.grainfinance.co/v1/wallets/{walletId}/withdraw \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 10000
}
'
{
  "id": "1b0ada1e-fa1b-4cfe-a553-01b340c5650e"
}

Documentation Index

Fetch the complete documentation index at: https://docs.grainfinance.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Basic authentication using the partner API keys from https://console.grainfinance.co/api-keys

Path Parameters

walletId
string<uuid>
required

The id of the wallet within the Grain platform. Stringified UUIDv4. See RFC 4112

Pattern: [0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}

Body

application/json

The payload required in order to withdraw fund transfers

The payload required in order to withdraw fund transfers

amount
number<double>
required

The amount of the funds requested to be withdrawn.

Example:

10000

Response

Withdraw completed successfully

A response containing the ID of the created object.

id
string<uuid>
required

The id of the created object.

Pattern: [0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}
Example:

"1b0ada1e-fa1b-4cfe-a553-01b340c5650e"