Perform CRUD actions for organizations.
Only Versafleet's SysAdmin is authorized.
Business name must be unique
Do not use root, sysadmin, admin, sys, system, FreelanceDriver, and their uppercase and lowercase variations as the business name.
Do not include versafleet and gotsurge and their uppercase and lowercase variations in the business name.
Business name cannot contains special characters, allowed characters are alphanumeric, space, dash, and underscore.
business_name required | string |
fleet_types | Array of strings (fleet-types) |
platform_id | string |
{- "business_name": "string",
- "fleet_types": "motorcycle",
- "platform_id": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "business_name": "string",
- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "price_table": [
- {
- "code": "string",
- "time_delta": 0,
- "price": 0
}
], - "squad_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version_seq": 0,
- "version_rev": "0-xxxxxxxx",
- "is_qa": true,
- "fleet_types": "motorcycle"
}
Only Versafleet's SysAdmin is authorized.
page | integer <int64> >= 1 Default: 1 |
per_page | integer <int64> >= 1 Default: 200 |
org_id | Array of strings Organization IDs |
org_name | string |
is_show_role | boolean Default: false |
{- "meta": {
- "page": 1,
- "per_page": 200
}, - "organizations": [ ]
}
The ID will be used as case sensitive and exact match filter of organization ID e.g. If the organization ID is VersaFleet, use VersaFleet as parameter and nothing else
org_id required | string ID of the organization to be read |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "business_name": "string",
- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "price_table": [
- {
- "code": "string",
- "time_delta": 0,
- "price": 0
}
], - "squad_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version_seq": 0,
- "version_rev": "0-xxxxxxxx",
- "is_qa": true,
- "fleet_types": "motorcycle"
}
Only SysAdmin is authorized
Business name must be unique
Business name Cannot be root, sysadmin, admin, sys, system, FreelanceDriver, and their uppercase/lowercase variations.
Business name cannot contains versafleet, gotsurge and their uppercase/lowercase variations.
Business name cannot contains special characters, allowed characters are alphanumeric, space, dash, and underscore.
org_id required | string ID of the organization to be updated |
business_name required | string |
version_rev required | string |
fleet_types | Array of strings (fleet-types) [ items ] |
{- "business_name": "string",
- "version_rev": "string",
- "fleet_types": [
- "motorcycle"
]
}
{- "message": "Successfully updated organization"
}
Only SysAdmin is authorized
org_id required | string ID of the organization to be updated |
squad_price | number |
min_price | number |
max_price | number |
increment | number |
version_rev required | string |
{- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "increment": 0,
- "version_rev": "string"
}
{- "message": "Successfully updated organization's default price"
}
The name will be used as case insensitive and exact match filter of business name e.g. using Versa in the parameter will not return VersaFleet, but versafleet and VersaFleet will
name required | string Business name of organization to be searched |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "business_name": "string",
- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "price_table": [
- {
- "code": "string",
- "time_delta": 0,
- "price": 0
}
], - "squad_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version_seq": 0,
- "version_rev": "0-xxxxxxxx",
- "is_qa": true,
- "fleet_types": "motorcycle"
}
OrgAdmin and OrgTransporter is authorized
Business name must be unique
Business name Cannot be root, sysadmin, admin, sys, system, FreelanceDriver, and their uppercase/lowercase variations.
Business name cannot contains versafleet, gotsurge and their uppercase/lowercase variations.
Business name cannot contains special characters, allowed characters are alphanumeric, space, dash, and underscore.
business_name required | string |
version_rev required | string |
fleet_types | Array of strings (fleet-types) [ items ] |
{- "business_name": "string",
- "version_rev": "string",
- "fleet_types": [
- "motorcycle"
]
}
{- "message": "Successfully updated organization"
}
Only OrgAdmin is authorized
squad_price | number |
min_price | number |
max_price | number |
increment | number |
version_rev required | string |
{- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "increment": 0,
- "version_rev": "string"
}
{- "message": "Successfully updated organization's default price"
}
user_id required | string <uuid> ID of user whose organization needs to be searched |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "business_name": "string",
- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "price_table": [
- {
- "code": "string",
- "time_delta": 0,
- "price": 0
}
], - "squad_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version_seq": 0,
- "version_rev": "0-xxxxxxxx",
- "is_qa": true,
- "fleet_types": "motorcycle"
}
Versafleet's SysAdmin and Platform Partners can add anyone to any organization.
org_id required | string ID of the organization to be modified |
user_id required | string <uuid> |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}
{- "message": "Successfully added user to the organization."
}
Versafleet's SysAdmin can remove anyone from any organization.
org_id required | string ID of the organization |
user_id required | string <uuid> ID of the user |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}
{- "message": "Successfully removed user from the organization"
}
OrgAdmin and OrgTransporter can add a user to its own organization only.
user_id required | string <uuid> |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}
{- "message": "Successfully added user to the organization."
}
Get transporters with based on fleet types
fleet_types required | Array of strings Items Enum: "motorcycle" "car" "mpv" "van_1.7m" "van_2.4m" "lorry_10ft" "lorry_14ft" "lorry_24ft" "lorry_40ft" "boat" Example: fleet_types=motorcycle,car Comma-separated list of fleet types to filter transporters. Each value must be one of the predefined fleet types. |
is_qa | boolean Example: is_qa=true Filter transporters by QA status. If not provided, returns non-QA transporters. |
[- {
- "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
- "name": "string",
- "user_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
]
Only Platform Partners Merchant is authorized.
page | integer <int64> >= 1 Default: 1 |
per_page | integer <int64> >= 1 Default: 200 |
{- "meta": {
- "page": 1,
- "per_page": 200
}, - "organizations": [ ]
}
The ID will be used as case sensitive and exact match filter of organization ID Platform Partners can't get organization detail outside their managed organization
org_id required | string ID of the organization to be read |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "business_name": "string",
- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "price_table": [
- {
- "code": "string",
- "time_delta": 0,
- "price": 0
}
], - "squad_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version_seq": 0,
- "version_rev": "0-xxxxxxxx",
- "is_qa": true,
- "fleet_types": "motorcycle"
}
platformOrgID
), ensuring the organization is managed by the requesting platform partner (identified via JWT claims).platformOrgID required | string Platform-specific ID of the organization to retrieve. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "business_name": "string",
- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "price_table": [
- {
- "code": "string",
- "time_delta": 0,
- "price": 0
}
], - "squad_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version_seq": 0,
- "version_rev": "0-xxxxxxxx",
- "is_qa": true,
- "fleet_types": "motorcycle"
}
business_name required | string The desired business name for the new organization. Must adhere to validation rules. |
platform_org_id required | string The organization's unique identifier within the partner's platform. |
{- "business_name": "Partner Transport Inc.",
- "platform_org_id": "partner-org-12345"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "business_name": "string",
- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "price_table": [
- {
- "code": "string",
- "time_delta": 0,
- "price": 0
}
], - "squad_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version_seq": 0,
- "version_rev": "0-xxxxxxxx",
- "is_qa": true,
- "fleet_types": "motorcycle"
}
Only Platform Partners Admin is authorized.
page | integer <int64> >= 1 Default: 1 |
per_page | integer <int64> >= 1 Default: 200 |
org_id | Array of strings Organization IDs |
org_name | string |
is_show_role | boolean Default: false |
{- "meta": {
- "page": 1,
- "per_page": 200
}, - "organizations": [ ]
}
Only Versafleet's SysAdmin is authorized.
driver_id required | string |
org_id required | string |
{- "driver_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "org_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
{- "code": "success",
- "message": "Successfully created squad record",
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}
Only Versafleet's SysAdmin is authorized.
squad_id required | string ID of the squad to be removed |
{- "code": "success",
- "message": "Successfully remove squad driver",
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}
Only driver is allowed to call this API
squad_code required | string |
driver_name required | string |
{- "squad_code": "p2to1q",
- "driver_name": "John Doe"
}
{- "code": "success",
- "message": "Successfully created squad record",
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}
Only Driver is allowed to call this API
{- "code": "success",
- "message": "Successfully remove all squads for the driver",
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}
Only OrgAdmin is allowed to call this API
squad_id required | string ID of the squad to be removed |
{- "code": "success",
- "message": "Successfully remove squad driver",
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}
Only SysAdmin is allowed to call this API
driver_id required | string ID of the driver |
{- "code": "success",
- "squads": [ ],
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}
Only SysAdmin is allowed to call this API
org_id required | string ID of the organization |
{- "code": "success",
- "squads": [ ],
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}
Only SysAdmin is allowed to call this API
driver_ids required | Array of strings <uuid> |
{- "driver_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
{- "code": "success",
- "drivers": [ ],
- "server_time": "2021-09-23T15:47:26.699327+08:00"
}
Only SysAdmin is authorized
driver_id required | string ID of the driver to be updated |
name required | string |
string | |
full_name | string |
partial_id_chars | string |
phone_number | string |
{- "name": "string",
- "email": "string",
- "full_name": "string",
- "partial_id_chars": "string",
- "phone_number": "string"
}
{- "message": "Successfully updated org driver"
}
The ID will be used as case sensitive and exact match filter of organization ID e.g. If the organization ID is VersaFleet, use VersaFleet as parameter and nothing else
driver_id required | string ID of the driver to be read |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "John",
- "email": "john@doe.com",
- "full_name": "John Doe",
- "org_id": "GotSurge",
- "partial_id_chars": "123C",
- "phone_number": 2345678,
- "driver_id": "789152d6-623a-4125-ba18-8585eee67329"
}
Only Versafleet's SysAdmin is authorized.
org driver name must be unique for each organization
Business name cannot contains special characters, allowed characters are alphanumeric, space, dash, and underscore.
name required | string |
{- "name": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "John",
- "email": "john@doe.com",
- "full_name": "John Doe",
- "org_id": "GotSurge",
- "partial_id_chars": "123C",
- "phone_number": 2345678,
- "driver_id": "789152d6-623a-4125-ba18-8585eee67329"
}
Only Versafleet's SysAdmin is authorized.
page | integer <int64> >= 1 Default: 1 |
per_page | integer <int64> >= 1 Default: 200 |
order | string Default: "asc" Example: order=desc |
org_id | Array of strings Organization IDs |
{- "meta": {
- "page": 1,
- "per_page": 200,
- "total": 0,
- "order": "asc"
}, - "org_drivers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "John",
- "email": "john@doe.com",
- "full_name": "John Doe",
- "org_id": "GotSurge",
- "partial_id_chars": "123C",
- "phone_number": 2345678,
- "driver_id": "789152d6-623a-4125-ba18-8585eee67329"
}
]
}
The ID will be used as case sensitive and exact match filter of organization ID e.g. If the organization ID is VersaFleet, use VersaFleet as parameter and nothing else
driver_id required | string ID of the driver to be read |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "John",
- "email": "john@doe.com",
- "full_name": "John Doe",
- "org_id": "GotSurge",
- "partial_id_chars": "123C",
- "phone_number": 2345678,
- "driver_id": "789152d6-623a-4125-ba18-8585eee67329"
}
Only Transporter is authorized.
org driver name must be unique for each organization
Business name cannot contains special characters, allowed characters are alphanumeric, space, dash, and underscore.
name required | string |
{- "name": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "John",
- "email": "john@doe.com",
- "full_name": "John Doe",
- "org_id": "GotSurge",
- "partial_id_chars": "123C",
- "phone_number": 2345678,
- "driver_id": "789152d6-623a-4125-ba18-8585eee67329"
}
Only Transporter is authorized.
page | integer <int64> >= 1 Default: 1 |
per_page | integer <int64> >= 1 Default: 200 |
order | string Default: "asc" Example: order=desc |
{- "meta": {
- "page": 1,
- "per_page": 200,
- "total": 0,
- "order": "asc"
}, - "org_drivers": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "John",
- "email": "john@doe.com",
- "full_name": "John Doe",
- "org_id": "GotSurge",
- "partial_id_chars": "123C",
- "phone_number": 2345678,
- "driver_id": "789152d6-623a-4125-ba18-8585eee67329"
}
]
}
business_name required | string |
platform_org_id required | string |
{- "business_name": "string",
- "platform_org_id": "string"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "business_name": "string",
- "squad_price": 0,
- "min_price": 0,
- "max_price": 0,
- "price_table": [
- {
- "code": "string",
- "time_delta": 0,
- "price": 0
}
], - "squad_code": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "version_seq": 0,
- "version_rev": "0-xxxxxxxx",
- "is_qa": true,
- "fleet_types": "motorcycle"
}
driver_id required | string ID of the driver to be updated |
name required | string |
string | |
full_name | string |
partial_id_chars | string |
phone_number | string |
vehicle_plate_number | string |
{- "name": "string",
- "email": "string",
- "full_name": "string",
- "partial_id_chars": "string",
- "phone_number": "string",
- "vehicle_plate_number": "string"
}
{- "message": "Successfully updated org driver"
}