Saltar para o conteúdo

Refunds a Single Transaction or Frequent Transaction

Pedido

Each method has a specific time window during which a refund can be issued. Once this period expires, refunds can no longer be processed via the API for that payment.

Refund Deadlines by Payment Method

Payment MethodMaximum Refund Time
MB WAY15 months
Visa & Mastercard12 months
Apple Pay12 months
Google Pay12 months
Samsung Pay12 months
MB SPG references15 months
Other MB referencesNo limit
Direct Debit180 days

Required scope: refund:create

Segurança
accountId and apiKey
Caminho
idstring, (uuid)obrigatório

The capture uuid associated with Single or Frequent Transaction

Corpoapplication/jsonobrigatório

Request body for creating a refund

transaction_keystring, <= 50 characters

Your internal key identifying this refund

ibanstring, <= 34 characters

IBAN of the bank account that receives the refund. Required for Virtual IBAN and Multibanco refunds, except Single payments with an SPG reference.

emailstring, <= 50 characters

Email of the bank account holder. Required whenever iban is sent.

phonestring, <= 20 characters

Phone of the bank account holder. Required whenever iban is sent.

account_holderstring, <= 40 characters

Name of the bank account holder. Required whenever iban is sent.

valuenumber, (double), >= 0.01obrigatório

The amount to refund. When revert is present, this is the gross amount from the payer's perspective — the amount refunded to the payment method plus any redeemed reward credits being restored.

Exemplo:17.5
revertobject

Reverts refers to the process of reversing a previously made split payment. This means that the amounts that were divided and allocated to different recipients or accounts are returned to the original payer or redistributed as per the new instructions.

curl -i -X POST \
  'https://api.test.easypay.pt/2.0/refund/{id}' \
  -H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
  -H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
  -H 'Content-Type: application/json' \
  -d '{
    "transaction_key": "transaction key Example",
    "value": 17.5
  }'

Respostas

Created

Corpoapplication/json
statusstring
Exemplo:"ok"
messagestring
Exemplo:"Your request was successfully created"
idstring, (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.

Exemplo:"25997c28-1902-4f6d-842e-c6050e7d5421"
Resposta
{ "status": "ok", "message": "Your request was successfully created", "id": "25997c28-1902-4f6d-842e-c6050e7d5421" }