POST
/
v2
/
requests
/
{request_type}
/
{id}
/
decline
curl --request POST \
  --url https://thirdparty.qonto.com/v2/requests/{request_type}/{id}/decline \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Qonto-Idempotency-Key: <x-qonto-idempotency-key>' \
  --data '{
  "declined_note": "Contact your manager please"
}'
{
  "request_virtual_card": {
    "id": "be160c90-058e-487a-b775-5b5cad3992aa",
    "request_type": "virtual_card",
    "initiator_id": "8fdb86eb-8e49-4be8-ab60-658b680629af",
    "approver_id": null,
    "note": "personal needs",
    "declined_note": "Contact your manager please",
    "status": "declined",
    "payment_monthly_limit": "500.00",
    "currency": "EUR",
    "processed_at": null,
    "created_at": "2021-10-11T14:28:28Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authorization header: Bearer <token>, where <token> is the access token received from the authorization server at the end of the OAuth 2.0 flow.

Headers

X-Qonto-Idempotency-Key
string
required

The API supports idempotency for safely retrying requests without accidentally performing the same operation twice.

Example:

"219439cf-b519-4d62-86d0-57b6d15ebaa5"

X-Qonto-Staging-Token
string

Required only for Sandbox API requests; to get one, please sign up to the Developer Portal.

Path Parameters

id
string
required

UUID of the request to be processed.

request_type
enum<string>
required

Type of a request to be declined.

Available options:
flash_cards,
virtual_cards,
transfers,
multi_transfers

Body

application/json

Response

200
application/json
Returns the declined request.

The response is of type object.