Skip to main content

createCustomerCredential Mutation

Creates a Credential for the specified Customer.

Access is permitted when any of the following condition(s) are met: 1. The signed-in User has any of the following permissions for the associated Organization: [org_manage_integrations] when 'customer' is not provided in the access function context. 2. The signed-in User has any of the following permissions for the associated Organization: [org_manage_customers, org_manage_integrations] when 'customer' is provided in the access function context. 3. The signed-in User has any of the following permissions for the access function context object 'customer': [customer_edit] when 'customer' is provided in the access function context.

Input fields (CreateCustomerCredentialInput!)

ArgumentTypeDescription
authorizationMethodID!The specific AuthorizationMethod used by the Credential.
customerIDThe Customer the Credential belongs to, if any. If NULL then Organization will be specified.
labelString!The name of the Credential.
values[InputCredentialFieldValue]A list of InputCredentialFieldValues that contain the values for the CredentialFields.
clientMutationIdStringA unique identifier for the client performing the mutation.

Return fields (CreateCustomerCredentialPayload)

clientMutationId (String)
credential (Credential)
errors ([ErrorType!]!)