contractor payment updates

  1. Added contractor_payments option to POST '/v1/companies/{company_uuid}/flows'

  2. Added support of Historical Payment in POST contractor_payment

  3. Updated GET contractor_payment/preview endpoint to support an array of contractor payments

    • Returns errors if total amount is greater than 2,000,000 or if not given any contractor payments
  4. Added support of group_by_date in GET contractor_payment endpoint

    • Returns contractor payments by date

Added Contractor Payments Preview

GET /v1/companies/{company_uuid}/contractor_payments/preview

Support add_contractors in company flows

Gusto Embedded now support add_contractors as a flow param for the POST /v1/companies/{company_uuid}/flows endpoint. This will allow users to create new contractors for a company.

Add has_ein field in GET contractor

Added a new field has_ein in GET all contractors and GET a single contractor APIs to determine if the contractor has an employer identification number or not.

Added status field to contractor_payments SHOW endpoint

Added status field to GET contractor_payments endpoint

Added may_cancel field to GET contractor payments

Added a new field may_cancel in GET all contractor payments API to determine if the contractor payment can be cancelled.

Added Payroll Receipt Endpoint

We've added an endpoint for Payroll Receipts. This single endpoint provides all of the data necessary to display a receipt for money moved when paying employees.

Added Contractor Payment Receipt Endpoint

We've added an endpoint for Contractor Payment Receipt. This single endpoint provides all of the data necessary to display a receipt of money moved when paying contractors.

Added new param contractor_uuid to GET contractor payments endpoint

Added contractor_uuid as an optional param for the GET contractor_payments endpoint.
When specified, queries for all contractor payments for that specific contractor.

Added External Payroll Flow to Company Flows Endpoint

We added external_payroll as a flow param for the post-v1-company-flows endpoint. This will allow users to create and access the new External Payrolls flow. This flow is used for creating external payroll records when a company transfers from another payroll provider after the start of the year.