> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pandablue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a cashout status

> This API allows you to retrieve the status of a cashout.



## OpenAPI

````yaml open-api-yaml/cashouts-api/manage-cashouts/get-a-cashout-status.json POST /v3/cashout/status
openapi: 3.0.0
info:
  title: Cashout Status API
  version: v3
servers:
  - url: https://api-stg.pandablue.com
    description: Staging environment
security: []
paths:
  /v3/cashout/status:
    post:
      tags:
        - Cashout
      summary: Retrieve Cashout Status
      description: This API allows you to retrieve the status of a cashout.
      parameters:
        - in: header
          name: Content-Type
          required: true
          schema:
            type: string
            default: application/json
          description: Media type of the body sent to the API. Must be application/json.
        - in: header
          name: Payload-Signature
          required: true
          schema:
            type: string
          description: Control Signature.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - login
                - pass
              properties:
                login:
                  type: string
                  description: Your eron CASHOUTS API login key. Length 32 max.
                pass:
                  type: string
                  description: Your eron CASHOUTS API pass key. Length 32 max.
                cashout_id:
                  type: number
                  description: >-
                    The ID of the cashout to check status of. It is the one
                    generated by eron when the cashout was created. (Required if
                    external_id is not provided)
                external_id:
                  type: string
                  description: >-
                    The ID of the cashout to check status of. It is the one you
                    sent when the cashout was created. (Required if cashout_id
                    is not provided)
      responses:
        '200':
          description: The status of the cashout was successfully retrieved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  cashout_status:
                    type: integer
                    description: >
                      Status code of the cashout.

                      - 0: PENDING - The cashout was accepted by eron but it
                      wasn't sent to the bank yet. It can still be Canceled.

                      - 1: COMPLETED - The money reached the customer's account.

                      - 2: CANCELLED - The cashout was cancelled by you.

                      - 3: REJECTED - The cashout was rejected by the bank due
                      to invalid bank account, account closed, etc.

                      - 4: DELIVERED - The cashout was sent to the bank for
                      processing. At this point it can't be cancelled anymore.

                      - 5: ON HOLD - Cashout set to on hold by you. It won't be
                      processed until manually changed again to Pending status.
                    enum:
                      - 0
                      - 1
                      - 2
                      - 3
                      - 4
                      - 5
                  cashout_status_description:
                    type: string
                    description: >-
                      Description of the status. (e.g., "Completed", "Pending",
                      etc.)
                  rejection_code:
                    type: integer
                    description: >
                      Rejection code if the cashout status is REJECTED. See
                      `enum` for possible bank rejection codes.
                    enum:
                      - 800
                      - 801
                      - 802
                      - 803
                      - 804
                      - 805
                      - 806
                      - 807
                      - 808
                      - 809
                      - 810
                      - 811
                      - 812
                      - 813
                      - 814
                      - 815
                      - 816
                      - 817
                      - 818
                      - 819
                      - 820
                      - 821
                      - 822
                      - 824
                  rejection_reason:
                    type: string
                    description: >-
                      Textual reason for rejection, corresponding to the
                      rejection_code. (e.g., "ERROR_ACCOUNT_INCORRECT")
                  provider_external_reference:
                    type: string
                    description: >-
                      ID of the transaction on the bank side. For Pix, it's the
                      E2E ID (End-to-end).
                  bank:
                    type: object
                    description: >-
                      Object containing information about the bank of the
                      beneficiary.
                    properties:
                      code:
                        type: string
                        description: Code of the bank of the beneficiary.
                      name:
                        type: string
                        description: Name of the bank of the beneficiary.
                      branch:
                        type: string
                        description: Branch of the beneficiary's bank account.
                      account:
                        type: string
                        description: Account number of the beneficiary's bank account.
                      beneficiary_name:
                        type: string
                        description: Name of the owner of the account.
        '400':
          description: >
            Bad Request. This can be due to various reasons including invalid
            parameters, malformed JSON, KYC errors, or other client-side
            errors. 

            Specific error codes and messages will be provided in the response
            body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            Unauthorized access. This can be due to invalid credentials or an
            unregistered IP address.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
        '412':
          description: >
            Precondition Failed. Typically indicates the cashout ID was not
            found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
        '500':
          description: >
            Internal Server Error. This can be due to various server-side
            issues.

            Specific error codes and messages may be provided in the response
            body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code (typically a eron internal code)
            message:
              type: string
              description: Error message corresponding to the code
            details:
              type: string
              nullable: true
              description: Additional error details if available
      title: Error

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.