All POST and PUT requests should send the Content-Type
header with the appropriate value.
Supported types:
Example:
curl -u email:password
-H 'Content-Type: application/json'
-d '{"name": "new name"}'
https://app.paymoapp.com/api/projects/12345
In case of XML requests, the params should be wrapped inside a <request/>
tag.
Example:
curl -u email:password
-H 'Content-Type: text/xml'
-d '<request><name>new name</name></request>'
https://app.paymoapp.com/api/projects/12345
Example:
curl -u email:password
-H 'Content-Type: application/x-www-form-urlencoded'
-d 'name=new%20name'
https://app.paymoapp.com/api/projects/12345
This content type is used when uploading files.
The format of the response is specified by the Accept
header.
The options are:
Accept: application/json
for getting the response in JSON format.Accept: text/xml
for XML format.
If Accept
header is not specified, the response will be in JSON format by default.
Additionally, for reports, invoices, estimates, expenses there is a PDF version of the document. You can get it by adding a format=pdf
param to the query string.
For reports, adding format=xlsx
will return the report in MS Excel format.