The method for obtaining a link to the online payment form
Method name
The method for obtaining a link to the online payment form
Direction
UA-World
HTTP Method
POST - to receive a payment link
Route(s)
POST …/mobileapp/v.1.1/payments/{number}
Autorization
Authorization: Bearer id-token…
Description
The method allows the user to receive a link to an online payment form for services related to the parcel.
Path parameters
number
string
Unique parcel number
Request and response parameters
Request .../mobileapp/v.1.1/payments/{number} Response .../mobileapp/v.1.1/payments/{number}
Sсhema
paymentUrl
string
Unique link to payment
sessionId
string
Unique session number
Acceptable HTTP status codes response
200
OK
Request successful. The server has responded as required.
422
Unprocessable entity
ErrorMessage: "Action_not_available"
Schema of connection
Логіка розрахунку для посилок де Sender.Country = UA
Після отримання масиву даних з трекінг сервісу (sub-request на TS) вибираються всі operation_type зі статусом “NeedPay”
operation_type групуються (сума по cost складається в рамках operation_type)
Формується json наступного вигляду і передається на api Nova Pay (...novapay.ua/v1/init)
Список всіх можливих операцій
PaymentForInternationalDelivery
false
38130410
PaymentForAdditionalServices
true
31316718
PaymentForServices
true
31316718
PaymentForParcel
true
31316718
PaymentForAfterPayment
true
31316718
PaymentForCommissionBroker
true
31316718
PaymentForCustomsPayments
true
31316718
PaymentForRedirecting
true
31316718
PaymentForReturn
true
31316718
PaymentForStorage
true
31316718
PaymentForInternationalDeliveryNPU
true
31316718
PaymentForLinehaul
true
31316718
MoneyTransfer
true
31316718
PaymentForAfterPayment
true
31316718
InternationalDeliveryNPUVAT0
true
31316718
InternationalAdditionalServices
true
31316718