Out Payment

Create out payment

Changed on

Get your strong authentication RSA private key from Easypay Backoffice on menu:</br>Web Services->Configuration API 2.0->Keys.</br></br> A transfer out payment starts as pending and waits for the bank. We send you the out_payment generic notification once the bank answers, usually a day or more later. It comes with status success when the transfer was executed, or failed with the bank's reason in messages when it was rejected. If we can't create the transfer at all, you get the failed notification right away.

Required scope: <code style="background:#e8f0fe;color:#1a73e8;padding:2px 8px;border-radius:12px;font-size:0.85em">out_payment:create</code>

post/out_payment

Request

  • Base URL
    https://api.test.easypay.pt/2.0
  • Auth
    API key in header AccountId and API key in header ApiKey and API key in header Signature

Request body

object required
customer, Customer required

The Customer object contains the necessary details about the customer involved in the transaction. This includes identification information, contact details, and preferences. All fields are optional unless specified otherwise.

key, string

Merchant identification key

value, number double required

Value will be rounded to 2 decimals

type, 'normal' | 'instant'

Optional - only applicable to method transfer

schedule_at, string

Scheduled date and time to execute the payment, in YYYY-MM-DD HH:MM format (UTC, no timezone suffix).

descriptive, string

Description for the out payment.

account, Account
out_account, OutAccount required
method, 'transfer' | 'mb' required
timestamp, string required

Unix timestamp UTC, must be no more than 1 minute before or after real time, if not the strong authentication signature will not be valid

Example request

{
  "customer": {
    "id": "649e88cf-0b78-4c36-8f99-33f5ebb812a1",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone": "911234567",
    "phone_indicative": "+351",
    "fiscal_number": "PT123456789",
    "key": "customer Key Example",
    "language": "PT"
  },
  "schedule_at": "2026-04-24 16:25",
  "method": "transfer"
}

Response

Created

object required
status, string
message, string[]
id, string uuid

A unique identifier for the resource. While typically formatted as a UUID (Universally Unique Identifier), it can also be in other formats as defined by the user. This field ensures the resource can be distinctly recognized and referenced.

method, object
customer, object

Customer associated with the out payment.

out_account, object

Destination SEPA bank account for the out payment.

Example response

{
  "status": "ok",
  "message": [
    "Your request was successfully created"
  ],
  "method": {
    "status": "pending"
  }
}

Changes

    • warning

      added the new failed enum value to the method/status response property for the response status