Home Forums Support Payments duplicated on Json request.

This topic contains 2 replies, has 2 voices, and was last updated by  Hillel Coren 1 year, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #20321

    Paul Mellor

    I have been having trouble getting Payments from Invoice ninja.
    Currently, when I view payments in Invoice Ninja it shows 28 payments. “Showing 1 to 28 of 28 entries”

    When I export it via JSON and XLS it is the same.

    However, when I call it via API I have a Total of 106 records and 8 pages.

    I have checked and Calling it Correctly
    https://xxxxxxxx.com.au/public/api/v1/payments -H X-Ninja-Token=xxxxxxxxxx
    and getting a response.

    “meta”: {
    “pagination”: {
    “total”: 106,
    “count”: 15,
    “per_page”: 15,
    “current_page”: 1,
    “total_pages”: 8,
    “links”: {
    “next”: “https://portal.evergreenblades.com.au/public/api/v1/payments?page=2”


    Paul Mellor

    I found that when i call via the API it also gets the Deleted items as well as when i looked into the database found it had 106 records. most were either “0” amounts or deleted. other than the 28 that were meant to be there.


    Hillel Coren

    Sorry for the late response, my email notification was in my spam folder.

    It sounds like you’ve figured it out, the API returns all records regardless of status.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Posted in: