Content types
By default, the API returns a json response, but at the current time, we support the following response formats:json- The default response format.xml- The response in XML format.
Accept header to your request:
Response fields
You can specify which fields to return in the response by using thefields query parameter. This parameter accepts a comma-separated list of fields to include in the response.
For example, to return only the id and name fields in the response, you can use the following query parameter:
Additional fields
You can also include additional fields in the response by using theexpand query parameter. This parameter accepts a comma-separated list of fields to include in the response.
For example, to include the tarif field in the response, you can use the following query parameter:
You can combine the
fields query parameter with the expand query parameter to receive attributes of related resources in the response.