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

  • 200

    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

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    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"
}