Skip to main content
POST
Convert a payroll to historical

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

payroll
string
required

Query Parameters

shape
enum<string>

The shape of the response. full, the default, returns the object in full. minimal returns the object's id and object, without its data. See Response shapes.

Available options:
full,
minimal

Body

application/json
revert_to_draft
boolean

Defaults to false. When true, a paid payroll is also brought back to draft, ready for the import, in the same request. Has no effect on a payroll that's already a draft.

Response

200 - application/json

OK

Returned by default or when you send shape=full. The object in full.

id
string
read-only

The unique identifier of the object in Nmbr.

object
string
read-only

The type of the object in Nmbr ("payroll").

data
Payroll · object