Saltar para o conteúdo

Request Authorisation

Pedido

Create a new authorisation on a given Frequent Payment

Required scope: frequent:create

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

Resource Identification

Corpoapplication/jsonobrigatório

Payment configuration object to generate a payment

transaction_keystring, <= 255 characters

Your internal key identifying this authorisation.

Exemplo:"transaction_key_123"
force_3dsboolean

Whether or not you want to force the 3DS authentication.

Padrão:false
descriptivestring, <= 255 charactersobrigatório

This will appear in the bank statement/MB WAY application.

Exemplo:"Descriptive Example"
valuenumber, (double), >= 0.5obrigatório

Value will be rounded to 2 decimals.

Exemplo:10.5
mbway_sdkobjectobsoleto

MB WAY SDK configuration for payment processing

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

Respostas

Created

Corpoapplication/json
idstring, (uuid)

Unique identifier for the authorization

Exemplo:"4c67e74b-a256-4e0a-965d-97bf5d01bd50"
statusstring

Status of the request

Exemplo:"ok"
messageArray of strings

Array of status messages

Exemplo:
[ "Your request was successfully created" ]
Resposta
{ "id": "4c67e74b-a256-4e0a-965d-97bf5d01bd50", "status": "ok", "message": [ "Your request was successfully created" ] }