For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Name

Type

Description

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

Field

Type

Description

paymentUrl

string

Unique link to payment

sessionId

string

Unique session number

Acceptable HTTP status codes response

HTTP-code

Status

Description

200

OK

Request successful. The server has responded as required.

422

Unprocessable entity

ErrorMessage: "Action_not_available"

Schema of connection

Логіка розрахунку для посилок де Sender.Country = UA

  1. Після отримання масиву даних з трекінг сервісу (sub-request на TS) вибираються всі operation_type зі статусом “NeedPay”

  1. operation_type групуються (сума по cost складається в рамках operation_type)

  2. Формується json наступного вигляду і передається на api Nova Pay (...novapay.ua/v1/init)

Список всіх можливих операцій

operation_type(TS)/payment_type

use_hold

identifier

operation_type(TS)/payment_type

use_hold

identifier

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