§ X-Api-Auth-Token: Individually Generated
- Set the content type
§ Content-Type: application/json
• When API call is submitted with a zip code, API will return a pass
or restricted response for that zip code area only.
Image 1: Attributes WITH Zip Code Submission
• When API call
is submitted withOUT
a zip code, API will return any areas where
the specific firearm
has potential transfer restrictions will be provided
by state and/or
specific municipalities or “pass” if firearm does
not appear to be restricted in any area.
Image 2: Attributes withOUT Zip Code Submission
1.
FirearmType (Required) – Must EXACTLY Match text strings as defined by database (See Text String Definitions: Handgun, Shotgun, Rifle).
a.
FirearmTypes:
i.
rifle
ii.
shotgun
iii.
handgun
b.
Other types will respond with an error
2.
Options (Required) – Must EXACTLY Match text strings as defined by database (See Text String
Definitions: Handgun, Shotgun, Rifle)
3.
Features (Features object
is required but individual features
need not be submitted for item) – Must EXACTLY Match text strings
as defined by database (See
Text String Definitions: Handgun, Shotgun, Rifle)
1.
Zip Code (Optional) – Must be
five (5) digit zip code
1. If any text string submitted is not an exact match text strings defined in database (See Text String
Definitions: Handgun, Shotgun, Rifle), API will return
an error message.
•
Accepts a UPC for a specific firearm
to test for potential restrictions in JSON format
•
May be utilized
with or without
zip code
• When API call is submitted with a zip code, API will return a pass or restricted response for that zip code area only.
Image 4: Attributes WITH Zip Code Submission
• When API call
is submitted withOUT
a zip code, API will
return any areas
where the specific
UPC has potential transfer restrictions will be provided by state and/or
specific municipalities or “pass” if firearm does not appear to be restricted in any area.
Image 5:
Attributes withOUT Zip Code Submission
1. UPC (Required) – Must EXACTLY Match UPC for item, including any
leading 0’s.
1.
Zip Code (Optional) – Must be
five (5) digit zip code
1. If UPC submitted is not an
exact match to a UPC defined in database, API will return an error message.
Image 6: UPC Not Found Error
POST /api/state/search HTTP/1.1 Host: app.fflbizhub.com
X-Api-Auth-Token: XXXXXXXXXXXX Content-Type:
application/json cache-control: no-cache
{
"zip":"",
"firearmType":"Rifle", "options":[
{"OptionName":"Action","value":"Lever"},
{"OptionName":"cartridge","value":"Centerfire"},
{"OptionName":"Magazine","value":"Fixed
Magazine"}
],
"features":[
{"featureName":"Magazine
Capacity Over 5 Rounds"},
{"featureName":"Magazine
Capacity Over 8 Rounds"}
]
}
{ "UPC":"6026863130566",
"zip":""
}
handgun
ActionSemiautomaticRevolverFull AutoBreakCartridgeCenterfireRimfireMagazineDetachable MagazineFixed MagazineBullet Button MagazineBelt FedN/A
Ability to accept magazine outside pistol gripBarrel ShroudBinary TriggerCapable of Firing a Projectile Greater Than .60 CaliberCenterfire with length of 12 inches or moreFolding StockForward Pistol GripHandguardMagazine ability to accept more than 10 roundsMagazine ability to accept more than 15 roundsMagazine Capacity Over 10 RoundsMagazine Capacity Over 15 RoundsMagazine Capacity Over 16 RoundsMagazine Capacity Over 17 RoundsMagazine Capacity Over 30 RoundsMagazine Capacity Over 35 RoundsMultiburst Trigger ActivatorMuzzle BrakeMuzzle CompensatorOverall Length of 12" or GreaterSecond hand gripSelective-fire Capable of full auto semiauto or burst fireSemiautomatic Version of an Automatic FirearmSmooth BoreTelescoping StockThreaded BarrelThumbhole StockTrigger CrankWeight of 50 oz. or more when unloaded
Shotgun
ActionSemiautomaticPumpLeverBoltBreakFull AutoMagazineDetachable MagazineBelt FedFixedN/A
Barrel Length Less than 18 inchesBarrel shroudBayonet mountBump StockDetachable StockDrum magazine over 12 roundsFlare LauncherFlash suppressorFolding stockForward pistol gripGrenade LauncherMagazine Capacity Over 10 roundsMagazine Capacity Over 15 roundsMagazine Capacity Over 16 roundsMagazine Capacity Over 5 roundsMagazine Capacity Over 6 roundsMagazine Capacity Over 7 roundsMultiburst Trigger ActivatorNo StockOverall Length Less than 26 InchesPistol GripPistol Grip Separate From StockRevolving Cylinder MagazineRocket LauncherSelective-fire Capable of full auto semiauto or burst fireShotgun Without a Fixed Stock Capable of Being Fired from the ShoulderSighting Device Making a Target Visible at NightStockless Pistol Grip OnlyTelescoping stockThreaded Barrel Designed to Accommodate a Flash SuppressorThumbhole stockTrigger CrankBinary TriggerMagazine Capacity Over 35 RoundsSemiautomatic Version of Automatic ShotgunTubular Magazine Extension
firearmType
Rifle
ActionSemiautomaticPumpLeverBoltFull AutoBreakCartridgeCenterfireRimfireMagazineDetachable MagazineBullet Button MagazineFixed MagazineBelt FedN/A
Barrel Length Less Than 16 inchesBarrel ShroudBayonet Lug or MountBinary TriggerBump StockCapable of Firing a .50BMG CartridgeCapable of Firing a 12.7mm or Other Metric Equivalent of .50BMGCapable of Firing a Projectile Greater Than .60 CaliberCapable of Firing a Projectile With a Muzzle Energy of 12,000 Foot Pounds or GreaterDetachable StockFlare LauncherFlash SuppressorFolding StockForward Pistol GripGrenade LauncherHandguardMagazine Capacity Over 10 RoundsMagazine Capacity Over 15 RoundsMagazine Capacity Over 16 RoundsMagazine Capacity Over 30 RoundsMagazine Capacity Over 35 RoundsMagazine Capacity Over 5 RoundsMagazine Capacity Over 8 RoundsMultiburst Trigger ActivatorMuzzle BrakeMuzzle CompensatorNo StockOverall Length Less than 26 InchesOverall Length Less than 29 InchesOverall Length Less than 30 InchesPistol GripPistol Grip Separate from StockRifle Without a Fixed Stock Capable of Being Fired from theShoulderRocket LauncherSelective-fire Capable of full auto semiauto or burst fireSemiautomatic Version of an Automatic RifleSighting Device Making a Target Visible at NightStockless Pistol Grip OnlyTelescoping StockThreaded BarrelThumbhole StockTrigger Crank