Initialize a new session
POST/api/v1/agents/sessions
Initializes a new session for a P2P operation. This endpoint does not create an operation; it only creates a session required for creating an operation. To create an operation, you need to first call this endpoint to initialize a session, and then use the data from its response to call the Create a new P2P operation endpoint.
This endpoint should be called after obtaining data from the Get available payment method types endpoint, as the information from that response is needed to provide data for this request.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 412
- 422
Session initialization details
Invalid request parameters.
Authentication failed:
- the API key is missing or invalid
- the request was sent from an IP address that is not in the whitelist of the key
Access denied.
The requested resource was not found.
The request cannot be processed in the current state of the session or operation.
The payment method is not available or the amount is outside the allowed range.