Language and currency
Login
Cases Plans
Search on the site
Language and currency
← Blog
Loyalty program· 8 min read

What is a public API? Differences between an API, an integration, and a widget

What is a public API? Differences between an API, an integration, and a widget

A public API is an interface made available so external developers can connect their systems to a service, following access and usage rules. In a loyalty program, it can allow the store’s system to send a sale or query authorized participant information. “Public” does not mean customer data is open to anyone.

In Smartbis, the API is one of the ways to connect operations to the loyalty program. It plays a different role than an out-of-the-box integration or the widget displayed on the website. Understanding these differences helps the manager decide what needs to be contracted, configured, or developed before promising automatic cashback to the customer.

What is an API, in business terms?

API stands for Application Programming Interface, or application programming interface. The MDN glossary describes it as a set of resources and rules to interact with one software through another software, rather than an interface operated by a person.

Think of two ways to record information. In the first, an employee opens a screen and fills in fields. In the second, one system sends data in a format the other system accepts and receives a response. An API can enable that second form of interaction.

Hypothetical example: a company maintains its own sales system and wants eligible purchases to feed its points program. The API can provide the operation needed to register those sales. The connection, however, needs to be implemented: someone must define which purchases to send, identify the participant, and verify the response received.

Therefore, finding the phrase “has an API” in a vendor presentation does not mean you have a working connection with your system.

What is the difference between public, private and partner APIs?

The distinction concerns who can use the interface. In the IBM classification of APIs by access level, public APIs are aimed at external development, private APIs serve internal use within an organization, and partner APIs serve an authorized group of commercial partners.

  • Public API: allows external developers to build connections, according to the vendor’s conditions. It may require registration and credentials.
  • Private API: is intended for communication between internal components or systems of the organization.
  • Partner API: restricts use to companies or participants in an authorized commercial relationship.

For the manager of a loyalty program, the practical question is: is the interface available to your company and does it authorize the operation you need? Documentation accessible on the internet is not authorization to query any customer or move any balance.

API, out-of-the-box integration and widget do different things

These resources can work together. The API provides operations for communication between systems; an integration implements a connection for a defined flow; the widget presents an interface within a page.

FeatureMain functionWhat to check in loyalty implementation
Public APIMakes operations available that another system can request.If it allows registering the sale, identifying the participant and querying the necessary data, with the appropriate permissions.
Out-of-the-box integrationConnects specific systems through an already implemented flow, which may use APIs.Which events, fields and situations the connection covers and which configurations are still required.
WidgetInserts an interface into the page, such as an entry point for the loyalty program.What the customer can see or do and how orders reach the program.

An out-of-the-box integration can reduce development work but must be compatible with the store’s flow. An API allows assessing a custom connection but requires implementation and maintenance. A widget helps present the program to the customer, but its presence doesn’t prove purchases are being transmitted.

In the case of Smartbis, the widget to display cashback and vouchers on the site can use a top bar or floating button. The documentation differentiates this presentation from order entry: installing the script does not automatically connect any checkout.

How the public API is applied in Smartbis

The Smartbis public API documents operations to locate or register customers, record sales and query benefit information, among other functions. Registration of external sales can trigger program processing according to the account rules.

Communication is done between servers and uses token authentication. Permissions depend on the authorized identity; credentials must remain in the integration’s server environment, not exposed in the store’s public code.

To visualize the application without getting into programming, consider this hypothetical scenario: a store has its own system that is not among the ready connections. Its technical team consults the documentation, checks if it can identify the participant and register the sale, and implements the communication. Smartbis receives the operation under the documented contract; the incentive calculation follows the program configuration.

This scenario does not mean any system can be connected without adaptation. It also does not promise unrestricted access to features. The required resources, fields and permissions must be checked in the current documentation before defining the project.

When to evaluate each path

Your system already has an available integration

Start with the Smartbis integrations catalog and check the page of the platform used by the company. Verify whether the connection supports the source of sales and the benefits routine you intend to operate. The existence of an API is not, by itself, a reason to develop something from scratch.

The company uses a proprietary system

The API can be an alternative when the necessary flow is documented and there is a team or vendor capable of implementing the communication. Define who will be responsible for development and maintenance. The decision involves both technical capability and ongoing operational effort.

The immediate goal is to make the program visible on the site

A widget may meet the presentation and access need. If the company also wants to generate benefits from purchases, it must separately define how those purchases will be registered. Visible interface and data transmission are related but distinct parts.

When comparing vendors, include these requirements in the evaluation of how to choose a digital loyalty platform. That way, the conversation moves beyond the question “does it have an API?” and addresses the flow the business needs to execute.

Questions to ask before contracting development

Request objective answers, accompanied by documentation, to these questions:

  • What problem will the connection solve? For example, registering sales from a proprietary system or querying benefits during a support interaction.
  • Which operations are available? The presence of an API does not prove it offers all the functions seen in the dashboard.
  • Who is authorized to access each piece of information? Identify credentials, permissions and responsibilities.
  • Is there an appropriate out-of-the-box integration? Compare your scope with the work required to develop a custom connection.
  • Who will maintain the connection? Agree on how version changes, failures and support will be handled.
  • What will the customer see? Define whether you will use a portal, widget or other interface actually available, without confusing that experience with system-to-system communication.

A good scope definition should allow explaining, in one sentence, what information leaves each system and how it will be used in the loyalty program. If the proposal doesn’t make this clear, technical possibility has not yet been turned into an operational solution.

Sources consulted

Checked on November 9, 2026. The MDN glossary on API underpins the definition of interface between software. The IBM explanation about APIs supports the distinction between public, private and partner access. Smartbis official pages about public API, integrations and widget, linked in the text, back up the product functions mentioned. The store scenarios are hypothetical.

To evaluate the right path for your system and loyalty program, learn how Smartbis works and compare the documented features with the needs of your operation.

Put the ideas into practice in your store.

Create a free account and enable cashback, points and reminders from the dashboard.