Execute recurring payment

API endpoint (POST)

https://api.maibmerchants.md/v1/execute-recurring

Request parameters

Parameter
Required
Type
Description

billerId

YES

string(UUID)

Card identifier saved in maib ecomm system.

amount

YES

number(decimal)

Transaction amount. Format: X.XX

E.g: 10.25 (currency=USD) means $10 and 25 cents.

currency

YES

string(3)

Transaction currency (MDL/EUR/USD).

description

NO

string(124)

Payment description.

Displayed on maib ecomm checkout page.

orderId

NO

string(36)

Order ID generated by Merchant website/app.

delivery

NO

number(decimal)

Shipping cost

items

NO

array

max. 50 items

The products or services ordered from the website/app.

  • id

no

string(36)

Product ID

  • name

no

string(128)

Product name

  • price

no

number(decimal)

Product price

  • quantity

no

integer(32)

Product quantity

Example

{
"billerId": "t78i8006-458a-46bc-9e0a-89a6ee11df68",
"amount": 6.25,
"currency": "EUR",
"description": "Description",
"orderId": "123",
"delivery": 1.25,
"items": [
{
"id": "10",
"name": "Product 1",
"price": 2.50,
"quantity": 2
}
]
}

Response parameters

Parameter
Type
Description

result

Object

Object containing transaction data.

  • payId

String

Transaction identifier assigned by maib ecomm

  • billerId

String

Card identifier saved in maib ecomm system

  • orderId

String

Order ID generated by Merchant website/app

  • status

String

OK - successfully completed.

  • statusCode

String

Transaction status code

  • statusMessage

String

Transaction status information message

  • rrn

String

RRN - Transaction ID generated by maib.

  • approval

String

Approval Code - The transaction approval code generated by the card issuing bank.

  • cardNumber

String

Masked number card.

  • amount

Number

(decimal)

Transaction amount. Format: X.XX

  • currency

String

Transaction currency (MDL/EUR/USD).

ok

Boolean

Request/transaction processing status.

true - no errors

false - an error occurred (error details will be in errors)

errors

Array

  • errorCode

String

Error code

  • errorMessage

String

Error description

  • errorArgs

Object

Object contains parameters with error details

Example

{
"result": {
"payId": "f16a9006-128a-46bc-8e2a-77a6ee99df75",
"billerId": "t78i8006-458a-46bc-9e0a-89a6ee11df68",
"orderId": "123",
"status": "OK",
"statusCode": "000",
"statusMessage": "Approved",
"rrn": "331711380059",
"approval": "327593",
"cardNumber": "510218******1124",
"amount": 6.25,
"currency": "EUR"
},
"ok": true
}

Last updated