SendPayment: ON-US Payment between Wallets
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.
Version | Description |
---|---|
1.0 |
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
Request
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>
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",
}
Item | Description | Mandatory | Format | Example |
---|---|---|---|---|
debitWallet | Wallet ID to be debited | Yes | [0 : 256] char | 33612345678 ou taxi67 |
creditWallet | Wallet ID to the credit | Yes | [0 : 256] char | 33612345678 ou taxi67 |
amount | Payment amount | Yes | 2 decimals | 15.00 |
message | Comment for the payment | No | [0 :140] char | Order number 2457765AX2 |
scheduledDate | If scheduledDate is set, the following rules will apply:
| No | [0 :10] char | yyyy/MM/dd |
privateData | Data with multiple fields that you can associate to payment and that you can search with GetPaymentDetails.
| No | [0 : 5139] char | My data 1;My data 2;My data 3;;My data 5 |
OriginTransaction | Id of the related MoneyIn transaction The payment method of the original transaction must be 3 (IBAN) or 15 (CHECK) otherwise API will return ERR_INVALID_TRANSACTION | No | int | 12R |
reference | If reference is set, it must be unique in terms of P2P transactions | No | [0 : 36] char | AF222233 |
isCommission | Indicate if the P2P is a partner commission or not. 0 or empty: simple P2P 1 : P2P commission. Put in the field OriginTransaction the transaction id of the bank wire or the cheque. | No | [1] car | 0 |
Answer
XML
<?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
{
"TRANS_SENDPAYMENT":{
"HPAY":{
"ID":"string",
"DATE":" string ",
"SEN":" string ",
"REC":" string ",
"DEB":" string ",
"CRED":" string ",
"COM":" string ",
"MSG":" string ",
"STATUS":" string"
}
}
}
Item | Description | Example |
---|---|---|
ID | Request ID | 255 |
DATE | Request Date | 10/09/2011 18:09:27 |
SEN | Debited Wallet | Pizza56 |
REC | Beneficiary Wallet | pizza |
DEB | Amount to debit | 15.00 |
CRED | Amount to credit | 15.00 |
COM | Fee | 0.00 |
MSG | Comment | Order number 2457765AX2 |
STATUS | 3: success | 3 |