---
updatedAt: 2025-06-16T23:24:11.000Z
agentTools:
  projectIndex: https://developers.directscale.com/llms.txt
---

# /api/extension/hooks/Merchants.MoneyOut.Ach.AchTW

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Extension Hooks",
    "version": "extensionHooks"
  },
  "servers": [
    {
      "url": "https://{clientId}.corpadmin.directscalestage.com",
      "variables": {
        "clientId": {
          "default": "clientId"
        }
      }
    }
  ],
  "paths": {
    "/api/extension/hooks/Merchants.MoneyOut.Ach.AchTW": {
      "post": {
        "tags": [
          "AchHooksCallback"
        ],
        "operationId": "AchHooksCallback_AchTW",
        "parameters": [
          {
            "name": "X-DirectScale-CallbackToken",
            "in": "header",
            "description": "One-time use token. This value is sent to the endpoint configured for the hook.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-DirectScale-User",
            "in": "header",
            "description": "Sets the User Context of the request when a username is provided",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectScale.Disco.Extension.Hooks.Merchants.MoneyOut.Ach.AchTWFileWriterHookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectScale.Disco.Extension.Hooks.Merchants.MoneyOut.Ach.AchTWFileWriterHookResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "Extension_Token": []
          }
        ],
        "x-codegen-request-body-name": "request"
      }
    }
  },
  "components": {
    "schemas": {
      "DirectScale.Disco.Extension.AchPayment": {
        "type": "object",
        "properties": {
          "AssociateId": {
            "type": "integer",
            "format": "int32"
          },
          "Amount": {
            "type": "number",
            "format": "double"
          },
          "TransactionNumber": {
            "type": "string"
          },
          "AccountNumber": {
            "type": "string"
          },
          "AccountType": {
            "type": "string"
          },
          "NameOnAccount": {
            "type": "string"
          },
          "Status": {
            "type": "string",
            "enum": [
              "Submitted",
              "Pending",
              "Paid",
              "Failed",
              "Expired"
            ]
          },
          "DatePaid": {
            "type": "string",
            "format": "date-time"
          },
          "PaidMerchantId": {
            "type": "integer",
            "format": "int32"
          },
          "BankId": {
            "type": "string"
          },
          "BranchId": {
            "type": "string"
          },
          "BankName": {
            "type": "string"
          },
          "BranchName": {
            "type": "string"
          },
          "TaxId": {
            "type": "string"
          }
        }
      },
      "DirectScale.Disco.Extension.Hooks.Merchants.MoneyOut.Ach.AchTWFileWriterHookRequest": {
        "type": "object",
        "properties": {
          "Payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectScale.Disco.Extension.AchPayment"
            }
          }
        }
      },
      "DirectScale.Disco.Extension.Hooks.Merchants.MoneyOut.Ach.AchTWFileWriterHookResponse": {
        "type": "object",
        "properties": {
          "BatchFileData": {
            "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
            "type": "string",
            "format": "byte"
          }
        }
      }
    },
    "securitySchemes": {
      "Extension_Token": {
        "type": "apiKey",
        "description": "Bearer Token For Extension",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```