> ## Documentation Index
> Fetch the complete documentation index at: https://docs.techfootintl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Party

> Creates a Customer, Employee, or Vendor party.



## OpenAPI

````yaml POST /billspree/users/make-users
openapi: 3.1.0
info:
  title: Billspree API
  description: REST API for Billspree — billing, AR management, and workspace operations.
  version: 1.0.0
servers:
  - url: https://{workspace}.spreesuite.com
    variables:
      workspace:
        default: your-workspace
        description: Your organization's subdomain (e.g. demo → demo.spreesuite.com)
security:
  - apiKeyAuth: []
paths:
  /billspree/users/make-users:
    post:
      tags:
        - Parties
      summary: Create Party
      description: Creates a Customer, Employee, or Vendor party.
      operationId: makeParty
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePartyRequest'
            example:
              users:
                - country: US
                  name: Jane Doe
                  email: jane@example.com
                  contacts:
                    - contactType: Mobile
                      contactValue: 555-0100
              userType: customer
              method: Create
              action: Create Parties
              apiVersion: v2
      responses:
        '200':
          description: Party created, or a validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePartyResponse'
              example:
                success: true
                statusCode: 200
                message: Request Succeeded.
                error: null
                data: {}
components:
  schemas:
    CreatePartyRequest:
      type: object
      required:
        - users
        - userType
        - method
        - action
        - apiVersion
      properties:
        users:
          type: array
          description: Wraps the party in an array — only one entry is ever sent.
          items:
            $ref: '#/components/schemas/PartyCreatePayload'
        userType:
          type: string
          enum:
            - customer
            - employee
            - vendor
        method:
          type: string
          example: Create
        action:
          type: string
          example: Create Parties
        apiVersion:
          type: string
          example: v2
    CreatePartyResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          description: On failure, may be a structured validation-error object.
          oneOf:
            - type: object
            - $ref: '#/components/schemas/CreatePartyErrorData'
        message:
          description: A string, or an array of objects each carrying a message.
          oneOf:
            - type: string
            - $ref: '#/components/schemas/ValidationMessageList'
        statusCode:
          type: integer
        error:
          nullable: true
    PartyCreatePayload:
      type: object
      required:
        - country
        - name
      properties:
        partyNumber:
          type: string
          description: Optional.
        tenantID:
          type: integer
        country:
          type: string
        name:
          type: string
        cnic:
          type: string
        title:
          type: string
        shopNo:
          type: string
        additionalInfo:
          type: string
        buildingNo:
          type: string
        buildingName:
          type: string
        street:
          type: string
        block:
          type: string
        society:
          type: string
        city:
          type: string
        email:
          type: string
        contacts:
          type: array
          items:
            $ref: '#/components/schemas/Contact'
        particulars:
          type: object
          description: Custom fields defined per tenant.
          additionalProperties: true
        partyRefNo:
          type: string
        competencies:
          type: array
          items:
            type: object
        associationType:
          type: string
          description: Optional. Employment type.
        dataSecurityAttributes:
          type: array
          items:
            type: object
        levelId:
          type: integer
        hierarchyId:
          type: integer
        parentPartyNumber:
          type: integer
          description: >-
            Only applies when userType is "customer" and the value is greater
            than 0.
    CreatePartyErrorData:
      type: object
      description: Returned when creation fails validation.
      properties:
        mendatoryField:
          $ref: '#/components/schemas/ValidationMessageList'
        incorrectTypes:
          $ref: '#/components/schemas/ValidationMessageList'
        incorrectFormats:
          $ref: '#/components/schemas/ValidationMessageList'
        incorrectBoundary:
          $ref: '#/components/schemas/ValidationMessageList'
    ValidationMessageList:
      type: array
      items:
        type: object
        properties:
          message:
            type: string
    Contact:
      type: object
      properties:
        contactType:
          type: string
          example: Mobile
        contactValue:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Auth token returned from the login endpoint. Send as: `Authorization:
        <token>` (no Bearer prefix)

````