logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
JEagleton  
#1 Posted : Monday, March 31, 2025 7:13:39 PM(UTC)
JEagleton

Rank: Newbie

Groups: Registered
Joined: 3/31/2025(UTC)
Posts: 2
United States
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"
}
]
}
tony  
#2 Posted : Tuesday, April 15, 2025 1:49:18 PM(UTC)
tony

Rank: Advanced Member

Groups: Registered
Joined: 2/28/2018(UTC)
Posts: 71
United States
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.



JEagleton  
#3 Posted : Tuesday, April 15, 2025 7:03:20 PM(UTC)
JEagleton

Rank: Newbie

Groups: Registered
Joined: 3/31/2025(UTC)
Posts: 2
United States
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.

Users browsing this topic
Guest
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.