---
title: Create a consent
slug: payment/create-a-consent
docTags: 
createdAt: 2025-08-28T08:37:13.421Z
---

:::ApiMethodV2
```json
{
  "name": "/consents",
  "method": "POST",
  "url": "https://api-sandbox.klavi.ai/payment/customer/v1/automatic/consents",
  "description": "Create a consent",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "r1yGAoJhRWIzuNo-mBmFQ",
        "language": "curl",
        "code": "curl --location 'https://api-sandbox.klavi.ai/payment/customer/v1/automatic/consents' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\"clientRequestId\":\"string\",\"institutionId\":\"string\",\"creditorAccount\":{\"holder\":{}},\"paymentMethodConfig\":{\"contractDebtor\":{},\"firstPayment\":{}}}'",
        "customLabel": ""
      },
      {
        "id": "fKO5-D6ytvutldZM5-Wfn",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://api-sandbox.klavi.ai/payment/customer/v1/automatic/consents',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"clientRequestId\": \"string\",\n      \"institutionId\": \"string\",\n      \"creditorAccount\": {\n         \"holder\": {}\n      },\n      \"paymentMethodConfig\": {\n         \"contractDebtor\": {},\n         \"firstPayment\": {}\n      }\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "YARbaW0V-oHoiOTOEPsG1",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"clientRequestId\": \"string\",\n   \"institutionId\": \"string\",\n   \"creditorAccount\": {\n      \"holder\": {}\n   },\n   \"paymentMethodConfig\": {\n      \"contractDebtor\": {},\n      \"firstPayment\": {}\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api-sandbox.klavi.ai/payment/customer/v1/automatic/consents\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "7dZrgznaT9JWtKcFK_WxL",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://api-sandbox.klavi.ai/payment/customer/v1/automatic/consents\"\n\npayload = json.dumps({\n   \"clientRequestId\": \"string\",\n   \"institutionId\": \"string\",\n   \"creditorAccount\": {\n      \"holder\": {}\n   },\n   \"paymentMethodConfig\": {\n      \"contractDebtor\": {},\n      \"firstPayment\": {}\n   }\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "g1Fg3yuaCCKez2PAinFQu",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api-sandbox.klavi.ai/payment/customer/v1/automatic/consents\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"clientRequestId\": \"string\",\n   \"institutionId\": \"string\",\n   \"creditorAccount\": {\n      \"holder\": {}\n   },\n   \"paymentMethodConfig\": {\n      \"contractDebtor\": {},\n      \"firstPayment\": {}\n   }\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "fKO5-D6ytvutldZM5-Wfn"
  },
  "results": {
    "languages": [
      {
        "id": "Ox_o-Udv0XkxMkP43Vn9r",
        "language": "201",
        "code": "{\n    \"id\": \"fcb72e3a-b346-4f71-b044-971dc23232c9\", \n    \"clientRequestId\": \"fcb72e3a-b346-4f71-b044-dsndsnmnkdsmk\",\n    \"status\": \"CONSENT_AWAITING_AUTHORIZATION\",\n    \"statusReason\": {\n        \"code\": \"NAO_INFORMADO\",\n        \"message\": \"Erro não informado na iniciadora ou detentora de conta.\"\n    },\n    \"consentRedirectURL\": \"https://server.example.com/cb\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "Ox_o-Udv0XkxMkP43Vn9r"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "Authorization",
        "kind": "required",
        "type": "string",
        "description": "JWT bearer token",
        "": "JWT bearer token"
      }
    ],
    "bodyDataParameters": [
      {
        "name": "clientRequestId",
        "kind": "required",
        "type": "string",
        "description": "Your internal orderId. Only can be used for once. \nyou can use it to associate a payment and you can use UUID generation algorithm to generate it",
        "": "Your internal orderId. Only can be used for once. \nyou can use it to associate a payment and you can use UUID generation algorithm to generate it"
      },
      {
        "name": "institutionId",
        "kind": "required",
        "type": "string",
        "description": "Id from the bank chosen by the user",
        "": "Id from the bank chosen by the user"
      },
      {
        "name": "customer",
        "kind": "required",
        "type": "object",
        "description": "User (natural person) who is logged in to the payment initiator institution",
        "": "required",
        "children": [
          {
            "name": "identifierType",
            "kind": "required",
            "type": "string",
            "description": "Type of the user identification document: CNPJ or CPF\nIf value is CPF:\nmaxLength: 3\nexample: CPF\npattern: ^[A-Z]{3}$\n\nIf value is CNPJ\nmaxLength: 4\nexample: CNPJ\npattern: ^[A-Z]{4}$"
          },
          {
            "name": "identifier",
            "kind": "required",
            "type": "string",
            "description": "The number of the user identification document\nIf identifierType value is CPF:\nmaxLength: 11\nexample: 11111111111\npattern: ^\\d{11}$\n\nIf identifierType value is CNPJ:\nmaxLength: 14\nexample: 11111111111111\npattern: ^[0-9A-Z]{12}[0-9]{2}$"
          },
          {
            "name": "name",
            "kind": "required",
            "type": "string",
            "description": "Username"
          },
          {
            "name": "phone",
            "kind": "optional",
            "type": "string",
            "description": "User's phone number"
          },
          {
            "name": "email",
            "kind": "optional",
            "type": "string",
            "description": "User's email"
          }
        ],
        "schema": [
          {
            "name": "identifierType",
            "kind": "required",
            "type": "string",
            "description": "Type of the user identification document: CNPJ or CPF\nIf value is CPF:\nmaxLength: 3\nexample: CPF\npattern: ^[A-Z]{3}$\n\nIf value is CNPJ\nmaxLength: 4\nexample: CNPJ\npattern: ^[A-Z]{4}$"
          },
          {
            "name": "identifier",
            "kind": "required",
            "type": "string",
            "description": "The number of the user identification document\nIf identifierType value is CPF:\nmaxLength: 11\nexample: 11111111111\npattern: ^\\d{11}$\n\nIf identifierType value is CNPJ:\nmaxLength: 14\nexample: 11111111111111\npattern: ^[0-9A-Z]{12}[0-9]{2}$"
          },
          {
            "name": "name",
            "kind": "required",
            "type": "string",
            "description": "Username"
          },
          {
            "name": "phone",
            "kind": "optional",
            "type": "string",
            "description": "User's phone number"
          },
          {
            "name": "email",
            "kind": "optional",
            "type": "string",
            "description": "User's email"
          }
        ]
      },
      {
        "name": "loggedUserCpf",
        "kind": "optional",
        "type": "string",
        "description": "User (natural person) who is logged in to the Payment Initiator institution.\nrequired if customer.identifierType = CNPJ",
        "": "User (natural person) who is logged in to the Payment Initiator institution.\nrequired if customer.identifierType = CNPJ"
      },
      {
        "name": "redirectURL",
        "kind": "optional",
        "type": "string",
        "description": "Return rediect url after user checkout in Klavi envrionment",
        "": "redirectURL"
      },
      {
        "name": "additionalInformation",
        "kind": "optional",
        "type": "string",
        "description": "Must be filled in whenever the paying user enters some additional information in the consent\nexample: Minha recorrência\npattern: [\\w\\W\\s]*\nmaxLength: 140",
        "": "Must be filled in whenever the paying user enters some additional information in the consent\nexample: Minha recorrência\npattern: [\\w\\W\\s]*\nmaxLength: 140"
      },
      {
        "name": "debtorAccount",
        "kind": "optional",
        "type": "object",
        "description": "Payer's origin account information",
        "": "Payer's origin account information",
        "children": [
          {
            "name": "ispb",
            "kind": "required",
            "type": "string",
            "description": "minLength: 8\nmaxLength: 8\npattern: ^[0-9]{8}$\nexample: 12345678\nIt must be filled in with the ISPB (Brazilian Payment System Identifier) of the SPI participant (Instant Payment System) with numbers only."
          },
          {
            "name": "issuer",
            "kind": "optional",
            "type": "string",
            "description": "minLength: 1\nmaxLength: 4\npattern: ^[0-9]{1,4}$\nexample: 1774\nCode of the Agency issuing the account without digit.\n [Restriction] Mandatory for the following account types: CACC (CONTA_DEPOSITO_A_VISTA) and SVGS (CONTA_POUPANCA)."
          },
          {
            "name": "number",
            "kind": "required",
            "type": "string",
            "description": "minLength: 1\nmaxLength: 20\npattern: ^[0-9]{1,20}$\nexample: 1234567890\nIt must be filled in with the paying user's transactional account number, with verification digit (if any),\nIf there is an alphanumeric value, it should be converted to 0."
          },
          {
            "name": "accountType",
            "kind": "required",
            "type": "string",
            "description": "Types of accounts used for payment.\nexample: CACC\nEnum: [ CACC, SVGS, TRAN]\n    CACC - Current - Current Account\n    SVGS - Savings - Saving Account\n    TRAN - TransactingAccount - Prepaid Payment Account"
          }
        ],
        "schema": [
          {
            "name": "ispb",
            "kind": "required",
            "type": "string",
            "description": "minLength: 8\nmaxLength: 8\npattern: ^[0-9]{8}$\nexample: 12345678\nIt must be filled in with the ISPB (Brazilian Payment System Identifier) of the SPI participant (Instant Payment System) with numbers only."
          },
          {
            "name": "issuer",
            "kind": "optional",
            "type": "string",
            "description": "minLength: 1\nmaxLength: 4\npattern: ^[0-9]{1,4}$\nexample: 1774\nCode of the Agency issuing the account without digit.\n [Restriction] Mandatory for the following account types: CACC (CONTA_DEPOSITO_A_VISTA) and SVGS (CONTA_POUPANCA)."
          },
          {
            "name": "number",
            "kind": "required",
            "type": "string",
            "description": "minLength: 1\nmaxLength: 20\npattern: ^[0-9]{1,20}$\nexample: 1234567890\nIt must be filled in with the paying user's transactional account number, with verification digit (if any),\nIf there is an alphanumeric value, it should be converted to 0."
          },
          {
            "name": "accountType",
            "kind": "required",
            "type": "string",
            "description": "Types of accounts used for payment.\nexample: CACC\nEnum: [ CACC, SVGS, TRAN]\n    CACC - Current - Current Account\n    SVGS - Savings - Saving Account\n    TRAN - TransactingAccount - Prepaid Payment Account"
          }
        ]
      },
      {
        "name": "creditorAccount",
        "kind": "required",
        "type": "object",
        "description": "Object containing the data of the recipient (creditor).",
        "": "required",
        "children": [
          {
            "name": "ispb",
            "kind": "required",
            "type": "string",
            "description": "minLength: 8\nmaxLength: 8\npattern: ^[0-9]{8}$\nexample: 12345678\nIt must be filled in with the ISPB (Brazilian Payment System Identifier) of the SPI participant (Instant Payment System) with numbers only."
          },
          {
            "name": "issuer",
            "kind": "optional",
            "type": "string",
            "description": "minLength: 1\nmaxLength: 4\npattern: ^[0-9]{1,4}$\nexample: 1774\nCode of the Agency issuing the account without digit.\n [Restriction] Mandatory for the following account types: CACC (CONTA_DEPOSITO_A_VISTA) and SVGS (CONTA_POUPANCA)."
          },
          {
            "name": "number",
            "kind": "required",
            "type": "string",
            "description": "minLength: 1\nmaxLength: 20\npattern: ^[0-9]{1,20}$\nexample: 1234567890\nIt must be filled in with the paying user's transactional account number, with verification digit (if any),\nIf there is an alphanumeric value, it should be converted to 0."
          },
          {
            "name": "accountType",
            "kind": "required",
            "type": "string",
            "description": "Types of accounts used for payment.\nexample: CACC\nEnum: [ CACC, SVGS, TRAN]\n    CACC - Current - Current Account\n    SVGS - Savings - Saving Account\n    TRAN - TransactingAccount - Prepaid Payment Account"
          },
          {
            "name": "holder",
            "kind": "optional",
            "type": "object",
            "description": "Holder object",
            "children": [
              {
                "name": "identifier",
                "kind": "required",
                "type": "string",
                "description": "The number of the user identification document\nIf identifierType value is CPF:\nmaxLength: 11\nexample: 11111111111\npattern: ^\\d{11}$\n\nIf identifierType value is CNPJ:\nmaxLength: 14\nexample: 11111111111111\npattern: ^[0-9A-Z]{12}[0-9]{2}$"
              },
              {
                "name": "name",
                "kind": "required",
                "type": "string",
                "description": "Username"
              },
              {
                "name": "identifierType",
                "kind": "required",
                "type": "string",
                "description": "Type of the user identification document: CNPJ or CPF\nIf value is CPF:\nmaxLength: 3\nexample: CPF\npattern: ^[A-Z]{3}$\n\nIf value is CNPJ\nmaxLength: 4\nexample: CNPJ\npattern: ^[A-Z]{4}$"
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "ispb",
            "kind": "required",
            "type": "string",
            "description": "minLength: 8\nmaxLength: 8\npattern: ^[0-9]{8}$\nexample: 12345678\nIt must be filled in with the ISPB (Brazilian Payment System Identifier) of the SPI participant (Instant Payment System) with numbers only."
          },
          {
            "name": "issuer",
            "kind": "optional",
            "type": "string",
            "description": "minLength: 1\nmaxLength: 4\npattern: ^[0-9]{1,4}$\nexample: 1774\nCode of the Agency issuing the account without digit.\n [Restriction] Mandatory for the following account types: CACC (CONTA_DEPOSITO_A_VISTA) and SVGS (CONTA_POUPANCA)."
          },
          {
            "name": "number",
            "kind": "required",
            "type": "string",
            "description": "minLength: 1\nmaxLength: 20\npattern: ^[0-9]{1,20}$\nexample: 1234567890\nIt must be filled in with the paying user's transactional account number, with verification digit (if any),\nIf there is an alphanumeric value, it should be converted to 0."
          },
          {
            "name": "accountType",
            "kind": "required",
            "type": "string",
            "description": "Types of accounts used for payment.\nexample: CACC\nEnum: [ CACC, SVGS, TRAN]\n    CACC - Current - Current Account\n    SVGS - Savings - Saving Account\n    TRAN - TransactingAccount - Prepaid Payment Account"
          },
          {
            "name": "holder",
            "kind": "optional",
            "type": "object",
            "description": "Holder object",
            "children": [
              {
                "name": "identifier",
                "kind": "required",
                "type": "string",
                "description": "The number of the user identification document\nIf identifierType value is CPF:\nmaxLength: 11\nexample: 11111111111\npattern: ^\\d{11}$\n\nIf identifierType value is CNPJ:\nmaxLength: 14\nexample: 11111111111111\npattern: ^[0-9A-Z]{12}[0-9]{2}$"
              },
              {
                "name": "name",
                "kind": "required",
                "type": "string",
                "description": "Username"
              },
              {
                "name": "identifierType",
                "kind": "required",
                "type": "string",
                "description": "Type of the user identification document: CNPJ or CPF\nIf value is CPF:\nmaxLength: 3\nexample: CPF\npattern: ^[A-Z]{3}$\n\nIf value is CNPJ\nmaxLength: 4\nexample: CNPJ\npattern: ^[A-Z]{4}$"
              }
            ]
          }
        ]
      },
      {
        "name": "paymentMethodConfig",
        "kind": "required",
        "type": "object",
        "description": "Field intended for the configuration of the different recurring payment products.",
        "": "required",
        "children": [
          {
            "name": "contractId",
            "kind": "required",
            "type": "string",
            "description": "pattern: ^[a-zA-Z0-9]{1,35}$\nminLength: 1\nmaxLength: 35\nexample: XE00038166201907261559y6j6\nTransaction contract identifier"
          },
          {
            "name": "fixedAmount",
            "kind": "optional",
            "type": "string",
            "description": "pattern: ^((\\d{1,16}\\.\\d{2}))$\nminLength: 4\nmaxLength: 19\nexample: 100000.12\nFixed charge amount, if filled in, represents a consent for payments of fixed amounts, or not subject to change during the validity of the consent."
          },
          {
            "name": "minimumVariableAmount",
            "kind": "optional",
            "type": "string",
            "description": "pattern: ^((\\d{1,16}\\.\\d{2}))$\nminLength: 4\nmaxLength: 19\nexample: 1000000.12\nValue defined by the receiving user. If the paying user assigns a maximum amount for payments of that authorization (field “maximumVariableAmount”), it cannot be lower than the floor set by the receiving user."
          },
          {
            "name": "maximumVariableAmount",
            "kind": "optional",
            "type": "string",
            "description": "pattern: ^((\\d{1,16}\\.\\d{2}))$\nminLength: 4\nmaxLength: 19\nexample: 1000000.12\nMaximum allowed value per charge, if filled in, represents consent to payments of variable amounts."
          },
          {
            "name": "currency",
            "kind": "required",
            "type": "string",
            "description": "maxLength: 3\npattern: ^([A-Z]{3})$\nexample: BRL"
          },
          {
            "name": "interval",
            "kind": "required",
            "type": "string",
            "description": "example: MONTHLY\nEnum: [ WEEKLY,MONTHLY,YEARLY,SEMIANNUAL,QUARTERLY ]\nDefines the allowed periodicity for transaction execution"
          },
          {
            "name": "referenceStartDate",
            "kind": "required",
            "type": "string",
            "description": "pattern: ^(\\d{4})-(1[0-2]|0?[1-9])-(3[01]|[12][0-9]|0?[1-9])$\nexample: 2023-05-21\nRepresents the expected date for the start of the collection cycle for payments associated with recurrence. It is a string with date according to RFC-3339 specification, following Brasília time (UTC-3). The initial bulk payment, declared in the firstPayment object of the consent, is not subject to this date."
          },
          {
            "name": "contractDebtor",
            "kind": "required",
            "type": "object",
            "description": "Information about the customer who owes the contract.",
            "children": [
              {
                "name": "identifierType",
                "kind": "required",
                "type": "string",
                "description": "Enum: [ CPF, CNPJ ]\nType of the user identification document: CNPJ or CPF"
              },
              {
                "name": "identifier",
                "kind": "required",
                "type": "string",
                "description": "maxLength: 14\nexample: 11111111111111\npattern: ^([0-9]{11})$|^([0-9A-Z]{12}[0-9]{2})$\nThe number of the user identification document"
              },
              {
                "name": "name",
                "kind": "required",
                "type": "string",
                "description": "pattern: ^([A-Za-zÀ-ÖØ-öø-ÿ,.@:&*+_<>()!?/\\\\$%\\d' -]+)$\nmaxLength: 120\nexample: Policarpo Quaresma"
              }
            ]
          },
          {
            "name": "isRetryAccepted",
            "kind": "required",
            "type": "boolean",
            "description": "example: false\nIndicates whether the receiving customer is allowed to make payment attempts (extradition), according to the rules set out in the Pix arrangement."
          },
          {
            "name": "firstPayment",
            "kind": "optional",
            "type": "object",
            "description": "Definitions for the first payment. It is considered as the payment of membership to the service by the paying user.",
            "children": [
              {
                "name": "remittanceInformation",
                "kind": "optional",
                "type": "string",
                "description": "maxLength: 140\npattern: [\\w\\W\\s]*\nexample: Pagamento da nota RSTO035-002\nIt must be filled in whenever the paying user enters some additional information in a payment, to be sent to the recipient."
              },
              {
                "name": "date",
                "kind": "required",
                "type": "string",
                "description": "maxLength: 10\npattern: ^(\\d{4})-(1[0-2]|0?[1-9])-(3[01]|[12][0-9]|0?[1-9])$\nexample: 2021-01-01\nDefines the target date for payment settlement. The Brasília time zone should be used to create and streamline the data in this field."
              },
              {
                "name": "amount",
                "kind": "required",
                "type": "string",
                "description": "minLength: 4\nmaxLength: 19\npattern: ^((\\d{1,16}\\.\\d{2}))$\nexample: 100000.12\nThe transaction value with 2 decimal places."
              },
              {
                "name": "currency",
                "kind": "required",
                "type": "string",
                "description": "maxLength: 3\npattern: ^([A-Z]{3})$\nexample: BRL\nNational currency code according to ISO-4217, i.e., 'BRL'. All reported monetary values are represented with the current currency of Brazil."
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "contractId",
            "kind": "required",
            "type": "string",
            "description": "pattern: ^[a-zA-Z0-9]{1,35}$\nminLength: 1\nmaxLength: 35\nexample: XE00038166201907261559y6j6\nTransaction contract identifier"
          },
          {
            "name": "fixedAmount",
            "kind": "optional",
            "type": "string",
            "description": "pattern: ^((\\d{1,16}\\.\\d{2}))$\nminLength: 4\nmaxLength: 19\nexample: 100000.12\nFixed charge amount, if filled in, represents a consent for payments of fixed amounts, or not subject to change during the validity of the consent."
          },
          {
            "name": "minimumVariableAmount",
            "kind": "optional",
            "type": "string",
            "description": "pattern: ^((\\d{1,16}\\.\\d{2}))$\nminLength: 4\nmaxLength: 19\nexample: 1000000.12\nValue defined by the receiving user. If the paying user assigns a maximum amount for payments of that authorization (field “maximumVariableAmount”), it cannot be lower than the floor set by the receiving user."
          },
          {
            "name": "maximumVariableAmount",
            "kind": "optional",
            "type": "string",
            "description": "pattern: ^((\\d{1,16}\\.\\d{2}))$\nminLength: 4\nmaxLength: 19\nexample: 1000000.12\nMaximum allowed value per charge, if filled in, represents consent to payments of variable amounts."
          },
          {
            "name": "currency",
            "kind": "required",
            "type": "string",
            "description": "maxLength: 3\npattern: ^([A-Z]{3})$\nexample: BRL"
          },
          {
            "name": "interval",
            "kind": "required",
            "type": "string",
            "description": "example: MONTHLY\nEnum: [ WEEKLY,MONTHLY,YEARLY,SEMIANNUAL,QUARTERLY ]\nDefines the allowed periodicity for transaction execution"
          },
          {
            "name": "referenceStartDate",
            "kind": "required",
            "type": "string",
            "description": "pattern: ^(\\d{4})-(1[0-2]|0?[1-9])-(3[01]|[12][0-9]|0?[1-9])$\nexample: 2023-05-21\nRepresents the expected date for the start of the collection cycle for payments associated with recurrence. It is a string with date according to RFC-3339 specification, following Brasília time (UTC-3). The initial bulk payment, declared in the firstPayment object of the consent, is not subject to this date."
          },
          {
            "name": "contractDebtor",
            "kind": "required",
            "type": "object",
            "description": "Information about the customer who owes the contract.",
            "children": [
              {
                "name": "identifierType",
                "kind": "required",
                "type": "string",
                "description": "Enum: [ CPF, CNPJ ]\nType of the user identification document: CNPJ or CPF"
              },
              {
                "name": "identifier",
                "kind": "required",
                "type": "string",
                "description": "maxLength: 14\nexample: 11111111111111\npattern: ^([0-9]{11})$|^([0-9A-Z]{12}[0-9]{2})$\nThe number of the user identification document"
              },
              {
                "name": "name",
                "kind": "required",
                "type": "string",
                "description": "pattern: ^([A-Za-zÀ-ÖØ-öø-ÿ,.@:&*+_<>()!?/\\\\$%\\d' -]+)$\nmaxLength: 120\nexample: Policarpo Quaresma"
              }
            ]
          },
          {
            "name": "isRetryAccepted",
            "kind": "required",
            "type": "boolean",
            "description": "example: false\nIndicates whether the receiving customer is allowed to make payment attempts (extradition), according to the rules set out in the Pix arrangement."
          },
          {
            "name": "firstPayment",
            "kind": "optional",
            "type": "object",
            "description": "Definitions for the first payment. It is considered as the payment of membership to the service by the paying user.",
            "children": [
              {
                "name": "remittanceInformation",
                "kind": "optional",
                "type": "string",
                "description": "maxLength: 140\npattern: [\\w\\W\\s]*\nexample: Pagamento da nota RSTO035-002\nIt must be filled in whenever the paying user enters some additional information in a payment, to be sent to the recipient."
              },
              {
                "name": "date",
                "kind": "required",
                "type": "string",
                "description": "maxLength: 10\npattern: ^(\\d{4})-(1[0-2]|0?[1-9])-(3[01]|[12][0-9]|0?[1-9])$\nexample: 2021-01-01\nDefines the target date for payment settlement. The Brasília time zone should be used to create and streamline the data in this field."
              },
              {
                "name": "amount",
                "kind": "required",
                "type": "string",
                "description": "minLength: 4\nmaxLength: 19\npattern: ^((\\d{1,16}\\.\\d{2}))$\nexample: 100000.12\nThe transaction value with 2 decimal places."
              },
              {
                "name": "currency",
                "kind": "required",
                "type": "string",
                "description": "maxLength: 3\npattern: ^([A-Z]{3})$\nexample: BRL\nNational currency code according to ISO-4217, i.e., 'BRL'. All reported monetary values are represented with the current currency of Brazil."
              }
            ]
          }
        ]
      },
      {
        "name": "externalInfo",
        "kind": "optional",
        "type": "object",
        "description": "Metadata, user customizable",
        "": "Metadata, user customizable",
        "children": [
          {
            "name": "appLink",
            "kind": "optional",
            "type": "string",
            "description": "Used to launch partner app, the format must follow the URL scheme"
          },
          {
            "name": "appRedirectURLKey",
            "kind": "optional",
            "type": "string",
            "description": "Used to locate specific pages in the partner app\nRequired if appLink != nil"
          }
        ],
        "schema": [
          {
            "name": "appLink",
            "kind": "optional",
            "type": "string",
            "description": "Used to launch partner app, the format must follow the URL scheme"
          },
          {
            "name": "appRedirectURLKey",
            "kind": "optional",
            "type": "string",
            "description": "Used to locate specific pages in the partner app\nRequired if appLink != nil"
          }
        ]
      },
      {
        "name": "expirationDateTime",
        "kind": "optional",
        "type": "string",
        "description": "The date and time when the consent shall cease to be valid. A string with date and time as specified in RFC-3339, always using the UTC time format, must be set to 23:59:59.\nexample: 2021-05-21T23:59:59Z\npattern: ^(\\d{4})-(1[0-2]|0?[1-9])-(3[01]|[12][0-9]|0?[1-9])T(?:[01]\\d|2[0123]):(?:[012345]\\d):(?:[012345]\\d)Z$\nmaxLength: 20",
        "": "The date and time when the consent shall cease to be valid. A string with date and time as specified in RFC-3339, always using the UTC time format, must be set to 23:59:59.\nexample: 2021-05-21T23:59:59Z\npattern: ^(\\d{4})-(1[0-2]|0?[1-9])-(3[01]|[12][0-9]|0?[1-9])T(?:[01]\\d|2[0123]):(?:[012345]\\d):(?:[012345]\\d)Z$\nmaxLength: 20"
      },
      {
        "name": "clientMetadata",
        "kind": "required",
        "type": "object",
        "description": "Client metadata",
        "": "Client metadata",
        "children": [
          {
            "name": "platform",
            "kind": "required",
            "type": "string",
            "description": "Client type, Enum: [ BROWSER, APP]"
          },
          {
            "name": "os",
            "kind": "required",
            "type": "string",
            "description": "OS type, Enum: [ LINUX, MACOS, UNIX, WINDOWS, IOS, ANDROID, OTHER ]"
          },
          {
            "name": "osVersion",
            "kind": "required",
            "type": "string",
            "description": "OS version"
          }
        ],
        "schema": [
          {
            "name": "platform",
            "kind": "required",
            "type": "string",
            "description": "Client type, Enum: [ BROWSER, APP]"
          },
          {
            "name": "os",
            "kind": "required",
            "type": "string",
            "description": "OS type, Enum: [ LINUX, MACOS, UNIX, WINDOWS, IOS, ANDROID, OTHER ]"
          },
          {
            "name": "osVersion",
            "kind": "required",
            "type": "string",
            "description": "OS version"
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "response": [
    {
      "name": "id",
      "kind": "optional",
      "type": "string",
      "description": "pattern: ^urn:[a-zA-Z0-9][a-zA-Z0-9\\-]{0,31}:[a-zA-Z0-9()+,\\-.:=@;$_!*'%\\/?#]+$\nmaxLength: 256\nConsent Id"
    },
    {
      "name": "clientRequestId",
      "kind": "optional",
      "type": "string",
      "description": "Your internal orderId. Only can be used for once. \nyou can use it to associate a payment and you can use UUID generation algorithm to generate it",
      "children": []
    },
    {
      "name": "status",
      "kind": "optional",
      "type": "string",
      "description": "\nConsent status",
      "children": []
    },
    {
      "name": "statusReason",
      "kind": "optional",
      "type": "object",
      "description": "Status reason object",
      "children": [
        {
          "name": "code",
          "kind": "optional",
          "type": "string",
          "description": "example: CONSENT_AWAITING_AUTHORIZATION\nEnum:\n[NOT_INFORMED,INFRASTRUCTURE_FAILURE,AUTHORIZATION_EXPIRED_TIME, USER_REJECTED, ORIGIN_DESTINATION_ACCOUNTS_EQUAL, ACCOUNT_DOES_NOT_ALLOW_PAYMENT, DIVERGENT_AUTHENTICATION, NOT_INFORMED, REVOKED_USER, REVOKED_MERCHANT ]"
        },
        {
          "name": "message",
          "kind": "optional",
          "type": "string",
          "description": "pattern: [wWs]*\nLength: 2048\nexample: User refused consent\nStatus message"
        }
      ]
    },
    {
      "name": "consentRedirectURL",
      "kind": "optional",
      "type": "string",
      "description": " Only status = CONSENT_AWAITING_AUTHORIZATION then will a valid URL be generated.",
      "children": []
    }
  ],
  "autoGeneratedAnchorSlug": "consents",
  "legacyHash": "HXeYryjGaItQoTr5kTiO3"
}
```
:::



