---
updatedAt: 2026-10-27T14:37:08.000Z
agentTools:
  projectIndex: https://developers.masspay.io/llms.txt
---

# Submit W-9 tax form

This **POST** endpoint is used to submit a W-9 tax form for a specific user identified by their `user_token`. Basic information (name, address, phone) is retrieved from the user's existing profile.<br>The tax provider's W-9 API only accepts a US address: the user's stored state must be a US state and the postal code a 5 or 9 digit ZIP, otherwise the request is rejected with 400. For a U.S. person whose only address is outside the US (for example a U.S. citizen living abroad), collect the W-9 through the hosted tax interview link (`GET /payout/{user_token}/tax`), which accepts a foreign address and uploaded W-9 PDFs.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "description": "MassPay API",
    "version": "1.0.0",
    "title": "MassPay API",
    "termsOfService": "https://www.masspay.io/terms/",
    "contact": {
      "name": "MassPay",
      "email": "info@masspay.io",
      "url": "https://www.masspay.io"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "tags": [
    {
      "name": "Tax",
      "description": "Tax resource for managing tax responsibilities."
    }
  ],
  "paths": {
    "/payout/{user_token}/tax/interview/w9": {
      "post": {
        "summary": "Submit W-9 tax form",
        "description": "This **POST** endpoint is used to submit a W-9 tax form for a specific user identified by their `user_token`. Basic information (name, address, phone) is retrieved from the user's existing profile.<br>The tax provider's W-9 API only accepts a US address: the user's stored state must be a US state and the postal code a 5 or 9 digit ZIP, otherwise the request is rejected with 400. For a U.S. person whose only address is outside the US (for example a U.S. citizen living abroad), collect the W-9 through the hosted tax interview link (`GET /payout/{user_token}/tax`), which accepts a foreign address and uploaded W-9 PDFs.",
        "tags": [
          "Tax"
        ],
        "operationId": "post-tax-interview-w9",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/W9FormRequest"
              },
              "examples": {
                "Individual": {
                  "value": {
                    "tin_type": "SSN",
                    "tin": "123-45-6789",
                    "federal_tax_classification": "Individual",
                    "is_backup_withholding": false
                  }
                },
                "LLC": {
                  "value": {
                    "tin_type": "EIN",
                    "tin": "12-3456789",
                    "federal_tax_classification": "LLC C Corporation",
                    "business_name": "Acme LLC",
                    "is_backup_withholding": false,
                    "exempt_payee_code": "1",
                    "exempt_fatca_code": "A"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxFormSubmissionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error400"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error403"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "405": {
            "description": "Method Not Allowed.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error405"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error500"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Time-out.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error504"
                }
              }
            }
          }
        },
        "security": [
          {
            "AUTHORIZER_NAME": []
          },
          {
            "api_key": []
          }
        ]
      },
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "user_token",
          "in": "path",
          "required": true
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://{environment}.masspay.io/{VERSION}",
      "description": "MassPay's API server",
      "variables": {
        "VERSION": {
          "default": "v1.0.0",
          "enum": [
            "v1.0.0"
          ]
        },
        "environment": {
          "default": "api",
          "enum": [
            "api",
            "staging-api"
          ]
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "Error400": {
        "description": "Bad request.",
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Bad request."
            ],
            "example": "Bad request."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The request was invalid or malformed. Please ensure that the request body conforms to the required format and that all required parameters are included."
            ],
            "example": "The request was invalid or malformed. Please ensure that the request body conforms to the required format and that all required parameters are included."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              400
            ],
            "example": 400
          },
          "error": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "example": "Error initiating payout",
                "description": "Reason for error"
              },
              "details": {
                "type": "array",
                "description": "Specific details of the cause of the error",
                "items": {
                  "type": "string",
                  "example": "Source amount cannot be $0"
                }
              }
            }
          }
        },
        "required": [
          "message",
          "code"
        ]
      },
      "Error401": {
        "description": "Unauthorized.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Unauthorized."
            ],
            "example": "Unauthorized."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "Authentication failed or credentials were not provided. Please ensure that you have provided valid API credentials and that they are authorized to access the MassPay API."
            ],
            "example": "Authentication failed or credentials were not provided. Please ensure that you have provided valid API credentials and that they are authorized to access the MassPay API."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              401
            ],
            "example": 401
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error403": {
        "description": "Forbidden.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Forbidden."
            ],
            "example": "Forbidden."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The requested action is not allowed or the API credentials do not have sufficient permissions. Please ensure that the API credentials used for the request have the necessary permissions to perform the requested action."
            ],
            "example": "The requested action is not allowed or the API credentials do not have sufficient permissions. Please ensure that the API credentials used for the request have the necessary permissions to perform the requested action."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              403
            ],
            "example": 403
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error405": {
        "description": "Method not allowed.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Method not allowed."
            ],
            "example": "Method not allowed."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The HTTP method used for the request is not supported by the MassPay API. Please ensure that you are using the correct HTTP method (e.g., POST) for the specific MassPay API endpoint."
            ],
            "example": "The HTTP method used for the request is not supported by the MassPay API. Please ensure that you are using the correct HTTP method (e.g., POST) for the specific MassPay API endpoint."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              405
            ],
            "example": 405
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error500": {
        "description": "Internal server error",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Internal server error."
            ],
            "example": "Internal server error."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "An unexpected error occurred on the server-side while processing the request. Please try again later or contact support if the issue persists."
            ],
            "example": "An unexpected error occurred on the server-side while processing the request. Please try again later or contact support if the issue persists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              500
            ],
            "example": 500
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error504": {
        "description": "Gateway Time-out.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Gateway Time-out."
            ],
            "example": "Gateway Time-out."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The request timed out while waiting for a response from the server. Please try again later or contact support if the issue persists."
            ],
            "example": "The request timed out while waiting for a response from the server. Please try again later or contact support if the issue persists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              500
            ],
            "example": 500
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "W9FormRequest": {
        "type": "object",
        "required": [
          "tin_type",
          "tin",
          "federal_tax_classification"
        ],
        "properties": {
          "tin_type": {
            "type": "string",
            "enum": [
              "SSN",
              "EIN",
              "ITIN"
            ],
            "description": "Type of Taxpayer Identification Number"
          },
          "tin": {
            "type": "string",
            "description": "Taxpayer Identification Number (format: XXX-XX-XXXX for SSN/ITIN or XX-XXXXXXX for EIN)",
            "pattern": "^(\\d{3}-?\\d{2}-?\\d{4}|\\d{2}-?\\d{7})$"
          },
          "federal_tax_classification": {
            "type": "string",
            "enum": [
              "Individual",
              "Sole Proprietor",
              "Single Member LLC Not Elected",
              "Single Member LLC Elected",
              "C Corporation",
              "S Corporation",
              "Partnership",
              "Trust or Estate",
              "LLC C Corporation",
              "LLC S Corporation",
              "LLC Partnership",
              "Others"
            ],
            "description": "Federal tax classification of the person"
          },
          "business_name": {
            "type": "string",
            "maxLength": 40,
            "description": "Business name/disregarded entity name, if different from name on file"
          },
          "is_backup_withholding": {
            "type": "boolean",
            "default": false,
            "description": "Whether the person is subject to backup withholding"
          },
          "exempt_payee_code": {
            "type": "string",
            "enum": [
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "13"
            ],
            "description": "Exempt payee code 1-13 (if applicable); spelled-out numbers such as 'One' are translated"
          },
          "exempt_fatca_code": {
            "type": "string",
            "enum": [
              "A",
              "B",
              "C",
              "D",
              "E",
              "F",
              "G",
              "H",
              "I",
              "J",
              "K",
              "L",
              "M"
            ],
            "description": "Exemption from FATCA reporting code (if applicable)"
          },
          "account_numbers": {
            "type": "string",
            "maxLength": 50,
            "description": "Account number(s) for reference"
          },
          "is_line_3b": {
            "type": "boolean",
            "default": false,
            "description": "Check if partnership/trust/estate with foreign partners/owners/beneficiaries"
          },
          "other_description": {
            "type": "string",
            "maxLength": 50,
            "description": "Description when 'Others' is selected as federal tax classification"
          }
        }
      },
      "TaxFormSubmissionResponse": {
        "type": "object",
        "properties": {
          "submission_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique identifier for the submission"
          },
          "form_type": {
            "type": "string",
            "enum": [
              "W9",
              "W8BEN",
              "W8BENE",
              "W8ECI",
              "W8IMY"
            ],
            "description": "Type of form submitted"
          },
          "status": {
            "type": "string",
            "enum": [
              "Submitted",
              "Pending",
              "Validated",
              "Error"
            ],
            "description": "Current status of the submission"
          },
          "submitted_at": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of submission"
          },
          "errors": {
            "type": "array",
            "description": "List of validation errors (if any)",
            "items": {
              "$ref": "#/components/schemas/TaxFormError"
            }
          },
          "pdf_content": {
            "type": "string",
            "description": "Base64 encoded byte representing the content of the file"
          }
        }
      },
      "TaxFormError": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Error code"
          },
          "name": {
            "type": "string",
            "description": "Field name with the error"
          },
          "message": {
            "type": "string",
            "description": "Error description"
          }
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      },
      "AUTHORIZER_NAME": {
        "name": "Authorization",
        "in": "header",
        "type": "apiKey"
      }
    }
  }
}
```