Skip to content

Latest commit

 

History

History
114 lines (83 loc) · 6.07 KB

README.md

File metadata and controls

114 lines (83 loc) · 6.07 KB

Payrolls

(Hris.Payrolls)

Overview

Available Operations

  • List - List Payroll
  • Get - Get Payroll

List

List Payroll

Example Usage

using ApideckUnifySdk;
using ApideckUnifySdk.Models.Components;
using ApideckUnifySdk.Models.Requests;
using System.Collections.Generic;

var sdk = new Apideck(
    apiKey: "<YOUR_BEARER_TOKEN_HERE>",
    consumerId: "test-consumer",
    appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX"
);

HrisPayrollsAllRequest req = new HrisPayrollsAllRequest() {
    ServiceId = "salesforce",
    Filter = new PayrollsFilter() {
        StartDate = "2022-04-08",
        EndDate = "2022-04-21",
    },
    PassThrough = new Dictionary<string, object>() {
        { "search", "San Francisco" },
    },
    Fields = "id,updated_at",
};

var res = await sdk.Hris.Payrolls.ListAsync(req);

// handle response

Parameters

Parameter Type Required Description
request HrisPayrollsAllRequest ✔️ The request object to use for the request.

Response

HrisPayrollsAllResponse

Errors

Error Type Status Code Content Type
ApideckUnifySdk.Models.Errors.BadRequestResponse 400 application/json
ApideckUnifySdk.Models.Errors.UnauthorizedResponse 401 application/json
ApideckUnifySdk.Models.Errors.PaymentRequiredResponse 402 application/json
ApideckUnifySdk.Models.Errors.NotFoundResponse 404 application/json
ApideckUnifySdk.Models.Errors.UnprocessableResponse 422 application/json
ApideckUnifySdk.Models.Errors.APIException 4XX, 5XX */*

Get

Get Payroll

Example Usage

using ApideckUnifySdk;
using ApideckUnifySdk.Models.Components;
using ApideckUnifySdk.Models.Requests;

var sdk = new Apideck(
    apiKey: "<YOUR_BEARER_TOKEN_HERE>",
    consumerId: "test-consumer",
    appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX"
);

HrisPayrollsOneRequest req = new HrisPayrollsOneRequest() {
    PayrollId = "<id>",
    ServiceId = "salesforce",
    Fields = "id,updated_at",
};

var res = await sdk.Hris.Payrolls.GetAsync(req);

// handle response

Parameters

Parameter Type Required Description
request HrisPayrollsOneRequest ✔️ The request object to use for the request.

Response

HrisPayrollsOneResponse

Errors

Error Type Status Code Content Type
ApideckUnifySdk.Models.Errors.BadRequestResponse 400 application/json
ApideckUnifySdk.Models.Errors.UnauthorizedResponse 401 application/json
ApideckUnifySdk.Models.Errors.PaymentRequiredResponse 402 application/json
ApideckUnifySdk.Models.Errors.NotFoundResponse 404 application/json
ApideckUnifySdk.Models.Errors.UnprocessableResponse 422 application/json
ApideckUnifySdk.Models.Errors.APIException 4XX, 5XX */*