Retrieves the details of an authorisation
Required scope: authorisation:read
- Sandboxhttps://api.test.easypay.pt/2.0/authorisation/{id}
- Productionhttps://api.prod.easypay.pt/2.0/authorisation/{id}
curl -i -X GET \
'https://api.test.easypay.pt/2.0/authorisation/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'OK
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.
Indicates the current status of the authorisation. Possible values include:
- waiting: The payment instruction has been given, but the chosen payment method requires confirmation from an external entity before the status of the operation is finalized.
- pending: This is the initial state, and it means that the authorisation is queued.
- success: The authorisation has been completed successfully.
- failed: The authorisation could not be completed due to an error or issue. This field provides a clear indication of the current state of the authorisation, helping users understand its progress and outcome.
This can be any string that helps the user uniquely identify or reference the resource in their own system.
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.
The currency code in ISO 4217 format (e.g., "EUR" for Euro). This field specifies the type of currency used in financial operation
The monetary amount requested for the transaction. This field is formatted as a double, and will be rounded to two decimal places.
The monetary amount requested for the capture transaction. This field is formatted as a double, and will be rounded to two decimal places.
{ "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb", "status": "waiting", "message": "string", "key": "string", "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" }, "method": { "type": "MB", "status": "waiting", "url": "https://cc.easypay.pt/v3/public/card-details/cec55ab6-bda3-4ab3-af22-04d2ad2c046a", "last_four": "1354", "card_type": "VISA", "expiration_date": "2019-08-24T14:15:22Z" }, "currency": "EUR", "value": 125.89, "value_captured": 10.87, "transactions": [ { … } ] }