v1

latestOpenAPI 3.0.02026-07-2691259477.2 KB
MoneyIns | BNPL

Create New Pending Payment

Depending on your activated payment plans this call will let you setup a new payment plan.

post/v2/moneyins/buynowpaylater/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

paymentPlanIdinteger

Payment Plan ID

captureModestring

Defines if the payment should be captured right away or if the capture should be deferred. Possible values: Automatic and Manual. Default is set to 'Automatic'.

returnUrlstring

Return success url

errorUrlstring

Return error url

cancelUrlstring

Return cancel url

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

{
  "paymentPlanId": 1,
  "delivery": {
    "deliveryMode": "DeliveryToCustomerAddress",
    "expressDelivery": true,
    "deliveryAddress": {
      "street": "8 rue du sentier",
      "city": "Paris",
      "postCode": "75003",
      "country": "FRA"
    }
  },
  "items": [
    {
      "type": "PhysicalGood",
      "description": "Zesty",
      "reference": "Lemon",
      "quantity": 1,
      "unitAmount": 200,
      "merchantAccountId": "fc516a3d-3bca-438b-af45-0f4a6c7ec804"
    },
    {
      "type": "PhysicalGood",
      "description": "Pressé",
      "reference": "Citron",
      "quantity": 2,
      "unitAmount": 400,
      "merchantAccountId": "57d495c7-b432-449f-9e58-85ebb4477087"
    }
  ],
  "customer": {
    "accountId": "AC4531686",
    "civility": "Mr",
    "firstName": "Lemon",
    "lastName": "Way",
    "birthDate": "1970-01-01",
    "mobileNumber": "0784177684",
    "email": "lemon@way.com",
    "billingAddress": {
      "street": "8 rue du sentier",
      "city": "Paris",
      "postCode": "75003",
      "country": "FRA"
    }
  },
  "returnUrl": "https://www.yoursite.com/thankyou.php",
  "errorUrl": "https://www.yoursite.com/oops.php",
  "cancelUrl": "https://www.yoursite.com/seeYouNextTime.php",
  "reference": "Dze8778",
  "accountId": "33612345678",
  "totalAmount": 220,
  "commissionAmount": 1,
  "comment": "Order number 2457765AX2",
  "autoCommission": false
}

Response

OK

idinteger

Transaction ID.

redirectUrlstring

Payment page URL.