OK
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payment_schedules' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "active": true, "frequency": "Weekly", "firstPeriodEnd": "2019-08-24", "firstPayday": "2019-08-24", "secondPayday": "2019-08-24" }'
{ "id": "string", "companyId": "string", "active": true, "name": "string", "frequency": "Weekly", "firstPeriodEnd": "2019-08-24T14:15:22Z", "firstPayday": "2019-08-24T14:15:22Z", "secondPayday": "2019-08-24T14:15:22Z" }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payment_schedules?active=true&id=string&page=1&pageSize=10'
{ "hasResources": true, "totalResources": 0, "totalPages": 0, "pageSize": 0, "currentPage": 0, "previousPage": 0, "nextPage": 0, "results": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payment_schedules/{paymentScheduleId}'
{ "id": "string", "companyId": "string", "active": true, "name": "string", "frequency": "Weekly", "firstPeriodEnd": "2019-08-24T14:15:22Z", "firstPayday": "2019-08-24T14:15:22Z", "secondPayday": "2019-08-24T14:15:22Z" }
curl -i -X PATCH \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payment_schedules/{paymentScheduleId}' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "frequency": "Weekly", "firstPeriodEnd": "2019-08-24", "firstPayday": "2019-08-24", "secondPayday": "2019-08-24", "active": true }'
{ "id": "string", "companyId": "string", "active": true, "name": "string", "frequency": "Weekly", "firstPeriodEnd": "2019-08-24T14:15:22Z", "firstPayday": "2019-08-24T14:15:22Z", "secondPayday": "2019-08-24T14:15:22Z" }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payment_schedules/{paymentScheduleId}/paydays?startDate=2019-08-24'
{ "previousPage": "string", "nextPage": "string", "results": [ { … } ] }