# Client Client related endpoints ## Get client details - [GET /slapi/clients/clientdetails](https://sl-api.redocly.app/openapi/client/getclientdetails.md): Returns basic demographic information for a given client number ## Get ledger balances - [GET /slapi/clients/ledgerbalance](https://sl-api.redocly.app/openapi/client/getclientledgerbalances.md): Returns ledger balances for a given client number * Postive value amount owed * Negative value is amount of credit ## Get communication preferences - [GET /slapi/clients/commprefs](https://sl-api.redocly.app/openapi/client/getclientcommprefs.md): Returns communication preferences for a given client number ## Get client memberships - [GET /slapi/clients/clientmemberships](https://sl-api.redocly.app/openapi/client/getclientmemberships.md): Returns a list of EFT and non-eft memberships for a given client number ## Get client packages - [GET /slapi/clients/clientpackages](https://sl-api.redocly.app/openapi/client/getclientpackages.md): Returns a list of packages for a given client number ## Get points balance - [GET /slapi/clients/pointsbalance](https://sl-api.redocly.app/openapi/client/getclientpointsbalance.md): Returns points ledger balances for a given client number ## Get client points transactions - [GET /slapi/clients/getpointstransactions](https://sl-api.redocly.app/openapi/client/getpointstransactions.md): Returns a list of points transactions for a given client number and date range ## Get billing info - [GET /slapi/clients/billinginfo](https://sl-api.redocly.app/openapi/client/getbillinginfo.md): Returns a list of client billing accounts for a given client number ## Search clients - [GET /slapi/clients/search](https://sl-api.redocly.app/openapi/client/getclientsearch.md): Returns a list of clients ## Get client transaction history - [GET /slapi/clients/transactionhistory](https://sl-api.redocly.app/openapi/client/getclienttranhistory.md): Returns a list trasnsactions for a given client number ## Get affilicated package clients - [GET /slapi/setup/affiliatedpackageclients](https://sl-api.redocly.app/openapi/client/getaffiliatedpackageclients.md): Returns a list of clients sharing an affiliated package by given membership id ## Insert client - [POST /slapi/clients/insert](https://sl-api.redocly.app/openapi/client/postinsertclient.md): Inserts a client and returns client number * storecode is the storecode of the store location * empNo is the employee number of the employee inserting the client ## Update client demographics - [POST /slapi/clients/updatedemographics](https://sl-api.redocly.app/openapi/client/postupdatedemographics.md): Field is only updated if a value is passed ## Update billing info - [POST /slapi/clients/updatebillinginfo](https://sl-api.redocly.app/openapi/client/postupdatebillinginfo.md): Update billing info for a client - membershipId identifiies the membership the billing account is associated with - type must be one of the following values - CARD Credit card type, must include lastFour, expMonth, expYear. and tokenId. vaultToken is recommened when using the Cayan processor but is not reqruired. - CHECKING Checking account type, must include accountNo and routingNo - deductType must be a value returned by getEFTDeductTypes endpoint ## Insert client comment - [POST /slapi/clients/insertcomment](https://sl-api.redocly.app/openapi/client/postinsertcomment.md): Inserts a client comment ## Insert client membership - [POST /slapi/clients/insertMembership](https://sl-api.redocly.app/openapi/client/postinsertmembership.md): Inserts a client membership * storecode is the storecode of the store location * empNo is the employee number of the employee inserting the client * drawDay must be value returned by the getEFTDrawDays endpoint ## Insert gift certificate - [POST /slapi/clients/insertgiftcert](https://sl-api.redocly.app/openapi/client/postinsertgiftcert.md): Insert Gift Certificate ## Freeze membership - [POST /slapi/clients/freezemembership](https://sl-api.redocly.app/openapi/client/freezemembership.md): Freezes an active eft membership ## Unfreeze membership - [POST /slapi/clients/unfreezemembership](https://sl-api.redocly.app/openapi/client/unfreezemembership.md): Unfreezes a frozen eft membership ## Activate membership - [POST /slapi/clients/activatemembership](https://sl-api.redocly.app/openapi/client/activatemembership.md): Activate a membership that is on hold ## Upgrade membership - [POST /slapi/clients/upgrademembership](https://sl-api.redocly.app/openapi/client/upgrademembership.md): Upgrades an active eft membership ## Downgrade membership - [POST /slapi/clients/downgrademembership](https://sl-api.redocly.app/openapi/client/downgrademembership.md): Downgrades an active eft membership ## Post account ledger payment - [POST /slapi/clients/postaccountledgerpayment](https://sl-api.redocly.app/openapi/client/postaccountledgerpayment.md): Post account ledger payment ## Insert points - [POST /slapi/clients/insertpoints](https://sl-api.redocly.app/openapi/client/insertpoints.md): Insert points ## Update client communication preferences - [POST /slapi/clients/updateclientcommpref](https://sl-api.redocly.app/openapi/client/updateclientcommpref.md): Update client communication preferences ## Insert payment - [POST /slapi/clients/insertpayment](https://sl-api.redocly.app/openapi/client/insertpayment.md): Inserts a payment * Transaction must be saved first * Receipt number is returned when inserting transaction ## Insert transaction - [POST /slapi/clients/inserttransaction](https://sl-api.redocly.app/openapi/client/inserttransaction.md): Inserts a transaction * Supported transaction types: * R = Retail Sale (productNumber is required) * P = Package Sale (packageId is required) * M = Membership Sale (membershipId is required) * 1 = Membership Fee (membershipId is required) * G = Gift Certificate Sale (giftCertNo is required) Amount is total for line item before tax (pricePerUnit units) * Receipt number is returned and can be used when inserting a payment ## Shares an affiliated package - [POST /slapi/clients/shareaffiliatedpackage](https://sl-api.redocly.app/openapi/client/shareaffiliatedpackage.md): Shares an affiliated package ## Unshares an affiliated package - [POST /slapi/clients/unshareaffiliatedpackage](https://sl-api.redocly.app/openapi/client/unshareaffiliatedpackage.md): Unshares an affiliated package ## Cancel membership - [POST /slapi/clients/cancelmembership](https://sl-api.redocly.app/openapi/client/cancelmembership.md): Cancels an active eft membership ## Insert spa profile answers - [POST /slapi/clients/insertprofileanswers](https://sl-api.redocly.app/openapi/client/insertprofileanswers.md): Inserts spa profile answers ## Add a referral - [POST /slapi/clients/addreferral](https://sl-api.redocly.app/openapi/client/addreferral.md): Add a referral ## Generate webdoc URL - [POST /slapi/clients/generatewebdocument](https://sl-api.redocly.app/openapi/client/generatewebdocument.md): Generates a webdoc URL