Create API credentials
Creates new API credentials for a merchant with the following validations:
-
Organization Validation:
- Organization must exist
- User must have access to the organization
-
Merchant Validation:
- Merchant must exist
- Merchant must belong to the specified organization
- User must have the required permissions for the merchant
-
Permission Requirements:
- User must have MERCHANT_DEV_SETTINGS_CREATE_API_KEY permission
Path parameters
organizationId
Organization ID
merchantId
Merchant ID
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
Descriptive name to identify the purpose of the API credentials
Response
API credentials created successfully
apiKey
Generated API Key for the merchant
secret
Generated Secret for the merchant