v1

latestOpenAPI 3.0.02026-07-2691259477.2 KB
MoneyIns | APM

Initializes an APM transaction.

post/v2/moneyins/apm/init

Headers

Authorizationstring required

Authorization bearer (OAuth 2)

PSU-Accept-Languagestring

Response language accepted by final client (PSU). English by default

PSU-IP-Addressstring required

IP address of the final client (PSU).

PSU-User-Agentstring

User-agent of the final client (PSU).

Request body

preferredLanguagestring

Preferred language for the payment flow (e.g., fr, nl, de, en).

appToAppUrlstring

URL used for app-to-app redirection.

timeoutInMinutesinteger

Timeout for the transaction in minutes.

Example request

{
  "transaction": {
    "reference": "TX987654",
    "accountId": "3f6f3dfb-4a1e-43c1-9d6c-5f9b6e1a7f3b",
    "totalAmount": 15000,
    "commissionAmount": 750,
    "comment": "Achat en ligne",
    "autoCommission": false
  },
  "paymentUrls": {
    "redirections": {
      "returnUrl": "https://example.fr/succes",
      "errorUrl": "https://example.fr/erreur",
      "cancelUrl": "https://example.fr/annulation"
    }
  },
  "customer": {
    "civility": "M.",
    "gender": 1,
    "firstName": "Pierre",
    "lastName": "Dupont",
    "email": "pierre.dupont@example.fr",
    "mobilePhone": "+33612345678",
    "birthDate": "1985-05-15",
    "countryCode": "FR"
  }
}

Response

OK

idinteger

Gets or sets the Lemonway transaction ID.

redirectUrlstring

Gets or sets the redirection URL.