Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.17 KB

File metadata and controls

52 lines (37 loc) · 1.17 KB

Merchant Codes

Search for merchant category info with Merchant Category Codes (MCCs).

Built by Beek Technologies 🕊

Installation

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

Usage

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"

Additional links