Obtain credentials in the Developers area of the panel. Send the authorized identity’s API Key and a valid Secret Key; the token expires in 24 hours.
Integrate sales, customers, dependents, benefits and eligibility with the loyalty engine.
REST API v2 for server-to-server integrations with Bearer Token authentication, explicit scopes, idempotent writes and control of primary and dependent access to plans.
From authentication to automatic reward.
The main use of the API is to register external sales so that Smartbis can process cashback, points, vouchers, and communications according to the account rules.
Use document, phone, or ID to locate and keep the customer synchronized.
Send `sale_amount` by document, phone, or `customer_id` to trigger the loyalty engine.
Check coupons, vouchers, categories, and stock when the operation requires it.
Quick reference of the main endpoints.
This section works as an entry point before the complete Swagger documentation.
Generates the Bearer token to authenticate subsequent calls.
AuthList customers or filter by document, phone, or ID, with optional pagination.
CustomersCreate customer with name, phone, password, and additional data.
CustomersUpdates the supported registration data and allows activating or deactivating the customer via the `active` field.
CustomersLists only the customers directly referred by the specified customer, respecting view permissions. The query does not generate credits; any rewards follow the existing process and appear in the transaction statement.
ReferralsLists own partners and allows querying the details of each record.
PartnersRegisters a partner in accordance with the plan rules and limits.
PartnersUpdates, activates, or deactivates an owned partner.
PartnersThe administrator registers on the main operation. To register in a specific store, use an authorized operator's API Key for that store.
SalesRetrieves the paginated statement, the current balance and, when applicable, the balance composition by partner.
TransactionsFully refunds the amount generated by the eligible transaction, a single time. Check refundable in the statement; the operator only refunds their own authorized sales.
TransactionsLists available coupons/rewards for the operation.
CouponsRegisters a reward using the operation's existing rules and limits.
CouponsUpdates, activates, or deactivates an existing reward.
CouponsUpdate stock of a specific reward.
CouponsLists vouchers with optional pagination.
VouchersValidate voucher by the provided code.
VouchersExecutes an existing manual redemption, checking balance and recording the voucher and the transaction atomically.
VouchersLists the plans for participants configured in the club.
PlansLists subscriptions and allows filtering for active, delinquent, expired or canceled accesses.
SubscriptionsRetrieves dependents linked to the primary and their inherited eligibility.
DependentsRegisters a dependent respecting company, primary and plan limit.
DependentsUpdates the supported dependent data; eligibility remains inherited from the primary holder.
DependentsUpdates, activates, or deactivates a category without removing its existing links.
CategoriesReconciles active lives by plan and period, with pagination.
EligibilityRegister HTTPS endpoints for signed events of activation, default, expiration and subscription cancellation.
WebhooksQuery the delivery history to investigate attempts and failures of subscription events.
WebhooksIssues a signed, short-lived, single-use access link for linked vendors.
AccessActivates, suspends or terminates a participant’s access to a plan without changing billing at the gateway.
SubscriptionsAPI resources organized by operation usage.
This page presents the API domains in product language, while the Swagger documentation maintains schema, parameter, and response details.
Registration, search, update, activation and deactivation by document, phone, or ID, respecting operator visibility.
Register external purchases to generate cashback, points, or vouchers.
Registration, update, activation, deactivation and stock control of rewards.
Query, validation and manual redemption through the official process, with balance verification.
Creation, update, activation and deactivation of the operation's categories.
Maintains owned partners and queries direct referrals without creating a multi-level network or altering rewards.
Queries plans and synchronizes participants’ access status with external systems and providers.
Maintains family links and reconciles active primaries and dependents without transferring clinical data.
Delivers supported subscription events with signature and retries. For linked providers, issues temporary single-use access.
The API Key identifies who registers the operation. The administrator records sales on the main operation; for a specific store, use an authorized operator's API Key for that store.
Choose the path of your integration.
The examples below organize existing resources. Check the OpenAPI for the fields, permissions and responses of each step.
Locate or register the customer, record the sale in POST /sales and consult GET /customers/{customer_id}/transactions. If a refund is necessary, use the transaction_id of a movement with refundable: true; the integration does not choose a partial value.
Generate a token for the authorized operator in each store’s operation. The administrative API Key registers in the main operation; POST /sales does not receive store_id to distribute sales. Ambiguous links return 409 to correct the context.
Check plans and subscriptions, maintain primary members and dependents, and reconcile eligibility. Register the beneficiary's relationship with the provider before issuing temporary access. Updating access in Smartbis does not create charges or cancel subscriptions in the gateway.
Handle authentication, retries and events from the start.
Keep credentials in the backend and respect the scopes returned by authentication. The interactive documentation contains the contracts to implement and validate each flow.
Renew the 24-hour token when necessary and handle 401 responses. Authorization follows the user's API Key: using the administrative Secret Key with an operator's API Key does not expand their permissions.
Writes require an Idempotency-Key. Resend the same request with the same key to obtain the stored response within the 24-hour window. Another payload with the same key returns 409; an operation in processing may also return 409 and indicate a retry.
The current catalog includes subscription.activated, subscription.past_due, subscription.expired and subscription.cancelled. Use GET /webhooks/deliveries to track deliveries; the catalog does not represent events for all platform changes.
Validate the HMAC signature over the raw body and the timestamp, with a five-minute tolerance. The delivery mechanism allows up to eight attempts; HTTP 2xx responses conclude delivery. See the documentation to implement validation and handle failures.
Links for connected providers use tokens valid for 60 to 900 seconds. Exchanging via POST /access-links/consume consumes the token once; request new access when it expires or has already been used.
Need to connect your own system?
Use the interactive documentation to test endpoints, validate payloads, and implement the appropriate flow for your integration.