Money-out

Pay a payroll run

Pays out an approved payroll run to its staff.

POSThttps://api.klasstack.com/v1/payroll/runs/{id}/pay

  • moneyOut:write
  • Billable
  • Idempotency-Key required
  • Live key only
  • Test key: refused

Authorizations

  • Authorizationstringheaderrequired

    Your secret key as a bearer token, in the form Bearer ks_live_sk_... or Bearer ks_test_sk_.... Keep it on your server. A test key is refused here.

Headers

  • idempotency-keystringheaderrequired

    A key of your own that makes this write safe to retry: the same key returns the first response instead of writing again.

Path Parameters

  • idstringpathrequired

    Example: 8

Body

application/json

A JSON object, as in the example.

Response

200, application/json

  • dataobjectrequired

    Show child attributes
    • runIdnumberrequired

    • statusstringrequired

  • metaobjectrequired

    Show child attributes
    • request_idstringrequired

      Also returned in the X-Request-ID header.

    • paginationobject

      Show child attributes
      • limitintegerrequired

        Required range: x <= 100

      • has_morebooleanrequired

      • next_cursorstring or nullrequired

        Send this back as cursor for the next page. Opaque: never parse it.

Errors

What each code means, and what to do about it, is in the errors guide.

Webhook events

This call triggers no webhook event.