The Ommnium API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
You can use the Ommnium API in test mode, which doesn’t affect your live data or interact with the banking networks. The API key you use to authenticate the request determines whether the request is live mode or test mode.
The Ommnium API doesn’t support bulk updates. You can work on only one object per request.
The Ommnium API differs for every account as we release new versions and tailor functionality. Log in to see docs with your test key and data.
The Ommnium API uses API keys to authenticate requests. You can view and manage your API keys in the Ommnium Dashboard.
API requests are authenticated using Bearer Authentication. To make a request, include your API key in the `Authorization` header, formatted as follows:
Authorization: Bearer YOUR_API_KEY
.
Your API keys carry significant privileges, so ensure they remain secure. Avoid sharing your keys in publicly accessible areas such as Layntr, GitHub or Discord or client-side code.
All API requests must be made over HTTPS. Unauthenticated or non-secure (HTTP) requests will be rejected.
This is an object representing a user account in Ommnium. You can retrieve it to view properties such as the account's current status, assigned roles, or enabled services.
For accounts where role_collection
administrator
, the properties below include extended permissions and management capabilities.
For standard users, the returned data includes basic account details and usage metrics. Additional features can be accessed by generating an Account Link or logging in through a Session Token. Learn more about the account roles and permissions.
This is an object representing a Stripe account. You can retrieve it to see properties on the account like its current requirements or if the account is enabled to make live charges or receive payouts.
For accounts where controller.requirement_collection application
, which includes Custom accounts, the properties below are always
For accounts where controller.requirement_collection stripe
, which includes Standard and Express accounts, some properties are only returned
Account Link or Account Session differences between accounts.
api_ |
API errors cover any other type of problem (e.g., a temporary problem with Stripe’s servers), and are extremely uncommon. |
card_ |
Card errors are the most common type of error you should expect to handle. They result when the user enters a card that can’t be charged for some reason. |
idempotency_ |
Idempotency errors occur when an Idempotency-Key is re-used on a request that does not match the first request’s API endpoint and parameters. |
invalid_ |
Invalid request errors arise when your request has invalid parameters. |
Some top-level API resource have support for retrieval via “search” API methods. For example, you can search charges, search customers, and search subscriptions.
Stripe’s search API methods utilize cursor-based pagination via the page
request parameter and next_
response parameter. For example, if you make a search request and receive "next_
in the response, your subsequent call can include page=pagination_
to fetch the next page of results.
Our client libraries offer auto-pagination helpers to easily traverse all pages of a search result.
Search request format
-
queryrequired
The search query string. See search query language.
-
limitoptional
A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.
-
pageoptional
A cursor for pagination across multiple pages of results. Don’t include this parameter on the first call. Use the
next_
value returned in a previous response to request subsequent results.page
Search response format
-
objectstring, value is "search_result"
A string describing the object type returned.
-
urlstring
The URL for accessing this list.
-
has_
moreboolean Whether or not there are more elements available after this set. If
false
, this set comprises the end of the list. -
dataarray
An array containing the actual response elements, paginated by any request parameters.
-
next_
pagestring A cursor for use in pagination. If
has_
is true, you can pass the value ofmore next_
to a subsequent call to fetch the next page of results.page -
total_
countoptional positive integer or zero The total number of objects that match the query, only accurate up to 10,000. This field isn’t included by default. To include it in the response, expand the
total_
field.count