Skip to main content
POST
/
earning_line_items
/
bulk
/
update
/
scope
Show bulk update scope for earning line items
curl --request POST \
  --url https://sandbox.nmbr.co/services/payroll/earning_line_items/bulk/update/scope \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payroll_id": "<id>",
  "pay_stubs": {
    "include": "all"
  }
}
'
{
  "object": "list",
  "data": [
    {
      "id": "<id>",
      "object": "earning_line_item",
      "data": {
        "pay_stub": {
          "id": "<id>",
          "object": "pay_stub",
          "links": {
            "self": "/pay_stubs/<id>"
          }
        },
        "amount": 3000,
        "custom_amount": 3000,
        "managed_amount": 0,
        "is_managed": false,
        "line_item_type": "earning",
        "earning_type": {
          "id": "<id>",
          "object": "earning_type",
          "data": {
            "type": "wage",
            "label": "Wage",
            "supported_payroll_types": {
              "regular": true,
              "historical": true,
              "off_cycle": true
            }
          },
          "links": {
            "self": "/earning_types/wage"
          }
        },
        "hours": 0,
        "managed_hours": null,
        "custom_hours": 0,
        "accrued_vacation_pay": 0,
        "recurrence": null,
        "pay_rate": null,
        "overtime_rate": null,
        "title": null,
        "title_translations": null,
        "title_translated": null,
        "expense_accounting_code": null,
        "managed_expense_accounting_code": null,
        "custom_expense_accounting_code": null,
        "liability_accounting_code": null,
        "managed_liability_accounting_code": null,
        "custom_liability_accounting_code": null,
        "business_preset": null,
        "source_adjustment": null,
        "component_settings": {
          "attributes_locked": false
        },
        "earned_on": null,
        "managed_earned_on": null,
        "custom_earned_on": null,
        "external_ref": null,
        "created_at": "2026-01-01T00:00:00.000000Z",
        "updated_at": "2026-01-01T00:00:00.000000Z"
      },
      "links": {
        "self": "/earning_line_items/<id>"
      }
    }
  ],
  "links": {
    "first": "http://localhost/earning_line_items/bulk/update/scope?payroll_id=<id>&pay_stubs%5Binclude%5D=all&page=1",
    "last": "http://localhost/earning_line_items/bulk/update/scope?payroll_id=<id>&pay_stubs%5Binclude%5D=all&page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "last_page": 1,
    "per_page": 15,
    "total": 1,
    "has_more": false
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
payroll_id
string
required
pay_stubs
object
required
has_business_preset
boolean
business_presets
object
expense_accounting_codes
object
liability_accounting_codes
object
subtypes
object
ids
object

Response

200 - application/json

OK

object
string
read-only

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

data
object[]