Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

International Street API Documentation Incorrectly Suggests Using .WithLicense() Method #51

Open
brendanloneyrsmrvm opened this issue Jan 16, 2025 · 0 comments

Comments

@brendanloneyrsmrvm
Copy link

Issue Description

The SDK documentation for the International Street API contains misleading implementation guidance. When following the example code that uses .WithLicense(), the API returns a 402 Payment Required error, despite having valid credentials. However, the same code works correctly when the .WithLicense() method is removed.

Current Behavior

  • Using .WithLicense(new List<string> { "international-global-plus-cloud" }) results in:
    "Payment Required: There is no active subscription for the account associated with the credentials submitted with the request."
  • Removing the .WithLicense() call allows the API to function as expected.

Example Code

// Fails with 402 Payment Required
var client = new ClientBuilder(authId, authToken)
    .WithLicense(new List<string> { "international-global-plus-cloud" })
    .BuildInternationalStreetApiClient();

// Works correctly
var client = new ClientBuilder(authId, authToken)
    .BuildInternationalStreetApiClient();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant