GuidesChangelog
added

25 April 2023 - Release Notes

  • New Fund Via Tokenized Debit Card Endpoint
  • Update to ID Scan Endpoint

Overview

The following release notes contain updated versions of the following endpoints:

  • customer/v1/token/fund

If you have questions regarding the updates described in this document, please contact Avenu’s Support Department by email ([email protected]).

What's New?

The following release notes detail the updates we have included in this release.

Customer - Fund account via tokenized debit card

POST {prefix}/customer/v1/token/fund

We have created a new endpoint that allows Customers to fund their account with a tokenized debit card, and added a new "cardType" of "TOKEN" to be passed with this call.

Example Request

{
        "amount" : "",
        "currency" : "",
        "memo" : "",
        "cardType" : "",				// "TOKEN"
        "paymentToken" : "",				// Tokenized card information
        "cardholderFirstname" : "",
        "cardholderLastname" : "",
        "cardholderCompany" : "",
        "cardholderAddress1" : "", 
        "cardholderAddress2" : "",
        "cardholderCity" : "",
        "cardholderState" : "",
        "cardholderZip" : "",
        "cardholderCountry" : "",
        "cardholderPhone" : "",
        "cardholderEmail" : "",
}

Example Response

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

Request 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
"paymentToken"StringYTokenized card information
"cardholderFirstname"StringNCardholder first name
"cardholderLastname"StringNCardholder last name
"cardholderCompany"StringNCardholder's company
"cardholderAddress1"StringNCardholder's billing address
"cardholderAddress2"StringNCardholder's billing address, line 2
"cardholderCity"StringNCardholder's billing city
"cardholderState"String; Format: CCNCardholder'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

Errors

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

Updates

The following release notes detail the updates we have included in this release.

Update -

POST /onboard/v1/customer/idScans

We've added some additional context in the response body when publishing ID Scans: "idScanResults", "idScanSummaryResult", and "idScanResultDetail"

Example Response

    {
        "idFront": "",    // MD5 hash of the Avenu customer's ID front image
        "idBack": "",     // MD5 hash of the Avenu customer's ID back image
        "idType": "",
        "idScanResult": "",
        "idScanSummaryResult": "",
        "idScanResultDetail": ""
    }

idScanResult(s)

idScanResultDescription
Result Id Scan ApprovedApproved
Result Id Scan Not ApprovedNot Approved

idScanSummaryResult(s)

idScanSummaryResultDescription
Expectid Scan Id SuccessSuccess
Expectid Scan Id FailureFailure

idScanResultDetail(s)

idScanResultDetailDescription
Result Document VerifiedIndicates that the front/back of the document were able to be read, the template check passed, and the information on the front of the document matches the data from the barcode on the back.
Result OCR CompletedThe data on the front of the document was successfully read.
Result Document Not VerifiedThe template checks against the document failed or the data from the back of the document does not match the data on the front of the document.
Result ID Not ReadableIndicates that the image submitted did not have the required quality needed to complete the verification process. The customer must re-take the images.