Employments
Employment Management

List bulk employment rows

Changed on

Returns grouped bulk employment rows, including field-level validation errors in errors, row-level failures in row_errors, and submission-phase failures in submission_errors. If a row passes validation but later fails during Global Payroll activation, that failure is surfaced here after submission rather than in the initial create response.

Authentication

This endpoint accepts any one of the following token types:

  • Company-scoped access token (OAuth2AuthorizationCode) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
  • Company-scoped access token (assertion) (OAuth2CompanyManagerAssertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a company manager. See OAuth Assertion.
  • Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page, with the scopes they choose there. See Authorization for customers.

Scopes

Any one of the scopes in a token type's row is enough. all:read and all:write work too.

Token typeCategoryRead only ScopeWrite only Scope (read access implicit)
Company-scoped access tokenManage employments (employments)View employments (employment:read)Manage employments (employment:write)
Company-scoped access token (assertion)Manage employments (employments)View employments (employment:read)Manage employments (employment:write)
Customer API tokenManage employments (employments)View employments (employment:read)Manage employments (employment:write)
get/v1/bulk-employment-jobs/{job_id}/rows

Request

  • Base URL
    https://gateway.remote.com
  • Auth
    • OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopeshttps://gateway.remote.com/company.manage
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesemployment:read
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesall:read
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesall:write
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesemployment:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:write
    • or HTTP bearer

Path parameters

job_id, string required

Bulk employment job id

Query parameters

page, integer

Starts fetching records after the given page

page_size, integer

Number of items per page

Response

Success

ImportJobRowsResponse required
data, object required

Example response

{
  "data": {
    "counts_by_column": {
      "feature_a": {
        "error": 3,
        "valid": 27
      },
      "sla_days": {
        "error": 2,
        "valid": 28
      }
    },
    "counts_by_status": {
      "deleted": 0,
      "error": 2,
      "imported": 8,
      "pending": 5,
      "retryable": 0,
      "skipped": 0,
      "successful": 10,
      "unprocessable": 0
    },
    "current_page": 1,
    "rows": {
      "failures": [
        {
          "data": {
            "foo": "bar",
            "number": 1
          },
          "errors": {
            "email": [
              "is invalid"
            ]
          },
          "metadata": {
            "employment_slug": "abc123-slug"
          },
          "row_error_details": {
            "ambiguous": [
              {
                "amount": 25000,
                "created_by": {
                  "name": "Bertrand Russell",
                  "slug": "user-b"
                },
                "effective_date": "2022-01-01",
                "employee_identifier": "gp_employee@example.com",
                "end_date": null,
                "inserted_at": "2026-04-24T10:00:00Z",
                "occurrence": "once",
                "pay_item": "2060 Shift Allw Morning",
                "slug": "epe-1"
              }
            ]
          },
          "row_errors": {
            "ambiguous": [
              "Multiple pay items match."
            ]
          },
          "row_number": 1,
          "submission_errors": []
        }
      ],
      "imported": [
        {
          "data": {
            "foo": "bar",
            "number": 1
          },
          "errors": {
            "email": [
              "is invalid"
            ]
          },
          "metadata": {
            "employment_slug": "abc123-slug"
          },
          "row_error_details": {
            "ambiguous": [
              {
                "amount": 25000,
                "created_by": {
                  "name": "Bertrand Russell",
                  "slug": "user-b"
                },
                "effective_date": "2022-01-01",
                "employee_identifier": "gp_employee@example.com",
                "end_date": null,
                "inserted_at": "2026-04-24T10:00:00Z",
                "occurrence": "once",
                "pay_item": "2060 Shift Allw Morning",
                "slug": "epe-1"
              }
            ]
          },
          "row_errors": {
            "ambiguous": [
              "Multiple pay items match."
            ]
          },
          "row_number": 1,
          "submission_errors": []
        }
      ],
      "pending": [
        {
          "data": {
            "foo": "bar",
            "number": 1
          },
          "errors": {
            "email": [
              "is invalid"
            ]
          },
          "metadata": {
            "employment_slug": "abc123-slug"
          },
          "row_error_details": {
            "ambiguous": [
              {
                "amount": 25000,
                "created_by": {
                  "name": "Bertrand Russell",
                  "slug": "user-b"
                },
                "effective_date": "2022-01-01",
                "employee_identifier": "gp_employee@example.com",
                "end_date": null,
                "inserted_at": "2026-04-24T10:00:00Z",
                "occurrence": "once",
                "pay_item": "2060 Shift Allw Morning",
                "slug": "epe-1"
              }
            ]
          },
          "row_errors": {
            "ambiguous": [
              "Multiple pay items match."
            ]
          },
          "row_number": 1,
          "submission_errors": []
        }
      ],
      "retryable": [
        {
          "data": {
            "foo": "bar",
            "number": 1
          },
          "errors": {
            "email": [
              "is invalid"
            ]
          },
          "metadata": {
            "employment_slug": "abc123-slug"
          },
          "row_error_details": {
            "ambiguous": [
              {
                "amount": 25000,
                "created_by": {
                  "name": "Bertrand Russell",
                  "slug": "user-b"
                },
                "effective_date": "2022-01-01",
                "employee_identifier": "gp_employee@example.com",
                "end_date": null,
                "inserted_at": "2026-04-24T10:00:00Z",
                "occurrence": "once",
                "pay_item": "2060 Shift Allw Morning",
                "slug": "epe-1"
              }
            ]
          },
          "row_errors": {
            "ambiguous": [
              "Multiple pay items match."
            ]
          },
          "row_number": 1,
          "submission_errors": []
        }
      ],
      "skipped": [
        {
          "data": {
            "foo": "bar",
            "number": 1
          },
          "errors": {
            "email": [
              "is invalid"
            ]
          },
          "metadata": {
            "employment_slug": "abc123-slug"
          },
          "row_error_details": {
            "ambiguous": [
              {
                "amount": 25000,
                "created_by": {
                  "name": "Bertrand Russell",
                  "slug": "user-b"
                },
                "effective_date": "2022-01-01",
                "employee_identifier": "gp_employee@example.com",
                "end_date": null,
                "inserted_at": "2026-04-24T10:00:00Z",
                "occurrence": "once",
                "pay_item": "2060 Shift Allw Morning",
                "slug": "epe-1"
              }
            ]
          },
          "row_errors": {
            "ambiguous": [
              "Multiple pay items match."
            ]
          },
          "row_number": 1,
          "submission_errors": []
        }
      ],
      "successes": [
        {
          "data": {
            "foo": "bar",
            "number": 1
          },
          "errors": {
            "email": [
              "is invalid"
            ]
          },
          "metadata": {
            "employment_slug": "abc123-slug"
          },
          "row_error_details": {
            "ambiguous": [
              {
                "amount": 25000,
                "created_by": {
                  "name": "Bertrand Russell",
                  "slug": "user-b"
                },
                "effective_date": "2022-01-01",
                "employee_identifier": "gp_employee@example.com",
                "end_date": null,
                "inserted_at": "2026-04-24T10:00:00Z",
                "occurrence": "once",
                "pay_item": "2060 Shift Allw Morning",
                "slug": "epe-1"
              }
            ]
          },
          "row_errors": {
            "ambiguous": [
              "Multiple pay items match."
            ]
          },
          "row_number": 1,
          "submission_errors": []
        }
      ],
      "unprocessable": [
        {
          "data": {
            "foo": "bar",
            "number": 1
          },
          "errors": {
            "email": [
              "is invalid"
            ]
          },
          "metadata": {
            "employment_slug": "abc123-slug"
          },
          "row_error_details": {
            "ambiguous": [
              {
                "amount": 25000,
                "created_by": {
                  "name": "Bertrand Russell",
                  "slug": "user-b"
                },
                "effective_date": "2022-01-01",
                "employee_identifier": "gp_employee@example.com",
                "end_date": null,
                "inserted_at": "2026-04-24T10:00:00Z",
                "occurrence": "once",
                "pay_item": "2060 Shift Allw Morning",
                "slug": "epe-1"
              }
            ]
          },
          "row_errors": {
            "ambiguous": [
              "Multiple pay items match."
            ]
          },
          "row_number": 1,
          "submission_errors": []
        }
      ]
    },
    "total_count": 25,
    "total_pages": 2
  }
}

Changes

    • info

      the security scope employment:read was added to the endpoint's security scheme OAuth2CompanyManagerAssertion

    • info

      the security scope https://gateway.remote.com/company.manage was added to the endpoint's security scheme OAuth2AuthorizationCode

    • info

      the security scope all:write was removed from the endpoint's security scheme OAuth2AuthorizationCode

    1 more change in this revision