Approve a timesheet and create its scheduled payment

post/timesheets/{id}/approve

Request

  • Base URL: https://api.shorpay.com/v1
  • URL: https://api.shorpay.com/v1/timesheets/{id}/approve
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Headers

Idempotency-Keystring required

Unique intent ID. Preserve across retries; use a new value for an intentional new operation.

Request body

expectedVersionstring required

Response

Success

idstring uuid required
contractIdstring uuid required
status'submitted' | 'approved' | 'rejected' required
periodStartstring date required
periodEndstring date required
unitsWorkedstring required
paymentScheduledDatestring date required
autoPayEnabledboolean required
paymentIdstring uuid nullable required
createdAtstring date-time required
updatedAtstring date-time required
versionstring required

Changes

No recorded changes to this operation across all 1 revision of this API.