Create business
Changed onThis POST endpoint is used to initiate create a business. <br> You can use this endpoint to establish a business which you can use to transact through the MassPay platform. <br> To use this endpoint, you need to provide the required parameters in the request Body, including business_legal_name, dba_business_name, business_incorporation_date, and other business entity related details. <br> The endpoint will then return a successful business token for the newly created entity. The response will contain a JSON object indicating the status of the request and any relevant business details. <br><br>Documents. Supporting documents (a KYB report, articles of incorporation, a proof of address, ...) can be sent along in documents, each Base-64 encoded; they are stored with the business and listed in the response. Since the whole request must stay under the 6 MB API limit, this suits a few small files: more, or larger, documents go through POST /business/{business_token}/documents once the business exists.
Request
- Base URLhttps://api.masspay.io/v1.0.0
- Auth
- API key in header Authorization
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"reference_id": "ref-apple-inc",
"legal_name": "Apple Inc.",
"type": "Ccorp",
"category": "COMPUTER SOFTWARE STORE",
"mcc_sic": "5744",
"country": "USA",
"street1": "One Apple Park Way",
"city": "Cupertino",
"state_prov": "CA",
"postal_code": "95014",
"address_type": "Commercial",
"place_of_incorporation": "California",
"incorporation_date": "1977-01-03",
"phone_number": "4089961010",
"email_address": "support@apple.com",
"website_address": "https://www.apple.com",
"description": "Consumer electronics",
"tax_id_type": "Employer Identification Card",
"tax_id_number": "94-2404110",
"registration_number": "RA000598",
"articles_of_incorporation": "MA==",
"partner_comments": "Public company, ticker: NASDAQ: AAPL",
"bank_details": {
"name_on_account": "Apple Inc",
"account_type": "Checking",
"routing_number": "322271627",
"account_number": "971121121"
},
"details": {
"card_acceptance_card_present": 50
},
"principal": [
{
"type": [
"Control Person"
],
"reference_id": "ref-tim",
"title": "CEO",
"first_name": "Tim",
"last_name": "Cook",
"percentage_of_ownership": 0.02,
"street1": "One Apple Park Way",
"city": "Cupertino",
"state_prov": "CA",
"postal_code": "95014",
"country": "USA",
"email_address": "tcook@apple.com",
"phone_number": "4089961010",
"dob": "1960-11-01",
"tax_id_type": "Driving License",
"tax_id_number": "D123456789",
"country_of_citizenship": "USA"
}
],
"documents": [
{
"document_type": "kyb_report",
"file_name": "kyb-report-apple-inc.pdf",
"file_content": "JVBERi0xLjQK...",
"description": "KYB report from Middesk, run 2026-10-01"
}
]
}Response
Business enrollment request received successfully
Example response
{
"documents": [
{
"document_token": "doc_8c5f1d2a-7b3e-4f9a-a1c6-3e2d9b8f7a10",
"document_type": "kyb_report",
"file_name": "kyb-report-apple-inc.pdf",
"size_bytes": 184322,
"description": "KYB report from Middesk, run 2026-10-01",
"time_uploaded": "2026-10-21T18:42:07"
}
]
}Changes
- warning
added the new
avs.completedenum value to the///response property for the response status - warning
added the new
file_upload_req.createdenum value to the///response property for the response status - warning
added the new
file_upload_req.statusenum value to the///response property for the response status - warning
added the new
file_upload_req.verifiedenum value to the///response property for the response status - warning
added the new
payin_deposit.return_completedenum value to the///response property for the response status - warning
added the new
payin_deposit.returnedenum value to the///response property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new
avs.completedenum value to the request property/// - info
added the new
file_upload_req.createdenum value to the request property/// - info
added the new
file_upload_req.statusenum value to the request property/// - info
added the new
file_upload_req.verifiedenum value to the request property/// - info
added the new
payin_deposit.return_completedenum value to the request property/// - info
added the new
payin_deposit.returnedenum value to the request property/// - info
added the optional property
to the response with the status
- warning