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

invoice.create_for_charge_items_and_charges asks for billing_address #40

Closed
dveldhoen opened this issue Mar 25, 2024 · 2 comments
Closed

Comments

@dveldhoen
Copy link

Description of the Bug

When calling this function: 'invoice.create_for_charge_items_and_charges asks for billing_address', I get an error stating: 'billing_address should be specified'. Even though I provide a customer_id.

I just want to create an invoice for an existing customer for an existing charge, by it's unique id.

Steps to reproduce

Just call the function like in the code snippit.

Expected Behavior

When I use the REST/CURL api https://{site}.chargebee.com/api/v2/invoices/create_for_charge_items_and_charges I don't get this error and it works as expected.

Code Snippets (if applicable)

await chargebee.invoice
      .create_for_charge_items_and_charges({
        customer_id: "123",
        item_tiers: [
          {
            item_price_id: 'sample-charge-1',
          },
        ],
        discounts: [], // This field is mandatory, which is also weird
      })
      .request();

Operating System

macOS

Language version

Node 20.11.0

Library version

2.34.0

Additional context

No response

Copy link

Hello @dveldhoen, thank you for raising the issue. Your contribution is greatly appreciated and we look forward to addressing it.

@dveldhoen
Copy link
Author

Apologies, issue came from another function. Can be closed.

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