ON-US Payment between Wallets

SendPayment

This function debits a wallet A and credits a wallet B. Wallets are internal to Lemonway, that's the reason we call those operations "ON US" operations. You can delay this payment by X days.

How it works

SendPayment debits a wallet and credits another, of the amount you set in the input.

  1. Your platform sends the ID of the wallet that is debited, the ID of the wallet that is credited, the amount to pay, and a comment.
  2. Lemonway answers

XML

<SendPayment xmlns="Service_mb">
  <wlLogin>string</wlLogin>
  <wlPass>string</wlPass>
  <language>string</language>
  <version>string</version>
  <walletIp>string</walletIp>
  <walletUa>string</walletUa>
  <debitWallet>string</debitWallet>
  <creditWallet>string</creditWallet>
  <amount>string</amount>
  <message>string</message>
  <scheduledDate>string</scheduledDate>
  <privateData>string</privateData>
  <OriginTransaction>string</OriginTransaction>
  <reference>string</reference>
  <isCommission>string</isCommission>
</SendPayment>
<?xml version="1.0" encoding="utf-8"?>
<TRANS_SENDPAYMENT>
    <HPAY>
        <ID>string</ID>
        <DATE> string </DATE>
        <SEN> string </SEN>
        <REC> string </REC>
        <DEB> string </DEB>
        <CRED> string </CRED>
        <COM> string </COM>
        <MSG> string </MSG>
        <STATUS> string</STATUS>
    </HPAY>
</TRANS_SENDPAYMENT> 

JSON

{   
    "wlLogin":"string",
    "wlPass":"string",
    "language":"string",
    "version":"string",
    "walletIp":"string",
    "walletUa":"string",
    "debitWallet":"string",
    "creditWallet":"string",
    "amount":"string",
    "message":"string",
    "scheduledDate":"string",
    "privateData":"string",
    "OriginTransaction":"string",
    "reference":"string",
    "isCommission":"string",
}
{  
    "TRANS_SENDPAYMENT":{  
        "HPAY":{  
            "ID":"string",
            "DATE":" string ",
            "SEN":" string ",
            "REC":" string ",
            "DEB":" string ",
            "CRED":" string ",
            "COM":" string ",
            "MSG":" string ",
            "STATUS":" string"
        }
    }
}
 

Request Input Description

ItemDescriptionMandatoryFormatExample
debitWalletWallet ID to be debitedYes[0 : 256] char33612345678 ou taxi67
creditWalletWallet ID to the creditYes[0 : 256] char33612345678 ou taxi67
amountPayment amountYes2 decimals15
messageComment for the paymentNo[0 :140] charOrder number 2457765AX2
scheduledDateIf scheduledDate is set, the following rules will apply:No[0 :10] charyyyy/MM/dd
scheduledDate cannot be equal to the current date, Paris time
the payment will be inserted but not executed, the status will be pending and necessary checks like user balance or user status will not be checked.
at 1am, Paris time, on [scheduledDate], the checks will be performed and the payment will be finalized.
This feature is available only for some contracts, contact commercial service for more information.
privateDataData with multiple fields that you can associate to payment and that you can search with GetPaymentDetails.No[0 : 5139] charMy data 1;My data 2;My data 3;;My data 5
You can add up to 20 fields
Field must be concatenated and separated with a semicolon
Each field can contain up to 256 chars
OriginTransactionId of the related MoneyIn transactionNoint12R
The payment method of the original transaction must be 3 (IBAN) or 15 (CHECK) otherwise API will return ERR_INVALID_TRANSACTION
referenceIf reference is set, it must be unique in terms of P2P transactionsNo[0 : 36] charAF222233
isCommissionIndicate if the P2P is a partner commission or not.No[1] car0
0 or empty: simple P2P
1 : P2P commission. Put in the field OriginTransaction the transaction id of the bank wire or the cheque.

Response Output Description

ItemDescriptionExample
IDRequest ID255
DATERequest Date10/9/2011 18:09
SENDebited WalletPizza56
RECBeneficiary Walletpizza
DEBAmount to debit15
CREDAmount to credit15
COMFee0
MSGCommentOrder number 2457765AX2
STATUS3: success3
0: pending (delayed payment)