UserRequestDto

data class UserRequestDto(receiptAccountEmail: String?, firstName: String?, lastName: String?, defaultCurrency: String?, folders: List<CommonRegistrationParametersFoldersInner>?, createTestReceipts: Boolean?, credentialType: String?, accessID: String?, accessSecret: String?, email: String?, password: String?)

Parameters

receiptAccountEmail

The email address to the users receipt account. This must be unique across all users registered with Sensibill, including both Sensibill accounts and third - party single - sign - on accounts.This will always be converted to a lower case value. Your client can be set up based on whether this parameter is required during registration, or if it is optional so that it can be specified later.The email address must use a permitted domain for your client.

firstName

The first name of the user. It is strongly encouraged that this be set to provide a more personalized experience for users.

lastName

The last name of the user.

defaultCurrency

Provides the default currency for the user. Must be an currency-code on the supported list of currencies, which can be obtained by going to /lookups/currencies

folders

Every element of the array should be an object with the folder's name, color (as six hex digits) and id.

createTestReceipts

Can be either \"true\" or \"false\". This parameter can be used by early integration partners during testing to create a number of ake testing receipts for the accounts they create.

credentialType

This is the type of credentials that will be used to identify the newly created user uniquely to Sensibill. If a user is logging in with their account on Sensibill, this parameter should be \"sensibill\". If you are implementing a third-party single-sign-on based solution, this should be set to the credentialType that you were issued with your client credentials.

accessID

If you are using third-party single-sign-on, then this parameter is what is used to uniquely identify this user account to Sensibill systems. It is equivalent to a username.

accessSecret

If you are using third-party single-sign-on, then this parameter is what is used to verify that you are the owner of this Sensibill account. It is equivalent to a password.

email

The email address of the user. Typically only used by clients who want to allow sending email notifications directly from Sensibill. May be required, depending on your client configuration.

password

The password for the user account. If you are creating a Sensibill account, this parameter is required. If you are using third-party single-sign-on, this parameter is optional

Constructors

UserRequestDto
Link copied to clipboard
fun UserRequestDto(receiptAccountEmail: String? = null, firstName: String? = null, lastName: String? = null, defaultCurrency: String? = null, folders: List<CommonRegistrationParametersFoldersInner>? = arrayListOf(), createTestReceipts: Boolean? = null, credentialType: String? = "sensibill", accessID: String? = null, accessSecret: String? = null, email: String? = null, password: String? = null)
The email address to the users receipt account.

Properties

accessID
Link copied to clipboard
@SerializedName(value = accessID)
val accessID: String? = null
If you are using third-party single-sign-on, then this parameter is what is used to uniquely identify this user account to Sensibill systems.
accessSecret
Link copied to clipboard
@SerializedName(value = accessSecret)
val accessSecret: String? = null
If you are using third-party single-sign-on, then this parameter is what is used to verify that you are the owner of this Sensibill account.
createTestReceipts
Link copied to clipboard
@SerializedName(value = createTestReceipts)
val createTestReceipts: Boolean? = null
Can be either \"true\" or \"false\".
credentialType
Link copied to clipboard
@SerializedName(value = credentialType)
val credentialType: String?
This is the type of credentials that will be used to identify the newly created user uniquely to Sensibill.
defaultCurrency
Link copied to clipboard
@SerializedName(value = defaultCurrency)
val defaultCurrency: String? = null
Provides the default currency for the user.
email
Link copied to clipboard
@SerializedName(value = email)
val email: String? = null
The email address of the user.
firstName
Link copied to clipboard
@SerializedName(value = firstName)
val firstName: String? = null
The first name of the user.
folders
Link copied to clipboard
@SerializedName(value = folders)
val folders: List<CommonRegistrationParametersFoldersInner>?
Every element of the array should be an object with the folder's name, color (as six hex digits) and id.
lastName
Link copied to clipboard
@SerializedName(value = lastName)
val lastName: String? = null
The last name of the user.
password
Link copied to clipboard
@SerializedName(value = password)
val password: String? = null
The password for the user account.
receiptAccountEmail
Link copied to clipboard
@SerializedName(value = receiptAccountEmail)
val receiptAccountEmail: String? = null
The email address to the users receipt account.