Saltar para o conteúdo

Patch Account Config

Pedido

This endpoint is useful for setting up the correct URLs for event notifications. For more details, see Notifications-Webhooks.

Required scope: config:update

Segurança
accountId and apiKey
Corpoapplication/jsonobrigatório

Configuration object to edit an account.

genericstring, <= 255 characters

URL for generic notification.

Exemplo:"https://www.easypay.pt/generic"
authorisationstring, <= 255 characters

URL for authorisation notification.

Exemplo:"https://www.easypay.pt/authorisation"
transactionstring, <= 255 characters

URL for transaction notification.

Exemplo:"https://www.easypay.pt/transaction"
visa_fwdstring, <= 255 characters

URL for redirect clients on credit card forward.

Exemplo:"https://www.easypay.pt/visa_fwd"
visa_detailstring, <= 255 characters

URL for credit card payment detail.

Exemplo:"https://www.easypay.pt/visa_detail"
curl -i -X PATCH \
  https://api.test.easypay.pt/2.0/config \
  -H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
  -H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
  -H 'Content-Type: application/json' \
  -d '{
    "generic": "https://www.easypay.pt/generic",
    "authorisation": "https://www.easypay.pt/authorisation",
    "transaction": "https://www.easypay.pt/transaction",
    "visa_fwd": "https://www.easypay.pt/visa_fwd",
    "visa_detail": "https://www.easypay.pt/visa_detail"
  }'

Respostas

OK

Corpoapplication/json
genericstring

URL for generic notification.

authorisationstring

URL for authorisation notification.

transactionstring

URL for transaction notification.

visa_fwdstring

URL for redirect clients on credit card forward.

visa_detailstring

URL for credit card payment detail.

accountstring, (uuid)

The UUID of the related account.

Exemplo:"b2080452-bad1-4455-8ae7-9f5ea552a274"
client_idstring

The id of the related client.

Exemplo:"EASYP030002"
payment_methodsArray of strings

The available payments for the related account.

can_refund_direct_debitboolean

Whether the account is allowed to refund direct debit payments.

Exemplo:false
Resposta
{ "generic": "https://www.easypay.pt/generic", "authorisation": "https://www.easypay.pt/authorisation", "transaction": "https://www.easypay.pt/transaction", "visa_fwd": "https://www.easypay.pt/visa_fwd", "visa_detail": "https://www.easypay.pt/visa_detail", "account": "b2080452-bad1-4455-8ae7-9f5ea552a274", "client_id": "EASYP030002", "payment_methods": [ "MB" ], "can_refund_direct_debit": false }