v1

latestOpenAPI 3.0.02026-07-2691259477.2 KB
MoneyIns | Cards

Initiate a Web Payment

post/v2/moneyins/card/webinit

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

returnUrlstring

Your site URL called by WebKit to terminate the operation.

errorUrlstring

Your site return URL, called by WebKit in case of an error.

cancelUrlstring

Your site return URL, called by WebKit in case of a cancellation.

registerCardboolean

Save the card and returns an ID for future payments.

captureDelayedDaysinteger

Indicate the number of days of the deferred payment. Between 0 and 6 days to have a guaranteed payment. Only usable with isPreAuth = 0-6

labelstring

Indicates the name of the shop on the payment page.

cardIdstring

Indicates the CardId

moneyInNature0 | 1

Indicates the nature of activity for this Money-In:<br/>0 = Activity 1.<br/>1 = Activity 2.<br/>

recurringAvgAmountinteger

Average amount of future recurring payments to cover recurring payments with variable amounts.
Note: Only if the amount is higher than the amount of the first transaction.

paymentPatternstring

Recurring: If a payment follows a recurring amount or One_shot: when there is no future recurring payments.

referencestring

Unique ID of the call, generated by your server. This ID can be used as a search field when looking for operation details

accountIdstring required

Payment Account ID to Credit

totalAmountinteger required

Amount to Debit Amounts are given as integer numbers in cents

commissionAmountinteger

Your Fee Amounts are given as integer numbers in cents

commentstring

Comment Regarding the Transaction

autoCommissionboolean

If true:

  1. [amountCom] will be ignored and will be replaced with Lemonway's fee
  2. You will not receive any fee

Example request

{
  "returnUrl": "https://www.yoursite.com/thankyou.php",
  "errorUrl": "https://www.yoursite.com/oops.php",
  "cancelUrl": "https://www.yoursite.com/seeYouNextTime.php",
  "registerCard": false,
  "captureDelayedDays": 6,
  "moneyInNature": 0,
  "riskAnalysis": {
    "billingAddress": {
      "city": "Paris",
      "country": "FRA",
      "addressAdditional1": "5 Avenue Anatole France",
      "addressAdditional2": "Etage 2",
      "zipCode": "75007"
    },
    "holder": {
      "firstName": "Eiffel",
      "lastName": "Tower",
      "email": "eiffel@tower.fr",
      "phone": "+33100000000",
      "mobile": "+33600000000",
      "workPhone": "+33100000000"
    },
    "deliveryAddress": {
      "city": "Paris",
      "Country": "FRA",
      "addressAdditional1": "5 Avenue Anatole France",
      "addressAdditional2": "Etage 2",
      "zipCode": "75007"
    },
    "deliveryAdditionalInfo": {
      "contact": {
        "email": "eiffel@tower.fr"
      },
      "numberOfItemsBasket": "100",
      "addressDeliveryBillingMatchIndicator": "true",
      "deliveryAddressCreationDate": "2021/05/24",
      "estimatedDeliveryDelay": "3",
      "deliveryMode": "Overseas shipping"
    },
    "customerAccountInfo": {
      "customerAccountId": "1234",
      "numberOfPurchase180Days": "10",
      "numberOfTransactionYear": "1000",
      "customerAccountCreationDate": "2021/05/20",
      "numberOfAttemptsAddCard24Hours": "10",
      "suspiciousActivityIndicator": "false",
      "numberOfTransaction24Hours": "1",
      "customerAccountChangeDate": "2021/05/21",
      "passwordChangeDate": "2021/05/20",
      "addPaymentMeanDate": "2021/05/24"
    },
    "authentication": {
      "merchantCustomerAuthentMethod": "FEDERATEDID",
      "merchantCustomerAuthentDateTime": "2021/05/24 06:00:00"
    }
  },
  "recurringAvgAmount": 0,
  "paymentPattern": "One_shot",
  "reference": "Dze8778",
  "accountId": "33612345678",
  "totalAmount": 1500,
  "commissionAmount": 100,
  "comment": "Order number 2457765AX2",
  "autoCommission": false
}

Response

OK

webKitTokenstring

Payment Token to Pass to WebKit URL using GET

idinteger

Transaction ID

id integer

OBSOLETE Transaction ID

cardIdinteger