Skip to main content

How do I use the validatepin endpoint and why do I get a 502 Bad Gateway error?

The validatepin endpoint is used to validate the encryption of a PIN during the Shell Card ordering process. When called correctly, it returns the decrypted PIN.

This endpoint is only available in the test environment.

What should I send in the request?
You must provide three fields:

uid – Unique identifier for the session

encrypted_pin – The PIN encrypted using the public key

session_key – The session key used for encryption

Why do I get a 502 Bad Gateway error?
This error occurs when:

  • encrypted_pin or session_key is invalid or malformed.
  • The encryption algorithm or format does not match the API requirements.

About us

The Shell Developer Portal supports partners in onboarding to Shell APIs and turning ideas into production-ready solutions.

 

Shell logo

Contact

Login to your account

Ask AI Assistant about Shell APIs and API Products