Additional material and support for hackathon events
Last updated June 29, 2021
OVERVIEW
Provide access to both U.S. Bank common product definitions and industry standard Merchant Category Codes. These reference APIs are utilities for obtaining read-only information for use with other APIs.
A Merchant Category Code (MCC) is a four-digit code assigned by the major credit card networks (Visa, Mastercard, American Express and Discover) to every business that applies to accept credit cards. This code indicates the nature of the merchant’s business (e.g. Airlines and Airline Carriers, Veterinary Sciences, Hardware Stores, etc.) They have become the standard for categorizing card purchases based on industry.
FEATURES
Contact information:
U.S. Bank API Support
apisupport@usbank.com
License: Subject to U.S. Bank Developer Portal Terms of Use. © 2021 U.S. Bank
U.S. Bank API Developer Portal
Provides a list of main banking products.
This method returns a JSON object with all known account products and their descriptions.
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| Accept | header | Indicates the acceptable response format of ‘application/json’ | Yes | string |
| Authorization | header | Basic authentication of base64 encoded key:secret including semi-colon | Yes | string |
| Code | Description |
|---|---|
| 200 | Product list |
| 400 | Invalid Request |
| 500 | System Error |
Returns the description of a Merchant Category Code based on the supplied mcc value.
This is method is useful to determine the category of a given purchase. An error is returned if no matching MCC is found.
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| Accept | header | Indicates the acceptable response format of ‘application/json’ | Yes | string |
| Authorization | header | Basic authentication of base64 encoded key:secret including semi-colon | Yes | string |
| mcc | path | The MCC code to lookup - must be four digits | Yes | string |
| Code | Description |
|---|---|
| 200 | Merchant Code |
| 400 | Invalid Request |
| 404 | Record not found |
| 500 | System Error |
Provides a complete list of all known MCC codes.
This method returns a JSON object with all known Merchant Category Codes and their descriptions.
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| Accept | header | Indicates the acceptable response format of ‘application/json’ | Yes | string |
| Authorization | header | Basic authentication of base64 encoded key:secret including semi-colon | Yes | string |
| Code | Description |
|---|---|
| 200 | Merchant codes |
| 400 | Invalid Request |
| 500 | System Error |
Searches merchant code repository based on input criteria.
This method returns an array of MCC codes that match the search criteria
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| Accept | header | Indicates the acceptable response format of ‘application/json’ | Yes | string |
| Authorization | header | Basic authentication of base64 encoded key:secret including semi-colon | Yes | string |
| desc | query | A partial keyword to search | Yes | string |
| Code | Description |
|---|---|
| 200 | Merchant Code |
| 400 | Invalid Request |
| 404 | Record not found |
| 500 | System Error |
| Name | Type | Description | Required |
|---|---|---|---|
| accountType | string | Brief account type Example: "SAVINGS" |
Yes |
| productCode | string | Three character alpha-numeric code identifying a specific banking product Example: "DDA" |
Yes |
| description | string | Description of banking product Example: "Savings" |
Yes |
| balanceType | string | Enum:[ASSET,LIABILITY] Example: "ASSET" |
Yes |
| Name | Type | Description | Required |
|---|---|---|---|
| productList | array |
| Name | Type | Description | Required |
|---|---|---|---|
| products | [ object ] | No |
| Name | Type | Description | Required |
|---|---|---|---|
| attributeName | string | attribute name Example: "code" |
Yes |
| reason | string | reason why error occurred Example: "Invalid format" |
No |
| Name | Type | Description | Required |
|---|---|---|---|
| details | array |
| Name | Type | Description | Required |
|---|---|---|---|
| code | string | Code associated to the specific error that can be used to trace error condition back to log information Example: "400.1057.2000" |
Yes |
| message | string | Text message indicating information about error Example: "Bad or Malformed Request" |
Yes |
| details | [ object ] | No |
| Name | Type | Description | Required |
|---|---|---|---|
| error | object | Yes |
| Name | Type | Description | Required |
|---|---|---|---|
| error | object | No |
| Name | Type | Description | Required |
|---|---|---|---|
| mcc | string | Merchant Category Code Example: "5300" |
Yes |
| edited_description | string | Common description Example: "Wholesale Clubs" |
Yes |
| combined_description | string | Common description Example: "Wholesale Clubs" |
Yes |
| usda_description | string | Applicable to US Department of Agriculture Example: "Wholesale Clubs" |
Yes |
| irs_description | string | IRS-specific description Example: "Wholesale Clubs" |
Yes |
| irs_reportable | string | Indicates if these purchases must be reported Example: "Wholesale Clubs" |
Yes |
| id | number | Internal index | Yes |
| Name | Type | Description | Required |
|---|---|---|---|
| code | object | No |
| Name | Type | Description | Required |
|---|---|---|---|
| codes | object | No |