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
- custodial
- simulator
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
, custodial-test-usdc
]
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.
The ID of the billing funding source.
The base URL for the webhook.
Responses
- 200
- 403
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
- universal-evm
- algorand
- custodial
- simulator
Funding Channel primary identifier.
Partner Account ID.
Timestamp of Funding Channel creation.
The type of Funding Channel registered.
Name of the Funding Channel.
Purpose of the Funding Channel.
params
object
required
Parameters for the Funding Channel.
oneOf
The address of the storage contract.
The address of the partner channel.
The ID of the billing funding source.
The base URL for the webhook.
Deprecated. See params
for storage address.
{
"id": "315bad4e81ce0f26966a41b9d451638b",
"accountId": "65a7e8ef0d230d0a6bf755e07d39eb02",
"createdAt": "2023-08-14T12:32:54",
"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"
}