Magnius payments API
Authentication is managed using an API key that is provided to you. Every HTTP call to our API should contain a custom header called apiKey. The value of this header must be the API key.
You can find your API key under Developers > API key in our customer login environment.
To make our platform support all currencies and to prevent rounding errors, amounts are stored as natural numbers, paired with an exponent. This exponent defines at which position the decimal point/comma is placed, counting from the right.
Say we have and amount of $12.34 USD. It will be stored and presented as 1234 with an exponential of 2. Some currencies, like the Japanese Yen, have no exponent. A transaction amount of ¥1,000 JPY is stored as 1000.
Filters can be used to interact with any object. Objects can be queried by appending parameters to the query string of the URL.
So to get a list of all settled US dollar transactions with an amount equal or greater than 75.00, we would use the following URL:
/v1/transaction?status=SETTLEMENT_COMPLETED&amount>=7500
For list endpoints, you can specify the sort order using the query parameters _sort
and _sort-
.
Sort order ASC
Query parameter: _sort=
/v1/transaction?_sort=created_at
Sort order DESC
Query parameter: _sort-=
/v1/transaction?_sort-=created_at
The API supports population. This means that fields that reference a certain object will be automatically resolved. Population can be achieved by providing the relevant fields the query parameter _populate.
As an example, let's take a payment profile object:
{
"id": "7c23a50d-8699-431c-a82b-a78718d2b6f6",
"organisation": "c96b2d81-51db-4a8a-a0e9-19918c168a3c",
"name": "My Euro profile",
"currency_code": "EUR",
.