Purchase Subscription w Existing Card

Purchase a subscription with an existing credit card

Authentication

x-coinflow-auth-session-keystring

The session key generated for the end user - see https://docs.coinflow.cash/reference/authentication

OR
x-coinflow-auth-walletstring

The web3 wallet of the end user - see https://docs.coinflow.cash/reference/authentication

x-coinflow-auth-blockchainstring

The blockchain associated with the end user - see https://docs.coinflow.cash/reference/authentication

Path Parameters

merchantIdstringRequired

Headers

x-device-idstringOptional
- (Optional) If you are using Coinflow Chargeback Protection, you must pass the device id of the customer's device.

Request

This endpoint expects an object.
planCodestringRequired
The id of plan to use for the subscription
tokenstringRequired
Token for the card to be used for the subscription
fixedFeeobjectOptional
customerInfoobjectOptional
webhookInfoobjectOptional
chargebackProtectionDatalist of any or objectsOptional

Purchase *

feePercentagedoubleOptional0-100

If this purchase is for a seller/submerchant where the marketplace takes a fee, this is the % fee which is taken from the subtotal amount.

authentication3DSobjectOptional
threeDsChallengePreferenceenumOptional
Allowed values:
accountFundingTransactionobjectOptional
Used for Account Funding Transactions

Response

Ok