Notification callbacks
- Credit transactions
- Debit transactions
- Bank payment slip transactions (Boleto)
- Recurring transactions (subscription)
Once you set up the callback URLs, Getnet automatically sends the relevant data to each URL when the specified event occurs. If an error occurs, Getnet resends the information every 15 minutes, up to 4 times.
Keep track of the certificate expiration date for each URL. For a renewal, or to modify any of the URLs you originally stated, contact the Getnet Integration Support Team.
Notification structure
https://YOUR_HOST_EXAMPLE/YOUR_SERVICE_EXAMPLE?query_param_1=valueExample1&query_param_2=valueExample2
Where:https://YOUR_HOST/YOUR_SERVICErefers to one of the 4 callback URLs previously stated.?indicates the beginning of the query section.query_param_1=valueExample1is an example of a query parameter.&connects multiple query parameters.
status query parameter. The value tells you which event triggered the call. Each notification type returns its own set of values:| Notification type | status values returned |
|---|---|
| Credit | APPROVED, AUTHORIZED, PENDING, CONFIRMED, CANCELED, DENIED, ERROR |
| Debit | APPROVED, DENIED, ERROR |
| Bank payment slip (Boleto) — first stage | PENDING, DENIED, ERROR |
| Bank payment slip (Boleto) — second stage | PAID, CANCELED |
| Recurring (subscription) | AUTHORIZED, APPROVED, CONFIRMED, CANCELED, DENIED, ERROR |
| Alternative payment method (Pix) | APPROVED, DENIED, ERROR |
status=DENIED or status=ERROR also carry error_code and description_detail. Branch your handling on error_code, not on the description text. For the full list of codes and what each one means, see Errors._EXAMPLE placeholder with the value your integration receives.Credit notifications
| Query parameters | Description |
|---|---|
| payment_type | (only possible value:) credit |
| customer_id | (customer ID code) |
| order_id | (order number) |
| payment_id | (transaction ID in UUIDv4 format) |
| amount | (transaction amount) |
| status | (possible values depending on transaction-event type:) APPROVED AUTHORIZED PENDING CONFIRMED CANCELED DENIED ERROR |
| number_installments | (number of installments) |
| terminal_nsu | (authorization code generated by the issuer when a transaction is successfully performed) |
| authorization_code | (authorization code generated by Getnet ecommerce system) |
The following tables list the additional query parameters for each specific event.
| Query parameters | Description |
|---|---|
| acquirer_transaction_id | (buyer transaction code) |
| authorization_timestamp | (date and time of the authorization) |
| brand | (card brand) |
| Query parameters | Description |
|---|---|
| acquirer_transaction_id | (buyer transaction code) |
| Query parameters | Description |
|---|---|
| acquirer_transaction_id | (buyer transaction code) |
| description_detail | (description of the error that occurred during the transaction) |
| error_code | (denied or error numeric code) |
Credit request examples
status changed accordingly:status=ERROR:Debit notifications
Shared query parameters for all events
| Query parameters | Description |
|---|---|
| payment_type | (only possible value:) debit |
| customer_id | (customer ID code) |
| order_id | (order number) |
| payment_id | (transaction ID in UUIDv4 format) |
| amount | (transaction amount) |
| status | (possible values depending on transaction-event type:) APPROVED DENIED ERROR |
| brand | (card brand) |
The following tables list the additional query parameters for each specific event.
| Query parameters | Description |
|---|---|
| acquirer_transaction_id | (buyer transaction code) |
| authorization_timestamp | (date and time of the authorization) |
| terminal_nsu | (authorization code generated by the issuer when a transaction is successfully performed) |
| authorization_code | (authorization code generated by Getnet ecommerce system) |
| Query parameters | Description |
|---|---|
| description_detail | (description of the error that occurred during the transaction) |
| error_code | (denied or error numeric code) |
Debit request examples
status=ERROR:Bank payment slip (Boleto) notifications
Getnet sends bank payment slip notifications in two stages. The first-stage notification arrives when the bank payment slip registration is finalized. The second-stage notification arrives when the payment slip is downloaded. Both stages use the same service, but the response fields differ between them.
First stage
| Query parameters | Description |
|---|---|
| payment_type | (only possible value:) boleto |
| order_id | (order number) |
| payment_id | (payment identifier) |
| amount | (bank payment slip amount) |
| status | (possible values depending on transaction-event type:) PENDING DENIED ERROR |
| bank | (bank code of the bank payment slip issuer. Only possible value is Banco Santander) |
| our_number | (our number. If you don’t state it, the issuing bank generates it) |
| typefull_line | (typeful line on the bank payment slip returned by the issuing bank) |
| issue_date | (Issue date, format: DDMMYYYY) |
| expiration_date | (Expiration date, format: DDMMYYYY) |
The following tables list the additional query parameters for each specific event.
| Query parameters | Description |
|---|---|
| id | (bank payment slip identifier, format: UUIDv4. Used to identify the bank payment slip for the download notification) |
| description_detail | (description of the error that occurred during the transaction) |
| error_code | (denied or error numeric code) |
First stage request examples
status=ERROR:Second stage
| Query parameters | Description |
|---|---|
| id | (bank payment slip identifier, format: UUIDv4. Used to identify the bank payment slip for the download notification) |
| amount | (bank payment slip amount) |
| status | (possible values depending on transaction-event type:) PAID CANCELED |
| payment_date | (Date that your customer pays the bank payment slip, format: DDMMYYYY) |
Second stage request examples
Recurring transactions (subscription) notifications
| Query parameters | Description |
|---|---|
| payment_type | (only possible value:) credit |
| customer_id | (customer ID code) |
| order_id | (order number) |
| payment_id | (transaction ID in UUIDv4 format) |
| amount | (transaction amount) |
| status | (possible values depending on transaction-event type:) AUTHORIZED APPROVED CONFIRMED CANCELED DENIED ERROR |
| authorization_timestamp | (date and time of the authorization) |
| acquirer_transaction_id | (buyer transaction code) |
| subscription_id | (subscription identifier, format: UUIDv4) |
| plan_id | (identifier of the plan used in the subscription, format: UUIDv4) |
| charge_id | (charge identifier, format: UUIDv4) |
| number_installments | (number of installments) |
| billing_number | (number of processed installment) |
| brand | (card brand) |
| terminal_nsu | (authorization code generated by the issuer when a transaction is successfully performed) |
| authorization_code | (authorization code generated by Getnet ecommerce system) |
| retry_number | (number of retries) |
The following tables list the additional query parameters for each specific event.
| Query parameters | Description |
|---|---|
| description_detail | (description of the error that occurred during the transaction) |
| error_code | (denied or error numeric code) |
Recurring request examples
status changed accordingly:status=ERROR:Alternative payment method (Pix) notifications
| Query parameters | Description |
|---|---|
| payment_type | (only possible value:) pix |
| customer_id | (customer ID code) |
| order_id | (order number) |
| payment_id | (transaction ID in UUIDv4 format) |
| amount | (transaction amount) |
| status | (possible values depending on transaction-event type:) APPROVED DENIED ERROR |
| transaction_id | (transaction identifier at the PSP institution after generating the QR Code) |
| transaction_timestamp | (Pix transaction date and time, format: ISO) |
| terminal_nsu | (authorization code generated by the issuer when a transaction is successfully performed) |
The following tables list the additional query parameters for each specific event.
| Query parameters | Description |
|---|---|
| payer_psp_name | Payer PSP institution name |
| payer_psp_code | Payer PSP institution code |
| payer_name | Payer name |
| payer_cnpj | CNPJ number of payer for legal entity |
| payer_cpf | Payer CPF number for individuals |
| receiver_psp_name | Receiver PSP institution name |
| receiver_psp_code | Receiver PSP institution code |
| receiver_name | Receiver name |
| receiver_cnpj | CNPJ number of receiver for legal entity |
| receiver_cpf | Receiver CPF number for individuals |
payer_cnpj and receiver_cnpj apply to legal entities. payer_cpf and receiver_cpf apply to individuals.| Query parameters | Description |
|---|---|
| description_detail | (description of the error that occurred during the transaction) |
Pix request examples
status=ERROR:On this page