Send payslip to its employee by email as pdf

POST /api-v1/payroll/{id}/send-by-email

Headers

Path parameters

  • id integer Required

    id

Responses

  • OK

    Hide response attributes Show response attributes object
    • email string
    • id integer
    • status string

      Values are UNPAID, PAID, PARTIALLY_PAID, WIRED, or NOT_SENT.

  • 400 Bad Request

  • 401 Unauthorized

  • 403 Access Denied

  • 404 Not Found

  • 500 Internal Server Error

POST /api-v1/payroll/{id}/send-by-email
curl \
 -X POST http://wyzio.app/api-v1/payroll/{id}/send-by-email \
 -H "TARGET-ORGANIZATION-ID: 42" \
 -H "WEAL-TOKEN: string"
Response examples (200)
{
  "email": "string",
  "id": 42,
  "status": "UNPAID"
}