VirtualAccount
Create a Virtual Account
Create a Virtual Account for a customer. Partner must have virtual_account_provider configured.
post/virtual-accounts
Request
- Base URLhttps://sandbox-api.polygon.technology/v0.10
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Idempotency-Keystring required
Required on POST and PUT requests. Use a unique value per logical mutation attempt, for example a UUID.
Request body
Example request
{
"customerId": "cst_vfa0nxw6zvyws9g237jrxn4y7k",
"type": "bankUs",
"accountHolder": "customer",
"source": {
"asset": "usd",
"network": "ach"
},
"destination": {
"type": "walletOms",
"details": {
"id": "wlt_5h4jzzpr9xre3bamd9ca7qyghn",
"asset": "usdc",
"network": "polygon"
}
},
"sponsorGas": true,
"label": "Alice USD deposit account"
}Response
The request has succeeded and a new resource has been created as a result.
Changes
No recorded changes to this operation across all 1 revision of this API.