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:

  • 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.

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.

  • You can add up to 20 fields
  • Field must be concatenated and separated with a semicolon
  • Each field can contain up to 256 chars

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
referenceIf reference is set, it must be unique in terms of P2P transactionsNo[0 : 36] charAF222233
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] car0

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
0: pending (delayed payment)

3