---
updatedAt: 2026-08-06T08:45:17.000Z
agentTools:
  projectIndex: https://docs.paymongo.com/llms.txt
---

# Create a Child Merchant File Record

This endpoint allows a parent account to upload a file and associate it as a file record with a specific child merchant account.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "create-a-file-record",
    "version": "2"
  },
  "servers": [
    {
      "url": "https://api.paymongo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/merchants/children/{child_merchant_id}/documents": {
      "post": {
        "summary": "Create a File Record for a Child Merchant",
        "description": "Use live secret API key to create a File Record",
        "operationId": "seeds-create-a-file-record-child-merchant",
        "parameters": [
          {
            "name": "child_merchant_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file",
                  "purpose"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "The file the user wants to upload. Allowed file types are `doc` , `docx` , `jpeg` , `jpg` , `pdf` , `png`.",
                    "format": "binary"
                  },
                  "purpose": {
                    "type": "string",
                    "description": "The purpose of the uploaded file."
                  },
                  "original_filename": {
                    "type": "string",
                    "description": "The file name you want to set."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```