Loading...

Loading...

Call this API from C#

1. Include ServiceStack.Client package in your projects.csproj

<PackageReference Include="ServiceStack.Client" Version="6.*"/>
2. Copy the DTOs source code for this API
3. Use the API DTOs with the JsonServiceClient or JsonApiClient(net6+)
using ServiceStack;
var client = new JsonServiceClient("https://cip-reporting.chargeitpro.com");
var response = await client.SendAsync(new DuplicateTransactionRequest {
    //...
});
// Quickly inpsect response
Inspect.printDump(response);

To easily update DTOs for all APIs install the x dotnet tool

$ dotnet tool install --global x

To generate all DTOs for https://cip-reporting.chargeitpro.com run:

$ x csharp https://cip-reporting.chargeitpro.com

Once generated, the DTOs can be updated with:

$ x csharp