Good evening team,
I wanted to let you know these inconsistencies that I found in the first tests that I was doing of the Rebill api and the existing documentation.
1. Incorrect enum in Create Payment Link
In the POST /payment-links endpoint documentation(https://docs.rebill.com/api/reference/payment-links#create-a-payment-link), it states that paymentMethods.methods accepts the values: ('card', 'transfer', 'cash').
However, in the actual responses, the correct value is 'bank_transfer' instead of 'transfer'. The documentation should be updated to: ('card', 'bank_transfer', 'cash').
2. Different response structure in List Plans
The GET /plans endpoint(https://docs.rebill.com/api/reference/plans#list-plans) documents that the response has the structure:
{ "data": [...], "total": 2, "limit": 10, "offset": 0 }However, the actual response has a completely different structure:
{ "records": [...], "pagination": { "totalItems": 3, "totalPages": 1, "currentPage": 1, "itemsPerPage": 10, "hasNextPage": false, "hasPreviousPage": false } }3. Validation error in List Plans
When sending a request to the GET /plans endpoint with the body:
{ "pagination": {...}, "filters": { "status": "active" } }I get the error: "value.map is not a function". This suggests that there is a problem in the validation of the input parameters.
Please authenticate to join the conversation.
Planned
📥 Feedback
3 months ago

Marcos Sequeira
Get notified by email when there are changes.
Planned
📥 Feedback
3 months ago

Marcos Sequeira
Get notified by email when there are changes.