v2/vault/payment-tokens API 403 Forbidden Error.

raycpt
Contributor
Contributor

Hello PayPal Community,

I am testing the v2/vault/payment-tokens API in the sandbox environment, but I am encountering a 403 error with the message:
"issue": "NOT_ENABLED_FOR_VAULT_SOURCE",
"description": "The API caller or the merchant on whose behalf the API call is initiated is not allowed to vault the given source."
Can you help me with this?"

 

"Do I need to be in one of the countries listed under the 'Availability' section on this page to use this API?

For reference, my sandbox account country is Korea."

 

 

Login to Me Too
5 REPLIES 5

MTS_Jennifer
Moderator
Moderator

Hi @raycpt ,

Thank you for posting to the PayPal Merchant Community. If your api is getting that error it means that your sandbox account and rest api app are not setup to process Reference Transactions and the future payment's scopes are not added.

If you provide the debug id, and the sandbox account merchant id, we can ensure that it is enabled for future payment's scopes and Reference Transactions.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

MTS_Chiranjeevi
Moderator
Moderator

Hi @RemcoCM ,

Good day!

Please provide the debug id and sandbox account merchant id?

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

raycpt
Contributor
Contributor

 

Thank you for your response. Here is the information you requested.

 

sandbox account merchant ID : RUPZQ5DHZHEKU

 

/v3/vault/payment-tokens

"debug_id": "3577ba4090f5f",
 
 /v2/vault/payment-tokens
"debug_id": "13173753e20d8",
 
Additionally, when I created a sandbox region in the US and tested with the credentials of the created account, the test was successful.
 
Sincerely,
raycpt
Login to Me Too

MTS_Chiranjeevi
Moderator
Moderator

Hi @raycpt ,

Thank you for providing the merchant ID and debug ID.

I have successfully added the required scopes to the REST API App(Client ID), associated with the provided sandbox account merchant ID & debug ID.

 

I would suggest to perform a test API request call now.

If you still having issues or queries, please create an MTS ticket via -  https://www.paypal-support.com/s/?language=en_US with detailed information.

 

Thank you so much for your patience and understanding.

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

raycpt
Contributor
Contributor

hank you for your response. Here is the information you requested.

 

I am still experiencing the same issue.

Does the account region matter at all?

I want to know if the account region needs to be included in the Availability section of this page in order to use it:

[PayPal Payment Tokens API - Cards](https://developer.paypal.com/docs/checkout/save-payment-methods/purchase-later/payment-tokens-api/ca...).

 
Sincerely,
raycpt
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.