API credentials
Create and manage your API credentials to communicate with Payrails.
Introduction
API credentials for your merchant account are created and managed in the Payrails Portal. Obtaining a Client ID and Client Secret, are essential for integrating and interacting with the Payrails API in your application.
Prerequisites
You need to have the organization-admin or organization-developer role (roles & permissions) to access API-credential from the organization context (organization).
In case you're using our Sandbox mode, please ask our team to provide you with the API credentials for testing.
Obtaining API Credentials from the Portal
- Login to your Payrails Portal (https://<merchant name>.payrails.io)
- Navigate to the API Credentials Page in the Organization context
- Create API Credentials
- On the API credentials page, click the "Create credentials" button in the top right
- Provide a name for your API credentials
- Click on the "Create" button
- Retrieve Client ID and Client Secret
- After creating credentials, you will be redirected to a new screen displaying the Client ID and Client Secret.
- Important: Copy both the Client ID and Client Secret immediately.
- Note: The Client Secret is revealed only once and will not be displayed again if the page is refreshed.
- Use Credentials in Your Application
- Integrate the copied Client ID and Client Secret into your application that will be using the Payrails API.
Rotating API Secret
- Navigate to API Credentials Page in the Portal
- Select API Key to Rotate
- Rotate API Secret
- Click on the "Rotate" button for the selected API key.
- Confirm the rotation action.
- Retrieve New Client Secret
- After rotation, the previous Client Secret becomes invalid immediately.
- Copy the new Client Secret as it will only be displayed once.
- Update Your Application
- Save the newly rotated Client Secret.
- Update your application with the new Client Secret to ensure uninterrupted access to the Payrails API.
Important Notes
- Pay attention to the one-time display of the Client Secret during the creation and rotation process.
- Ensure to update your application immediately with the new Client Secret to avoid any disruption in API access.
- The previous Client Secret becomes invalid once rotated and should not be used for further API requests.
Updated about 2 months ago