PSP FISERV - API Pix

This documentation details the Fiserv PSP APIs, designed for integration with integrators, enabling the management of operations related to customers, accounts, collections and payments via Pix. The main functionalities include:

  • Authentication: Obtain tokens for all transactions authentication
  • Customer Management: Add, update, view and delete (CRUD) for customers
  • Account Management: Add, update, view and delete (CRUD) accounts
  • Pix Charges Generation: Create Pix charges efficiently and securely, allowing your customers to make payments via Pix
  • Pix Payment Query: View the status and details of payments via Pix for greater control and transparency
  • Refunds: Make payment refunds via Pix efficiently, ensuring customer satisfaction
  • Settlement: Automatically or manual cash-out
  • Webhook Management: Register webhooks to receive automatic notifications about important events such as payment confirmations or refund requests
  • Reports: Generate detailed reports of Pix transactions, facilitating the monitoring of operations and reporting of settlements related to accounts

Table of contents#

📍Auth#

📍Webhooks#

            🔻Callbacks#

📍Customer#

📍Accounts#

📍Transactions#

📍Cash-out#

📍Reports#

📍Additional Information#

        🔻Default error object#
        🔻Default Header#
        🔻HMAC Calculation#
        🔻For testing purposes#

Environments#

Produção

https://connect.latam.fiservapis.com/gateway

Tests

https://connect-cert.latam.fiservapis.com/gateway


#

Autentication#

🔒 /token#

POST#

Get the authentication token.

Parameters#
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
Request example#

application/x-www-form-urlencoded

FieldValor
client_iduser1234
client_secretuserPassword@123
Responses#
CodeDescription
200Returns the access token and expiration information
Response example#
{
"access_token": "your-access-token",
"expires_in": 300
}

#

Webhook#

⬅️ /v1/webhook#

Management of the address to which notifications regarding the completion of customer registration (Know Your Customer process) and confirmation of billing and refund transactions carried out will be sent.

ATTENTION: To update the webhook URL, it is necessary to request it from the Fiserv team, as it is required to whitelist the URL on the proxy.

PUT#

Configure the Integrator's Webhook.

Parameters#
NameLocated inDescriptionMandatoryType
webhookUrlbodyURL that will be called in the callbackyesstring
apikeyheaderAPI Keyyesstring
x-timestampheaderDate/time of the request (used to prevent replay attacks)yesstring
x-request-idheaderRandom ID used to identify the requestsimstring
x-hmac-signatureheaderHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)yesstring
AuthorizationheaderBearer token used for authenticationsimstring (bearerToken)

Request example#

{
"webhookUrl": "https://pix.example.com/api/webhook/"
}
Responses#
CodeDescription
204Webhook for notifications to the integrator.
400Request with invalid format.
503Service Unavailable

GET#

Display the registered URL of the integrator's webhook.

Parameters#
NameLocated inDescriptionMandatoryType
AuthorizationheaderBearer token used for authenticationyesstring (bearerToken)
webhookUrlbodyURL that will be called in the callbackyesstring
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
Responses#
CodeDescription
200Webhook data
503Service Unavailable

DELETE#

Deleting the integrator's webhook.

Parameters#
NameLocated inDescriptionMandatoryType
webhookUrlbodyURL that will be called in the callbackyesstring
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)
Responses#
CodeDescription
204Webhook for Pix notifications canceled.
503Service Unavailable

#

### CALLBACKS

POST /client#

After the customer registration and the KYC process is completed, the URL registered for the webhook receives the following notification:

{
"protocolId":"347acdf2-7b01-4191-acff-36bd23639e43",
"externalProtocolId":"8dd562ee4a7a",
"omniClientId":"f932d207-573c-439c-b444-6ca26afff066",
"document":{
"type":"CNPJ",
"number":"60664745000187"
},
"status":"DONE",
"errors ":[ {
"code":"FEP_123",
"message":"string"
}
]
}

When Status = DONE, indicates that processing has been completed in the final KYC status and the customer information can be requested.

POST /v1/apm/pix/charges#

After the transaction charge is completed, the URL registered in the webhook receives the following notification:

{
"Pix": {
"endToEndId":"D13207930202410252046wrzeq7wrQZ8",
"txid":"D13207930202410252034KgylGnIt2T3",
"chave":"ac2ce947-fa51-4dd1-a4f9-52181bcc971f",
"Status":1,
"OperationType":2
}
}
FieldTypeDescription
Pix.endToEndIdstringEnd to End of payment confirmation
Pix.txidstringTransaction id
Pix.chavestringAccount Pix Key
Pix.StatusstringTransaction Status [1 - Confirmed (Paid) ]
Pix.OperationTypestringTransaction Type (0 – Charge, 1- Refund, 2 – Reverse)

#

Client#

/v1/client#

#

POST#

Adiciona um cliente.

Parameters#
NameLocated inDescriptionTypeMandatory
apikeyheaderAPI Keystringyes
x-timestampheaderDate/time of the request (used to prevent replay attacks)stringyes
x-request-idheaderRandom ID used to identify the requeststringyes
x-hmac-signatureheaderHMAC signature generated by combining the request parameters: Example: HMAC-SHA256( apikey + x-timestamp + requestBody + URL)stringyes
AuthorizationheaderBearer token used for authenticationstring (bearerToken)yes
address.citybodystringClient's city (ISO 3166)yes
address.countrybodystringClient's country (ISO 3166)yes
address.localitybodystringClient's district (ISO 3166)yes
address.numberbodystringClient's address numberno
address.postalCodebodystringClient's ZIP Code addressyes
address.provincebodystringClient's adress Stateyes
address.streetbodystringClient's adress Streetyes
address.subNumberbodystringClient's adress Complementno
document.numberbodystringDocument Numberyes
document.typebodyenumCNPJyes
contact.emailbodystringClient's E-mailyes
contact.phonebodystringClient's Phone numberyes
legalNamebodystringClient's legal nameyes
tradeNamebodystringClient's trade nameyes
averageTicketbodydecimalAverage ticketyes
Request example#
{
"address": {
"city": "string",
"country": "str",
"locality": "string",
"number": "153",
"postalCode": "string",
"province": "string",
"street": "string",
"subNumber": "string"
},
"document": {
"number": "60.664.745/0001-87",
"type": "CNPJ"
},
"contact": {
"email": "user@example.com",
"phone": "string"
},
"legalName": "Fiserv Inc",
"tradeName": "Fiserv",
"averageTicket": 100.00
}
Responses#
NameDescriptionType
clientIdCustomer's unique IDstring
protocolIdRequest protocolstring
Response example#
{
"clientId": "bb41c1e6-654f-4263-83f4-36e37678f548",
"protocolId": "Request protocol"
}

After the client registration a KYC validation will happen asynchronously, and the result will be notified to the configured webhook.

CodeDescription
200OK
400Bad Request
403Forbidden
404Not Found
500Internal Server Error
503Service Unavailable
504Gateway Timeout

/v1/client/{clientId}#

#

GET#

Search for information about the customer's "Know Your Customer" status.

Parameters#
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 idyesstring
webhookUrlbodyURL that will be called in the callbackyesstring
Responses#
{
"kycStatus": "Approved"
}

The KycSytatus can be one of the following:
🔸 APPROVED
🔸 PENDING
🔸 PROCESSING
🔸 REFUSED
🔸 ERROR

Only the APPROVED status can allow the continuation of the accreditation process and the creation of a Pix Account

CodeDescription
200OK
400Bad Request
403Forbidden
404Not Found
500Internal Server Error
503Service Unavailable
504Gateway Timeout

#

Pix Account#

General Information about Account Management#

pixFee#

Pix fee is the fee charged for each transaction made. When the business model is commission-based, fee can be a fixed amount (amount) or MDR - Merchant Discount Rate (percentage) . Alternatively, when the business model is billing, it must not have any value.

Example of a commission-based business model with a fixed fee#

Registered fee for the account: R$ 0,85

Charged value: R$ 30,00

Fee value: R$ 0,85

Net amount: R$ 29,15

Example of a commission-based business model with MDR#

Registered fee for the account: 1%

Charged value: R$ 22,00

Fee value: R$ 0,22

Net amount: R$ 21,78


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

#

POST#

Add a pix account.

Parameters#
FieldLocated inTypeMandatoryDescription
clientIdpathstringyesClient Id
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)
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”
Settlement.holdSettlementbodyboolnoIdentifies if charges are created with settlement hold (default false)
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
userTermsAccept.number.numberbodystringyesCPF of the person making the acceptance
userTermsAccept.document.typebodystringyesAlways “CPF”
userTermsAccept.ipbodystringyesIP Address of the machine that gave the acceptance term
hasAutomaticSettlementbodybooleanyesIndicates if settlement occurs automatically
Request example#
{
"settlement": {
"pixKey": "26770318000145",
"bankAccount": {
"accountNumber": "12345-1",
"agency": "1234",
"bankCompeCode": "341",
"document": {
"number": "60.664.745/0001-87",
"type": "CNPJ"
},
"type": 1
},
"holdSettlement": true
},
"pixFee": {
"amount": 0,
"percentage": 2,
"max": 0,
"min": 0
},
"userTermsAccept": {
"document": {
"number": "60.664.745/0001-87",
"type": "CNPJ"
},
"ip": "198.51.100.42"
},
"hasAutomaticSettlement": true
}
Responses#
CodeDescription
200OK
400Bad Request
401Unauthorized
422Client Error
500Server Error
Response example#
{
"pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd"
}
Possible errors:#
ErrorCodeError
148The account name is invalid
149The account's CNPJ is invalid
154The fee must have a single value
158Account not found
161The account is not activated
162The PixKey must be different from the AddressPixKey
169The settlememt account provided is invalid.
170A settlememt account is mandatory
171It is not possible to inform two settlememt accounts
174The liquidation account of the 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
187Maximum tax rate must be greater than minimum tax rate
188Minimum rate must be reported because maximum 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

/v1/client/{clientId}/apm/pix/account/{pixKey}'#

GET#

Return an account based on the PIX key.

Parameters#
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
Responses#
CodeDescription
200Success
400Bad Request
401Unauthorized
422Client Error
500Server Error
Response example#
{
"name": "Store Name",
"documentNumber": "14821268000107",
"status": 1,
"settlement": {
"pixKey": "26770318000145",
"bankAccount": {
"accountNumber": "12345-1",
"agency": "1234",
"bankCompeCode": "341",
"document": {
"number": "60.664.745/0001-87",
"type": "CNPJ"
},
"type": 1
},
"holdSettlement": true
},
"pixFee": {
"amount": 0,
"percentage": 2,
"max": 0,
"min": 0
},
"hasAutomaticSettlement": true
}

PUT#

Change a pix account.

Description:#

Endpoint that changes a pix account.

Parameters#
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
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.numberbodystringyesAccount's CNPJ. Must have the same root as the registered CNPJ
Settlement.bankAccount.document.typebodystringyesAlways inform the “CNPJ”
Settlement.holdSettlementbodyboolnoIdentifies if charges are created with liquidation hold (default false)
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
hasAutomaticSettlementbodybooleanyesIndicates if settlement occurs automatically
Request example#
{
"name": "Store name",
"settlement": {
"pixKey": "26770318000145",
"bankAccount": {
"accountNumber": "12345-1",
"agency": "1234",
"bankCompeCode": "341",
"document": {
"number": "60.664.745/0001-87",
"type": "CNPJ"
},
"type": 1
},
"holdSettlement": true
},
"pixFee": {
"amount": 0,
"percentage": 2,
"max": 0,
"min": 0
},
"hasAutomaticSettlement": true
}
Responses#
CodeDescription
204No Content
400Bad Request
401Unauthorized
422Client Error
500Server Error
ErrorCodeError
154The fee must have a single value
158Account not found
161Account is not active
162The PixKey must be different from the AddressPixKey
169The settlememt account provided is invalid
170A settlememt account is mandatory
171It is not possible to inform two settlememt 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
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

DELETE#

Delete a pix account.

Description:#

Endpoint to delete a pix account.

Parameters#
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
Responses#
CodeDescription
204No Content
400Bad Request
401Unauthorized
422Client Error
500Server Error

/v2/client/{clientId}/apm/pix/account/balance/{pixKey} ´#

GET#

Consult the account balance by pix key.

Parameters#
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
Responses#
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
}

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

GET#

View a customer's accounts.

Parameters#
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
Responses#
CodeDescription
200OK
400Bad Request
401Unauthorized
422Client Error
500Server Error
Response example#
{
"content": [
{
"name": "Store name",
"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": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd"
},
"status": "string",
"hasAutomaticSettlement": true
}
],
"totalElements": 10
}

/v1/apm/pix/accounts#

GET#

Query an integrator's accounts.

Parameters#
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
Responses#
CodeDescription
200OK
400Bad Request
401Unauthorized
422Client Error
500Server Error
Response example#
{
"content": [
{
"name": "Store name",
"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": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd"
},
"status": "string",
"hasAutomaticSettlement": true
}
],
"totalElements": 10
}

#

## Pix Transaction

/v1/apm/pix/charge#

#

POST#

Create pix charge.

Description:#

Endpoint to create an pix charge.

Parameters#
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)
amountbodyCharge amountyesdecimal
pixKeybodyAccount's Pix Keyyesstring
returnQrCodeImagebodyIndicator that returns the qrCode image (false default)yesbool
expirationbodyQRcode expiration time in secondsyesint
Request example#
{
"expiration": 3600,
"amount": "18.92",
"returnQrCodeImage": false,
"additionalInfo": [
{
"name": "Title of information",
"value": "Content of information"
}
],
"pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd",
"payerDocument": "36264164615"
}
Responses#
FieldTypeAdditional Information
txidstringTransaction ID generated
locationstringLocated in of the generated QRCode
qrCodeImageboolBase64 image of the QRcode (Only when returnQrCodeImage= true is specified)
statusstringTransaction status. Possible values: 0- PENDING;1 - CONFIRMED; 2 - CANCELLED
amountdecimalTransaction value
pixCopyPastestringCopy and paste code from Pix
pixKeystringPix key used for the transaction
CodeDescription
200Pix charge created
400Request with invalid format
404The requested content was not found
503This service is currently unavailable
Response example#
{
"txid": "ALzljVvS6DWp9ubnflS3nnCdeVBg7AxVt2p",
"location": "pix.example.com/qr/v2/2353c790eefb11eaadc10242ac120002",
"qrCodeImage": null,
"status": "PENDING",
"amount": "18.92",
"additionalInfo": [
{
"name": "Title of information",
"value": "Content of information"
}
],
"pixCopyPaste": "00020101021226830014BR.GOV.BCB.PIX2561api-h.rendimento.com.br/q/v2/aeafe31da3ef48c295e6353d703415da5204000053039865802BR5915Teste-automacao6009SAO PAULO61081125553262070503***6304BE8A",
"pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd"
}
ErrorDescription
157This charge does not have a fee amount
96The settlement schedule date is less than the current date
153The account for this pix key is not active
157This charge does not have a fee amount
158Account not found
167Account suspended for billing processing
193The charge cannot be null or negative

/v1/apm/pix/charge/{txid}'#

GET#

Check immediate billing through a specific txid.

Parameters#
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)
txidpathTransaction Idyesstring
returnQrCodeImagequeryIndicator whether QrCode should be generated in base64 or notnoboolean
Responses#
{
"txid": "string",
"amount": 99.99,
"status": "status",
"location": "string",
"pixCopyAndPaste": "string",
"qrCodeImage": "string"
}
CodeDescription
200Data from a immediate pix charge
404The requested content was not found
503This service is currently unavailable
Response example#
{
"expiration": 3600,
"amount": "18.92",
"returnQrCodeImage": false,
"additionalInfo": [
{
"name": "Title of information",
"value": "Content of information"
}
],
"pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd",
"txid": "ALzljVvS6DWp9ubnflS3nnCdeVBg7AxVt2p",
"location": "pix.example.com/qr/v2/2353c790eefb11eaadc10242ac120002",
"qrCodeImage": null,
"status": "1",
"pixCopyPaste": "00020101021226830014BR.GOV.BCB.PIX2561api-h.rendimento.com.br/q/v2/aeafe31da3ef48c295e6353d703415da5204000053039865802BR5915Teste-automacao6009SAO PAULO61081125553262070503***6304BE8A",
"createdAt": "2025-06-06T04:32:06.055Z",
"pix": [
{
"endToEndId": "EDARFlxoxT0zBhFBqEIC6c2QQCo2d54U",
"amount": "231.39",
"pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd",
"confirmedAt": "2025-06-06T04:32:06.055Z",
"fraudReproval": null,
"reverses": [
{
"txid": "DLzljVvS6DWp9ubnflS3nnCdeVBg7AxVt2h",
"endToEndId": "D12345678202009091000abcde123456",
"amount": "231.39",
"confirmedAt": "2025-06-06T04:32:06.055Z",
"status": "1"
}
]
}
]
}

/v1/apm/pix/charge/cancel/{txid} '#

PATCH#

Cancel immediate charge.

Parameters#
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)
txidpathyesstring
Responses#
CodeDescription
204No Content
400Request with invalid format
404The requested content was not found
503This service is currently unavailable

/v1/apm/pix/charges#

GET#

Check the list of immediate charges using parameters such as start, end, CPF, CNPJ and status.

Parameters#
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)
startDatequeryStart date to filter the queryyestimezone (ISO 8601)
endDatequeryEnd date to filter the queryyestimezone (ISO 8601)
pixKeyqueryAccount Pix Keynostring
documentNumberqueryCNPJ numbernostring
statusqueryStatus of the transactionPossible values: 1 - CONFIRMED; 2 - CANCELLED
nostring
pagination.currentPagequerynoint
pagination.pageSizequerynoint
Responses#
CodeDescription
200List of pix charges
503This service is currently unavailable

Response#

PropertyTypeDescription
results.txidstringPix charge unique identifier
results.locationstringPayloads location
results.qrCodeImageboolBase64 of the QrCode image
results.statusstring (enum)Status of the pix charge. Possible values: 0 - PENDING ;1 - CONFIRMED ; 2 - CANCELLED
results.amountdecimalAmount of the pix charge (BRL)
results.pixCopyPastestringCopy and paste code
results.pixKeystringInternal pix key of the account
results.expirationintLifetime of the pix charge before expiration, specified in seconds
results.createdAtDateTime (ISO 8601)Date and time of creation
results.pix.confirmedAtDateTime (ISO 8601)Date and time of confirmation
results.pix.endToEndIdstringUnique end to end id for the pix charge
results.pix.amountdecimalAmount of the payment (BRL)
results.pix.pixKeystringPix key of the receiver
pix.fraudReprovalenumIn case of reproval by the fraud prevention engine, this field will be populated with the following value: 1 - Fraud Suspected
results.pix.reverses.txidstringRefunds unique identifier
results.pix.reverses.endToEndIdstringUnique end to end id for the refund
results.pix.reverses.amountdecimalRefunded amount (BRL)
results.pix.reverses.confirmedAtDateTime (ISO 8601)Date and time of refund
results.pix.reverses.statusint (enum)Status of the refund. Possible values: 1 - CONFIRMED 2 - CANCELLED
pagination.currentPageintCurrent page retrieved
pagination.pageSizeintCurrent page size
pagination.totalPagesintTotal pages to be retrieved
pagination.totalItemsintTotal items to be retrieved
criteria.startDateDateTime (ISO 8601)Filter transactions after this date and time
criteria.endDateDateTime (ISO 8601)Filter transactions before this date and time
criteria.pixKeystringPix key of the account
criteria.documentNumberstringDocument number of the account
criteria.statusstringStatus of the transaction values: 0 - PENDING; 1 - CONFIRMED; 2 - CANCELLED
Response examples#
{
"criteria": {
"startDate": "2020-04-01T00:00:00Z",
"endDate": "2020-04-01T17:00:00Z",
"pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd",
"documentNumber": "27574383000168",
"status": 1
},
"results": [
{
"expiration": 3600,
"amount": "18.92",
"returnQrCodeImage": false,
"additionalInfo": [
{
"name": "Title of information",
"value": "Content of information"
}
],
"pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd",
"txid": "ALzljVvS6DWp9ubnflS3nnCdeVBg7AxVt2p",
"location": "pix.example.com/qr/v2/2353c790eefb11eaadc10242ac120002",
"qrCodeImage": null,
"status": "PENDING",
"pixCopyPaste": "00020101021226830014BR.GOV.BCB.PIX2561api-h.rendimento.com.br/q/v2/aeafe31da3ef48c295e6353d703415da5204000053039865802BR5915Teste-automacao6009SAO PAULO61081125553262070503***6304BE8A",
"createdAt": "2025-06-06T04:35:23.707Z",
"pix": [
{
"endToEndId": "EDARFlxoxT0zBhFBqEIC6c2QQCo2d54U",
"amount": "231.39",
"pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd",
"confirmedAt": "2025-06-06T04:35:23.707Z",
"fraudReproval": null,
"reverses": [
{
"txid": "DLzljVvS6DWp9ubnflS3nnCdeVBg7AxVt2h",
"endToEndId": "D12345678202009091000abcde123456",
"amount": "231.39",
"confirmedAt": "2025-06-06T04:35:23.707Z",
"status": "PENDING"
}
]
}
]
}
],
"pagination": {
"currentPage": 1,
"pageSize": 1,
"totalPages": 1,
"totalItems": 1
}
}

/v1/apm/pix/{endToEndId}/reverse/{txid} '#

#

PUT#

Request a refund.

Parameters#
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)
endToEndIdpathEnd to end transaction codeyesstring
txidpathTransaction Idyesstring
amountbodyTransaction amountyesstring
Request example#
{
"amount": "231.39"
}
Responses#
CodeDescription
200Return data
400Request with invalid format
404The requested content was not found
503This service is currently unavailable
Response example#
{
"txid": "DLzljVvS6DWp9ubnflS3nnCdeVBg7AxVt2h",
"endToEndId": "D12345678202009091000abcde123456",
"amount": "231.39",
"confirmedAt": "2025-06-06T04:37:07.173Z",
"status": "PENDING"
}

GET#

Check return using a Pix End To End ID and return ID.

Parameters#
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)
endToEndIdpathPayment End To End Codeyesstring
txidpathTransaction Idyesstring
Responses#
CodeDescription
200Refunds data
404The requested content was not found
503This service is currently unavailable
Response example#
{
"txid": "DLzljVvS6DWp9ubnflS3nnCdeVBg7AxVt2h",
"endToEndId": "D12345678202009091000abcde123456",
"amount": "231.39",
"confirmedAt": "2025-06-06T04:40:25.725Z",
"status": "0"
}

/v1/apm/pix/charge/settlement/hold/{txid} '#

PATCH#

Block the pix charge settlement until it's unblocked.

/v1/apm/pix/charge/settlement/release/{txid}'#

Parameters#

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
txidpathCharge unique identifieryesstring
Responses#
CodeDescription
204No Content
400Request with invalid format
404Request content not found
503Service unavailable

/v1/apm/pix/charge/settlement/release/{txid}'#

PATCH#

Allows the pix charge to be settled in the next settlement window.

Parameters#

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
txidpathCharge unique identifieryesstring
Responses#
CodeDescription
204No Content
400Request with invalid format
404Request content not found
503Service unavailable

#

Cash-out#

/v2/apm/pix/cashout#

POST#

Create pix cashout.

Parameters#
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)
amountbodyAmount to cashout (BRL)yesdecimal
pixKeyqueryInternal pix key of the accountyesstring
receiverPixKeybodyPix key of the receiver, must belong to the receiverDocumentyesbool
receiverDocumentbodyDocument of the receiver, will be validated together with the pix keyyesstring
Request example#
{
"pixKey": "tec7e05d-484e-4814-a432-dde637f84402",
"receiverDocument": "36264164615",
"receiverPixKey": "pix-key-receiver@mail.com",
"amount": 99.99
}
Responses#
FieldTypeAdditional Information
txidstringCashouts unique identifier
Response example#
{
"txid": "2a2cc743-3913-48ea-91fe-13256ab3c3d2"
}

After successfully requesting the cashout operation some validations will be made asynchronously, and the cashout might still be denied. The result from this validation, together with the confirmation key necessary for the confirmation request (next endpoint), will be sent to the webhook .

GET#

Search and retrieve cash-outs. Allows for batch reconciliation.

Parameters#
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)
pixKeyqueryPix key of the accountyesstring
startDatequeryFilter cashouts after the startDateyesDateTime (ISO 8601)
endDatequeryFilter cashouts before the endDateyesDateTime (ISO 8601)
statusqueryStatus of the cashout.yesPossible values: 0 - Pending (awaiting confirmation) 1 – Processing (processing payment) 2 - Confirmed (paid) 3 - Failed (failed payment) 4 - Expired (expired confirmation) 5 – Requested (Requested)
Responses#
FieldTypeAdditional Information
result.txidstringUnique identifier of the cashout operation
result.endToEndIdstringUnique end to end id for the pix transaction, will always be null until the confirmation of the cashout (item X+1)
result.createdAtDateTime (ISO 8601)Date and time of the cashout creation
result.confirmedAtDateTime (ISO 8601)Date and time of the cashout confirmation
result.pixKeystringInternal accounts pix key
result.receiverDocumentstringDocument of the cashouts receiver
result.receiverPixKeystringPix key of the cashouts receiver
result.amountdecimalAmount of the cashout (BRL)
result.statusint (enum)Status of the cashout. Possible values: 0 - Pending (awaiting confirmation) 1 – Processing (processing payment) 2 - Confirmed (paid) 3 - Failed (failed payment) 4 - Expired (expired confirmation) 5 – Requested (Requested)
result.failReasonint (enum)Fail Reason (Only when status is Failed) 1 - Without limit, 2 - Without balance, 3 - Expired,4 - Concurrency,5 - Processing Fail,6 - Fraud Suspect
pagination.currentPageintCurrent page retrieved
pagination.pageSizeintPage size retrieved
pagination.totalPagesintTotal pages to retrieve
pagination.totalItemsintTotal items to retrieve
Response example#
{
"criteria": {
"startDate": "2025-01-16 09:33:01.573Z",
"endDate": "2025-01-16 09:33:01.573Z",
"pixKey": "b57c7b3c-976b-41f6-a5f6-7cccd86549bd",
"status": 2
},
"result": [
{
"txid": "bec7e05d-484e-4814-a432-dde637f84408",
"endToEndId": "E144654798498498465123",
"createdAt": "2025-01-16 09:33:01.573Z",
"confirmedAt": "2025-01-16 09:33:01.573Z",
"pixKey": "883f75da-1f69-48c4-9444-c32b4bcb3553",
"receiverDocument": "36264164615",
"receiverPixKey": "pix-key-receiver@mail.com",
"amount": 999.99,
"status": 2,
"failReason": null
}
],
"pagination": {
"currentPage": 1,
"pageSize": 10,
"totalPages": 1,
"totalItems": 1
}
}

/v2/apm/pix/cashout/confirm#

POST#

Confirm a pix cashout request with the confirmation key.

Parameters#
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)
txidbodyCashouts unique identifieryesstring
confirmationKeybodyConfirmation key provided in the webhook notification payloadyesstring
Request example#
{
"txid": "bec7e05d-484e-4814-a432-dde637f84408",
"confirmationKey": "4826e6ec-9bd2-4045-b030-f10e519d584a"
}

After the confirmation the cashout can still fail in some scenarios, so another notification will be sent to the configured webhook to inform if the cashout was completed successfully.

Response#
CodeDescription
204No Content

/v2/apm/pix/cashout/{txid}'#

GET#

Retrieve cashout data with the txid. In case of delay or failure of the webhook notification, this endpoint can be used to check the cashout status.

Parameters#
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)
txidpathCashouts unique identifieryesstring
Responses#
FieldTypeAdditional Information
txidstringUnique identifier of the cashout operation
endToEndIdstringUnique end to end id for the pix transaction, will always be null until the confirmation of the cashout
createdAtDateTime (ISO 8601)Date and time of the cashout creation
confirmedAtDateTime (ISO 8601)Date and time of the cashout confirmation
pixKeystringInternal accounts pix key
receiverDocumentstringDocument of the cashouts receiver
receiverPixKeystringPix key of the cashouts receiver
amountdecimalAmount of the cashout (BRL)
statusint (enum)Status of cashout. Possible values: 0 - Pending (awaiting confirmation) 1 – Processing (processing payment) 2 - Confirmed (paid) 3 - Failed (failed payment) 4 - Expired (expired confirmation) 5 – Requested (Requested)
result.failReasonint (enum)Fail Reason (Only when status is Failed). 1 - Without limit; 2 - Without balance; 3 - Expired 4; - Concurrency 5; - Processing Fail; 6 - Fraud Suspect;
Response example#
{
"txid": "bec7e05d-484e-4814-a432-dde637f84408",
"endToEndId": "E144654798498498465123",
"createdAt": "2025-01-16 09:33:01.573Z",
"confirmedAt": "2025-01-16 09:33:01.573Z",
"pixKey": "883f75da-1f69-48c4-9444-c32b4bcb3553",
"receiverDocument": "36264164615",
"receiverPixKey": "pix-key-receiver@mail.com",
"amount": 999.99,
"status": 2,
"failReason": 1
}

#

Reports#

/v1/apm/pix/report/transactions#

GET#

Consult list of charges.

Parameters#
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)
pixKeyqueryPix Keynostring
documentNumberqueryClient idnostring
startDatequeryBilling start date and timenotimezone (ISO 8601)
endDatequeryBilling end date and timenotimezone (ISO 8601)
settlementStartDatequerySettlement start date and timenotimezone (ISO 8601)
settlementEndDatequerySettlement end date and timenotimezone (ISO 8601)
txidqueryTransaction Idnostring
endToEndqueryEnd to End Confirmation Codenostring
pagination.currentPagequeryCurrent pageyesinteger
pagination.pageSizequeryNumber of items per pageyesinteger
Responses#
CodeDescription
200Success
400Bad Request
401Unauthorized
422Client Error
500Server Error
Response example#
{
"criteria": {
"startDate": "2020-04-01T00:00:00Z",
"endDate": "2020-04-01T17:00:00Z",
"pixKey": "string",
"documentNumber": "string",
"status": "string"
},
"results": [
{
"expiration": 3600,
"amount": "2221.39",
"returnQrCodeImage": true,
"pixKey": "string",
"additionalInfo": [
{
"name": "string",
"value": "string"
}
],
"txid": "69xWbpREB9fvZ5oUr7HPNSlm5r6cclBy3Gk0",
"location": "pix.example.com/qr/v2/2353c790eefb11eaadc10242ac120002",
"qrCodeImage": "string",
"status": "ATIVA",
"pixCopyPaste": "string",
"createdAt": "2024-12-17T19:42:50.414Z",
"pix": [
{
"endToEndId": "jt86OxM1YwTvUuMsZpjGIhZlcodBS8GD",
"amount": "52.34",
"pixKey": "string",
"confirmedAt": "2024-12-17T19:42:50.414Z",
"reverses": [
{
"txid": "kXrK2W2mFxOQ8NEXH",
"endToEndId": "D12345678202009091000abcde123456",
"amount": "7163749810.26",
"confirmedAt": "2024-12-17T19:42:50.414Z",
"status": "1"
}
]
}
]
}
],
"pagination": {
"currentPage": 0,
"pageSize": 1,
"totalPages": 1,
"totalItems": 0
}
}

/v2/apm/pix/report/transactions#

GET#

Search transactions statement

Parameters#
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)
pixKeyqueryPix key of the accountnostring
documentNumberqueryDocument number of the accountnostring
startDatequeryFilter transactions after this date and timeyesDateTime (ISO 8601)
endDatequeryFilter transactions before this date and timeyesDateTime (ISO 8601)
txidqueryTransactions unique identifiernostring
endToEndIdqueryPix transaction unique end to end identifiernostring
pagination.currentPagequeryPage number to be retrievedyesinteger
pagination.pageSizequeryPage size to be retrievedyesinteger
Responses#
FieldTypeAdditional Information
result.txidstringTransactions unique identifier
result.amountdecimalAmount of the transaction (BRL)
result.movementTypeint (enum)Type of movement Possible values: 0 - Debit 1 - Credit
result.transactionTypeintType of transaction Possible values: 0 - PixCharge 1 - PixRefund 2 - PixReverse 3 - PixOrderAutomatic 4 - PixSpecialRefund 5 - PixSpecialRefundReverse 6 - PixOrderManual 7 - Fee 8 - FeeReverse 9 - PixChargeLock 10 - PixChargeUnlock
result.accountCnpjstringAccount CNPJ
result.createdAtDateTime (ISO 8601)Date and time of creation
result.endToEndIdstringUnique end to end id for the transaction
result.fraudReprovalenumIn case of reproval by the fraud prevention engine, this field will be populated with the following values: 1 - Fraud Suspected
result.thirdPartyNamestringName of the third party (external) involved in the transaction
pagination.currentPageintCurrent page retrieved
pagination.pageSizeintCurrent page size
pagination.totalPagesintTotal pages to be retrieved
pagination.totalItemsintTotal items to be retrieved
criteria.startDateDateTime (ISO 8601)Filter transactions after this date and time
criteria.endDateDateTime (ISO 8601)Filter transactions before this date and time
criteria.pixKeystringPix key of the account
criteria.documentNumberstringDocument number of the account
criteria.txidstringTransactions unique identifier
criteria.endToEndIdstringUnique end to end id for the transaction
summary.sumAmountCreditsdecimalSum of all credits for the searched filters
summary.sumAmountDebitsdecimalSum of all debits for the searched filters
Responses#
CodeDescription
200Success
400Bad Request
401Unauthorized
422Client Error
500Server Error
Response example#
{
"criteria": {
"pixKey": "4d2dd55d-d1ab-492b-868e-6b1a2791dc0b",
"documentNumber": "14821268000107",
"startDate": "2025-01-01",
"endDate": "2029-12-31",
"txid": "2a2cc743-3913-48ea-91fe-13256ab3c3d2",
"endToEndId": "E144654798498498465123"
},
"result": [
{
"createdAt": "2025-06-06T04:57:20.882Z",
"movementType": 1,
"transactionType": 1,
"amount": 99.99,
"endToEndId": "EDARFlxoxT0zBhFBqEIC6c2QQCo2d54U",
"txid": "42474ba2-fd99-43b9-b688-52fb7a74106d",
"accountCnpj": "14821268000107",
"thirdPartyName": "John Mary",
"fraudReproval": 1
}
],
"summary": {
"sumAmountCredits": 99.99,
"sumAmountDebits": 0
},
"pagination": {
"currentPage": 1,
"pageSize": 1,
"totalPages": 1,
"totalItems": 1
}
}

/v1/apm/pix/report/settlements#

GET#

Consult the list of liquidations.

Parameters#
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)
pixKeyqueryAccount's Pix Keynostring
documentNumberqueryCNPJ numbernostring
startDatequeryStart date for consultationnotimezone (ISO 8601)
endDatequeryEnd date for consultationnotimezone (ISO 8601)
statusquerynoGetLiquidationsInStatus
pagination.currentPagequeryCurrent Pageyesinteger
pagination.pageSizequeryItens per pagenointeger

#

Get Liquidations Status#

CodeStatus
0Pending
1Confirmed
2Fail
Responses#
CodeDescription
200Success
400Bad Request
401Unauthorized
422Client Error
500Server Error
Response example#
{
"criteria": {
"pixKey": "string",
"documentNumber": "string",
"startDate": "string",
"endDate": "string",
"status": "string"
},
"results": [
{
"totalAmount": 0,
"totalGrossAmount": 0,
"totalFeeAmount": 0,
"status": 0,
"errorMessage": "string",
"createdAt": "2024-12-17T20:17:24.421Z",
"endToEnd": "string",
"settlement": {
"pixKey": "string",
"bankAccount": {
"accountNumber": "12345-1",
"agency": "1234",
"bankCompeCode": "341",
"document": {
"number": "60.664.745/0001-87",
"type": "CNPJ"
},
"type": 1
}
}
}
],
"pagination": {
"currentPage": 0,
"pageSize": 1,
"totalPages": 1,
"totalItems": 0
}
}

#

Additional Information#

Default Header#

Some information is required in all requests, they are:

HeaderDetalhes
AuthorizationAuthentication token. For more information, check Token item from this document
apikeyProvided by Fiserv after integrated accreditation
x-timestampTimestamp of the request. Also used to generate the HMAC signature. For more information, check HMAC Calculation item from this document
x-hmac-signatureGenerated HMAC. For more information, check HMAC Calculation item from this document
x-request-idRandom request ID

#

HMAC Calculation#

The HMAC must be calculated using the SHA256 algorithm and the private key that will be provided by Fiserv, containing the following concatenated fields:

APIKEY + TIMESTAMP + REQUEST_BODY + URL_PATH

Below is an example of a postman script that generates the indicated headers according to the specification:

var CryptoJS = require("crypto-js");
function setHMACAuth(request) {
const currentDate = new Date();
var API_KEY = pm.collectionVariables.get('apikey');
var SECRET = pm.collectionVariables.get('secret');
var requestId = generateUUID();
const timestamp = currentDate.getTime().toString();
rawData=API_KEY+timestamp+request.body.toString()+'/'+pm.request.url.path.toString().replaceAll(',','/');;
var signedValue = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, SECRET).update(rawData).finalize();
hashedStringRequest = CryptoJS.enc.Base64.stringify(signedValue);
pm.request.headers.add({key:"x-timestamp",value:timestamp});
pm.request.headers.add({key:"x-hmac-signature",value:hashedStringRequest});
pm.request.headers.add({key:"x-request-id",value:requestId});
}
function generateUUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
}
setHMACAuth(pm.request);

#

Default error object#

All errors handled are returned in a standard format, which is as follows:

{
"message": "Error Message",
"details": [
{
"errorCode": 0,
"error": "Error Description"
}
]
}

#

Tests#

PUT /utils/ ordem-pagar#

Simulates the payment of a pix charge in the sandbox environment.

Parâmetros da requisição#
NomeLocalizado emDescriçãoObrigatórioTipo
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)
qrCodebodyPix chanrge copy and paste code (QRCode)yesstring
Request example#
{
"qrCode": "00020101021226830014BR.GOV.BCB.PIX2561api-h.rendimento.com.br/q/v2/28d1eeb09673415ea5ad1c3c2793fbc45204000053039865802BR5914QRCOeAccount6009SAO PAULO61081125553262070503***6304AE83",
}