Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 3.53 KB

README.md

File metadata and controls

67 lines (50 loc) · 3.53 KB

AgedDebtors

(Accounting.AgedDebtors)

Overview

Available Operations

  • Get - Get Aged Debtors

Get

Get Aged Debtors

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"
);

AccountingAgedDebtorsOneRequest req = new AccountingAgedDebtorsOneRequest() {
    ServiceId = "salesforce",
    Filter = new AgedReportFilter() {
        CustomerId = "123abc",
        SupplierId = "123abc",
        ReportAsOfDate = "2024-01-01",
        PeriodCount = 3,
        PeriodLength = 30,
    },
    PassThrough = new Dictionary<string, object>() {
        { "search", "San Francisco" },
    },
    Fields = "id,updated_at",
};

var res = await sdk.Accounting.AgedDebtors.GetAsync(req);

// handle response

Parameters

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

Response

AccountingAgedDebtorsOneResponse

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 */*