Official BEEP! API SDK for Python. Integrate POS, ERP, PSP and retail systems
Project description
BEEP! Python SDK
Official Python SDK for the BEEP! Developer API.
Installation
pip install beep-sdk
# or copy this package into your project
Quick Start
from beep import BeepClient
# Use your Secret Key (bk_test_sk_... for sandbox, bk_live_sk_... for production)
client = BeepClient("bk_test_sk_YOUR_SECRET_KEY")
# List stores
stores = client.stores.list()
# Insert a product
product = client.catalog.insert_product(
storeId="your_store_id",
ean="4000000000001",
name="Bio-Vollmilch 3,5%",
brand="BioHof",
price=1.49,
vat=7,
)
Available Resources
| Resource | Methods | Min. Package |
|---|---|---|
client.stores |
list(), get(), register() |
DISCOVER |
client.catalog |
insert_product(), list_products(), get_product(), register_to_store(), bulk_import() |
DISCOVER |
client.offers |
create(), update(), delete(), list() |
GO |
client.click_collect |
submit_order(), update_status() |
GO |
client.loyalty |
create_program(), enroll(), add_points(), redeem_points(), get_customer_balance(), get_analytics(), sync_external() |
GO |
client.scan_and_go |
check_in(), start_checkout(), get_purchase(), get_purchase_history(), generate_receipt(), get_receipt_from_token(), get_recommendations(), configure_recommendations() |
GROW |
client.integrations |
sync_pos(), push_to_pos(), sync_erp(), push_to_erp(), configure_psp(), process_payment(), refund_payment() |
GROW |
client.analytics |
get(), export_sales(), export_receipts() |
GO / GROW |
Error Handling
from beep import BeepClient, AuthenticationError, BeepPermissionError, RateLimitError
try:
result = client.scan_and_go.check_in(storeId="store_001")
except AuthenticationError:
print("Invalid API key")
except BeepPermissionError as e:
print(f"Upgrade required: {e.details.get('requiredUpgrade')}")
except RateLimitError as e:
print(f"Rate limited. Retry after {e.retry_after}s")
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
beep_sdk-1.0.0.tar.gz
(5.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file beep_sdk-1.0.0.tar.gz.
File metadata
- Download URL: beep_sdk-1.0.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6cd97763901ac5233fd8ee965029f9010cd823af0ee3efcfa4ac4bb13922d38
|
|
| MD5 |
30bd52eb05f783efe803bb2363b6113a
|
|
| BLAKE2b-256 |
9325c7acab1496a3a6f879576444860feb1c3034a95732601c4845a123d0673a
|
File details
Details for the file beep_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: beep_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80f9beca32661bc2675c87ed155598cd25515c1113bf1550f8af3af2d77fcf57
|
|
| MD5 |
f9a3e06275807ec10eb1a50750681b02
|
|
| BLAKE2b-256 |
88c09226bb9dfea18fd96f2c2e6054a55f1a34068bb1f86a1f18aca37b460ecc
|