API
HomeEasytransac
HomeEasytransac
  1. Open Banking
  • Start
    • API Domain Usage
    • Get an API key
    • Communication
  • Documentation
    • Errors
      • ApiError codes
    • Webhooks
      • PUSH Method
      • PULL Method
  • V2
    • Overview
    • Authentication
      • JWT access token - Generate
        POST
    • Endpoints
      • Open Banking
        • Open Banking - Initialize
          POST
      • Transaction
        • Transaction - Get status
  1. Open Banking

Open Banking - Initialize

Sandbox
https://api.sandbox.easytransac.com/v2
Sandbox
https://api.sandbox.easytransac.com/v2
POST
/open-banking/init
Initializes a PayByBank transfer directly from the customer's bank.
The payment authorisation is instantaneous but its validation may take several days.
The customer is redirected to its bank payment page via the returnUrl parameter.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Examples
{
    "amount": 1000,
    "email": "abc@abc.com",
    "returnUrl": "https://example.com/"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://api.sandbox.easytransac.com/v2/open-banking/init' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 1000,
    "email": "abc@abc.com",
    "returnUrl": "https://example.com/"
}'

Responses

🟢200OK
application/json
OK
Body

Example
{
    "success": true,
    "date": "2024-12-31T23:59:59+02:00",
    "data": {
        "tid": "ABC1-ABC1-ABC1",
        "status": "captured",
        "amount": 1000,
        "dateCreated": "2024-12-31T23:59:59+02:00",
        "orderId": "ABCabc123",
        "redirectUrl": "https://api.sandbox.easytransac.com/v2/public/transaction/ABC1-ABC1-ABC1/redirect"
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠405405
🔴500Server Error
🔴502Bad Gateway
🔴504Gateway Timeout
Previous
JWT access token - Generate
Next
Transaction - Get status
Built with