Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
anyone?
Copy link to clipboard
Copied
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/
Copy link to clipboard
Copied
@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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
@Raymond Camden that is correct. JWT is going to be deprecated by January 2025 so we wanted to switch to OAuth this year. We are getting billed thru AWS by $0.05 per api call to the AWS PDF Service API and do not encounter any limits with JWT. We are assuming that using OAuth should still continue to work and be billed per api call under the existing AWS subscription. Is that correct?
Copy link to clipboard
Copied
No, that is not correct. To be clear, AWS billing is gone. You cannot pay that way.
You must either use the free tier, or switch to a new sales contract.