# Payment instrument modified

`POST payment-instrument-modified`

> This is a subset of the full specification, limited to the `POST payment-instrument-modified` operation.
>
> You can find the full specification here: /_bundle/docs/dev-docs/api/index.yaml

```yaml
openapi: 3.1.1
info:
  version: latest
  title: Core APIs
  contact:
    name: Rebilly API Support
    url: https://www.rebilly.com/contact/
    email: integrations@rebilly.com
  license:
    name: Rebilly
    url: https://www.rebilly.com/api-license/
  termsOfService: https://www.rebilly.com/terms-of-use/
  x-logo:
    url: https://rebilly-core.redoc.ly/rb_apiLogo.svg
    backgroundColor: '#0044d4'
  description: This is a subset of the full specification, limited to the `POST payment-instrument-modified` operation. Components more than 3 `$ref` hops away are not included.
  x-metadata:
    description: The most common APIs used to automate common workflows.
    redocly_category: API Reference
servers:
  - url: https://api-sandbox.rebilly.com/organizations/{organizationId}
    description: Sandbox server
    variables:
      organizationId:
        default: '{organizationId}'
        description: |-
          Unique organization identifier.
          An organization is an entity that represents a company.
          For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
  - url: https://api.rebilly.com/organizations/{organizationId}
    description: Live server
    variables:
      organizationId:
        default: '{organizationId}'
        description: |-
          Unique organization identifier.
          An organization is an entity that represents a company.
          For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
security:
  - SecretApiKey: []
  - JWT: []
tags:
  - name: Payment instruments
    description: |-
      Use these operations to manage payment instruments.
      Payment instrument is a term which describes any means of making a digital payment, such as:
      credit cards, debit cards, direct debits, payment service providers, and digital wallets.

      For more information on payment instruments, see [Payment instruments](https://www.rebilly.com/docs/dev-docs/concepts/#payment-instruments).
x-tagGroups:
  - name: Payment Instruments
    tags:
      - Payment instruments
paths: {}
webhooks:
  payment-instrument-modified:
    post:
      summary: Payment instrument modified
      operationId: payment-instrument-modified
      x-products:
        - Core
      tags:
        - Payment instruments
      requestBody:
        $ref: '#/components/requestBodies/PaymentInstrumentWebhook'
      responses:
        2xx:
          description: Returns any 2xx status to indicate that data is received.
components:
  securitySchemes:
    JWT:
      description: |-
        JWT is a short lifetime token that can be assigned a specific expiration time.

        Usage format: `Bearer <JWT>`.
      type: http
      scheme: bearer
      bearerFormat: JWT
    SecretApiKey:
      description: |-
        Never share your secret keys.
        Keep them guarded and secure.

        Use your secret API key only to make requests from the server side.
        To authenticate, provide your secret key in the request header.
      name: REB-APIKEY
      type: apiKey
      in: header
  schemas:
    PaymentCard:
      type: object
      description: Payment card information.
      title: Payment card
      required:
        - method
      properties:
        id:
          type: string
          description: ID of the payment instrument.
          readOnly: true
          maxLength: 50
          example: inst_0YVB8KPKNXCBR9EDX7JHSED75N
        customerId:
          $ref: '#/components/schemas/CustomerId'
        method:
          description: Method of payment instrument.
          type: string
          readOnly: true
          enum:
            - payment-card
        status:
          type: string
          description: |-
            Status of the payment instrument.
            An `active` status means that a payment instrument has been used at least once for an approved transaction.
            To remove an instrument from use, set this value to `deactivated`.

            For more information, see [`POST /payment-instruments/{id}/deactivation`](https://www.rebilly.com/catalog/all/payment-instruments/postpaymentinstrumentdeactivation).
          enum:
            - active
            - inactive
            - expired
            - deactivated
            - verification-needed
        fingerprint:
          description: |-
            Unique value that is used to identify the payment instrument.
            This value is generated from the `bin` and the `last4` values.
            This value contains alphanumeric characters.
          type: string
          readOnly: true
        bin:
          description: |-
            Bank Identification Number (BIN) of the payment card.
            This value is the same as the first 6 digits of the associated Primary Account Number (PAN).
          type: string
          format: bin
          readOnly: true
        last4:
          description: Last 4 digits of the associated Primary Account Number (PAN).
          type: string
          readOnly: true
        fpanLast4:
          description: |-
            Last 4 digits of the Funding Primary Account Number (FPAN) of the payment card.
            This value is only present for payment cards created from digital wallet tokens,
            where the FPAN is the physical card number visible to the cardholder,
            as opposed to the Device Primary Account Number (DPAN) used in the digital wallet transaction.
          type:
            - string
            - 'null'
          readOnly: true
        pan:
          description: Primary Account Number (PAN) of the payment card.
          type: string
          writeOnly: true
        expYear:
          description: Expiration year of the payment card.
          type: integer
        expMonth:
          description: Expiration month of the payment card.
          type: integer
        cvv:
          description: Card Verification Value (CVV) of the payment card.
          type: string
          writeOnly: true
        brand:
          readOnly: true
          allOf:
            - $ref: '#/components/schemas/PaymentCardBrand'
        bankCountry:
          description: Bank country of the payment instrument.
          type:
            - string
            - 'null'
          readOnly: true
        bankName:
          description: Bank name of the payment instrument.
          type: string
          readOnly: true
        isPayoutable:
          description: |-
            Specifies if payouts are supported for cards with this BIN.
            Defaults to `true`.
            This value is `false` if the BIN does not support payouts.
          type: boolean
          readOnly: true
        billingAddress:
          description: Contact's billing address.
          $ref: '#/components/schemas/ContactObject'
        useAsBackup:
          $ref: '#/components/schemas/UseAsBackup'
        billingPortalUrl:
          description: URL of the billing portal where the card can be updated.
          type: string
          readOnly: true
        createdTime:
          $ref: '#/components/schemas/CreatedTime'
        updatedTime:
          $ref: '#/components/schemas/UpdatedTime'
        lastPaymentTime:
          $ref: '#/components/schemas/LastPaymentTime'
        customFields:
          $ref: '#/components/schemas/ResourceCustomFields'
        stickyGatewayAccountId:
          description: |-
            ID of the sticky gateway account.
            All future payments are processed by this gateway account.

            For more information,
            see [Gateway routing](https://www.rebilly.com/docs/settings/intelligent-payment-routing/#sticky-gateway-accounts).
          type:
            - string
            - 'null'
          readOnly: true
        expirationReminderTime:
          description: Date and time when an expiration reminder event is triggered.
          type:
            - string
            - 'null'
          format: date-time
          readOnly: true
        expirationReminderNumber:
          description: Number of expiration reminder events that have triggered.
          type:
            - integer
            - 'null'
          readOnly: true
        referenceData:
          description: Payment instrument reference data.
          type: object
          additionalProperties:
            type: string
          example:
            gatewayTransactionId: GAT123
        digitalWallet:
          readOnly: true
          description: Digital wallet type.
          type:
            - string
            - 'null'
          enum:
            - Apple Pay
            - Google Pay
            - Samsung Pay
            - null
        riskMetadata:
          oneOf:
            - $ref: '#/components/schemas/RiskMetadata'
            - type: 'null'
        revision:
          description: |-
            Number of times the payment instrument data has been modified.

            Use this value when analyzing webhook data to determine if a change must take precedence over the current representation.
          type: integer
          readOnly: true
        _links:
          type: array
          description: Related links.
          readOnly: true
          items:
            type: object
            properties:
              href:
                description: Link URL.
                type: string
              rel:
                description: Type of link.
                type: string
                enum:
                  - self
                  - customer
        _embedded:
          type: object
          description: Embedded objects that are requested by the `expand` query parameter.
          readOnly: true
          properties:
            customer:
              type: object
    BankAccount:
      type: object
      title: Bank account
      required:
        - method
      properties:
        id:
          type: string
          description: ID of the payment instrument.
          readOnly: true
          maxLength: 50
          example: inst_0YVB8KPKNXCBR9EDX7JHSED75N
        customerId:
          $ref: '#/components/schemas/CustomerId'
        method:
          description: Method of payment instrument.
          type: string
          readOnly: true
          enum:
            - ach
        bankName:
          description: Name of the bank.
          type: string
        routingNumber:
          description: Bank routing number.
          type: string
        accountNumberType:
          description: |-
            Type of bank account number.
            A valid value is a Basic Bank Account Number (BBAN) or an International Bank Account Number (IBAN).
          type: string
          default: BBAN
          enum:
            - BBAN
            - IBAN
        accountType:
          description: Type of bank account.
          type: string
          enum:
            - checking
            - savings
            - other
        bic:
          description: Bank Identifier Code (BIC).
          type:
            - string
            - 'null'
        billingAddress:
          description: Customer's billing address.
          $ref: '#/components/schemas/ContactObject'
        fingerprint:
          description: |-
            Unique value which identifies the bank account.
            This value contains alphanumeric characters.
            Depending on the type of bank account number,
            a bank account fingerprint is generated using one of the following:
            - BBAN: `last4` and `routingNumber` values.
            - IBAN: First 8 characters of the IBAN and the `last4` value.
          type: string
          readOnly: true
        last4:
          description: Last 4 digits of the bank account number.
          type: string
          readOnly: true
        status:
          description: Status of the bank account.
          type: string
          readOnly: true
          enum:
            - active
            - deactivated
        stickyGatewayAccountId:
          description: |-
            ID of the sticky gateway account.
            All future payments are processed by this gateway account.

            For more information, see [Gateway routing](https://www.rebilly.com/docs/settings/intelligent-payment-routing/#sticky-gateway-accounts).
          type:
            - string
            - 'null'
          readOnly: true
        riskMetadata:
          oneOf:
            - $ref: '#/components/schemas/RiskMetadata'
            - type: 'null'
        useAsBackup:
          $ref: '#/components/schemas/UseAsBackup'
        createdTime:
          $ref: '#/components/schemas/CreatedTime'
        updatedTime:
          $ref: '#/components/schemas/UpdatedTime'
        lastPaymentTime:
          $ref: '#/components/schemas/LastPaymentTime'
        customFields:
          $ref: '#/components/schemas/ResourceCustomFields'
        revision:
          description: |-
            Number of times the payment instrument data has been modified.

            Use this value when analyzing webhook data to determine if a change must take precedence over the current representation.
          type: integer
          readOnly: true
        _links:
          type: array
          description: Related links.
          readOnly: true
          items:
            type: object
            properties:
              href:
                description: Link URL.
                type: string
              rel:
                description: Type of link.
                type: string
                enum:
                  - self
                  - customer
        _embedded:
          type: object
          description: Embedded objects that are requested by the `expand` query parameter.
          readOnly: true
          properties:
            customer:
              type: object
    PayPalAccount:
      type: object
      title: PayPal account
      required:
        - method
        - customerId
        - billingAddress
      properties:
        id:
          type: string
          description: ID of the payment instrument.
          readOnly: true
          maxLength: 50
          example: inst_0YVB8KPKNXCBR9EDX7JHSED75N
        customerId:
          $ref: '#/components/schemas/CustomerId'
        method:
          description: Method of payment instrument.
          type: string
          enum:
            - paypal
        billingAddress:
          description: Billing address.
          $ref: '#/components/schemas/ContactObject'
        username:
          description: PayPal username.
          type: string
          readOnly: true
        status:
          description: PayPal account status.
          type: string
          readOnly: true
          enum:
            - inactive
            - active
            - deactivated
        useAsBackup:
          $ref: '#/components/schemas/UseAsBackup'
        createdTime:
          $ref: '#/components/schemas/CreatedTime'
        updatedTime:
          $ref: '#/components/schemas/UpdatedTime'
        lastPaymentTime:
          $ref: '#/components/schemas/LastPaymentTime'
        customFields:
          $ref: '#/components/schemas/ResourceCustomFields'
        stickyGatewayAccountId:
          description: |-
            ID of the sticky gateway account.
            All future payments are processed by this gateway account.

            For more information, see [Gateway routing](https://www.rebilly.com/docs/settings/intelligent-payment-routing/#sticky-gateway-accounts).
          type:
            - string
            - 'null'
          readOnly: true
        riskMetadata:
          oneOf:
            - $ref: '#/components/schemas/RiskMetadata'
            - type: 'null'
        revision:
          description: |-
            Number of times the payment instrument data has been modified.

            Use this value when analyzing webhook data to determine if a change must take precedence over the current representation.
          type: integer
          readOnly: true
        _links:
          type: array
          description: Related links.
          readOnly: true
          items:
            type: object
            properties:
              href:
                description: Link URL.
                type: string
              rel:
                description: Type of link.
                type: string
                enum:
                  - self
                  - customer
        _embedded:
          type: object
          description: Embedded objects that are requested by the `expand` query parameter.
          readOnly: true
          properties:
            customer:
              type: object
    AlternativeInstrument:
      type: object
      title: Alternative instrument
      required:
        - method
        - customerId
        - billingAddress
      properties:
        id:
          type: string
          description: ID of the payment instrument.
          readOnly: true
          maxLength: 50
          example: inst_0YVB8KPKNXCBR9EDX7JHSED75N
        customerId:
          $ref: '#/components/schemas/CustomerId'
        method:
          description: Payment method of the payment instrument.
          allOf:
            - $ref: '#/components/schemas/AlternativePaymentMethods'
            - not:
                enum:
                  - payment-card
                  - paypal
                  - ach
                  - echeck
        billingAddress:
          description: Billing address of the user that is associated with the payment instrument.
          $ref: '#/components/schemas/ContactObject'
        status:
          description: Payment instrument status.
          type: string
          readOnly: true
          enum:
            - active
            - deactivated
        useAsBackup:
          $ref: '#/components/schemas/UseAsBackup'
        createdTime:
          $ref: '#/components/schemas/CreatedTime'
        updatedTime:
          $ref: '#/components/schemas/UpdatedTime'
        lastPaymentTime:
          $ref: '#/components/schemas/LastPaymentTime'
        customFields:
          $ref: '#/components/schemas/ResourceCustomFields'
        stickyGatewayAccountId:
          description: |-
            ID of the sticky gateway account.
            All future payments are processed by this gateway account.

            For more information,
            see [Gateway routing](https://www.rebilly.com/docs/settings/intelligent-payment-routing/#sticky-gateway-accounts).
          type:
            - string
            - 'null'
          readOnly: true
        referenceData:
          description: Payment instrument reference data.
          type: object
          additionalProperties:
            type: string
          example:
            gatewayTransactionId: GAT123
        riskMetadata:
          oneOf:
            - $ref: '#/components/schemas/RiskMetadata'
            - type: 'null'
        revision:
          description: |-
            Number of times the payment instrument data has been modified.

            Use this value when analyzing webhook data to determine if a change must take precedence over the current representation.
          type: integer
          readOnly: true
        _links:
          type: array
          description: Related links.
          readOnly: true
          items:
            type: object
            properties:
              href:
                description: Link URL.
                type: string
              rel:
                description: Type of link.
                type: string
                enum:
                  - self
                  - customer
        _embedded:
          type: object
          description: Embedded objects that are requested by the `expand` query parameter.
          readOnly: true
          properties:
            customer:
              type: object
    PaymentInstrument:
      discriminator:
        propertyName: method
        mapping:
          payment-card: '#/components/schemas/PaymentCard'
          ach: '#/components/schemas/BankAccount'
          paypal: '#/components/schemas/PayPalAccount'
          Khelocard: '#/components/schemas/AlternativeInstrument'
          cash: '#/components/schemas/AlternativeInstrument'
          check: '#/components/schemas/AlternativeInstrument'
          AdvCash: '#/components/schemas/AlternativeInstrument'
          Alfa-click: '#/components/schemas/AlternativeInstrument'
          Alipay: '#/components/schemas/AlternativeInstrument'
          AstroPay Card: '#/components/schemas/AlternativeInstrument'
          AstroPay-GO: '#/components/schemas/AlternativeInstrument'
          BankReferenced: '#/components/schemas/AlternativeInstrument'
          bank-transfer: '#/components/schemas/AlternativeInstrument'
          bank-transfer-2: '#/components/schemas/AlternativeInstrument'
          bank-transfer-3: '#/components/schemas/AlternativeInstrument'
          bank-transfer-4: '#/components/schemas/AlternativeInstrument'
          bank-transfer-5: '#/components/schemas/AlternativeInstrument'
          bank-transfer-6: '#/components/schemas/AlternativeInstrument'
          bank-transfer-7: '#/components/schemas/AlternativeInstrument'
          bank-transfer-8: '#/components/schemas/AlternativeInstrument'
          bank-transfer-9: '#/components/schemas/AlternativeInstrument'
          Baloto: '#/components/schemas/AlternativeInstrument'
          Beeline: '#/components/schemas/AlternativeInstrument'
          Belfius-direct-net: '#/components/schemas/AlternativeInstrument'
          bitcoin: '#/components/schemas/AlternativeInstrument'
          Bizum: '#/components/schemas/AlternativeInstrument'
          Boleto: '#/components/schemas/AlternativeInstrument'
          cash-deposit: '#/components/schemas/AlternativeInstrument'
          CASHlib: '#/components/schemas/AlternativeInstrument'
          CashToCode: '#/components/schemas/AlternativeInstrument'
          China UnionPay: '#/components/schemas/AlternativeInstrument'
          Cleo: '#/components/schemas/AlternativeInstrument'
          CODVoucher: '#/components/schemas/AlternativeInstrument'
          Commas-Checkout: '#/components/schemas/AlternativeInstrument'
          Conekta-oxxo: '#/components/schemas/AlternativeInstrument'
          Cupon-de-pagos: '#/components/schemas/AlternativeInstrument'
          cryptocurrency: '#/components/schemas/AlternativeInstrument'
          domestic-cards: '#/components/schemas/AlternativeInstrument'
          ecoPayz: '#/components/schemas/AlternativeInstrument'
          ecoVoucher: '#/components/schemas/AlternativeInstrument'
          Efecty: '#/components/schemas/AlternativeInstrument'
          EPS: '#/components/schemas/AlternativeInstrument'
          ePay.bg: '#/components/schemas/AlternativeInstrument'
          eZeeWallet: '#/components/schemas/AlternativeInstrument'
          FasterPay: '#/components/schemas/AlternativeInstrument'
          Flexepin: '#/components/schemas/AlternativeInstrument'
          Fyntra-Checkout: '#/components/schemas/AlternativeInstrument'
          Giropay: '#/components/schemas/AlternativeInstrument'
          Gpaysafe: '#/components/schemas/AlternativeInstrument'
          Google Pay: '#/components/schemas/AlternativeInstrument'
          iDebit: '#/components/schemas/AlternativeInstrument'
          iDEAL: '#/components/schemas/AlternativeInstrument'
          ING-homepay: '#/components/schemas/AlternativeInstrument'
          INOVAPAY-pin: '#/components/schemas/AlternativeInstrument'
          INOVAPAY-wallet: '#/components/schemas/AlternativeInstrument'
          InstaDebit: '#/components/schemas/AlternativeInstrument'
          instant-bank-transfer: '#/components/schemas/AlternativeInstrument'
          InstantPayments: '#/components/schemas/AlternativeInstrument'
          Interac: '#/components/schemas/AlternativeInstrument'
          Interac-online: '#/components/schemas/AlternativeInstrument'
          Interac-eTransfer: '#/components/schemas/AlternativeInstrument'
          invoice: '#/components/schemas/AlternativeInstrument'
          iWallet: '#/components/schemas/AlternativeInstrument'
          Jeton: '#/components/schemas/AlternativeInstrument'
          jpay: '#/components/schemas/AlternativeInstrument'
          Klarna: '#/components/schemas/AlternativeInstrument'
          KNOT: '#/components/schemas/AlternativeInstrument'
          loonie: '#/components/schemas/AlternativeInstrument'
          Matrix: '#/components/schemas/AlternativeInstrument'
          MaxiCash: '#/components/schemas/AlternativeInstrument'
          Megafon: '#/components/schemas/AlternativeInstrument'
          MiFinity-eWallet: '#/components/schemas/AlternativeInstrument'
          miscellaneous: '#/components/schemas/AlternativeInstrument'
          Bancontact: '#/components/schemas/AlternativeInstrument'
          Bancontact-mobile: '#/components/schemas/AlternativeInstrument'
          MTS: '#/components/schemas/AlternativeInstrument'
          MuchBetter: '#/components/schemas/AlternativeInstrument'
          Multibanco: '#/components/schemas/AlternativeInstrument'
          Neosurf: '#/components/schemas/AlternativeInstrument'
          Netbanking: '#/components/schemas/AlternativeInstrument'
          Neteller: '#/components/schemas/AlternativeInstrument'
          Nordea-Solo: '#/components/schemas/AlternativeInstrument'
          OchaPay: '#/components/schemas/AlternativeInstrument'
          online-bank-transfer: '#/components/schemas/AlternativeInstrument'
          Onlineueberweisen: '#/components/schemas/AlternativeInstrument'
          oriental-wallet: '#/components/schemas/AlternativeInstrument'
          OXXO: '#/components/schemas/AlternativeInstrument'
          P24: '#/components/schemas/AlternativeInstrument'
          Pagadito: '#/components/schemas/AlternativeInstrument'
          PagoEffectivo: '#/components/schemas/AlternativeInstrument'
          Pagsmile-deposit-express: '#/components/schemas/AlternativeInstrument'
          Pagsmile-lottery: '#/components/schemas/AlternativeInstrument'
          PayCash: '#/components/schemas/AlternativeInstrument'
          Payeer: '#/components/schemas/AlternativeInstrument'
          PaymentAsia-crypto: '#/components/schemas/AlternativeInstrument'
          Paymero: '#/components/schemas/AlternativeInstrument'
          Perfect-money: '#/components/schemas/AlternativeInstrument'
          Piastrix: '#/components/schemas/AlternativeInstrument'
          plaid-account: '#/components/schemas/AlternativeInstrument'
          PayTabs: '#/components/schemas/AlternativeInstrument'
          Paysafecard: '#/components/schemas/AlternativeInstrument'
          Paysafecash: '#/components/schemas/AlternativeInstrument'
          Pay4Fun: '#/components/schemas/AlternativeInstrument'
          Paynote: '#/components/schemas/AlternativeInstrument'
          PinPay: '#/components/schemas/AlternativeInstrument'
          phone: '#/components/schemas/AlternativeInstrument'
          PhonePe: '#/components/schemas/AlternativeInstrument'
          POLi: '#/components/schemas/AlternativeInstrument'
          PostFinance-card: '#/components/schemas/AlternativeInstrument'
          PostFinance-e-finance: '#/components/schemas/AlternativeInstrument'
          QIWI: '#/components/schemas/AlternativeInstrument'
          QPay: '#/components/schemas/AlternativeInstrument'
          QQPay: '#/components/schemas/AlternativeInstrument'
          rapyd-checkout: '#/components/schemas/AlternativeInstrument'
          Resurs: '#/components/schemas/AlternativeInstrument'
          SafetyPay: '#/components/schemas/AlternativeInstrument'
          SEPA: '#/components/schemas/AlternativeInstrument'
          Skrill: '#/components/schemas/AlternativeInstrument'
          Skrill Rapid Transfer: '#/components/schemas/AlternativeInstrument'
          SMSVoucher: '#/components/schemas/AlternativeInstrument'
          Sofort: '#/components/schemas/AlternativeInstrument'
          SparkPay: '#/components/schemas/AlternativeInstrument'
          swift-dbt: '#/components/schemas/AlternativeInstrument'
          Tele2: '#/components/schemas/AlternativeInstrument'
          Terminaly-RF: '#/components/schemas/AlternativeInstrument'
          Thunes-Checkout: '#/components/schemas/AlternativeInstrument'
          ToditoCash-card: '#/components/schemas/AlternativeInstrument'
          Trustly: '#/components/schemas/AlternativeInstrument'
          UPayCard: '#/components/schemas/AlternativeInstrument'
          UPI: '#/components/schemas/AlternativeInstrument'
          USD-coin: '#/components/schemas/AlternativeInstrument'
          VCreditos: '#/components/schemas/AlternativeInstrument'
          VenusPoint: '#/components/schemas/AlternativeInstrument'
          voucher: '#/components/schemas/AlternativeInstrument'
          voucher-2: '#/components/schemas/AlternativeInstrument'
          voucher-3: '#/components/schemas/AlternativeInstrument'
          voucher-4: '#/components/schemas/AlternativeInstrument'
          Webmoney: '#/components/schemas/AlternativeInstrument'
          Webpay: '#/components/schemas/AlternativeInstrument'
          Webpay-2: '#/components/schemas/AlternativeInstrument'
          Webpay Card: '#/components/schemas/AlternativeInstrument'
          WeChat Pay: '#/components/schemas/AlternativeInstrument'
          XPay-P2P: '#/components/schemas/AlternativeInstrument'
          XPay-QR: '#/components/schemas/AlternativeInstrument'
          Yandex-money: '#/components/schemas/AlternativeInstrument'
          Zotapay: '#/components/schemas/AlternativeInstrument'
          Zimpler: '#/components/schemas/AlternativeInstrument'
      oneOf:
        - $ref: '#/components/schemas/PaymentCard'
        - $ref: '#/components/schemas/BankAccount'
        - $ref: '#/components/schemas/PayPalAccount'
        - $ref: '#/components/schemas/AlternativeInstrument'
  requestBodies:
    PaymentInstrumentWebhook:
      content:
        application/json:
          schema:
            properties:
              paymentInstrumentId:
                type: string
                description: ID of the payment instrument.
                maxLength: 50
                example: inst_0YVB8KPKNXCBR9EDX7JHSED75N
              eventType:
                type: string
                description: Type of event that triggered the webhook.
                enum:
                  - payment-instrument-modified
              _embedded:
                type: object
                description: Embedded objects related to the payment instrument event.
                properties:
                  paymentInstrument:
                    $ref: '#/components/schemas/PaymentInstrument'
              _links:
                type: array
                description: Links to related resources.
                readOnly: true
                items:
                  type: object
                  properties:
                    href:
                      description: URL of the link.
                      type: string
                    rel:
                      description: Relationship type of the link.
                      type: string
                      enum:
                        - paymentInstrument
      description: Payload of payment instrument-related webhook event.
```
