v2.1.67
Updated APIs: List contracts, Retrieve contract and EOR Benefits by country
Updated: List of contracts and Retrieve a single contract APIs
Introduced new query parameter expand
as optional
A new field has been introduced to both of these APIs to include cost centers associated with a contract in the response.
Endpoints: GET /rest/v2/contracts
and GET /rest/v2/contracts/{contract_id}
API references: List of contracts and Retrieve a single contract
Details
By Default, cost_centers
object is optional in contracts payload. To include it, make sure to set expand
query parameter to cost_centers
value.
Example [List of contracts]
curl --location 'https://api.letsdeel.com/rest/v2/contracts?expand=cost_centers' \
--header 'Authorization: Bearer {API_TOKEN}'
Example [Retrieve a single contract]
curl --location 'https://api.letsdeel.com/rest/v2/contracts/{{contract_id}}?expand=cost_centers' \
--header 'Authorization: Bearer {API_TOKEN}'
Updated: Get list of benefits per country API
Introduced new response field is_discriminatory
and updated existing is_mandatory
field
A new is_discriminatory
field has been introduced to response payload, which specifies if a benefit is discriminatory. Existing is_mandatory
field no longer considers benefit discriminatory data.
- is_discriminatory: Represents if benefit is discriminatory
- is_mandatory: Represents if benefit is mandatory
Endpoint: GET /v2/eor/benefits
API Reference: Get list of benefits per country