Skip to main content
Participating Frequently
September 21, 2023
Question

OAuth credentials not linked as paid subscription after migration

  • September 21, 2023
  • 2 replies
  • 1053 views

We have a paid PDF Service API license subscribed via AWS Marketplace and been using Node SDK and JWT credentials to make API calls. This is the original code before migration:

const credentials =
  PDFServicesSdk.Credentials.serviceAccountCredentialsBuilder()
    .withClientId(JWT_CLIENT_ID)
    .withClientSecret(JWT_CLIENT_SECRET)
    .withOrganizationId(ORG ID)
    .withAccountId(ACCOUNT_ID)
    .withPrivateKey(PRIVATE_KEY)
    .build();

Using the servicePrincipalCredentialsBuilder() is the "new" way based from the sample code provided so we used this together with the OAuth Server-to-Server credentials and our code now looks like this:

// NEW_CLIENT_ID and NEW_CLIENT_SECRET came from the new OAuth Server-to-Server Credentials
 const credentials =
    PDFServicesSdk.Credentials.servicePrincipalCredentialsBuilder()
      .withClientId(NEW_CLIENT_ID)
      .withClientSecret(NEW_CLIENT_SECRET)

However, after a few days we started to receive this error "Either quota for this operation is not available or Free Tier quota is exhausted. Please visit (www.adobe.com/go/pdftoolsapi_home) to start using Free Tier quota or (www.adobe.com/go/pdftoolsapi_err_quota) to upgrade to paid credentials." which appears that the OAUTH credentials is linked as a Free Tier and was not associated to the paid license.

 

Shouldn't the credentials be tied under the registered Adobe email? Also, is my understanding correct that we should discontinue using the JWT_CLIENT_ID and JWT_SECRET_KEY?

Please advise.

This topic has been closed for replies.

2 replies

Raymond Camden
Community Manager
Community Manager
October 5, 2023

Your original way of paying us, via AWS, is no longer supported. If you need more transactions than the free tier supports, you have to contact sales for a contract. You can do so here: https://developer.adobe.com/document-services/pricing/contact/sales/

Participating Frequently
October 6, 2023

@Raymond Camden the issue is that the OAuth Server-to-Server credentials is under free tier but the Service Account (JWT) isn't but both are under the same adobe id.

Raymond Camden
Community Manager
Community Manager
October 6, 2023

I'm not sure what you mean. Both sets of credentials can be free tier or paid, depending on how set up. You need to make _new_ credentials, and I'd recommend OAuth as the JWT is deprecated. You also need to reach out to sales to get a new contract.

Participating Frequently
October 4, 2023

anyone?