Credentials
Store a credential
POST
/credentialsStores your secrets for a provider, for the destinations that use them. Pay.com encrypts each value and never returns it, not even to you.
A request names a value as {{ fcred_….api_key }}, in a header value or the body. Credentials you send in a request instead are passed on as they are and never logged.
Headers
AuthorizationstringRequiredHTTP Basic auth: your API key as the password, with an empty username. See Authentication.
Parameters
namestringRequiredYour name for it.
destinationsarray of stringsRequiredThe ids of the destinations it may be used with.
fieldsobjectRequiredEach secret by name. Names are 1 to 64 characters of a-z, 0-9 and _. Values are strings.
Returns
Returns the credential, with the names of its fields and never their values.
idstringThe credential's id.
resourcestringfieldsarray of stringsThe names of its fields. Their values are never returned.
destinationsarray of stringsThe ids of the destinations it may be used with.
Errors
400The request isn't valid, for example a placeholder in the URL. The message names the field.
401The request has no API key that starts
sk-pay-com-, as Basic or Bearer auth.429Too many requests for your account or the destination. Retry after the
Retry-After header's seconds.500Something went wrong on Pay.com's side. Nothing was sent; try again.
503Pay.com couldn't check the API key, read the card or take the request. Nothing was sent. Retry after the
Retry-After header's seconds.Was this page helpful?