Rank: Newbie
Groups: Registered
Joined: 3/31/2025(UTC) Posts: 2  Location: Atlanta
|
Can the API assign the next invoice number automatically?
When sending a simple invoice (below). It will return 'InvoiceNumber is required.'
Must I generate a unique invoice number myself or is there a way the API can do this?
Thanks...
POST /api/centerpoint/arinvoices
{ "companyId": "123", "customerId": "456", "date": "03-31-2025", "invoiceNumber": "", "amount": "3.4", "lines": [ { "salesItemId": "789", "quantity": "1",
"unitPrice": "3.4", "notes": "a note" } ] }
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/28/2018(UTC) Posts: 71  Location: Pennsylvani mostly Was thanked: 9 time(s) in 9 post(s)
|
I apologize for the delay. The answer is that, yes, you have to generate the invoice number.
However, we could make a change to the API to have the invoice number generated.
In CenterPoint, you can assign one or more sequences to a type of transaction. If we made a change, we'd probably add a SequenceId to the A/R Invoice DTO which would tell CenterPoint how to automatically assign an invoice ID.
Does that sound OK? Our interface team meets every two weeks, so I will bring this up in our next meeting.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 3/31/2025(UTC) Posts: 2  Location: Atlanta
|
That sounds great, thank you. We're entering invoices generated from another operations system. Right now I'm adding a text prefix to the front to keep numbers separate from anything else.
The prefix will work for now so we aren't held up. I'll build in the option to specify a SequenceId for later. When this feature gets added, we'll switch to it.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Red Wing Software Developer Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close