# Retrieve a payout request

`GET /payout-requests/{id}`

> This is a subset of the full specification, limited to the `GET /payout-requests/{id}` 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}` 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}:
    parameters:
      - $ref: '#/components/parameters/resourceId'
    get:
      x-badges:
        - name: Experimental
      x-products:
        - Core
      tags:
        - Transactions
      summary: Retrieve a payout request
      operationId: GetPayoutRequest
      x-sdk-operation-name: get
      description: Retrieves a payout request with a specified ID.
      responses:
        '200':
          description: Payout request retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayoutRequest'
        '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:
    CreatedTime:
      type: string
      description: |-
        Date and time when the resource is created.
        This value is set automatically when the resource is created.
      format: date-time
      readOnly: true
      x-sortable: true
      x-label: Creation Time
    UpdatedTime:
      type: string
      description: |-
        Date and time when the resource is updated.
        This value is set automatically when the resource is updated.
      format: date-time
      readOnly: true
      x-sortable: true
      x-label: Last Update Time
    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'
    CustomerId:
      type: string
      description: ID of the customer resource.
      maxLength: 50
      example: cus_0YV7DDSDD1C8DA64KHH2W33CPF
      x-basic: true
    CurrencyCode:
      type: string
      description: Currency code in ISO 4217 format.
      minLength: 3
      maxLength: 3
      example: USD
      x-label: Currency
    WebsiteId:
      type: string
      description: |-
        ID of the website.
        A website is where an organization obtains a customer.
        For more information, see [Obtain an organization ID and website ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
      maxLength: 50
      example: web_0YV7DE4Z26DQSA1AC92FBJ7SEG
    PaymentMethod:
      type: string
      description: Payment method.
      enum:
        - payment-card
        - ach
        - cash
        - check
        - paypal
        - AdvCash
        - Aera
        - Affirm
        - Afterpay
        - Aircash
        - Airpay
        - Alfa-click
        - Alipay
        - AmazonPay
        - Apple Pay
        - AstroPay Card
        - AstroPay-GO
        - BankSEND
        - BankReferenced
        - bank-transfer
        - bank-transfer-2
        - bank-transfer-3
        - bank-transfer-4
        - bank-transfer-5
        - bank-transfer-6
        - bank-transfer-7
        - bank-transfer-8
        - bank-transfer-9
        - Baloto
        - Beeline
        - Belfius-direct-net
        - bitcoin
        - Bizum
        - Blik
        - Boleto
        - Boleto-2
        - Boleto-3
        - cash-deposit
        - CASHlib
        - CashToCode
        - CCAvenue
        - China UnionPay
        - Clearpay
        - Cleo
        - CODVoucher
        - Commas-Checkout
        - Conekta-oxxo
        - Conekta-spei
        - cryptocurrency
        - Cupon-de-pagos
        - CyberSource
        - Dimoco-pay-smart
        - Directa24Card
        - domestic-cards
        - Efecty
        - echeck
        - ecoPayz
        - ecoPayzTurkey
        - ecoVoucher
        - EPS
        - ePay.bg
        - Ethereum
        - e-wallet
        - ezyEFT
        - eZeeWallet
        - FasterPay
        - Flexepin
        - Fyntra-Checkout
        - Giropay
        - Google Pay
        - Gpaysafe
        - iCashOne Voucher
        - iDebit
        - iDEAL
        - ING-homepay
        - INOVAPAY-pin
        - INOVAPAY-wallet
        - InstaDebit
        - InstantPayments
        - instant-bank-transfer
        - Interac-online
        - Interac-eTransfer
        - Interac-express-connect
        - Interac
        - invoice
        - iWallet
        - Jeton
        - JetonCash
        - jpay
        - KakaoPay
        - Khelocard
        - Klarna
        - KNOT
        - Litecoin
        - loonie
        - LPG-online
        - LPG-payment-card
        - Matrix
        - MaxiCash
        - Megafon
        - MercadoPago
        - MiFinity-eWallet
        - miscellaneous
        - MobilePay
        - Mollie
        - Multibanco
        - Bancontact
        - Bancontact-mobile
        - MTS
        - MuchBetter
        - MuchBetterVoucher
        - MyFatoorah
        - Neosurf
        - Netbanking
        - Neteller
        - Nordea-Solo
        - NordikCoin
        - OchaPay
        - online-bank-transfer
        - Onlineueberweisen
        - oriental-wallet
        - OXXO
        - P24
        - Pagadito
        - PagoEffectivo
        - Pagsmile-lottery
        - Pagsmile-deposit-express
        - PayCash
        - Payco
        - Payeer
        - PaymentAsia-crypto
        - Paysafecard
        - PayTabs
        - Pay4Fun
        - Paynote
        - Paymero
        - Paymero-QR
        - PayU
        - PayULatam
        - Perfect-money
        - Piastrix
        - PIX
        - PIX-Automatico
        - PinPay
        - phone
        - PhonePe
        - POLi
        - PostFinance-card
        - PostFinance-e-finance
        - QIWI
        - QPay
        - QQPay
        - Quickpay
        - rapyd-checkout
        - rebilly-hosted-payment-form
        - Resurs
        - reverse-withdrawal
        - Ripple
        - SafetyPay
        - Samsung Pay
        - SEPA
        - Siirto
        - Skrill
        - Skrill Rapid Transfer
        - SMSVoucher
        - Sofort
        - SparkPay
        - SPEI
        - swift-dbt
        - Tele2
        - Telr
        - Terminaly-RF
        - Tether
        - Thunes-Checkout
        - ToditoCash-card
        - Trustly
        - Tupay
        - TWINT
        - UniCrypt
        - UPayCard
        - UPI
        - USD-coin
        - VCreditos
        - VegaWallet
        - VenusPoint
        - Viva
        - voucher
        - voucher-2
        - voucher-3
        - voucher-4
        - Wallet88
        - Webmoney
        - Webpay
        - Webpay-2
        - Webpay Card
        - WeChat Pay
        - XPay-P2P
        - XPay-QR
        - Yandex-money
        - Zotapay
        - Zimpler
        - Zip
    PayoutRequestBlockReason:
      type: string
      description: Reason for blocking the payout request.
      enum:
        - fraud-suspected
        - kyc-verification-required
        - aml-review
        - account-verification
        - duplicate-request
        - insufficient-documentation
        - risk-review
        - other
    PayoutRequestSplitReason:
      type: string
      description: Reason for splitting the payout request.
      enum:
        - payment-instrument-limit
        - processor-limit
        - risk-review
        - compliance-review
        - partial-processing
        - operational-reconciliation
        - customer-cancellation
        - other
    PayoutRequestAllocation:
      type: object
      required:
        - payoutRequestId
        - paymentInstrumentId
        - gatewayAccountId
        - amount
        - currency
      properties:
        id:
          type: string
          readOnly: true
          description: ID of the resource.
          maxLength: 50
          example: pra_0YVDMDE2BMC6KBB5MX76RF6T80
        organizationId:
          readOnly: true
          allOf:
            - $ref: '#/components/schemas/OrganizationId'
        payoutRequestId:
          description: ID of the payout request associated with this allocation.
          readOnly: true
          type: string
          maxLength: 50
          example: pout_req_0YVDMDE2BMC6KBB5MX76RF6T80
        batchId:
          description: ID of the payout request batch that contains the payout request for this allocation.
          readOnly: true
          type:
            - string
            - 'null'
          maxLength: 50
          example: prb_0YVDMDE2BMC6KBB5MX76RF6T80
        paymentInstrumentId:
          type: string
          description: ID of the payment instrument allocated to the payout request.
          maxLength: 50
          example: inst_0YVB8KPKNXCBR9EDX7JHSED75N
        paymentMethod:
          description: Payment method of the allocation.
          allOf:
            - $ref: '#/components/schemas/PaymentMethod'
          readOnly: true
        gatewayAccountId:
          type: string
          description: ID of the gateway account to use for processing this allocation.
          maxLength: 50
          example: gateway_0YVB8KPKNXCBR9EDX7JHSED75N
        gatewayName:
          type: string
          description: Name of the gateway account to use for processing this allocation.
          maxLength: 50
          example: TestProcessor
        gatewayPayoutInstruction:
          description: Payout configuration of the gateway account that processes this allocation.
          readOnly: true
          type:
            - string
            - 'null'
          enum:
            - all
            - covered-payout
            - approved-payment
            - none
            - null
          x-enumDescriptions:
            all: Payout any amount from this gateway.
            covered-payout: |-
              Payout from this gateway if it previously processed a payment for the same,
              or a greater, amount.
            approved-payment: |-
              Payout any amount from this gateway if the customer has a previously
              approved transaction, in the same currency, on this gateway.
            none: Do not allow any payouts with this gateway.
          example: covered-payout
        amount:
          description: Amount allocated to this payment instrument.
          type: number
          format: double
          x-type: Money
        exposureAmount:
          description: |-
            Approved sales and captures, minus associated approved refunds and voids, and minus approved payouts,
            for the customer, gateway account, and payment instrument, in the allocation currency.
            The calculation includes only transactions created within the last 180 days.
            The value is `0` when there are no transactions in the last 180 days,
            the gateway account is inactive,
            or its `readyToPayoutInstruction` is `none`.
          readOnly: true
          type: number
          format: double
          x-type: Money
          example: 2
        currency:
          description: Currency of the payout request allocation.
          $ref: '#/components/schemas/CurrencyCode'
        status:
          description: Status of this payout request allocation.
          type: string
          enum:
            - pending
            - queued
            - processing
            - waiting-completion
            - completed
            - failed
            - canceled
            - declined
            - returned
          x-enumDescriptions:
            pending: Allocation was created and is waiting to be processed.
            queued: Allocation is queued for processing.
            processing: Allocation is being processed and a transaction is being created.
            waiting-completion: Allocation transaction is processing asynchronously and has not yet reached a terminal state.
            completed: Allocation was successfully processed and the transaction was approved.
            failed: Allocation was not processed because of an error.
            canceled: Allocation was canceled before processing.
            declined: Allocation was declined by the gateway.
            returned: |-
              Allocation transaction is declined or canceled after it is approved.
              If the gateway then reports the payout as approved again, the allocation returns to `completed`.
        transactionId:
          description: ID of the transaction that is created when processing this allocation, if applicable.
          type:
            - string
            - 'null'
          readOnly: true
          maxLength: 50
          example: txn_0YVB8KPKNXCBR9EDX7JHSED75N
        transactionResult:
          description: Result of the transaction created for this allocation, if applicable.
          readOnly: true
          type:
            - string
            - 'null'
          enum:
            - abandoned
            - approved
            - canceled
            - declined
            - unknown
            - null
        transactionStatus:
          description: Status of the transaction created for this allocation, if applicable.
          readOnly: true
          type:
            - string
            - 'null'
          enum:
            - completed
            - conn-error
            - disputed
            - never-sent
            - offsite
            - partially-refunded
            - pending
            - refunded
            - sending
            - timeout
            - voided
            - waiting-approval
            - waiting-capture
            - waiting-gateway
            - waiting-refund
            - null
        createdTime:
          description: Date and time when the allocation for the payout request was created.
          $ref: '#/components/schemas/CreatedTime'
        updatedTime:
          $ref: '#/components/schemas/UpdatedTime'
        _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
                  - transaction
                  - gatewayAccount
                  - payoutRequest
                  - paymentInstrument
    PayoutRequestCancellation:
      description: Reason the payout request is canceled.
      type:
        - object
        - 'null'
      readOnly: true
      properties:
        canceledBy:
          description: Specifies who initiated the cancellation.
          type: string
          default: customer
          enum:
            - merchant
            - customer
            - system
        description:
          description: Description of the cancellation reason in free form.
          type: string
          maxLength: 255
    PayoutRequest:
      type: object
      required:
        - websiteId
        - customerId
        - currency
        - amount
      properties:
        id:
          type: string
          readOnly: true
          description: Unique resource ID.
          maxLength: 50
          example: pout_req_0YVDMDE2BMC6KBB5MX76RF6T80
        organizationId:
          readOnly: true
          allOf:
            - $ref: '#/components/schemas/OrganizationId'
        websiteId:
          $ref: '#/components/schemas/WebsiteId'
        customerId:
          description: ID of the customer who is requesting a payout.
          $ref: '#/components/schemas/CustomerId'
        paymentInstrumentId:
          type:
            - string
            - 'null'
          description: ID of the requested payment instrument to offer for the payout.
          maxLength: 50
          example: inst_0YVB8KPKNXCBR9EDX7JHSED75N
        splitFromPayoutRequestId:
          description: |-
            ID of the payout request from which this request is split,
            or `null` if this request is not created by a split operation.
          type:
            - string
            - 'null'
          readOnly: true
          maxLength: 50
          example: pout_req_0YVDMDE2BMC6KBB5MX76RF6T80
        mergedIntoPayoutRequestId:
          description: |-
            ID of the payout request that this request is merged into,
            or `null` if it is not merged into another request.
          type:
            - string
            - 'null'
          readOnly: true
          maxLength: 50
          example: pout_req_0YVDMDE2BMC6KBB5MX76RF6T80
        currency:
          description: Currency of the payout.
          $ref: '#/components/schemas/CurrencyCode'
        amount:
          description: Amount of the payout.
          type: number
          format: double
          x-type: Money
        availableAmount:
          description: Available payout request amount that has not been allocated.
          readOnly: true
          type: number
          format: double
          x-type: Money
        description:
          description: Description of payout request.
          type:
            - string
            - 'null'
        status:
          description: Status of the request.
          type: string
          readOnly: true
          enum:
            - pending
            - ready
            - approved
            - in-progress
            - fulfilled
            - canceled
            - split
            - merged
          x-enumDescriptions:
            pending: |-
              Request was created by the customer and is in a pending state for the [configured pending period](https://www.rebilly.com/catalog/all/websites/putwebsite#websites/putwebsite/t=request&path=settings/payoutrequest/pendingperiodhours), unless it is marked as ready by a member of your organization.
              When automatic readiness is enabled, the payout request transitions to the `ready` state after the pending period elapses and the configured [transition time](https://www.rebilly.com/catalog/all/websites/putwebsite#websites/putwebsite/t=request&path=settings/payoutrequest/automaticreadinesstime) is reached.
              Depending on the configured [`automaticReadinessEnabled`](https://www.rebilly.com/catalog/all/websites/putwebsite#websites/putwebsite/t=request&path=settings/payoutrequest/automaticreadinessenabled) setting, this may be the initial status assigned to new payout requests, or this status may not be used.
            ready: |-
              Request was created by the customer and is ready for review.
              Depending on the configured [`automaticReadinessEnabled`](https://www.rebilly.com/catalog/all/websites/putwebsite#websites/putwebsite/t=request&path=settings/payoutrequest/automaticreadinessenabled) setting, this may be the initial status assigned to new payout requests.
            approved: Request was reviewed, approved, and is ready for processing.
            in-progress: Request has allocations and is being processed.
            fulfilled: Request is fully paid out.
            canceled: Request is canceled by merchant or customer.
            split: Request was split into two or more payout requests.
            merged: Request was merged into another payout request.
        blocked:
          description: |-
            Specifies if the payout request is blocked or unblocked.

            When blocked, the payout request cannot transition to `ready`, `approved`, `in-progress`, `merged`, or `split`.
            Allocation creation and allocation processing are also blocked.
            Cancellation of the payout request and pending allocations remains available.
            When a blocked payout request is canceled, `blocked` is set to `false`, `blockReason` is set to `null`,
            and the block reason is added to the cancellation description.
            If allocation processing starts before the payout request is blocked, the request still transitions to the `fulfilled` status.
          type: boolean
          readOnly: false
          example: false
        hasReturnedAllocations:
          description: |-
            Specifies if at least one allocation for the payout request has the `returned` status.
            The status of the payout request does not change.
          type: boolean
          readOnly: true
          example: false
        blockReason:
          oneOf:
            - $ref: '#/components/schemas/PayoutRequestBlockReason'
            - type: 'null'
        splitReason:
          oneOf:
            - $ref: '#/components/schemas/PayoutRequestSplitReason'
            - type: 'null'
        batchId:
          description: ID of the payout request batch that contains this request.
          type:
            - string
            - 'null'
          readOnly: true
          maxLength: 50
          example: prb_0YVDMDE2BMC6KBB5MX76RF6T80
        batchName:
          description: |-
            Short name of the payout request batch that contains this request.
            This value is `null` if the request is not in a batch or the batch has no name.
          type:
            - string
            - 'null'
          readOnly: true
          maxLength: 255
          x-label: Batch name
          example: Weekly CAD payouts
        batchDescription:
          description: |-
            Description of the payout request batch that contains this request.
            This value is `null` if the request is not in a batch or the batch has no description.
          type:
            - string
            - 'null'
          readOnly: true
          maxLength: 255
          x-label: Batch description
          example: Batch processed on 2024-01-15
        selectPaymentInstrumentUrl:
          readOnly: true
          type: string
          format: uri
          description: URL for the customer to select a preferred payment instrument.
        allocations:
          type: array
          description: List of payout request allocations for the payout request.
          readOnly: true
          items:
            $ref: '#/components/schemas/PayoutRequestAllocation'
        selectedPaymentInstrumentRedirectUrl:
          description: |-
            URL where the customer is redirected when a payment instrument is selected. The default value is the website URL.
            Use `{{id}}` as a placeholder for the payout request ID.
          type: string
          format: uri
          maxLength: 2083
          example: https://example.com/payout-request-success
        cancellationReason:
          $ref: '#/components/schemas/PayoutRequestCancellation'
        createdTime:
          description: Date and time when the payout request is created.
          $ref: '#/components/schemas/CreatedTime'
        updatedTime:
          description: Date and time when the payout request is updated.
          $ref: '#/components/schemas/UpdatedTime'
        _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
                  - splitFrom
                  - mergedInto
                  - paymentInstrument
  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'
```
