Skip to main content

Create a new P2P operation

POST 

/api/v1/p2p/operations

Initiates a new P2P operation based on the provided session details.

To create an operation, follow these steps:

  1. Retrieve the available methods.

  2. Select the appropriate method.

  3. Create a P2P session using the data from step 2.

  4. Obtain the list of required data (payerRequisites) for the operation and collect this information from your customer. The payerRequisites object, which contains the required data for the operation, should be collected by the merchant from their customer and then provided in this method. The payerRequisites object template is received by the merchant in the response from step 3.

  5. Create the operation using the data from step 4.

Request

Responses

This response provides operation details. The operation field contains the current operation details, including all relevant information such as status, amount, and currency.

The parent field is used only if the current operation is a correction. If a correction has been made from the back office (isCorrection is true), the parent field will contain the details of the original operation before the correction. If no corrections have been made (isCorrection is false), the parent field will be null.

When creating an operation, the response will always return the parent object as null.

Therefore:

  • operation: Always contains the details of the current operation.
  • parent: Contains the original operation details only if a correction was made; otherwise, it is null.