Consents

There are three kinds of consent events:

Event
Description

consents/created

A connection was started but not yet approved.

consents/approved

A connection was made successfully and we have access to customer's transactions.

consents/revoked

A connection was closed and we no longer have access to the transactions.

Request body

All consent related requests will only have two parameters:

  • type: event type (consents/created, consents/approved,consents/revoked)

  • document: Document (CPF) of who shared the data with Duopen. Always sent as digits only.

Here are examples of possible events:

{
  "status": "Data sent successfully",
  "data": {
    "document": "12345678910",
    "type": "consents/created"
  }
}

Last updated