cancel
Showing results for 
Search instead for 
Did you mean: 

Increase invoice num based on what already exists

How can I grab the last invoice number and then increase that by 1 number? Is this possible? I am using DPM/SIM with C# in Visual Studio.

rockon77
Contributor
5 REPLIES 5

Authorize.net don't generate invoice#, you pass it to them.

RaynorC1emen7
Expert

Hm okay. I just wonder how my program can generate the next number (ie if the last one was 1000, the next one should be 1001). There is no way to see what the last invoice number sent was? 

Is you system. You don't know what you send? You could hire some developers

http://www.authorize.net/solutions/merchantsolutions/merchantservices/certifieddeveloperdirectory/

Thanks. I will be developing myself. I am just wondering how I can pull the last entered invoicenum from Authorize.Net's API

Wouldn't you know the invoice since you pass it to authorize.net? authorize.net don't keep track of your transaction.

You could use the http://developer.authorize.net/api/reference/index.html#transaction-reporting api to loop thru all your unsettled transaction, althought it only return 1000

http://developer.authorize.net/api/reference/index.html#transaction-reporting-get-unsettled-transact...

or if you saved your transactionID that return from authorize.net you could use

http://developer.authorize.net/api/reference/index.html#transaction-reporting-get-transaction-detail...