Python SDK

Get API Client

from bigoyster import Bigoyster
client = Bigoyster(             base_url='https://api.dealsmedia.com/',             username='',             password='',
         )


Get Device ID - The point of sale may be a device or a website, each has a unique ID that you can store with the device.

d = client.get_pos_device('pos_type', your_device_ref, 'friendly name')
print(d.get('device_id'))

stories

Checkout Process - Get customer, attach to sale, authorize coupons, capture coupons.

c = client.get_consumer_by_phone('device_id', '12345556789')
# the consumer_id can be stored with the phone number
consumer_id = c.get('id')
client.start_consumer_order('device_id', consumer_id)
coupons = client.get_consumer_coupons(
device_id='device_id',
consumer_id=consumer_id,
upcs='comma,separated,upcs',
qtys='comma,separated,qtys',
prices='comma,separated,prices',
txn_line_refs='comma,separated,line,references',          txn_ref='your_txn_ref',             txn_type='sale',
)
auth_code = coupons.get('auth_code')
cap = client.capture_coupons('device_id', consumer_id, auth_code)
success = cap.get('success')

Views
1 Total Views
1 Members Views
0 Public Views
Actions
0 Likes
0 Dislikes
0 Comments
Share on Social Networks
Share Link
Share by mail

Please login to share this webpage by email.

External sources