401 Unauthorized error for /card/gift.json
Hello,
I am receiving a 401 Unauthorized error when attempting to use the /card/gift.json with live API credentials. This endpoint works fine on the sandbox.
I double checked the credentials and they match the credentials I was given for the live API. I also tested other endpoints such as /device/card.json using the live credentials and I am not receiving a 401.
Any help here would be appreciated.
Thanks,
Jared
-
Official comment
Hello Jared,
Your token's scope gives you access to the 'Transaction' and 'Device' endpoints. It will not allow calls made to the 'Card' and 'Cardholder' endpoints.
If you wish to know the gift balance on a card, please use the /device/card endpoint.
-
Hi Patrick,
I am using the /card/gift,json endpoint to create new cards for users with a balance. For example a user chooses to purchase a new gift card with a balance of $50.00. I then send a request to the /card/gift.json endpoint to receive a gift card number that I can then provide the user with via email.
Is this an endpoint you can active for me? Or is there a different endpoint that I should be using to generate new cards for users?
Thanks,
Jared0 -
Thank you for clarifying, I have been hasty in commenting earlier. I have given your token access to the 'Card' endpoints.
0
Please sign in to leave a comment.
Comments
3 comments