First step
API Documentation

Information and details needed for access to our API

API Documentation

About API

These endpoints represent the functionality exhibited by Mainloop Pay, both for more traditional API service functionality and for connecting to popular CMSs and related functionality.

Version: 2.0.0

More information:https://pay.mainloop.rs

Connecting to API
Server endpoint

API Root Path: https://pay.mainloop.rs/api/v2/
Endpoint for access to the Mainloop API.

Headers (Identifier)

x-api-keynecessary
You should forward each request via this header.

Content Type: application/json

Generating IPS QR Code

Method: POST

Route: /ipsqr

ParametersObject

  • account string — Requires account number.
  • acceptant string — Requests recipient information.
  • amount string — Requires total price / value.
  • currency string — Requires the currency in which it's paid.
  • payer string — Requests payer information.
  • paymentCode string — Requires a payment code.
  • purpose string — Requires the purpose of payment.
  • model string — Requires a payment model.
  • callOn string — Requires approval number.
Generating a Payment slip

Method: POST

Route: /pay

ParametersObject

  • account string — Requires account number.
  • acceptant string — Requests recipient information.
  • amount string — Requires total price / value.
  • currency string — Requires the currency in which it's paid.
  • payer string — Requests payer information.
  • paymentCode string — Requires a payment code.
  • purpose string — Requires the purpose of payment.
  • model string — Requires a payment model.
  • callOn string — Requires approval number.
API's answer:

Type: Text

Example of an answer: https://pay.mainloop.rs/qr1614025604963.png

Note

All generated images are stored for 7 days from the moment of generation, after which they are permanently deleted

Example of a body to be forwarded:

Example of IPS QR Code

Example of IPS QR Code

Example of Payment slip

Example of Payment slip