Method for displaying invoice payment data
Tip | |
---|---|
icon | false | title | URIPOST api/invoicer/payments/show |
Request:
Key | Description | Type |
---|
Mandatory |
---|
Example | ||||
---|---|---|---|---|
params | ||||
sessionId | client session id |
string, uuid | так | "000ab70b-ef76-4385-a0f5-a98693c716f1" | |
paymentId | payment id |
string, uuid | так | "08eff720-9432-4951-a698-94e24db59e66" |
Приклад запиту
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{ "params": { "sessionId": "00684a7f-3d5c-43f4-b4d1-ea994226be9c", "paymentId": "1c584ff0-b560-455f-a197-1ecaf3632fc4" } } |
Відповідь:
Key | Description | Type |
---|
Example |
---|
status |
Status. 0 - |
error, 1 - |
success | integer | 1 | |
data | |||
invoiceId | invoice id |
string, uuid |
| |||
paymentId | payment id |
string, uuid | "08eff720-9432-4951-a698-94e24db59e66" | |
number |
invoice number | integer | 14 |
receiptId |
receipt number | string | "Q1URF9TQMKDE" |
clientId | customer id |
integer | 1 | |
systemType |
type of payment system | string | "P2P"/"ECOM" |
amount |
payment amount | integer | 100 |
commission |
commission | integer | 0 |
the email address to send the check | string |
| ||
status |
invoice payment status | string | "NEW"|"PAID"|"FINISHED"|"REVERSED"|"CANCELED" |
paymentStatus |
payment status in the payment system | string | "OPEN"|"PAYED"|"FINISHED"|"REVERSED"|"RETURNED"|"CLOSED"|"PENDING"|"REJECTED"|"HOLDED"|"CANCELED"|"NEEDS_CONFIRMATION" |
cardFromId |
Sender card ID | string |
| ||
cardFromMasked |
sender card mask | string |
| ||
cardToId |
Recipient card ID | string |
| ||
cardToMasked |
recipient card mask | string |
| ||
chequeLink |
receipt link | string | "api.uapay.ua/api/receipts/08eff720-9432-4951-a698-94e24db59e66" |
createdAt |
date of creating a payment | integer |
| ||
updatedAt |
date of updating a payment | integer |
| ||
paidAt |
date of cash withdrawal | integer |
| ||
reversedAt |
date of refund | integer |
| ||
finishedAt |
date of crediting funds | integer |
| ||
canceledAt |
date of payment cancellation | integer |
| ||
invoice |
invoice data | object | |
invoice.id |
invoice ID | string, uuid |
| ||
invoice.number |
invoice number | integer | 14 |
invoice.clientId |
invoice client ID | integer | 1 |
invoice.amount |
the amount of the invoice | integer | 100 |
invoice.description |
invoice description | string |
| ||
invoice.status |
invoice status | string | "ACTIVE" |
invoice.redirectUrl |
redirecting address | string |
| ||
invoice.callbackUrl |
callback address | string |
| ||
invoice.externalId |
external identifier | string, uuid |
| ||
invoice.systemType |
type of payment system | string | "P2P"|"ECOM"|"BILLER" |
invoice.cardToId |
payment card ID | string, uuid |
| ||
invoice.reusability |
reusable invoice parameter | boolean | true |
invoice.serviceData |
an array of data on services (only for systemType = "ECOM", |
except type = "SUBSCRIBE") ['serviceId','destination','destinationName','account','mfo','okpo','bankName','description','amount'] | array | |
invoice.type |
type of operation | string | "PAY", "HOLD", "SUBSCRIBE" |
invoice.createdAt |
date of creating a payment | string |
| ||
invoice.updatedAt |
date of updating payment | string |
| ||
invoice.email |
e-mail specified when creating the invoice | string | "test@uapay.ua" |
invoice.extraInfo |
field for additional information about the invoice | object |
|
Example of an answer
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
{ "status": 1, "data": { "invoiceId": "0e2a35e5-7cc8-49a2-bb12-3d9e684292f8", "paymentId": "e408a23f-982d-4557-97bb-96183056db22", "number": 2235, "receiptId": "Q1URF9TQMKDE", "amount": 100, "commission": 303, "cardFromId": "9457a090-7528-422e-8ec3-3d3d71c689ce", "cardFromMasked": "5355175521", "paymentStatus": "FINISHED", "status": "FINISHED", "createdAt": "2018-11-30T14:36:05.000Z", "updatedAt": "2018-11-30T14:36:26.000Z", "cardToId": null, "cardToMasked": null, "email": "pikcel.0512@gmail.com", "systemType": "ECOM", "clientId": 1, "chequeLink": "https://api.zero.uapay.ua/api/acquiring/receipts/v2/e408a23f-982d-4557-97bb-96183056db22.pdf", "paidAt": null, "reversedAt": null, "finishedAt": "2018-11-30T14:36:26.000Z", "canceledAt": null, "invoice": { "id": "0e2a35e5-7cc8-49a2-bb12-3d9e684292f8", "number": 1960, "clientId": 1, "amount": 100, "description": "test payment Anton", "status": "ACTIVE", "redirectUrl": "http://uapay.ua/", "callbackUrl": "http://example.com/", "externalId": "1", "systemType": "ECOM", "cardToId": null, "reusability": false, "serviceData": {}, "type": "PAY", "createdAt": 1543588513000, "updatedAt": 1543588513000, "extraInfo": { "origin": "invoicer" } } } } |
...