Search for merchant category info with Merchant Category Codes (MCCs).
Built by Beek Technologies 🕊
If available in Hex, the package can be installed
by adding merchant_codes
to your list of dependencies in mix.exs
:
def deps do
[
{:merchant_codes, "~> 0.1.0"}
]
end
To return a map of MCC info, simply run:
iex> MerchantCodes.get("3072")
%{
combined_description: "Agricultural Co-operatives",
edited_description: "Agricultural Co-operatives",
id: 1,
irs_description: "Agricultural Cooperative",
irs_reportable: "Yes",
mcc: "0763",
usda_description: "Agricultural Co-operatives"
}
If you're just looking for a category using a code:
iex> MerchantCodes.category("3072")
"Agricultural Cooperative"