Mobile Wallets for Developers

The Fosbury API makes it easy to start creating and distributing passes for mobile wallets.

RESTful API for easy integration
The enterprise-class Fosbury API was built to reduce development time for companies and to be the best foundation to help brands connect their business to all of their digital wallet systems. Integrate once and automatically tie in to iOS Passbook & Samsung Wallet. Read the full documentation

Speaks your language
To make the integration of Fosbury as seamless as possible, we have released three SDKs for PHP, Ruby on Rails and Python. Please view the code examples below to see how it works. Once the API is integrated, Fosbury works everywhere. View all of our API clients on Github.

SDK Code examples

# Create a client
fosbury = Fosbury::Client.new
template = fosbury.create_template('My template', 'coupon', {primary_label: '20%', primary_value: 'Discount'} )
 
# Create a campaign with 10 passes
campaign = fosbury.create_campaign(template['id'], {quantity: 10, barcode: '12345', barcode_type: 'single'})
 
# Distribute the campaign, the passes will be rendered.
# The returned JSON provides information about the generic url to download passes.
fosbury.distribute_campaign(campaign['id'])
# Create a client
client = fosbury.Client(api_token='[your_api_token]')
template = client.create_template('My template', 'coupon', {'primary_label': '20%', 'primary_value': 'Discount'})
 
# Create a campaign with 10 passes
campaign = fosbury.create_campaign(template['id'], {quantity: 10, barcode: '12345', barcode_type: 'single'})
 
# Distribute the campaign, the passes will be rendered.
# The returned JSON provides information about the generic url to download passes.
fosbury.distribute_campaign(campaign['id'])
# Create a client
$fosbury = new Fosbury\Client("your_api_key");
$template = $fosbury->createTemplate('My template', 'coupon', array('primary_label' => '20%', 'primary_value' => 'Discount'));
 
# Create a campaign with 10 passes
$campaign = $fosbury->createCampaign($template['id'], array('quantity' => 10, 'barcode' => '12345', 'barcode_type' => 'single'));
 
# Distribute the campaign, the passes will be rendered.
# The returned JSON provides information about the generic url to download passes.
$fosbury->distributeCampaign($campaign['id']);

Sign up now

Start your free 30-day trial or contact us

Be993c02-9752-468e-88d1-99fe06751ba0