Visa Digital Benefits Platform

Download Visa Digital Benefits Platform API Reference

Benefit File

Benefit File


Benefit File
v1 - Latest

This endpoint retrieves the files associated to a benefit. The files are fetched based on the benefit. It is a GET request that requires the benefit id, the date, language, and file type as a parameter in the URL. The response will include a pdf or text file that can be downloaded. The benefit details are returned in a structured JSON format for easy parsing and integration with other systems.

Request
query Parameters
asOfDate
string

Permits historical, present or future looking views of account information (if this element is not provided, the default value is today)

benefitId
required
string

Id of the benefit that the files are associated with

download
string

Whether to download or inline (any value other than false is considered to be true)

fileKey
required
string

File key to identify unique file if there are multiple with the same code

fileTypeCd
required
string

File type code to filter files

language
string

File language to filter files

Responses
200

Success

Response Schema:
string <binary>
400

Bad Request (the request was unacceptable often due to required missing or invalid request parameters)

Response Schema: application/json
correlationId
string [ 1 .. 100 ] characters

Id to track the request thru different system

message
string [ 10 .. 100 ] characters

Short Description about the Response

reason
string

Reason about the API Response

Enum: "SUCCESS" "MOD_10" "CLIENT_ERROR" "INVALID_INPUT" "INVALID_REQUEST_FORMAT" "NOT_FOUND" "NO_PORTFOLIO_FOUND" "NO_BENEFIT_PORTFOLIO_FOUND" "COULD_NOT_FIND_ACCOUNT_RANGE_FOR_CARD_NUM" "CONFLICTING_CARD_ACCOUNT_RANGES" "COULD_NOT_FIND_PRODUCT_TYPE_FOR_THE_CARD" "NO_ORGANIZATION_FOUND" "BIN_MANAGEMENT_IS_UNDEFINED" "MULTIPLE_CLE_TYP_FOUND" "PARSE_ERROR" "FORBIDDEN" "NOT_AUTHORIZED" "INTERNAL_SERVER_ERROR" "BIN_NOT_ASSOCIATED_WITH_ISSUER" "CAQ_PARSE_ERROR" "SERVICE_UNAVAILABLE_ERROR" "INVALID_USER_ID" "INVALID_MESSAGE_ID" "INVALID_APPLICATION_ID" "INVALID_PAN" "INVALID_DATE" "INVALID_PAN_LENGTH" "PAN_MISMATCH" "PACKAGE_NOT_FOUND" "UNSUPPORTED_MEDIA_TYPE"
requestMessageId
string [ 1 .. 100 ] characters

Id to track the request from the client

responseCode
string [ 3 .. 10 ] characters

Response Code from the API

status
integer <int32> [ 3 .. 100 ]

Status of the API Response

subResponseCode
string [ 3 .. 100 ] characters

Sub Response Code from the API for better debugging

401

Access Denied (not authorized for this request or lack of permission to access API)

Response Schema: application/json
correlationId
string [ 1 .. 100 ] characters

Id to track the request thru different system

message
string [ 10 .. 100 ] characters

Short Description about the Response

reason
string

Reason about the API Response

Enum: "SUCCESS" "MOD_10" "CLIENT_ERROR" "INVALID_INPUT" "INVALID_REQUEST_FORMAT" "NOT_FOUND" "NO_PORTFOLIO_FOUND" "NO_BENEFIT_PORTFOLIO_FOUND" "COULD_NOT_FIND_ACCOUNT_RANGE_FOR_CARD_NUM" "CONFLICTING_CARD_ACCOUNT_RANGES" "COULD_NOT_FIND_PRODUCT_TYPE_FOR_THE_CARD" "NO_ORGANIZATION_FOUND" "BIN_MANAGEMENT_IS_UNDEFINED" "MULTIPLE_CLE_TYP_FOUND" "PARSE_ERROR" "FORBIDDEN" "NOT_AUTHORIZED" "INTERNAL_SERVER_ERROR" "BIN_NOT_ASSOCIATED_WITH_ISSUER" "CAQ_PARSE_ERROR" "SERVICE_UNAVAILABLE_ERROR" "INVALID_USER_ID" "INVALID_MESSAGE_ID" "INVALID_APPLICATION_ID" "INVALID_PAN" "INVALID_DATE" "INVALID_PAN_LENGTH" "PAN_MISMATCH" "PACKAGE_NOT_FOUND" "UNSUPPORTED_MEDIA_TYPE"
requestMessageId
string [ 1 .. 100 ] characters

Id to track the request from the client

responseCode
string [ 3 .. 10 ] characters

Response Code from the API

status
integer <int32> [ 3 .. 100 ]

Status of the API Response

subResponseCode
string [ 3 .. 100 ] characters

Sub Response Code from the API for better debugging

404

Not Found (unique or valid data could not be found for the request parameters)

Response Schema: application/json
correlationId
string [ 1 .. 100 ] characters

Id to track the request thru different system

message
string [ 10 .. 100 ] characters

Short Description about the Response

reason
string

Reason about the API Response

Enum: "SUCCESS" "MOD_10" "CLIENT_ERROR" "INVALID_INPUT" "INVALID_REQUEST_FORMAT" "NOT_FOUND" "NO_PORTFOLIO_FOUND" "NO_BENEFIT_PORTFOLIO_FOUND" "COULD_NOT_FIND_ACCOUNT_RANGE_FOR_CARD_NUM" "CONFLICTING_CARD_ACCOUNT_RANGES" "COULD_NOT_FIND_PRODUCT_TYPE_FOR_THE_CARD" "NO_ORGANIZATION_FOUND" "BIN_MANAGEMENT_IS_UNDEFINED" "MULTIPLE_CLE_TYP_FOUND" "PARSE_ERROR" "FORBIDDEN" "NOT_AUTHORIZED" "INTERNAL_SERVER_ERROR" "BIN_NOT_ASSOCIATED_WITH_ISSUER" "CAQ_PARSE_ERROR" "SERVICE_UNAVAILABLE_ERROR" "INVALID_USER_ID" "INVALID_MESSAGE_ID" "INVALID_APPLICATION_ID" "INVALID_PAN" "INVALID_DATE" "INVALID_PAN_LENGTH" "PAN_MISMATCH" "PACKAGE_NOT_FOUND" "UNSUPPORTED_MEDIA_TYPE"
requestMessageId
string [ 1 .. 100 ] characters

Id to track the request from the client

responseCode
string [ 3 .. 10 ] characters

Response Code from the API

status
integer <int32> [ 3 .. 100 ]

Status of the API Response

subResponseCode
string [ 3 .. 100 ] characters

Sub Response Code from the API for better debugging

500

Internal Server Error

Response Schema: application/json
correlationId
string [ 1 .. 100 ] characters

Id to track the request thru different system

message
string [ 10 .. 100 ] characters

Short Description about the Response

reason
string

Reason about the API Response

Enum: "SUCCESS" "MOD_10" "CLIENT_ERROR" "INVALID_INPUT" "INVALID_REQUEST_FORMAT" "NOT_FOUND" "NO_PORTFOLIO_FOUND" "NO_BENEFIT_PORTFOLIO_FOUND" "COULD_NOT_FIND_ACCOUNT_RANGE_FOR_CARD_NUM" "CONFLICTING_CARD_ACCOUNT_RANGES" "COULD_NOT_FIND_PRODUCT_TYPE_FOR_THE_CARD" "NO_ORGANIZATION_FOUND" "BIN_MANAGEMENT_IS_UNDEFINED" "MULTIPLE_CLE_TYP_FOUND" "PARSE_ERROR" "FORBIDDEN" "NOT_AUTHORIZED" "INTERNAL_SERVER_ERROR" "BIN_NOT_ASSOCIATED_WITH_ISSUER" "CAQ_PARSE_ERROR" "SERVICE_UNAVAILABLE_ERROR" "INVALID_USER_ID" "INVALID_MESSAGE_ID" "INVALID_APPLICATION_ID" "INVALID_PAN" "INVALID_DATE" "INVALID_PAN_LENGTH" "PAN_MISMATCH" "PACKAGE_NOT_FOUND" "UNSUPPORTED_MEDIA_TYPE"
requestMessageId
string [ 1 .. 100 ] characters

Id to track the request from the client

responseCode
string [ 3 .. 10 ] characters

Response Code from the API

status
integer <int32> [ 3 .. 100 ]

Status of the API Response

subResponseCode
string [ 3 .. 100 ] characters

Sub Response Code from the API for better debugging

© Copyright Visa. All Rights Reserved.

NOTICE: The software and accompanying information and documentation (together, the “Software”) remain the property of and are proprietary to Visa and its suppliers and affiliates. The Software remains protected by intellectual property rights and may be covered by U.S. and foreign patents or patent applications. The Software is licensed and not sold.

By accessing the Software you are agreeing to Visa's terms of use (developer.visa.com/terms) and privacy policy (usa.visa.com/legal/global-privacy-notice.html). In addition, all permissible uses of the Software must be in support of Visa products, programs and services provided through the Visa Developer Program (VDP) platform only (developer.visa.com). THE SOFTWARE AND ANY ASSOCIATED INFORMATION OR DOCUMENTATION IS PROVIDED ON AN “AS IS,” “AS AVAILABLE,” “WITH ALL FAULTS” BASIS WITHOUT WARRANTY OR CONDITION OF ANY KIND. YOUR USE IS AT YOUR OWN RISK.

get/vdbp-benefits/getbenefitfile

Sandbox server

https://sandbox.api.visa.com/vdbp-benefits/getbenefitfile
Response samples
application/json
{
  • "responseStatus": {
    }
}