Error Scenarios

Overview

In the previous sections of this documentation, you explored the happy path for enrollment creation, payment scheduling, and payment retries. Naturally, potential errors may arise. By reviewing this guide, you will gain insight into the unhappy paths and learn how to address any issues effectively.

Errors in the Enrollment Creation

As detailed in the Variable Enrollments and Fixed Enrollments sections, you can create a new enrollment by calling the ws/userenrollment API, or the ws/direct API if the enrollment is accompanied by an instant payment.

If your enrollment creation is unsuccessful, you may encounter the following errors:

Response CodeError MessageDescription
BP-UE-03Field %field_name% is required for pix-automaticoThe field mentioned on the message on %field_name% placement is required and can not be null in an enrollment creation
BP-UE-06Field enrollment.country must be a valid country abbreviationThis field is required and can not be null in an enrollment creation
BP-UE-07Field payment_type_code is requiredThe field must be filled with "pix-automatico"
BP-UE-08Field payment_type_code must be validThe field must be filled with "pix-automatico"
BP-UE-09The given payment_type_code is not enabled for this countryThe field payment_type_code must be filled with "pix-automatico" and the field country must be "BR˜
BP-UE-10Payment type not enabled in full mode for merchantPix Automatico payment type must be enabled in your EBANX Dashboard
BP-UE-16This enrollment code already exists, please generate another enrollment code for the customermerchant_enrollment_codemust be a unique enrollment identification. You can't repeat it
BP-UE-23Field enrollment.subscription.frequency is RequiredThis field is required and can not be null in an enrollment creation. Available frequencies are: weekly,monthly, quarterly,semi-annual,annual
BP-UE-24Field enrollment.subscription.start_date must be a future dateThe start_date is the day when the payment that initiates the subscription will be charged, thus it can't be in the past

Errors in the Payment Schedule

After your customer authorized the enrollmrnt creation, scheduling a recurring payment is pretty simple and you can do it through our EBANX Direct API.

To make sure you will have a successful payment, avoid the errors below:

Response CodeError MessageDescription
BP-DR-57Parameter is in an invalid format: due_date. Correct Format: dd/MM/yyyyExpected billing date must follow the format DD/MM/YYYY
BP-DR-58Invalid due_date for pix-automatico: max interval 10 daysExpected billing date (DD/MM/YYYY) must be between 2 and 10 days after the current date
BP-DR-59Invalid due_date for pix-automatico: min interval 2 daysExpected billing date (DD/MM/YYYY) must be between 2 and 10 days after the current date
BP-DR-60Max one payment per cycleThere is a maximum of one payment shcheduled in each cycle. The cycle starts on the start_dateand renews depending on the frequencyset in the enrollment creation
BP-DR-182Enrollment is not accepted, Cannot transactThis error happens because the status of the enrollment is not accepted. It is only possible to create payments for active enrollments

Errors in the Payment Retry

Payment retries for Pix Automatico have strict rules that at this point you have already known: It is possible to request up to three retries within a seven-day window, with a maximum of one retry per day.

If one of this rules is violated, you may see the errors below:

Response CodeError MessageDescription
BP-R-3Payment is not pendingPayments that are already confirmed (CO) or were cancelled (CA) can not be retried, only pending (PE) payments are allowed to be retried.
BP-R-4Payment is not eligible for retryIn the enrollment creation, the retry policy was configured to disallow retries, or the 7-day retry window has passed, making retries no longer possible
BP-R-5Payment was retried todayThere is a maximum of one retry per day
BP-R-6Payment has no available retriesThe maximum of three retries was reached
Last updated on by Sarah Nicolau