Create Withdrawal Intent

post/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

Request

Path Parameters

  • fundingSourceIdstringrequired

    ID for the Funding Source.

Body application/json

  • amountnumberrequired

    Withdrawal amount in minor units.

Response

Successful operation.

Body application/json

  • amountnumber

    Withdrawal amount in minor units.

  • idstring

    ID of the Withdrawal Intent.

  • createdAtstring

    Creation date of the Withdrawal Intent.

  • expiresAtstring

    Expiration date of the Withdrawal Intent.

  • walletAddressstring

    The wallet address to which the funds will be sent.

  • executionobject

    One of

    • contractAddressstring

      The 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

      • typestring
        Allowed values:function
      • namestring

        The name of the function

      • inputsobject[]

        Items

        • namestring

          The name of the parameter

        • typestring

          The type of the parameter

    • methodstring

      Smart contract method

    • paramsobject

      Smart contract call params. Keys are matching names and order defined in ABI