Account

General Information

Pix Fees

Pix fees are charged per transaction. Commission-based models use either fixed amounts or MDR (Merchant Discount Rate as a percentage), while billing models require no fee.

Examples:

  • A fixed fee of R$ 0.85 on a R$ 30.00 transaction nets R$ 29.15.
  • With 1% MDR, a R$ 22.00 transaction incurs a R$ 0.22 fee, netting R$ 21.78.

Set fee.amount = 0 for zero-fee rates.

Settlement Configuration

Settlement configuration determines where and how PIX transaction funds are transferred.

Settlement Method

An account must have exactly one settlement method: either a PIX key or a bank account, never both.

  • PIX Key Settlement transfers funds directly to another PIX participant with nearly instant processing. The PIX key used for settlement must be different from the account’s main key.
  • Bank Account Settlement transfers funds to a specific bank account on the next business day. This option requires COMPE/ISPB codes, agency, account number, and a CNPJ whose root matches the account’s root.

Automatic Settlement

hasAutomaticSettlement controls the transfer frequency of available funds.

  • When true, the system automatically transfers available funds every night during early morning hours.
  • When false, withdrawals must be initiated manually using Cash-Out endpoints.

This field is mandatory during account creation.

Hold Settlement

holdSettlement prevents automatic fund transfers even when automatic settlement is enabled.

  • When true, charges are created in a blocked state and do not settle normally.
  • This is useful for scenarios that require transaction review or manual approval before settlement.

The default value is false.

Split Fee Settlement

splitPixKey enables multi-party fund distribution when configured with the account’s settlement partner.

This setting defines a destination account for fee split crediting, allowing integrators to automatically redirect part of the fees to a separate account.

Rules:

  • The receiving account’s CNPJ root must match the primary account’s root.
  • Both accounts cannot have split payments enabled at the same time.
  • This feature requires Fiserv activation (Only available if the integrator has been created)

POST /v1/client/{clientId}/apm/pix/account

Add a pix account.

Request Fields
FieldLocated inTypeMandatoryDescription
clientIdpathstringyesClient Id
headerAPI Keystringyesapikey
x-timestampheaderstringyesDate/time of the request (used to prevent replay attacks)
x-request-idheaderstringyesRandom ID used to identify the request
x-hmac-signatureheaderstringyesHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL )
Authorizationheaderstring (bearerToken)yesBearer token for authentication
namebodystringnoAccount name, if not provided, defaults to value
Settlement.pixKeybodystringyesPixKey of settlement account. Only the pix key or account information should be provided, never both.
Settlement.bankAccount.typebodyintegeryes(enum) 0. Checking Account, 1. Deposit Account, 2. Payment Account, 3. Savings Account
Settlement.bankAccount.BankCompeCodebodystringyesCOMPE Code (Clearing System)
Settlement.bankAccount.bankIspbCodebodystringyesISPB Code (Bank Identifier)
Settlement.bankAccount.agencybodystringyesAgency number
Settlement.bankAccount.accountNumberbodystringyesAccount Number
Settlement.bankAccount.document.numberbodystringyesAccount's CNPJ. Must have the same root as the registered CNPJ
Settlement.bankAccount.document.typebodystringyesAlways inform “CNPJ”
pixFee.amountbodydecimalnoIf percentage is given, it cannot be greater than 0
pixFee.percentagebodydecimalnoIf this value is given, it cannot be greater than 0
pixFee.minbodydecimalnoCan be zero, but cannot be negative
pixFee.maxbodydecimalnoIt can only be sent if the min exists; cannot be zero, negative, or ≤ min
userTermsAccept.document.numberbodystringyesCPF of the person making the acceptance
userTermsAccept.document.typebodystringyesAlways “CPF”
userTermsAccept.ipbodystringyesIP Address of the machine that gave the acceptance term
splitPixKeybodystringnoThis specifies the destination account to which the fee split will be credited. The account will not have a split calculation if no value is entered. Note: the integrator must have split functionality activated with Fiserv; otherwise, the fee split will not occur, even if a destination settlement account for the split is specified.
holdSettlementbodyboolnoIdentifies if charges are created with settlement hold (default false)
hasAutomaticSettlementbodybooleanyesIndicates if settlement occurs automatically
tradeNamebodystringyesTrade name of the account
Request Example
{
  "name": "account name",
  "settlement": {
    "pixKey": "26770318000145",
    "bankAccount": {
      "accountNumber": "12345-1",
      "agency": "1234",
      "bankCompeCode": "341",
      "bankIspbCode": "00000007",
      "document": {
        "number": "60.664.745/0001-87",
        "type": "CNPJ"
      },
      "type": 1
    }
  },
  "pixFee": {
    "amount": 0,
    "percentage": 2,
    "max": 0,
    "min": 0
  },
  "splitPixKey": "1c78a371-187f-4318-ab95-69b54788ecda",
  "userTermsAccept": {
    "document": {
      "number": "631.313.010-31",
      "type": "CPF"
    },
    "ip": "198.51.100.42"
  },
  "holdSettlement": true,
  "tradeName": "Fiserv",
  "hasAutomaticSettlement": true
}
Response Fields
FieldTypeDescription
pixKeystringUnique Pix key generated for the account
pspClientIdstringClient ID for API authentication (Disregard if you will integrate directly with PSP Fiserv)
pspClientSecretstringClient Secret for API authentication (Disregard if you will integrate directly with PSP Fiserv)
Response Example
{
  "pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd",
  "pspClientId": "7a2a1ed1-aa51-4a71-9b18-0ba6f6bcfee1",
  "pspClientSecret": "2ccd83fc-34ba-4a21-97ca-bef027cc2c70"
}

GET /v1/client/{clientId}/apm/pix/account/{pixKey}

Return an account based on the PIX key.

Request Fields
NameLocated inDescriptionMandatoryType
apikeyheaderAPI Keyyesstring
x-timestampheaderDate/time of the request (used to prevent replay attacks)yesstring
x-request-idheaderRandom ID used to identify the requestyesstring
x-hmac-signatureheaderHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)yesstring
AuthorizationheaderBearer token for authenticationyesstring (bearerToken)
pixKeypathAccount's PIX Keyyesstring
clientIdpathClient idyesstring
Response Fields
FieldTypeNotes
namestringAccount legal name
documentNumberstringAccount CNPJ
pixKeystringPix key of the account. Used for charge generation
statusintAccount status
settlementobjectSettlement data
settlement.pixKeystringPix key of the settlement account, i.e., the account that receives the amounts from charges
settlement.bankAccountobjectBank details of the settlement account, i.e., the account that receives the amounts from charges
settlement.bankAccount.accountNumberstringAccount number
settlement.bankAccount.agencystringBranch number
settlement.bankAccount.bankCompeCodestringThree-digit code of the Bank Clearing System. COMPE
settlement.bankAccount.typestringAccount type
settlement.bankAccount.documentobjectDocument data
settlement.bankAccount.document.numberstringDocument number
settlement.bankAccount.document.typestringDocument type
pixFeeobjectFee information
pixFee.amountdecimalFixed fee
pixFee.percentagedecimalPercentage fee
pixFee.maxdecimalMaximum fee
pixFee.mindecimalMinimum fee
hasAutomaticSettlementbooleanIndicates if the account automatically transfers amounts once a day to the settlement account.
pspClientIdstringAccount client ID in the PSP
pspClientSecretstringAccount client secret in the PSP
splitPixKeystringPix key of the destination account for split fee settlement
holdSettlementbooleanIndicates if charges are created as blocked and should not be settled
tradeNamestringAccount trade name (optional)
Response Example
{
  "name": "Store Nome",
  "documentNumber": "40486138000167",
  "pixKey": "d60e6246-4885-471f-bab7-a3482f48d68b",
  "status": 1,
  "settlement": {
    "pixKey": null,
    "bankAccount": {
      "accountNumber": "12345-1",
      "agency": "1234",
      "bankCompeCode": "341",
      "document": {
        "number": "40.486.138/0001-67",
        "type": "CNPJ"
      },
      "type": 1
    }
  },
  "pixFee": {
    "amount": 0,
    "percentage": 2,
    "max": 0,
    "min": 0
  },
  "splitPixKey": "30001d73-4917-4a41-bb8f-9624b4910ff3",
  "hasAutomaticSettlement": true,
  "holdSettlement": true,
  "pspClientId": "7a2a1ed1-aa51-4a71-9b18-0ba6f6bcfee1",
  "pspClientSecret": "2ccd83fc-34ba-4a21-97ca-bef027cc2c70",
  "tradeName": "Store Nome"
}

PUT /v1/client/{clientId}/apm/pix/account/{pixKey}

Endpoint that changes a pix account.

Request Fields
NameLocated inTypeMandatoryDescription
apikeyheaderstringyesAPI Key
x-timestampheaderstringyesDate/time of the request (used to prevent replay attacks)
x-request-idheaderstringyesRandom ID used to identify the request
x-hmac-signatureheaderstringyesHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)
Authorizationheaderstring (bearerToken)yesBearer token used for authentication
pixKeypathstringyesAccount's PIX Key
clientIdpathstringyesclient id
Settlement.pixKeybodystringyesPixKey of settlement account. Only the pix key or account information should be provided, never both.
Settlement.bankAccount.typebodyintegeryes(enum) 0. Checking Account, 1. Deposit Account 2. Payment Account 3. Savings Account
Settlement.bankAccount.BankCompeCodebodystringyesCOMPE Code (Check and Other Document Clearing System)
Settlement.bankAccount.agencybodystringyesAgency number
Settlement.bankAccount.accountNumberbodystringyesAccount Number
Settlement.bankAccount.document.numberbodystringyesAccount's CNPJ. Must have the same root as the registered CNPJ
Settlement.bankAccount.document.typebodystringyesAlways inform the “CNPJ”
pixFee.amountbodydecimalnoIf percentage is given, it cannot be greater than 0
pixFee.percentagebodydecimalnoIf this value is given, it cannot be greater than 0
pixFee.minbodydecimalnoCan be zero, but cannot be negative
pixFee.maxbodydecimalnoIt can only be sent if the min exists; It cannot be zero, but cannot be negative and it can never be less than or equal to the min
splitPixKeybodystringnoThis specifies which settlement account the fee split will be credited to. If you have a settlement account, and this information is not provided or a null value is sent, that link will be removed, as well as the fee split calculation.
Note: the integrator must have split functionality active with Fiserv; otherwise, the fee split will not occur, even if a settlement account is specified for the split.
holdSettlementbodyboolnoIdentifies if charges are created with liquidation hold (default false)
hasAutomaticSettlementbodybooleanyesIndicates if settlement occurs automatically
namebodybooleanyesCorporate Name
tradeNamebodybooleanyesTrade Name
Request Example
{
  "settlement": {
    "pixKey": "26770318000145",
    "bankAccount": {
      "accountNumber": "12345-1",
      "agency": "1234",
      "bankCompeCode": "341",
      "document": {
        "number": "60.664.745/0001-87",
        "type": "CNPJ"
      },
      "type": 1
    }
  },
  "pixFee": {
    "amount": 0,
    "percentage": 2,
    "max": 0,
    "min": 0
  },
  "splitPixKey": "1c78a371-187f-4318-ab95-69b54788ecda",
  "holdSettlement": false,
  "hasAutomaticSettlement": true,
  "name": "Account Corporate Name",
  "tradeName": "Account Trade Name"
}

DELETE /v1/client/{clientId}/apm/pix/account/{pixKey}

Endpoint to delete a pix account.

Request Fields
NameLocated inDescriptionMandatoryType
apikeyheaderAPI Keyyesstring
x-timestampheaderDate/time of the request (used to prevent replay attacks)yesstring
x-request-idheaderRandom ID used to identify the requestyesstring
x-hmac-signatureheaderHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)yesstring
AuthorizationheaderBearer token used for authenticationyesstring (bearerToken)
pixKeypathAccount's PIX Keyyesstring
clientIdpathClient idyesstring

GET /v2/client/{clientId}/apm/pix/account/balance/{pixKey}

Consult the account balance by pix key.

Request Fields
NameLocated inDescriptionMandatoryType
apikeyheaderAPI Keyyesstring
x-timestampheaderDate/time of the request (used to prevent replay attacks)yesstring
x-request-idheaderRandom ID used to identify the requestyesstring
x-hmac-signatureheaderHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)yesstring
AuthorizationheaderBearer token for authenticationyesstring (bearerToken)
clientIdpathClient Identifieryesstring
pixKeypathPix Key of the accountyesstring
Response Fields
FieldTypeAdditional Information
availableBalancedecimalAvailable balance in the account
blockedBalancedecimalBlocked balance in the account
totalBalancedecimalTotal balance in the account
Response Example
{
  "availableBalance": 2500000.42,
  "blockedBalance": 500000.18,
  "totalBalance": 3000000.6
}

GET /v1/client/{clientId}/apm/pix/accounts

View a customer's accounts.

Request Fields
NameLocated inDescriptionMandatoryType
apikeyheaderAPI Keyyesstring
x-timestampheaderDate/time of the request (used to prevent replay attacks)yesstring
x-request-idheaderRandom ID used to identify the requestyesstring
x-hmac-signatureheaderHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)yesstring
AuthorizationheaderBearer token used for authenticationyesstring (bearerToken)
clientIdpathClient idyesstring
pagination.currentPagequeryPage to be consultednoint
pagination.pageSizequeryNumber of items per pagenoint
Response Example
{
  "content": [
    {
      "name": "Store Name",
      "tradeName": "Trade Store Name",
      "documentNumber": "40486138000167",
      "pixKey": "d60e6246-4885-471f-bab7-a3482f48d68b",
      "pixFee": {
        "amount": 0,
        "percentage": 2,
        "max": 0,
        "min": 0
      },
      "settlement": {
        "bankAccount": {
          "accountNumber": "12345-1",
          "agency": "1234",
          "bankCompeCode": "123",
          "document": {
            "number": "60.664.745/0001-87",
            "type": "CNPJ"
          },
          "ispb": "00000000",
          "type": 1
        },
        "pixKey": null
      },
      "status": "string",
      "hasAutomaticSettlement": true,
      "pspClientId": "7a2a1ed1-aa51-4a71-9b18-0ba6f6bcfee1",
      "pspClientSecret": "2ccd83fc-34ba-4a21-97ca-bef027cc2c70"
    }
  ],
  "totalElements": 1
}

GET /v1/apm/pix/accounts

Query an integrator's accounts.

Request Fields
NameLocated inDescriptionMandatoryType
apikeyheaderAPI Keyyesstring
x-timestampheaderDate/time of the request (used to prevent replay attacks)yesstring
x-request-idheaderRandom ID used to identify the requestyesstring
x-hmac-signatureheaderHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)yesstring
AuthorizationheaderBearer token used for authenticationyesstring (bearerToken)
pagination.currentPagequeryPage to be consultednoint
pagination.pageSizequeryNumber of items per pagenoint
Response Example
{
  "content": [
    {
      "name": "Store Name",
      "tradeName": "Trade Store Name",
      "documentNumber": "40486138000167",
      "pixKey": "d60e6246-4885-471f-bab7-a3482f48d68b",
      "pixFee": {
        "amount": 0,
        "percentage": 2,
        "max": 0,
        "min": 0
      },
      "settlement": {
        "bankAccount": {
          "accountNumber": "12345-1",
          "agency": "1234",
          "bankCompeCode": "123",
          "document": {
            "number": "60.664.745/0001-87",
            "type": "CNPJ"
          },
          "ispb": "00000000",
          "type": 1
        },
        "pixKey": null
      },
      "status": "string",
      "hasAutomaticSettlement": true,
      "pspClientId": "7a2a1ed1-aa51-4a71-9b18-0ba6f6bcfee1",
      "pspClientSecret": "2ccd83fc-34ba-4a21-97ca-bef027cc2c70"
    }
  ],
  "totalElements": 1
}

Additional Information

Response Error Codes
ErrorCodeError
154The fee must have a single value
158Account not found
161Account is not active
162The PixKey must be different from the AddressPixKey
169The settlement account provided is invalid
170A settlement account is mandatory
171It is not possible to inform two settlement accounts
174The settlement account CNPJ is invalid
176It is not possible to change the settlement information for this account
177It is not possible to change the tax rate for this account
178The ISPB code or COMPE code must be filled in
182ISPB is not valid for the informed COMPE code.
187Maximum tax rate must be greater than minimum tax rate
188Minimum tax rate must be reported because maximum tax rate has been reported
189The minimum tax rate must be greater than or equal to zero
190Maximum tax rate must be greater than zero
191The minimum and maximum tax rate should only be reported in the case of an MDR rate
260The minimum tax rate must be equal to or greater than {value}.
261The tax rate must be equal to or greater than {value}.
262It is not possible to specify an account as the settlement destination for a split payment if the specified destination account also has split payments enabled.
263Split settlement destination account not found.
267The destination account for split settlement cannot have split configured.