Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Method for initiating withdrawal of funds from the payer's card. Creates a payment with type C2A and status WAITING_COMPLETE and an operation with type SEND and status NEEDS_COMPLETE. After that, you can call the action C2A Complete - completion of debit initiation , C2A СompleteWithoutAcceptance - completion of initiation of non-acceptance write-off or C2A Cancel - cancellation of write-off initiation .

Info

If not one of the methods is called by the client within 1 hour, it will be called automatically C2A Cancel - cancellation of write-off initiation .

Request method - POST

Request path - /api/p2p/payments/c2a/initiate

Parameters for forming the request body in JSON format

Key

Data type

Required?

descriptionDescription

Example

params.sessionId

string

yes

client session id

"445fb296-8653-4646-8475-5796c97d16ff"

params.externalId

string

yes

unique external id in the client's system that will be assigned to the created operation, no more than 255 characters

"ad6cee7f-88ff-4090-ae38-8e6a0f260cd8"

params.amount

number

yes

payment amount, in kopecks

10000

params.currency

string

yes

digital currency code, ISO 4217 standard, currently only hryvnia is available - "980"

"980"

params.description

string

no

description of the payment, no more than 255 characters

"Order №12345"

params.callbackUrl

string

no

The URL to which the callback will be sent, no more than 255 characters

"https://client-domain.ua/receive-postback/12345"

...