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/create
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json

Request Body

NameTypeRequiredDescription
full_name
stringRequired
Company full name. Maximum 200 characters.
status
stringRequired
Initial company status. Values: Active or Pending.

Headers

NameTypeRequiredDescription
Authorization
Bearer TokenRequired
Access token obtained from the /v1/token API
Content-Type
stringRequired
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 Active at 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 xid to use with other APIs