Create a new API token for a merchant managed by your affiliate account.
Provide the Merchant ID and a Token Name to generate a unique Client ID and Secret for the merchant.
Use the returned credentials to authenticate as the merchant for API operations.
Note: This endpoint requires the Bearer token to be an Affiliate (ISV) token. Merchant tokens are not accepted.
OK
Bad Request
Not Found
Internal Server Error
{- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "tokenName": "string"
}{- "clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
- "clientSecret": "string"
}List all API tokens created for merchants under your affiliate account.
Optionally, filter the results by a specific Merchant ID.
Note: This endpoint requires the Bearer token to be an Affiliate (ISV) token. Merchant tokens are not accepted.
OK
Bad Request
Not Found
Internal Server Error
{- "tokens": [
- {
- "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
- "tokenName": "string",
- "clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
- "creationDate": "2019-08-24T14:15:22Z"
}
]
}Remove an API token associated with a merchant under your affiliate account.
Provide the Merchant ID and the Client ID of the token to be deleted.
This action revokes the token and prevents further API access using those credentials.
Note: This endpoint requires the Bearer token to be an Affiliate (ISV) token. Merchant tokens are not accepted.
OK
Bad Request
Not Found
Internal Server Error
{- "errors": {
- "Email": [
- "'Email' is not a valid email address."
]
}, - "details": "Validation failed: \n -- Email: 'Email' is not a valid email address. Severity: Error",
- "statusCode": 400,
- "source": "<Service>",
- "exceptionType": "FluentValidation.ValidationException",
- "correlationId": "aa6cfcd0-0295-4a4c-b074-8c901f114fee",
- "entityId": null,
- "errorCode": null
}