OneOff type in API

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
avinash.walkerscott
Posts: 9
Joined: Tue Mar 26, 2024 8:49 pm
Location: New Zealand

OneOff type in API

Post by avinash.walkerscott » Sun Apr 07, 2024 1:21 am

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,
Cheers
Avinash
dan.zhang
Posts: 10
Joined: Fri Mar 01, 2024 4:20 am

Re: OneOff type in API

Post by dan.zhang » Mon Apr 08, 2024 10:21 pm

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
Dan
API Developer | Simpro Software Group
avinash.walkerscott
Posts: 9
Joined: Tue Mar 26, 2024 8:49 pm
Location: New Zealand

Re: OneOff type in API

Post by avinash.walkerscott » Tue Apr 09, 2024 10:51 pm

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,
Cheers
Avinash
dan.zhang
Posts: 10
Joined: Fri Mar 01, 2024 4:20 am

Re: OneOff type in API

Post by dan.zhang » Wed Apr 10, 2024 1:52 am

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
Dan
API Developer | Simpro Software Group
avinash.walkerscott
Posts: 9
Joined: Tue Mar 26, 2024 8:49 pm
Location: New Zealand

Re: OneOff type in API

Post by avinash.walkerscott » Wed Apr 10, 2024 11:38 am

Hi Dan.
Much appreciated. Is there a way to get the list of all oneOff's without using Job Id?

Thanks,
Cheers
Avinash
dan.zhang
Posts: 10
Joined: Fri Mar 01, 2024 4:20 am

Re: OneOff type in API

Post by dan.zhang » Wed Apr 10, 2024 11:01 pm

Hi Avinash,
There's no endpoint to get all the oneoffs without job id.

Regards
Dan
API Developer | Simpro Software Group
Post Reply