Main Endpoints
Get payment details
This endpoint allows you to retrieve details of a particular payment
GET
/api/1/nexpay/paymentsRequest
clientPaymentId
integer required
The payment identifier generated by Nexpay
Alternatively, you can use
externalPaymentIdexternalPaymentId
string required
The custom internal identifier shared between you and your end-customer
Alternatively, you can use
clientPaymentIdResponse
Mandatory parameters
Each response contains the following mandatory data:
paymentId
string required
Internal payment identifier
It is returned in response to the POST
/api/2/eurowallet/paymentsnetworkType
string required
Payment rails through which the payment should be made
Possible values:
If the parameter is not provided, the
SEPA, SWIFTIf the parameter is not provided, the
SEPA network is chosen by defaultdate
string required
Payment processing date
Format:
yyyy-MM-ddbeneficiaryName
string required
Recipient’s/sender’s name
account
string required
Recipient’s/sender’s bank account number
details
string required
Payment reference (transaction details)
amount
string required
Payment amount
runningBalance
string required
Account balance at the time of payment processing
direction
string required
Payment direction
Possible values:
incoming - deposit, outgoing - withdrawalstatus
string required
Payment status
Possible values:
PENDING, COMPLETED, REJECTEDotherAddressLine
string required
Recipient’s/sender’s full address which is returned as a single line
otherAddressStreet
string required
Recipient’s/sender’s street address
otherAddressTown
string required
Recipient’s/sender’s city addres
otherAddressPostCode
string required
Recipient’s/sender’s postal code address
otherAddressCountry
string required
Recipient’s/sender’s country address
Format: ISO 3166-1 alpha-2 two-letter country code, e.g. LT
::
Conditional parameters
These parameters are only returned for incoming non-Euro payments that have been sent through the SWIFT network (networkType = SWIFT)
originalAmount
string required
Original payment amount
originalCurrency
string required
Original payment currency
Optional parameters
The parameters listed below are optional:
feePaymentId
string optional
Identifier of a linked commission charge transaction
externalPaymentId
string optional
Custom internal identifier shared between you and your end-customer, helping you track and reference payments across systems
batchReference
string optional
The identifier of the batch file of which this payment was a part
Examples
GET url: /api/1/nexpay/payments
GET data: clientPaymentId=49
or
GET url: /api/1/nexpay/payments
GET data: externalPaymentId=123102a35db34864b
{
"networkType": "SEPA",
"date": "2024-09-18",
"beneficiaryName": "Some beneficiary",
"account": "LT103080010000000095",
"details": "Test payment",
"amount": "23.33",
"originalAmount": null,
"originalCurrency": null,
"runningBalance": "807.52",
"direction": "outgoing",
"status": "COMPLETED",
"paymentId": "211",
"feePaymentId": "60",
"externalPaymentId": "123102a35db34864b",
"batchReference": "test",
"otherAddressLine": "Sporto g. 7A, Vilnius, Lithuania",
"otherAddressStreet": null,
"otherAddressTown": null,
"otherAddressPostCode": null,
"otherAddressCountry": null
}
Errors
| Code | Message |
|---|---|
20000 | paymentId or externalPaymentId parameters were not provided |
20010 | Both paymentId and externalPaymentId parameters were provided |