# Retrieve associated payment instruments

`GET /payout-requests/{id}/payment-instruments`

> This is a subset of the full specification, limited to the `GET /payout-requests/{id}/payment-instruments` 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 `GET /payout-requests/{id}/payment-instruments` operation.
  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: Transactions
    description: |-
      Use these operations to:
        - set up payment instruments for payments
        - authorize and hold funds
        - capture funds
        - make payments
        - make payouts
        - refund transactions.
x-tagGroups:
  - name: Payments
    tags:
      - Transactions
paths:
  /payout-requests/{id}/payment-instruments:
    parameters:
      - $ref: '#/components/parameters/resourceId'
    get:
      x-badges:
        - name: Experimental
      x-products:
        - Core
      tags:
        - Transactions
      summary: Retrieve associated payment instruments
      operationId: GetPayoutRequestPaymentInstruments
      x-sdk-operation-name: getPaymentInstruments
      description: Retrieves the payment gateway and a list of payment instruments that are associated with a payout request with a specified ID.
      responses:
        '200':
          description: Payout request associated payment instruments retrieved.
          content:
            application/json:
              schema:
                type: array
                description: List of available payment instruments per an associated gateway to offer for the payout.
                items:
                  type: object
                  properties:
                    paymentInstrumentId:
                      type: string
                      description: ID of the payment instrument to offer for the payout.
                      maxLength: 50
                      example: inst_0YVB8KPKNXCBR9EDX7JHSED75N
                    gatewayName:
                      description: |-
                        Name of the payment gateway and payment instrument to use for the payout.
                        This field is empty if the requested payment instrument has not been used yet.
                      x-label: Gateway account
                      x-basic: true
                      type:
                        - string
                        - 'null'
                      allOf:
                        - $ref: '#/components/schemas/GatewayName'
                    gatewayAccountId:
                      description: ID of the gateway account to use for processing this allocation.
                      type: string
                      maxLength: 50
                      example: gateway_0YVB8KPKNXCBR9EDX7JHSED75N
                    gatewayPayoutInstruction:
                      description: Payout configuration for the gateway account.
                      type:
                        - string
                        - 'null'
                      enum:
                        - all
                        - covered-payout
                        - approved-payment
                        - none
                        - null
                      example: covered-payout
                    exposureAmount:
                      description: |-
                        Approved sales and captures, minus associated approved refunds and voids, and minus approved payouts, for the specified gateway account and payment instrument in the last 180 days.
                        Allocations on the same gateway account and payment instrument that are pending, queued, processing, or waiting-completion are also subtracted.
                        The resulting amount is the usable exposure for ranking during auto-allocation.
                      type: number
                      format: double
                    previousAllocatedAmount:
                      description: Total amount of allocated credit for the payout request for the specified gateway and instrument.
                      type: number
                      format: double
                    lastPaymentTime:
                      description: |-
                        Date and time when the last payment is created for the gateway and the payment instrument.
                        Payments are the result of `sale` or `capture` transactions.
                      type:
                        - string
                        - 'null'
                      format: date-time
                    lastPayoutTime:
                      description: Date and time when the last payout is created for the gateway and the payment instrument.
                      type:
                        - string
                        - 'null'
                      format: date-time
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
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
  parameters:
    resourceId:
      name: id
      in: path
      description: ID of the resource.
      required: true
      schema:
        type: string
        maxLength: 50
        pattern: ^[@~\-\.\w]+$
  schemas:
    BaseProblem:
      type: object
      additionalProperties: true
      minProperties: 1
      description: RFC-7807 [problem details](https://tools.ietf.org/html/rfc7807) JSON object.
      properties:
        type:
          type: string
          description: |-
            Problem type in the form of a [URI](https://tools.ietf.org/html/rfc3986) reference.
            It should provide human-readable documentation for the problem type.
            When this member is not present, its value is assumed to be "about:blank".
          format: uri
        title:
          type: string
          description: |-
            Short, human-readable summary of the problem type.
            Other than for the purposes of localization, this should not change from occurrence to occurrence of the problem.
        detail:
          type: string
          description: Human-readable explanation that is specific to this occurrence of the problem.
        instance:
          type: string
          description: |-
            URI reference that identifies the specific occurrence of the problem.
            It may or may not yield further information if dereferenced.
    Unauthorized:
      allOf:
        - title: Unauthorized
        - type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
              minimum: 401
              maximum: 401
        - $ref: '#/components/schemas/BaseProblem'
    OrganizationId:
      type: string
      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).
      maxLength: 50
      example: org_0YVDM8RC7GDADADSBSMW124JA8
    Forbidden:
      allOf:
        - title: Forbidden
        - type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
              minimum: 403
              maximum: 403
            error:
              type: string
              description: |-
                Message that describes why the request is forbidden.
                Most responses use a descriptive message, such as `Not allowed to change security settings`.
                If the organization requires multi-factor authentication (MFA) and MFA verification has not been completed for the session, this value is `mfa_required`.
                If MFA verification has not been completed for the session and the operation requires a confirmed session, this value is `mfa_required_for_caller`.
                This includes turning on `requireMfa` and resetting MFA for a user.
                If the organization restricts access to a list of IP addresses and the request comes from an IP address that is not in the list, this value is `ip_not_allowed`.
            organizationId:
              description: |-
                ID of the organization that requires MFA or does not allow the IP address of the request.
                This property is present only if `error` is `mfa_required` or `ip_not_allowed`.
                The organization is the organization of the request or another organization that the request acts on.
              $ref: '#/components/schemas/OrganizationId'
        - $ref: '#/components/schemas/BaseProblem'
    NotFound:
      allOf:
        - type: object
          properties:
            status:
              type: integer
              description: HTTP status code.
              minimum: 404
              maximum: 404
        - $ref: '#/components/schemas/BaseProblem'
    GatewayName:
      description: Payment gateway name.
      type:
        - string
        - 'null'
      enum:
        - A1Gateway
        - ACI
        - Adyen
        - Aera
        - Aircash
        - Airpay
        - Airwallex
        - AsiaPay
        - AmazonPay
        - AmexVPC
        - Antom
        - ApcoPay
        - AsiaPaymentGateway
        - AstroPayCard
        - AuthorizeNet
        - Awepay
        - Bambora
        - BankSEND
        - BitPay
        - BlueSnap
        - BoomFi
        - BraintreePayments
        - Buckaroo
        - BVNK
        - Cardknox
        - Cashflows
        - CASHlib
        - Cashterminal
        - CashToCode
        - CauriPayment
        - Cayan
        - CCAvenue
        - Chase
        - CheckoutCom
        - Chillstock
        - Circle
        - Citadel
        - Clearhaus
        - Cleo
        - CODVoucher
        - Coinbase
        - CoinGate
        - CoinPayments
        - Commas
        - Conekta
        - Coppr
        - Cps
        - Credorax
        - Cryptomus
        - Cryptonator
        - CyberSource
        - DataCash
        - Dengi
        - Dimoco
        - Directa24
        - dLocal
        - Dragonphoenix
        - Dropayment
        - EasyPayDirect
        - EBANX
        - ecoPayz
        - ecoPayzTurkey
        - EcorePay
        - Elavon
        - Euteller
        - eMerchantPay
        - EMS
        - ePay
        - EPG
        - EPro
        - Ezeebill
        - eZeeWallet
        - ezyEFT
        - FasterPay
        - Finrax
        - Flexepin
        - FinTecSystems
        - FundSend
        - Forte
        - Fyntra
        - gate2way
        - GET
        - Gigadat
        - GlobalOnePay
        - GoCardless
        - Gooney
        - Gpaysafe
        - Greenbox
        - HiPay
        - iCashOne
        - iCanPay
        - ICEPAY
        - iCheque
        - iDebit
        - Ilixium
        - IMerchant
        - Ingenico
        - INOVAPAY
        - Inovio
        - Intuit
        - InstaDebit
        - IpayOptions
        - Isx
        - JetPay
        - Jeton
        - JPMOrbital
        - Khelocard
        - Klarna
        - Konnektive
        - Kushki
        - LaCore
        - Limepay
        - Loonio
        - loonie
        - LPG
        - MaxiCash
        - MercadoPago
        - MiFinity
        - Mollie
        - MobilePay
        - Moneris
        - Monolo
        - MonRem
        - MtaPay
        - MuchBetter
        - MuchBetterGateway
        - MyFatoorah
        - Naewe
        - Neosurf
        - Netbanking
        - Neteller
        - NGenius
        - NinjaWallet
        - NMI
        - NordikCoin
        - NOWPayments
        - NuaPay
        - OchaPay
        - OmniMatrix
        - Onlineueberweisen
        - OnRamp
        - Orbital
        - Pagadito
        - Pagsmile
        - Panamerican
        - ParamountCommerce
        - ParamountEft
        - ParamountInterac
        - PandaGateway
        - Pay4Fun
        - Paybilt
        - PayCash
        - Paycly
        - PayClub
        - PayCom
        - PayEcards
        - Payeezy
        - Payflow
        - PayGlocal
        - Paynote
        - PaymentAsia
        - PaymenTechnologies
        - PaymentsOS
        - Paymero
        - PayPal
        - Payper
        - Payr
        - PayRedeem
        - PayRetailers
        - Paysafe
        - Paysafecard
        - Paysafecash
        - PayTabs
        - PayU
        - PayULatam
        - Payvision
        - PayXpert
        - PharosPayments
        - Piastrix
        - Pin4Pay
        - Plugnpay
        - PostFinance
        - Powertranz
        - PPRO
        - Prosa
        - PSiGate
        - Quickpay
        - Rapyd
        - Realex
        - Realtime
        - Redsys
        - Rotessa
        - RPN
        - Safecharge
        - SaltarPay
        - Sagepay
        - SeamlessChex
        - SecureTrading
        - SecurionPay
        - Skrill
        - SmartInvoice
        - SMSVoucher
        - Sofort
        - SparkPay
        - Splitit
        - StaticGateway
        - STPMexico
        - Stripe
        - Tabby
        - Telr
        - TestProcessor
        - Thunes
        - ToditoCash
        - Triple000
        - Truevo
        - TrustsPay
        - Trustly
        - TWINT
        - Txn
        - Unlimit
        - UPayCard
        - USAePay
        - VantivLitle
        - vegaaH
        - VCreditos
        - VegaWallet
        - Viva
        - Wallet88
        - Walpay
        - WesternUnion
        - Wirecard
        - WorldlineAtosFrankfurt
        - Worldpay
        - XPay
        - Zimpler
        - Zotapay
  responses:
    Unauthorized:
      description: |-
        Unauthorized access.
        Invalid credentials used.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Unauthorized'
    Forbidden:
      description: |-
        Access forbidden.
        If the organization requires multi-factor authentication (MFA) and the session has not passed MFA, `error` is `mfa_required`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Forbidden'
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFound'
```
