# Payout request changed

`POST payout-request-changed`

> This is a subset of the full specification, limited to the `POST payout-request-changed` 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 payout-request-changed` 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: 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: {}
webhooks:
  payout-request-changed:
    post:
      summary: Payout request changed
      operationId: payout-request-changed
      x-products:
        - Core
      tags:
        - Transactions
      requestBody:
        $ref: '#/components/requestBodies/PayoutRequestChangedWebhook'
      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:
    PayoutRequestChangedRequest:
      title: Payout request change
      type: object
      additionalProperties: false
      required:
        - eventType
        - changeType
        - change
        - payoutRequestId
        - customerId
        - occurredTime
        - _embedded
        - _links
      properties:
        eventType:
          description: Webhook event type.
          type: string
          const: payout-request-changed
        changeType:
          description: Specific payout request change that triggered the webhook.
          type: string
          enum:
            - payout-request-created
            - payout-request-modified
            - payout-request-blocked
            - payout-request-unblocked
            - payout-request-ready
            - payout-request-returned-to-pending
            - payout-request-approved
            - payout-request-approval-undone
            - payout-request-processing-started
            - payout-request-fulfilled
            - payout-request-payment-instrument-selected
            - payout-request-allocated
            - payout-request-split
            - payout-request-merged
            - payout-request-canceled
        change:
          $ref: '#/components/schemas/PayoutRequestChange'
        payoutRequestId:
          description: ID of the payout request.
          type: string
          maxLength: 50
          example: pout_req_0YVDMDE2BMC6KBB5MX76RF6T80
        customerId:
          description: ID of the customer associated with the payout request.
          type: string
          maxLength: 50
          example: cus_0YV7DDSDD1C8DA64KHH2W33CPF
        occurredTime:
          description: Date and time when the change occurred.
          type: string
          format: date-time
        _embedded:
          type: object
          required:
            - payoutRequest
            - customer
          properties:
            payoutRequest:
              $ref: '#/components/schemas/PayoutRequest'
            customer:
              $ref: '#/components/schemas/Customer'
        _links:
          type: array
          items:
            type: object
            required:
              - href
              - rel
            properties:
              href:
                description: URL of the related payout request.
                type: string
              rel:
                type: string
                const: payoutRequest
    PayoutRequestChangedAllocation:
      title: Payout request allocation change
      type: object
      additionalProperties: false
      required:
        - eventType
        - changeType
        - change
        - allocationId
        - payoutRequestId
        - customerId
        - occurredTime
        - _embedded
        - _links
      properties:
        eventType:
          description: Webhook event type.
          type: string
          const: payout-request-changed
        changeType:
          description: Specific payout request allocation change that triggered the webhook.
          type: string
          enum:
            - payout-request-allocation-created
            - payout-request-allocation-queued
            - payout-request-allocation-returned-to-pending
            - payout-request-allocation-processing-started
            - payout-request-allocation-waiting-completion
            - payout-request-allocation-completed
            - payout-request-allocation-declined
            - payout-request-allocation-failed
            - payout-request-allocation-canceled
            - payout-request-allocation-returned
            - payout-request-allocation-return-reversed
        change:
          $ref: '#/components/schemas/PayoutRequestChange'
        allocationId:
          description: ID of the changed payout request allocation.
          type: string
          maxLength: 50
          example: pra_0YVDMDE2BMC6KBB5MX76RF6T80
        payoutRequestId:
          description: ID of the payout request.
          type: string
          maxLength: 50
          example: pout_req_0YVDMDE2BMC6KBB5MX76RF6T80
        customerId:
          description: ID of the customer associated with the payout request.
          type: string
          maxLength: 50
          example: cus_0YV7DDSDD1C8DA64KHH2W33CPF
        occurredTime:
          description: Date and time when the change occurred.
          type: string
          format: date-time
        _embedded:
          type: object
          required:
            - allocation
            - payoutRequest
            - customer
          properties:
            allocation:
              $ref: '#/components/schemas/PayoutRequestAllocation'
            payoutRequest:
              $ref: '#/components/schemas/PayoutRequest'
            customer:
              $ref: '#/components/schemas/Customer'
        _links:
          type: array
          items:
            type: object
            required:
              - href
              - rel
            properties:
              href:
                description: URL of the related resource.
                type: string
              rel:
                description: Type of related resource.
                type: string
                enum:
                  - allocation
                  - payoutRequest
    PayoutRequestChangedWebhookPayload:
      type: object
      description: Payout request or payout request allocation change details.
      discriminator:
        propertyName: changeType
        mapping:
          payout-request-created: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-modified: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-blocked: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-unblocked: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-ready: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-returned-to-pending: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-approved: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-approval-undone: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-processing-started: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-fulfilled: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-payment-instrument-selected: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-allocated: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-split: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-merged: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-canceled: '#/components/schemas/PayoutRequestChangedRequest'
          payout-request-allocation-created: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-queued: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-returned-to-pending: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-processing-started: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-waiting-completion: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-completed: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-declined: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-failed: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-canceled: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-returned: '#/components/schemas/PayoutRequestChangedAllocation'
          payout-request-allocation-return-reversed: '#/components/schemas/PayoutRequestChangedAllocation'
      oneOf:
        - $ref: '#/components/schemas/PayoutRequestChangedRequest'
        - $ref: '#/components/schemas/PayoutRequestChangedAllocation'
  requestBodies:
    PayoutRequestChangedWebhook:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PayoutRequestChangedWebhookPayload'
      description: Payload of a webhook event for a payout request or payout request allocation change.
```
