Withdraw from the corporate card programme
curl --request POST \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 10000
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 10000})
};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/withdraw"
payload = { "amount": 10000 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/withdraw"
payload := strings.NewReader("{\n \"amount\": 10000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "6a4dfe8163ece0f330a0b33e",
"status": "pending"
}Wallet
Withdraw from the corporate card programme
Move USDC from the company Rain pooled contract back into your business treasury. Amount is in cents. Returns 202 with the withdraw request id while processing continues asynchronously. Subscribe to card.withdraw.completed for confirmation.
POST
/
api
/
v1
/
wallet
/
withdraw
Withdraw from the corporate card programme
curl --request POST \
--url https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 10000
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 10000})
};
fetch('https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/withdraw"
payload = { "amount": 10000 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://b2b-api-sandbox.easyonramp.com/api/v1/wallet/withdraw"
payload := strings.NewReader("{\n \"amount\": 10000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "6a4dfe8163ece0f330a0b33e",
"status": "pending"
}Authorizations
Bearer JWT issued to your business account during onboarding
Body
application/json
USDC amount in cents
Example:
10000
Response
202 - application/json
Withdraw request id
Example:
"6a4dfe8163ece0f330a0b33e"
Withdraw request status. POST returns pending; poll GET /wallet/withdrawals/{id} or subscribe to card.withdraw.completed for updates.
Available options:
pending, processing, completed, failed Example:
"pending"