Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customers.Invoices.ListBreakdowns does not respect the CustomerInvoiceListBreakdownsParams.NextPage param #54

Open
dwillson opened this issue Nov 21, 2024 · 0 comments

Comments

@dwillson
Copy link

ListBreakdowns does not appear to be applying the next_page parameter.
This does not seem specific to the SDK as the behavior also reproduces against the API directly.

API Call

/customers/fb3fe2de-6b2f-4e8e-a0b2-70c6cf621919/invoices/breakdowns?limit=1&next_page=7b226e6578745f72616e67655f637572736f72223a7b2273746172745f74696d657374616d70223a22323032342d31312d31355430303a30303a30302e3030305a227d7d&ending_before=2024-11-21T00:00:00Z&starting_on=2024-11-14T00:00:00Z

Response

{
    "data": [
        {
            "id": "0d68bc3e-b1da-5cbd-b29e-cc01b5786323",
            "start_timestamp": "2024-11-01T00:00:00+00:00",
            "end_timestamp": "2024-12-01T00:00:00+00:00",
            "customer_id": "fb3fe2de-6b2f-4e8e-a0b2-70c6cf621919",
            "customer_custom_fields": {},
            "type": "PLAN_ARREARS",
            "credit_type": {
                "id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
                "name": "USD (cents)"
            },
            "plan_id": "c21df341-805d-45d1-bb8c-23cd6260f806",
            "plan_name": "Astro Hosted Internal (1st)",
            "plan_custom_fields": {},
            "status": "DRAFT",
            "total": 10440,
            "external_invoice": null,
            "subtotal": 10440,
            "line_items": [
                {
                    "total": 10440,
                    "credit_type": {
                        "id": "2714e483-4ff1-48e4-9e25-ac732e8f24f2",
                        "name": "USD (cents)"
                    },
                    "name": "Astro Hosted",
                    "product_id": "c28cb019-2f4c-4d5b-a02d-c145ce0cd67b",
                    "quantity": 1,
                    "custom_fields": {
                        "wd_sales_item": "Astro Hosted - On Demand Usage",
                        "ItemCode": "Astro Hosted - On Demand Usage",
                        "Avalara_Tax_Code": "SW056002",
                        "IsTaxInclusive": "FALSE"
                    },
                    "sub_line_items": [
                        {
                            "charge_id": "7a8fe598-0358-40a9-b716-0e86ccfb4256",
                            "name": "Deployment with Small Scheduler",
                            "subtotal": 840,
                            "price": 35,
                            "quantity": 24,
                            "custom_fields": {}
                        },
                        {
                            "charge_id": "c2750a4a-7846-4bcb-acce-cc301afe0fda",
                            "name": "Dedicated Cluster",
                            "subtotal": 9600,
                            "price": 200,
                            "quantity": 48,
                            "custom_fields": {}
                        }
                    ]
                }
            ],
            "invoice_adjustments": [],
            "custom_fields": {},
            "billable_status": "billable",
            "breakdown_start_timestamp": "2024-11-15T00:00:00.000Z",
            "breakdown_end_timestamp": "2024-11-16T00:00:00.000Z"
        }
    ],
    "next_page": "7b226e6578745f72616e67655f637572736f72223a7b2273746172745f74696d657374616d70223a22323032342d31312d31365430303a30303a30302e3030305a227d7d"
}

Note the next_page token in the request and response are the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant