Actions

Create Interaction Handler

Changed on

Record a deposit interaction

post/v2/actions/deposit/{opportunityId}

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

opportunityIdstring uuid nullable required
Example:248df4b7-aa70-47b8-a036-33ac447e668d

Opportunity unique identifier

Request body

amountstring required

Amount in smallest unit (wei)

distributorIdstring required

Distributor ID

modestring

Mode: 'swap' to use router, 'direct' for direct deposit

quoteOnlyboolean

Skip balance validation for quote preview

referralCodestring

Optional referral code

slippageBpsinteger

Slippage tolerance in basis points (e.g., 50 = 0.5%)

tokenInstring required

Input token address

userAddressstring required

User wallet address (validated by middleware)

Response

OK

actionIdstring uuid nullable

Example response

{
  "actionId": "248df4b7-aa70-47b8-a036-33ac447e668d"
}

Changes

    • info

      added the optional property /// to the response with the status

    • info

      added the new optional request property

    • info

      added the non-success response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property ///// to the response with the status

    • info

      added the optional property /// to the response with the status