Create a Funding Channel to let your Cardholders create Funding Sources for a Funding Type's network and token. See Creating a Funding Channel for the parameters each Funding Type requires.
Create Funding Channel
/api/funding-channels Request
Body application/json
accountIdstringrequiredThe id of the partner account to add this Funding Channel to.
fundingTypeNamestringrequiredName of the Funding Type to configure. See Funding Types for the available names.
purposestringAllowed values:card-fundingbillingThe purpose of the Funding Channel. Defaults to "card-funding".
paramsobjectrequiredParameters for the Funding Channel. The valid parameters depend on the Funding Type.
One of
storageAddressstringrequiredThe address of the storage contract.
partnerChannelAddressstringrequiredThe address of the partner channel.
billingFundingSourceIdstringrequiredThe ID of the billing funding source.
webhookBaseUrlstringrequiredThe base URL for the webhook.
Response
Successful operation.
Body application/json
idstringrequiredFunding Channel primary identifier.
accountIdstringrequiredPartner Account ID.
createdAtstringrequiredTimestamp of Funding Channel creation.
fundingTypeNamestringrequiredName of the Funding Type the Funding Channel configures. See Funding Types.
namestringrequiredName of the Funding Channel.
purposestringrequiredPurpose of the Funding Channel.
modestringrequiredFunding Mode of the Funding Channel.
paramsobjectrequiredParameters for the Funding Channel.
One of
storageAddressstringrequiredThe address of the storage contract.
partnerChannelAddressstringrequiredThe address of the partner channel.
billingFundingSourceIdstringrequiredThe ID of the billing funding source.
webhookBaseUrlstringrequiredThe base URL for the webhook.
storageAddressstringdeprecatedDeprecated. See
paramsfor storage address.
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
Body application/json
statusCodeintegerrequiredstatusNamestringrequirederrorCodestringrequiredreasonstring