customer/v1/fund

[POST] customer/v1/fund

Fund account via debit card

The fund endpoint allows customers to fund their account balance via transaction from an external debit card account. Funds are not available immediately, they will display in the customer's current balance, but they require settlement before they display in the customer's available balance. All funding requests are made in the lowest possible denomination of a currency; eg a funding request for $1.00 USD will be sent as 100.

Example [POST] Request

{{card_base_url}}/customer/v1/fund
{
        "amount" : "",
        "currency" : "",
        "memo" : "",
        "cardType" : "",
        "cardNumber" : "",
        "cardExp" : "",
        "cardCvv" : "",
        "cardholderFirstname" : "",
        "cardholderLastname" : "",
        "cardholderCompany" : "",
        "cardholderAddress1" : "", 
        "cardholderAddress2" : "",
        "cardholderCity" : "",
        "cardholderState" : "",
        "cardholderZip" : "",
        "cardholderCountry" : "",
        "cardholderPhone" : "",
        "cardholderEmail" : "",
        "saveCard" : "",
}

Input Parameters

ParameterFormatRequiredDetails
"amount"IntegerYFunding amount in lowest currency e.g. cents
"currency"String; Three-letter ISO currency codeYThe transaction currency
"memo"StringNThe transaction memo
"cardType"enumYCard type. See below
"cardNumber"StringYCredit card number
"cardExp"StringC; required for cardType of "DEBIT"Card expiration date
"cardCvv"StringNCard security code (CVV / CVC)
"cardholderFirstname"StringYCardholder first name
"cardholderLastname"StringYCardholder last name
"cardholderCompany"StringNCardholder's company
"cardholderAddress1"StringYCardholder's billing address
"cardholderAddress2"StringNCardholder's billing address, line 2
"cardholderCity"StringYCardholder's billing city
"cardholderState"String; Format: CCYCardholder's billing state
"cardholderZip"StringYCardholder's billing zip code
"cardholderCountry"String; Two-letter ISO 3166. Format: CCNCardholder's billing country
"cardholderPhone"StringNCardholder's billing phone number
"cardholderEmail"StringNCardholder's billing email
"saveCard"BooleanYCustomer authorization to save card details

Card Types

CodedescriptionNotes
DEBITDebit cardRequires cardExp

Example Response

{
    "fund" : {
        "amount" : "",
        "currency" : "",
        "memo" : "",
        "cardType" : "",
        "cardNumber" : "",
        "cardExp" : "",
        "cvv" : "",
        "cardholderFirstname" : "",
        "cardholderLastname" : "",
        "cardholderCompany" : "",
        "cardholderAddress1" : "",
        "cardholderAddress2" : "",
        "cardholderCity" : "",
        "cardholderState" : "",
        "cardholderZip" : "",
        "cardholderCountry" : "",
        "cardholderPhone" : "",
        "cardholderEmail" : "",
        "saveCard" : "",
    },
    "transactionId" : "",
    "cardToken" : "",
    "status": "",
    "dateCreated": "",
    "dateUpdated": "",
}

Response Elements

(In addition to elements found in the input parameters)

ElementDetails
transactionIdUUID payment identifier
cardTokenAvenu issued card token; set to blank currently
statusStatus of payment at end of transaction. See Payments Overview.
dateCreatedTransaction processed date in format ISO 8601 YYYY-MM-DD.
dateUpdatedDate of last status update in format ISO 8601 YYYY-MM-DD

Error Codes

codeMessage
1001"Missing required field"
1002"Invalid data structure"
1003"Invalid data"