---
agentTools:
  projectIndex: https://chimoney.readme.io/llms.txt
---

# Debit wallet to process unpaid transaction.

Processes a Chimoney payout using the transaction's `issueID`.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Chimoney API Docs",
    "version": "0.2.4",
    "description": "This is the latest version of the Chimoney API. For deprecated version routes, please refer to /v0.2/api-docs."
  },
  "security": [
    {
      "apiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.chimoney.io/",
      "description": "Prod Server"
    },
    {
      "url": "https://api-v2-sandbox.chimoney.io",
      "description": "Sandbox API v2 (v0.2.4)"
    }
  ],
  "paths": {
    "/v0.2.4/payouts/process": {
      "post": {
        "summary": "Debit wallet to process unpaid transaction.",
        "tags": [
          "Payouts"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "subAccount": {
                    "type": "string",
                    "description": "Subaccount (Wallet Account) to payout from, if any."
                  },
                  "issueID": {
                    "type": "string",
                    "description": "issueID of the transaction to process."
                  },
                  "collectionPaymentIssueID": {
                    "type": "string",
                    "description": "issue ID for the payment payout initiated."
                  }
                },
                "required": [
                  "issueID"
                ]
              },
              "example": {
                "subAccount": "1234567",
                "issueID": "1234567",
                "collectionPaymentIssueID": "12234232323232323"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "description": "Status of the request.",
                      "example": "success"
                    },
                    "message": {
                      "type": "string",
                      "description": "Message describing the outcome.",
                      "example": "Payout completed successfully"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "paymentLink": {
                          "type": "string",
                          "description": "Link to complete the payment.",
                          "example": "http://localhost:4000/pay/?issueID=eaabe2eb-e774-4f81-8ba9-ede2ea2d0058_5_1726576015710"
                        },
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "nR3gq5GXbq83tU3IpTPq"
                              },
                              "valueInUSD": {
                                "type": "number",
                                "example": 5
                              },
                              "chimoney": {
                                "type": "number",
                                "example": 5000
                              },
                              "issueID": {
                                "type": "string",
                                "example": "eaabe2eb-e774-4f81-8ba9-ede2ea2d0058_5_1726576015710"
                              },
                              "fee": {
                                "type": "number",
                                "example": 0
                              },
                              "type": {
                                "type": "string",
                                "example": "api-payment"
                              },
                              "subAccount": {
                                "type": "string",
                                "example": "eaabe2eb-e774-4f81-8ba9-ede2ea2d0058"
                              },
                              "issuer": {
                                "type": "string",
                                "example": "eaabe2eb-e774-4f81-8ba9-ede2ea2d0058"
                              },
                              "t_id": {
                                "type": "integer",
                                "example": 600542
                              },
                              "chiRef": {
                                "type": "string",
                                "example": "2c3875a1-f674-43d4-b37a-a9554ab79afd"
                              },
                              "meta": {
                                "type": "object",
                                "example": {}
                              },
                              "integration": {
                                "type": "object",
                                "properties": {
                                  "appID": {
                                    "type": "string",
                                    "example": "TyGlLVepVqfOj3635qrC"
                                  },
                                  "isFromScrim": {
                                    "type": "boolean",
                                    "example": false
                                  }
                                }
                              },
                              "turnOffNotification": {
                                "type": "boolean",
                                "example": false
                              },
                              "issueDate": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2024-09-17T12:26:57.129Z"
                              },
                              "payerEmail": {
                                "type": "string",
                                "example": "favour@chimoney.io"
                              },
                              "redirect_url": {
                                "type": "string",
                                "example": "https://test.com"
                              },
                              "redeemData": {
                                "type": "object",
                                "properties": {
                                  "walletID": {
                                    "type": "string",
                                    "example": "6ShqiB470pYLLgFE1Duc"
                                  }
                                }
                              },
                              "initiatedBy": {
                                "type": "string",
                                "example": "1d812de4-b5e3-474b-9572-19667eb985f3"
                              },
                              "collectionPaymentIssueID": {
                                "type": "string",
                                "example": ""
                              },
                              "redeemLink": {
                                "type": "string",
                                "example": "http://localhost:4000/redeem/?chi=2c3875a1-f674-43d4-b37a-a9554ab79afd"
                              }
                            }
                          }
                        },
                        "chimoneys": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "error": {
                          "type": "string",
                          "example": "None"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    },
    "responses": {
      "Forbidden": {
        "description": "Access to this resource is forbidden.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Forbidden"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Access to this resource is not available for unauthenticated users.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Unauthorized"
            }
          }
        }
      },
      "ServerError": {
        "description": "Indicates an internal server error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ServerError"
            }
          }
        }
      },
      "ValidationError": {
        "description": "Validation error in the request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      }
    },
    "schemas": {
      "Forbidden": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the response.",
            "example": "error"
          },
          "error": {
            "type": "string",
            "description": "Error message indicating forbidden access.",
            "example": "API Access not enabled for account Test. Email support@chimoney.io"
          }
        }
      },
      "Unauthorized": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the response.",
            "example": "error"
          },
          "error": {
            "type": "string",
            "description": "Error message indicating unauthorized access.",
            "example": "API key is not defined. Generate a new one from the developer portal."
          }
        }
      },
      "ServerError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the error.",
            "example": "error"
          },
          "type": {
            "type": "string",
            "description": "Type of server error.",
            "example": "server error"
          },
          "code": {
            "type": "string",
            "description": "Specific error code for server issues.",
            "example": "INTERNAL_SERVER_ERROR"
          },
          "message": {
            "type": "string",
            "description": "Detailed message explaining the issue.",
            "example": "An internal server error occurred."
          }
        }
      },
      "ValidationError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the validation error.",
            "example": "error"
          },
          "type": {
            "type": "string",
            "description": "Type of validation error.",
            "example": "Validation Error"
          },
          "code": {
            "type": "string",
            "description": "Error code indicating validation issue.",
            "example": "INVALID_REQUEST"
          },
          "message": {
            "type": "string",
            "description": "Detailed validation error message.",
            "example": "The request parameters are invalid."
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Payouts",
      "description": "All payout operations."
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 102,
      "1": 208,
      "2": 243,
      "3": 240,
      "4": 73,
      "5": 214,
      "6": 34,
      "7": 0,
      "8": 37,
      "9": 190,
      "10": 200,
      "11": 166
    }
  }
}
```