Skip to main content

Resend Notification

This article explains how to resend the notification for a new transaction through the REST API.

Make a POST request to the /credit/transactions/{ID_DA_TRANSACAO}/notify endpoint.

With a valid access token, make a request to the (POST/credit/transactions/{TRANSACTION_ID}/notify) endpoint, sending the following parameters:

{
"phone": "CELL_PHONE_NOTIFICATION",
"email": "EMAIL_NOTIFICATION"
}

If everything is right in the request, the response is a JSON with the transaction ID and the link, as follows:

{
"id": "b50ee24c-71eb-4a5d-ade1-41c48b44c240",
"link:": "https://aces.so/example"
}

If an error occurs, the response is a JSON with the error and the error code:

{
"error": {
"code": "40004",
"description": "transaction id is invalid"
}
}

The following is a list of possible errors returned by the service:

HTTP CodeCodeDescriptionReason
40040001error decoding jsonThe data sent does not match the service contract
40040002error validating jsonSome of the information is badly formatted or not filled in
40040004transaction id is invalidThe transaction id is invalid (format)
40040009transaction status is invalidThe transaction status does not allow sending the notification again (already completed)
40040021invalid phoneThe phone is invalid. The default to be followed is 55 DDD NUMBER. Example: 5543999999999
40040022invalid emailThe e-mail is invalid
40340301not allowedThe user does not have permission to perform such an action.
40440401transaction not foundTransaction not found
42940001too many requestsRatelimit reached
50050001internal errorInternal service failure

Any concerns?

Missing something or still need help? If you are already a customer or partner, you can contact us through the Help Center.