Company Creation API
API to create a new company in the Bank Hub system. Allows creating a company with a name and an initial status.
POST
https://bankhub-api-sandbox.sepay.vn/v1/company/createAuthorization: Bearer YOUR_ACCESS_TOKEN Content-Type: application/json
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
full_name | string | Required | Company full name. Maximum 200 characters. |
status | string | Required | Initial company status. Values: Active or Pending. |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | Bearer Token | Required | Access token obtained from the /v1/token API |
Content-Type | string | Required | application/json |
Note
- This API requires a Bearer Token in the Authorization header
- The company name must be unique within the merchant scope
- The status should be set to
Activeat creation time so the company can be used immediately - After creation, the company will receive a unique
xid(UUID format)
| 401 | Unauthorized The access token is invalid or has expired | — |
| 400 | Validation Error Invalid input data (empty company name, invalid status, etc.) | — |
| 503 | Service Unavailable Database error | — |
Usage Examples
Important Notes
- You can store the company ID: After creation, save the
xidto use with other APIs