ON-US Payment between Wallets

SendPayment

This function debits Wallet A and credits 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 will not be performed.
at 1:00 am (CET), 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 with payment and that you can search with GetPaymentDetails.No[0:5139] charMy data 1;My data 2;My data 3;;My data 5
OriginTransactionID of the related MoneyIn transactionNoint12R
referenceIf a 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] char0
0 or empty: simple P2P
1: P2P commission. Put in the field OriginTransaction the transaction ID of the bank wire or 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)