API DateTime filter parameters

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
OlegVlasov
Contributing User
6 Posts
Contributing User
Contributing User

6Posts

0Kudos

0Solutions

Solved: Go to Solution

API DateTime filter parameters

Hi guys,

Could you please confirm how the Myob API works with datetimes?

1) Did I get it right that the datetime values passed through the $filter parameter are treated on the API backend side as datetime in UTC timezone?
for example:
/GeneralLedger/JournalTransaction?$top=400&$filter=DatePosted ge datetime'2021-03-15T00:00:00Z'
2) Did I get it right that the datetime values in the JSON response from the Myob API endpoints are returned as datetime values in UTC timezone?
for example: "DatePosted""2021-03-17T22:44:56.717"


Regards,
Oleg


1 REPLY 1
Hannah_B
MYOB Moderator
142 Posts
MYOB Moderator
Australia
MYOB Moderator

142Posts

33Kudos

25Solutions

Accepted Solution Solved

Re: API DateTime filter parameters

Hi @OlegVlasov,

 

Thank you for reaching out, Yes you are correct this is treated as UTC timezone with the format "YYYY-MM-DDTHH:MMSmiley FrustratedS" 

 

Let us know if you have any questions, 

 

Thanks, 


Thanks,
@Hannah_B


MYOB API Specialist


MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's



Did my answer help?


Mark it as a Solution

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post