Main Endpoints
Get payment status
This endpoint allows you to retrieve payment status
GET
/api/1/eurowallet/payments/statusRequest
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
paymentId
integer required
The payment identifier generated by Nexpay (identical to
clientPaymentId)status
string required
Payment status
Possible values:
PENDING, COMPLETED, REJECTEDrejectReason
string optional
Payment rejection reason (returned if the payment status is
REJECTED)executionTime
string optional
Payment scheduled execution time (returned if payment has a scheduled execution)
Format:
yyyy-MM-ddThh:mm:ssError codes
| Code | Message |
|---|---|
20000 | paymentId or externalPaymentId parameters have not been provided |
20010 | Both paymentId and externalPaymentId parameters have been provided |
Examples
GET url: /api/1/eurowallet/payments/status
GET data: clientPaymentId=49
or
GET url: /api/1/eurowallet/payments/status
GET data: externalPaymentId=123102a35db34864b2057fa1fb108900
{
"paymentId": 49,
"status": "COMPLETED"
}
Commentaries
Use of identifiers
The clientPaymentId and externalPaymentId parameters are interchangeable. If you use one, you do not need to use the other, and vice versa.
The paymentId and clientPaymentId are identical.