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

# Bulk Update Billing Date

> Set a new next-billing-date on each selected member.



## OpenAPI

````yaml post /inventory/members/bulk-update-billing-date
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /inventory/members/bulk-update-billing-date:
    post:
      tags:
        - Memberships
      summary: Bulk Update Billing Date
      description: Set a new next-billing-date on each selected member.
      operationId: bulk_update_billing_date_inventory_members_bulk_update_billing_date_post
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MemberBulkBillingDateUpdate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkActionResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MemberBulkBillingDateUpdate:
      properties:
        memberIds:
          items:
            type: string
          type: array
          minItems: 1
          title: Memberids
          description: IDs of members to update
        nextBillingDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Nextbillingdate
          description: New next billing date (null to reset to automatic)
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
          description: Comment explaining the billing date change
      type: object
      required:
        - memberIds
      title: MemberBulkBillingDateUpdate
      description: >-
        Bulk billing-date update - sets the same next billing date on each
        member.
    BulkActionResult:
      properties:
        succeeded:
          type: integer
          title: Succeeded
          description: Number of members the action succeeded for
          default: 0
        skipped:
          type: integer
          title: Skipped
          description: Number of members that were skipped (no-op, e.g. not delinquent)
          default: 0
        failed:
          items:
            $ref: '#/components/schemas/BulkActionFailure'
          type: array
          title: Failed
          description: Per-member failures with reasons
      type: object
      title: BulkActionResult
      description: Aggregate result for a bulk action that fans out per-member.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BulkActionFailure:
      properties:
        memberId:
          type: string
          title: Memberid
          description: ID of the member that failed
        reason:
          type: string
          title: Reason
          description: Human-readable reason for the failure
      type: object
      required:
        - memberId
        - reason
      title: BulkActionFailure
      description: A single per-member failure inside a bulk action result.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````