# Insert client membership

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
* **activeDate** when set in the future, the status will be set to 'Purchased'

Endpoint: POST /slapi/clients/insertMembership
Version: 0.0.1
Security: BasicAuthCredentials

## Security:

  - `BasicAuthCredentials` (unknown)
    http basic

## Request fields (application/json):

  - `clientNumber` (string)
    Example: 0000000001

  - `membershipNumber` (string)
    Example: 0000000001

  - `storecode` (string)
    Example: 0000000001

  - `employeeNumber` (string)
    Example: 0000000001

  - `drawDay` (string)
    Example: 01

  - `firstDrawDate` (string)
    Example: 2026-09-01

  - `activeDate` (string)
    Example: 2026-10-01

## Response 201:

  - `201` (unknown)
    Inserts a client membership

## Response 201 fields (applicaiton/json):

  - `message` (string)

  - `membershipId` (string)

## Response 400:

  - `400` (unknown)
    Client not found

## Response 400 fields (applicatoin/json):

  - `error` (string)

  - `message` (string)

