Page 1 of 1

OneOff type in API

Posted: Sun Apr 07, 2024 1:21 am
by avinash.walkerscott
Hi team,
We are pulling the invoices from Simpro and we observed that there is no way to identify the OneOff types(Labour or Material) in API. Is there any way to identify that?

Thanks,

Re: OneOff type in API

Posted: Mon Apr 08, 2024 10:21 pm
by dan.zhang
Hey Avinash,

With the contractor invoice endpoint, /api/v1.0/companies/{companyID}/contractorInvoices/{contractorInvoiceID}

you can get the Labour or Material inside the CostCenter section with Material, Labour and LineTotal etc.

Best regards

Re: OneOff type in API

Posted: Tue Apr 09, 2024 10:51 pm
by avinash.walkerscott
Hi Dan.

Thanks for the reply. We are not using the contractor invoices. We are referring to Customer invoices:
/api/v1.0/companies/{companyID}/invoices/{invoiceID}

Thanks,

Re: OneOff type in API

Posted: Wed Apr 10, 2024 1:52 am
by dan.zhang
Hey Avinash,
In the Invoice endpoint the one off type is not available. you can get the type from the job cost center one off item endpoint https://developer.simprogroup.com/apido ... 3d31c01ae8


regards

Re: OneOff type in API

Posted: Wed Apr 10, 2024 11:38 am
by avinash.walkerscott
Hi Dan.
Much appreciated. Is there a way to get the list of all oneOff's without using Job Id?

Thanks,

Re: OneOff type in API

Posted: Wed Apr 10, 2024 11:01 pm
by dan.zhang
Hi Avinash,
There's no endpoint to get all the oneoffs without job id.

Regards