question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

paymentService.invoices.create throwing BAD_REQUEST_ERROR (The name format is invalid.)

See original GitHub issue

We started getting the error stated in the title with 400 status.

            const createResponse = await paymentService.invoices.create(data);

Is there any restriction on the customer name length(I tried with 2 character customer name)? If so can you please have it in the api doc if anything like that exists?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kkyusufkcommented, Sep 19, 2022

@gowthamvbhat Thats our business requirement, we do not allow less than 3 characters for first name.

1reaction
kkyusufkcommented, Sep 19, 2022

@gowthamvbhat @manwithsteelnerves You are right! We should add this in our documentation. We will keep this issue open till our documentation is amended.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Invoices REST Service Error "Invalid Operation ...
My Oracle Support Banner. Release Invoices REST Service Error "Invalid Operation Create For The Specified Resource" (Doc ID 2538744.1). Last ...
Read more >
Error codes | Stripe Documentation
In order to create Subscription or Invoice payments with this PaymentMethod, ... The email address is invalid (e.g., not properly formatted).
Read more >
How do I resolve a 400 bad request error using the paypal rest ...
I am entering a random payer first name and last name . Does the name have to exsist? What could be causing the...
Read more >
Error Messages - USAePay
Cardnumber passed length, format and checkdigit tests but didn't ... Error from FDMS Nashville: Invalid Payment Service data found in.
Read more >
B2B Virtual Account Payment Method Error Codes
PP006, Payment amount is invalid. PP188, Maximum invoice limit entered. PP049, Payment expiration date is required and has to be in the valid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found