Create a Withdrawal Intent for a given Funding Source.
For more information on Withdrawal Intents see the Card Funding guide
/api/funding-sources/{fundingSourceId}/withdraw Create a Withdrawal Intent for a given Funding Source.
For more information on Withdrawal Intents see the Card Funding guide
fundingSourceIdstringrequiredID for the Funding Source.
amountnumberrequiredWithdrawal amount in minor units.
Successful operation.
amountnumberWithdrawal amount in minor units.
idstringID of the Withdrawal Intent.
createdAtstringCreation date of the Withdrawal Intent.
expiresAtstringExpiration date of the Withdrawal Intent.
walletAddressstringThe wallet address to which the funds will be sent.
executionobjectOne of
contractAddressstringThe address of the smart contract
abiobject[]The JSON ABI of the smart contract (contains only required details. more details here https://docs.soliditylang.org/en/v0.8.19/abi-spec.html#json)
Items
typestringfunctionnamestringThe name of the function
inputsobject[]Items
namestringThe name of the parameter
typestringThe type of the parameter
methodstringSmart contract method
paramsobjectSmart contract call params. Keys are matching names and order defined in ABI
appIdnumberApplication ID
methodstringSmart contract method
abiobjectThe JSON ABI of the smart contract (contains only required details)
namestringThe name of the method
descstringThe description of the method
argsobject[]An array of argument objects
Items
namestringName of the argument
typestringData type of the argument
descstringDescription of the argument
returnsobjectThe return value of the method
typestringType of the return value
argsobject[]Smart contract call params. Contents are matching names and order defined in ABI args array
Items
typestringData type of the argument
valuestringValue of the argument
Simulator strategy deposit instructions.
urlstringThe payload instructions should be send to this URL using an HTTP POST.
payloadobjectThe payload with the instructions for the deposit.
amountstringThe simulated deposit amount in minor units of the funding source token.
fundingSourceIdstringThe funding source to deposit funds to.
FORBIDDEN Insufficient permissions to perform the action.
INSUFFICIENT_BALANCE Withdrawal amount exceeds funding source balance.
TOO_MANY_PENDING_WITHDRAWALS Maximum amount of intents exceeded (10).
FUNDING_STRATEGY_NOT_SUPPORTED Funding strategy is not supported.
statusCodeintegerrequiredstatusNamestringrequirederrorCodestringrequiredreasonstring