Skip to content

Request Authorisation

Request

Create a new authorisation on a given Frequent Payment

Required scope: frequent:create

Security
accountId and apiKey
Path
idstring, (uuid)required

Resource Identification

Bodyapplication/jsonrequired

Payment configuration object to generate a payment

transaction_keystring, <= 255 characters

Your internal key identifying this authorisation.

Example:"transaction_key_123"
force_3dsboolean

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

Default:false
descriptivestring, <= 255 charactersrequired

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

Example:"Descriptive Example"
valuenumber, (double), >= 0.5required

Value will be rounded to 2 decimals.

Example:10.5
mbway_sdkobjectdeprecated

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
  }'

Responses

Created

Bodyapplication/json
idstring, (uuid)

Unique identifier for the authorization

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

Status of the request

Example:"ok"
messageArray of strings

Array of status messages

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