Table of Contents

Class ProviderCallAudit

Namespace
Integrations.Domain.Audit
Assembly
Integrations.Domain.dll

One outbound provider call. Payloads are not stored here (only a hash) because they may contain proprietary vendor/customer data; the full tax response is kept on the tax document itself.

public sealed class ProviderCallAudit
Inheritance
ProviderCallAudit
Inherited Members

Properties

CallerId

Calling client id from the token, if any.

public string? CallerId { get; init; }

Property Value

string

CorrelationId

Request correlation id (trace id), to join with logs.

public string? CorrelationId { get; init; }

Property Value

string

DurationMs

Wall-clock duration of the call, retries included.

public int DurationMs { get; init; }

Property Value

int

EntityId

Entity the call was made for, if any.

public string? EntityId { get; init; }

Property Value

string

ErrorCode

Provider error code when it failed.

public string? ErrorCode { get; init; }

Property Value

string

ErrorMessage

Provider error message when it failed (no payload data).

public string? ErrorMessage { get; init; }

Property Value

string

Id

Audit row id (UUID v7, time-ordered).

public Guid Id { get; init; }

Property Value

Guid

OccurredAt

When the call started.

public DateTimeOffset OccurredAt { get; init; }

Property Value

DateTimeOffset

Operation

Operation name, e.g. createOrAdjust, upsertVendor.

public string Operation { get; init; }

Property Value

string

Provider

Provider called, e.g. AvaTax or BankOfCanada.

public string Provider { get; init; }

Property Value

string

RequestHash

SHA-256 of the request body, to prove what was sent without storing it.

public string? RequestHash { get; init; }

Property Value

string

SubjectId

Our document/party/lock id the call was about.

public string? SubjectId { get; init; }

Property Value

string

Succeeded

Whether the provider accepted the call.

public bool Succeeded { get; init; }

Property Value

bool