UAPAY - національний платіжний сервіс

Obtaining invoice data (Invoices show)

Method for displaying invoice data

URI

POST api/invoicer/invoices/show

 

Request:

Key

Description

Type

Mandatory

Example

Key

Description

Type

Mandatory

Example

params









sessionId

client session id

string, uuid

yes

"00684a7f-3d5c-43f4-b4d1-ea994226be9c"

id

invoice id

string, uuid

yes

"6e391161-94ff-41a3-bd22-c6d77509bff6"


Example of a query

{ "params": { "sessionId": "00684a7f-3d5c-43f4-b4d1-ea994226be9c", "id": "5ecb426d-185b-40e8-857a-e40c9864e5de" } }


Reply:

Key

Description

Type

Example

Key

Description

Type

Example

status

Status. 0 - error, 1 - success

integer

1

data







id

invoice id 

string, uuid

"edacfce8-eb97-4f4f-8fa2-0fb044932ac3"

invoiceNumber

invoice number

integer

14

clientId

customer id

integer

1

systemType

type of the payment system

string

"P2P"|"ECOM"|"BILLER"

amount

payment amount

integer

100

reusability

reusable invoice parameter

boolean

true

description

description of the purpose of the invoice

string

"test payment"

invoiceStatus

invoice status

string

"ACTIVE" или "'INACTIVE'"

redirectUrl

redirect address

string

callbackUrl

callback address

string

createdAt

the date of creation of the invoice

integer

type

invoice type

string

"PAY", "HOLD", "SUBSCRIBE"

email

e-mail specified when creating the invoice

string

"test@uapay.ua"

extraInfo

field for additional information about the invoice

object

serviceData[].{}

an array of data on services (only for systemType = "ECOM", except type = "SUBSCRIBE")

['serviceId','destination','destinationName','account','mfo','okpo','bankName','description','amount']





payments

data on payments under this invoice

array

"[ ]"

payments[].{}

object with payment data

['invoiceId','paymentId','number', 'receiptId', 'amount','commission','currency','cardFromMasked','cardToMasked','cardFromId','cardToId','sendOperationId', 'receiveOperationId','paymentStatus','status','paidAt','reversedAt','finishedAt','canceledAt','createdAt','updatedAt', 'chequeLink']





clientName

client name

string

cardToId

enrollment card id 

string, uuid

recurringData

data on recurrent payments

object



recurringData.{}.endSubscribeDate

Subscription expiration date

string

recurringData.{}.prevPaymentDate

Date of last invoice payment

string

recurringData.{}.nextPaymentDate

Date of next invoice payment

string


Possible payment statuses:

Status

Description

Status

Description

FINISHED

Payment completed successfully, money sent to recipient

HOLDED

Confirmation required. You must complete the debit to complete the write-off.

CANCELED

The payment process was not completed and the payment was rejected
(connection was terminated, payment was suspended at an intermediate stage
due to the payer's fault).

REVERSED

Payment returned, funds returned to sender.

REJECTED

Payment failed for technical reasons.

NEEDS_CONFIRMATION

Payment pending confirmation (lookup or 3ds).

PENDING

Payment in progress (intermediate status)


Example of an answer



UAPAY - національний платіжний сервіс
pay@uapay.ua