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

# Share an enrolled card with a group as a payment method



## OpenAPI

````yaml /api-reference/organizations-openapi.json post /organizations/{orgId}/groups/{groupId}/payment-methods
openapi: 3.0.0
info:
  title: Nevermined Organizations API
  description: >-
    Manage a Nevermined organization programmatically — members, tiers, groups &
    budgets, treasury wallets, customers, webhooks, analytics, and
    agent-discovery surfaces.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.sandbox.nevermined.app/api/v1
    description: Sandbox
  - url: https://api.live.nevermined.app/api/v1
    description: Live
security: []
tags:
  - name: Organizations
    x-group: General
    description: Organization settings, members & roles, and workspace context.
  - name: Organizations - Billing
    x-group: Billing
    description: Tiers, subscriptions, invoices, checkout, and the public tier catalog.
  - name: Groups
    x-group: Groups & Budgets
    description: Organization groups, per-group budgets, and shared payment methods.
  - name: Organizations - Wallets
    x-group: Wallets
    description: Custodial stablecoin treasury wallets.
  - name: Organizations - Customers
    x-group: Customers
    description: The white-label customer CRM (Enterprise).
  - name: Organizations - Analytics
    x-group: Analytics
    description: Revenue, MRR, usage, conversion, and per-member metrics.
  - name: Organizations - Webhooks
    x-group: Webhooks
    description: Outbound webhook subscriptions and deliveries.
  - name: Organizations - Activity
    x-group: Activity
    description: The organization activity feed.
  - name: Organizations - Realtime
    x-group: Realtime
    description: Realtime WebSocket secret management (Enterprise).
  - name: Invitations
    x-group: Invitations
    description: Invite people to an organization.
  - name: Organizations - Integration
    x-group: Agent Discovery
    description: >-
      Public agent-discovery surfaces (llms.txt, agentic-instructions.md,
      ai-catalog.json).
paths:
  /organizations/{orgId}/groups/{groupId}/payment-methods:
    post:
      tags:
        - Groups
      summary: Share an enrolled card with a group as a payment method
      operationId: GroupPaymentMethodsController_associate
      parameters:
        - name: orgId
          required: true
          in: path
          schema:
            type: string
            example: org-abc123
        - name: groupId
          required: true
          in: path
          schema:
            type: string
            example: grp-abc123
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssociatePaymentMethodDto'
      responses:
        '201':
          description: 'Envelope `{ success, paymentMethod: GroupPaymentMethodResponseDto }`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupPaymentMethodResponseEnvelopeDto'
        '404':
          description: Group or payment method not found
        '409':
          description: Payment method already shared with a group
        '422':
          description: Only card payment methods can be shared (Phase 1)
      security:
        - Authorization: []
components:
  schemas:
    AssociatePaymentMethodDto:
      type: object
      properties:
        paymentMethodId:
          type: string
          description: >-
            Id of an org card to share with the group — the card's provider
            payment-method id (the same id the /payment-methods list, PATCH and
            revoke use), not the internal row id.
          example: pm_1Abc2Def3Ghi4Jkl
      required:
        - paymentMethodId
    GroupPaymentMethodResponseEnvelopeDto:
      type: object
      properties:
        success:
          type: boolean
          example: true
        paymentMethod:
          $ref: '#/components/schemas/GroupPaymentMethodResponseDto'
      required:
        - success
        - paymentMethod
    GroupPaymentMethodResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Card (payment method) id
          example: 3fa8…afa6
        provider:
          type: string
          example: stripe
        brand:
          type: string
          example: visa
          nullable: true
        last4:
          type: string
          example: '4242'
          nullable: true
        expMonth:
          type: number
          example: 12
          nullable: true
        expYear:
          type: number
          example: 2030
          nullable: true
        alias:
          type: string
          description: User-given card name (alias)
          example: Team Amex
          nullable: true
        orgId:
          type: string
          description: Organization the card belongs to (null = personal)
          example: org-3fa8…afa6
          nullable: true
      required:
        - id
        - provider
        - brand
        - last4
        - expMonth
        - expYear
        - alias
        - orgId
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [List a group's shared payment methods](/docs/api-reference/groups/list-a-groups-shared-payment-methods.md)
- [Groups & Budgets](/docs/solutions/organizations/groups-and-budgets.md)
- [Share an org wallet with a group (so it funds the group budget)](/docs/api-reference/organizations--wallets/share-an-org-wallet-with-a-group-so-it-funds-the-group-budget.md)
- [Card Enrollment](/docs/products/payments/card-enrollment.md)
- [List the groups a wallet is shared with](/docs/api-reference/organizations--wallets/list-the-groups-a-wallet-is-shared-with.md)
