Create Funding Channel
POST/api/funding-channels
This endpoint can be used to create a Funding Channel. See Funding Protocols for available funding types.
Request
- application/json
Body
required
- universal-evm
- algorand
The id of the partner account to add this Funding Channel to.
Possible values: [polygon-amoy-usdc-universal-evm-test
, polygon-usdc-universal-evm-live
, arbitrum-mainnet-usdc-universal-evm
, arbitrum-sepolia-usdc-universal-evm
, algorand-usdc
, algorand-testnet-usdc
, simulator-usdc
, custodial-usdc-live
, custodial-usdc-test
]
The name of the Funding Type.
Possible values: [card-funding
, billing
]
The purpose of the Funding Channel. Defaults to "card-funding".
params
object
required
Parameters for the Funding Channel. The valid parameters depend on the Funding Type.
oneOf
The address of the storage contract.
The address of the partner channel.
Responses
- 200
- 403
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
Funding Channel primary identifier.
Timestamp of Funding Channel creation.
Fund storage smart contract address.
The type of Funding Channel registered.
Name of the Funding Channel.
Purpose of the Funding Channel.
{
"id": "315bad4e81ce0f26966a41b9d451638b",
"createdAt": "2023-08-14T12:32:54",
"storageAddress": "0x2e429C4324227F70f0101a17214d249cb04035Ec0",
"fundingTypeName": "polygon-amoy-usdc-universal-evm-test",
"name": "immersve-polygon-usdc",
"purpose": "card-funding"
}
User is not allowed to perform the action with the reason stated in the errorCode
FORBIDDEN Insufficient permissions to perform the action.
ACCOUNT_TYPE_INVALID
accountType
of the accountId
is not of type PARTNER
.
FUNDING_CHANNEL_EXISTS Instance of this FundingChannel has already been claimed
- application/json
- Schema
- Example (from schema)
Schema
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}