> This page is for Unified.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

The `PaymentMethod` object defines how a payment against an invoice is made.

### The PaymentMethod Object

```json
{
  "id": "string",
  "remote_id": "string",
  "created_at": "2023-01-01T00:00:00Z",
  "modified_at": "2023-01-01T00:00:00Z",
  "method_type": "CREDIT_CARD",
  "name": "string",
  "is_active": true,
  "remote_updated_at": "2023-01-01T00:00:00Z",
  "payment_method_url": "string",
  "field_mappings": {
    "organization_defined_targets": {
      "string": {}
    },
    "linked_account_defined_targets": {
      "string": {}
    }
  },
  "remote_data": [
    {
      "path": "string",
      "data": {}
    }
  ]
}
```

### Schema (`PaymentMethod`)

```yaml
components:
  schemas:
    MethodTypeEnum:
      type: string
      enum:
        - CREDIT_CARD
        - DEBIT_CARD
        - ACH
        - CASH
        - CHECK
      title: MethodTypeEnum
    PaymentMethodFieldMappings:
      type: object
      properties:
        organization_defined_targets:
          type: object
          additionalProperties:
            description: Any type
        linked_account_defined_targets:
          type: object
          additionalProperties:
            description: Any type
      title: PaymentMethodFieldMappings
    RemoteData:
      type: object
      properties:
        path:
          type: string
          description: The third-party API path that is being called.
        data:
          description: >-
            The data returned from the third-party for this object in its
            original, unnormalized format.
      required:
        - path
      description: >-
        # The RemoteData Object

        ### Description

        The `RemoteData` object is used to represent the full data pulled from
        the third-party API for an object.


        ### Usage Example

        TODO
      title: RemoteData
    PaymentMethod:
      type: object
      properties:
        id:
          type: string
          format: uuid
        remote_id:
          type:
            - string
            - 'null'
          description: The third-party API ID of the matching object.
        created_at:
          type: string
          format: date-time
          description: The datetime that this object was created by Merge.
        modified_at:
          type: string
          format: date-time
          description: The datetime that this object was modified by Merge.
        method_type:
          oneOf:
            - $ref: '#/components/schemas/MethodTypeEnum'
            - type: 'null'
          description: The type of the payment method.
        name:
          type: string
          maxLength: 255
          description: The payment method’s name
        is_active:
          type: boolean
          description: '`True` if the payment method is active, `False` if not.'
        remote_updated_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the third party's payment method was updated.
        payment_method_url:
          type:
            - string
            - 'null'
          format: uri
          maxLength: 2000
          description: The 3rd party URL of the payment method.
        field_mappings:
          oneOf:
            - $ref: '#/components/schemas/PaymentMethodFieldMappings'
            - type: 'null'
        remote_data:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/RemoteData'
      required:
        - name
      title: PaymentMethod
```