Get API credential details
Returns your API credential details based on the API Key you used in the request.
You can make this request with any of the Management API roles.
Response parameters
After submitting a call, you receive a response message to inform you that your request was received and processed.
Depending on the HTTP status code of the response message, it is helpful to build some logic to handle any errors that a request or the system may return.
HTTP Responses
200 - OK
The request has succeeded.
Show moreShow less_linksobjectReferences to resources linked to the API credential.
companyobjectCompany account that the API credential is linked to. Only present for company-level webhooks.
hrefstringgenerateApiKeyobjectGenerates a new API key. When you generate a new one, the existing key remains valid for 24 hours.
hrefstringgenerateClientKeyobjectGenerates a new client key, used to authenticate client-side requests. When you generate a new one, the existing key remains valid for 24 hours.
hrefstringmerchantobjectThe merchant account that the API credential is linked to. Only present for merchant-level API credentials.
hrefstringactivebooleanIndicates if the API credential is enabled. Must be set to true to use the credential in your integration.
allowedIpAddressesarray[string]List of IP addresses from which your client can make requests.
If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error.
allowedOriginsarray[object]List containing the allowed origins linked to the API credential.
_linksobjectReferences to resources linked to the allowed origin.
domainstringDomain of the allowed origin.
idstringUnique identifier of the allowed origin.
associatedMerchantAccountsarray[string]List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included.
clientKeystringPublic key used for client-side authentication. The client key is required for Drop-in and Components integrations.
companyNamestringName of the company linked to the API credential.
descriptionstringMax length: 50Description of the API credential.
idstringUnique identifier of the API credential.
rolesarray[string]List of roles for the API credential.
usernamestringThe name of the API credential, for example ws@Company.TestCompany.
400 - Bad Request
A problem reading or understanding the request.
Show moreShow lessdetailstringA human-readable explanation specific to this occurrence of the problem.
errorCodestringA code that identifies the problem type.
instancestringA unique URI that identifies the specific occurrence of the problem.
invalidFieldsarray[InvalidFieldWrapper]Detailed explanation of each validation error, when applicable.
InvalidFieldobjectmessagestringDescription of the validation error.
namestringThe field that has an invalid value.
valuestringThe invalid value.
requestIdstringA unique reference for the request, essentially the same as
pspReference
.responseobjectJSON response payload.
statusintegerThe HTTP status code.
titlestringA short, human-readable summary of the problem type.
typestringA URI that identifies the problem type, pointing to human-readable documentation on this problem type.
401 - Unauthorized
Authentication required.
Show moreShow lessdetailstringA human-readable explanation specific to this occurrence of the problem.
errorCodestringA code that identifies the problem type.
instancestringA unique URI that identifies the specific occurrence of the problem.
invalidFieldsarray[InvalidFieldWrapper]Detailed explanation of each validation error, when applicable.
InvalidFieldobjectmessagestringDescription of the validation error.
namestringThe field that has an invalid value.
valuestringThe invalid value.
requestIdstringA unique reference for the request, essentially the same as
pspReference
.responseobjectJSON response payload.
statusintegerThe HTTP status code.
titlestringA short, human-readable summary of the problem type.
typestringA URI that identifies the problem type, pointing to human-readable documentation on this problem type.
403 - Forbidden
Insufficient permissions to process the request.
Show moreShow lessdetailstringA human-readable explanation specific to this occurrence of the problem.
errorCodestringA code that identifies the problem type.
instancestringA unique URI that identifies the specific occurrence of the problem.
invalidFieldsarray[InvalidFieldWrapper]Detailed explanation of each validation error, when applicable.
InvalidFieldobjectmessagestringDescription of the validation error.
namestringThe field that has an invalid value.
valuestringThe invalid value.
requestIdstringA unique reference for the request, essentially the same as
pspReference
.responseobjectJSON response payload.
statusintegerThe HTTP status code.
titlestringA short, human-readable summary of the problem type.
typestringA URI that identifies the problem type, pointing to human-readable documentation on this problem type.
422 - Unprocessable Entity
A request validation error.
Show moreShow lessdetailstringA human-readable explanation specific to this occurrence of the problem.
errorCodestringA code that identifies the problem type.
instancestringA unique URI that identifies the specific occurrence of the problem.
invalidFieldsarray[InvalidFieldWrapper]Detailed explanation of each validation error, when applicable.
InvalidFieldobjectmessagestringDescription of the validation error.
namestringThe field that has an invalid value.
valuestringThe invalid value.
requestIdstringA unique reference for the request, essentially the same as
pspReference
.responseobjectJSON response payload.
statusintegerThe HTTP status code.
titlestringA short, human-readable summary of the problem type.
typestringA URI that identifies the problem type, pointing to human-readable documentation on this problem type.
500 - Internal Server Error
The server could not process the request.
Show moreShow lessdetailstringA human-readable explanation specific to this occurrence of the problem.
errorCodestringA code that identifies the problem type.
instancestringA unique URI that identifies the specific occurrence of the problem.
invalidFieldsarray[InvalidFieldWrapper]Detailed explanation of each validation error, when applicable.
InvalidFieldobjectmessagestringDescription of the validation error.
namestringThe field that has an invalid value.
valuestringThe invalid value.
requestIdstringA unique reference for the request, essentially the same as
pspReference
.responseobjectJSON response payload.
statusintegerThe HTTP status code.
titlestringA short, human-readable summary of the problem type.
typestringA URI that identifies the problem type, pointing to human-readable documentation on this problem type.