Payment
Create payment session
Create order at LemanPay and redirect shopper to invoice (payment url). This is private API endpoint and requires authentication.
post
Authorizations
Body
inventoryIdinteger · int64 | nullableOptional
storeIdinteger · int64 | nullableOptional
buyerInfostring | nullableOptional
detailsstring | nullableOptional
lifetimeinteger · int64 | nullableOptional
productQuantitynumber · double | nullableOptional
productUrlstring | nullableOptional
shippingAddressstring | nullableOptional
ownerFeenumber · double | nullableOptional
currencystring | nullableOptional
amountnumber · double | nullableOptional
successUrlstring | nullableOptional
failUrlstring | nullableOptional
callbackUrlstring | nullableOptional
tokenstring | nullableOptional
Responses
200
Success
401
Unauthorized
post
POST /v2/merchant/Owner/payment HTTP/1.1
Host: publicoffice.lemanpay.net
X-LP-ClientId: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 258
{
"inventoryId": 1,
"storeId": 1,
"buyerInfo": "text",
"details": "text",
"lifetime": 1,
"productQuantity": 1,
"productUrl": "text",
"shippingAddress": "text",
"ownerFee": 1,
"currency": "text",
"amount": 1,
"successUrl": "text",
"failUrl": "text",
"callbackUrl": "text",
"token": "text"
}
{
"invoiceId": 1,
"orderId": "text",
"paymentUrl": "text",
"token": "text",
"status": "Success",
"error": {
"code": 1,
"message": "text"
}
}
Get order details
get
Path parameters
orderIdstring · uuidRequired
Responses
200
Success
get
GET /v2/merchant/Currencies/order/{orderId} HTTP/1.1
Host: publicoffice.lemanpay.net
Accept: */*
200
Success
{
"status": "Success",
"result": {
"items": [
{
"name": "text",
"icon": "text",
"deposits": [
{
"provider": "text",
"method": "text",
"details": "text",
"receiverRegex": "text",
"payload": true,
"payloadRegex": "text",
"email": true,
"fast": true,
"decimals": 1,
"contract": "text",
"chainId": "text",
"totalAmount": 1,
"feeAbs": 1,
"feeRel": 1,
"feeMin": 1,
"feeMax": 1
}
],
"withdrawals": [
{
"provider": "text",
"method": "text",
"details": "text",
"receiverRegex": "text",
"payload": true,
"payloadRegex": "text",
"email": true,
"fast": true,
"decimals": 1,
"contract": "text",
"chainId": "text",
"totalAmount": 1,
"feeAbs": 1,
"feeRel": 1,
"feeMin": 1,
"feeMax": 1
}
],
"rate": 1,
"rateTime": 1
}
]
},
"error": {
"code": 1,
"message": "text"
}
}
Get orders list
get
Authorizations
Path parameters
orderIdstring · uuidRequired
Responses
200
Success
401
Unauthorized
get
GET /v2/merchant/Owner/orders/{orderId} HTTP/1.1
Host: publicoffice.lemanpay.net
X-LP-ClientId: YOUR_API_KEY
Accept: */*
{
"status": "Success",
"result": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"uid": "text",
"store": "text",
"productName": "text",
"productIcon": "text",
"productUrl": "text",
"redirectUrl": "text",
"productQuantity": 1,
"status": "AwaitingUserConfirmation",
"returnStatus": "None",
"feeOwner": 1,
"currency": "text",
"amount": 1,
"amountDeposit": 1,
"amountWithdrawal": 1,
"timeZone": "text",
"language": "text",
"details": "text",
"contactsOwner": [
{
"type": "Email",
"receiver": "text"
}
],
"contactsPublic": [
{
"type": "Email",
"receiver": "text"
}
],
"created": 1,
"expired": 1,
"statusList": [
{
"status": "AwaitingUserConfirmation",
"created": 1,
"comment": "text"
}
],
"transactionList": [
{
"type": "Deposit",
"created": 1,
"provider": "text",
"method": "text",
"amount": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"currency": "text",
"receiver": "text",
"payload": "text",
"fee": 1,
"rate": 1,
"paymentId": "text",
"confirmations": 1,
"confirmationsMax": 1,
"estimated": 1,
"status": "New"
}
],
"depositDataList": [
{
"provider": "text",
"method": "text",
"currency": "text",
"receiver": "text",
"payload": "text",
"url": "text",
"rate": 1,
"rateFix": 1,
"valid": true,
"details": "text",
"feeAbs": 1,
"feeRel": 1,
"feeMin": 1,
"feeMax": 1,
"totalAmount": 1
}
],
"withdrawalDataList": [
{
"provider": "text",
"method": "text",
"currency": "text",
"receiver": "text",
"payload": "text",
"rate": 1,
"rateFix": 1,
"valid": true,
"details": "text",
"feeAbs": 1,
"feeRel": 1,
"feeMin": 1,
"feeMax": 1
}
],
"returnDataList": [
{
"provider": "text",
"method": "text",
"currency": "text",
"amount": 1,
"receiver": "text",
"payload": "text",
"rate": 1,
"rateFix": 1,
"valid": true,
"details": "text",
"feeAbs": 1,
"feeRel": 1,
"feeMin": 1,
"feeMax": 1
}
]
},
"error": {
"code": 1,
"message": "text"
}
}
Last updated