Skip to content

Date and time format problem #28

@maxguru

Description

@maxguru

According to https://github.com/paymoapp/api/blob/master/sections/datetime.md, date and time data needs to have ISO 8601 format. However, when I try it, it seems to work correctly only with Unix timestamps, actual ISO 8601 values do not work.

Demo:

$ curl -u xxxxxxxxxxxx:X  -H 'Accept: application/json' "https://app.paymoapp.com/api/clients?where=updated_on%3E%3D2016-01-01T01%3A01%3A01Z%20and%20updated_on%3C2017-06-01T01%3A01%3A01Z"
{"clients":[]}
$ curl -u xxxxxxxxxxxx:X  -H 'Accept: application/json' "https://app.paymoapp.com/api/clients?where=updated_on%3E%3D1451610061%20and%20updated_on%3C1496278861"
{"clients":[{"id":...............]}

By the way, if one forgets to URL-encode the where value, the API silently fails. It should probably return some kind of error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions