Skip to main content

OBMS API Documentation (v1.6.5)

Download OpenAPI specification:Download

E-mail: support@getobms.com License: BSL 1.1

OBMS Swagger API documentation

Authentication

Endpoints for user authentication

Authenticate user

Authenticate user and return a token

Request Body schema: application/json
email
string
password
string

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com",
  • "password": "password"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Contract Usage Trackers

Contract Usage Trackers

Get all contract usage trackers

Get all contract usage trackers

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "Contract usage tracker retrieved successfully.",
  • "data": [
    ]
}

Create a new contract usage tracker

Create a new contract usage tracker

Authorizations:
bearerAuth
Request Body schema: application/json
name
string
description
string
vat_type
string

Responses

Request samples

Content type
application/json
{
  • "name": "Contract Usage Tracker",
  • "description": "Contract usage tracker description",
  • "vat_type": "VAT type"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "Contract usage tracker created successfully.",
  • "data": {
    }
}

Get a contract usage tracker by ID

Get a contract usage tracker by ID

Authorizations:
bearerAuth
path Parameters
id
required
any

ID of the contract usage tracker

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "Contract usage tracker retrieved successfully.",
  • "data": {
    }
}

Update a contract usage tracker by ID

Update a contract usage tracker by ID

Authorizations:
bearerAuth
path Parameters
id
required
any

ID of the contract usage tracker

Request Body schema: application/json
name
string
description
string
vat_type
string

Responses

Request samples

Content type
application/json
{
  • "name": "Contract Usage Tracker",
  • "description": "Contract usage tracker description",
  • "vat_type": "VAT type"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "Contract usage tracker updated successfully.",
  • "data": {
    }
}

Delete a contract usage tracker by ID

Delete a contract usage tracker by ID

Authorizations:
bearerAuth
path Parameters
id
required
any

ID of the contract usage tracker

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "Contract usage tracker deleted successfully."
}

Contract Usage Tracker Instances

Contract Usage Tracker Instances

Get all contract usage tracker instances

Get all contract usage tracker instances

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "message": "Forbidden"
}

Create a new contract usage tracker instance

Create a new contract usage tracker instance

Authorizations:
bearerAuth
Request Body schema: application/json
contract_id
integer
tracker_id
integer
contract_position_id
integer

Responses

Request samples

Content type
application/json
{
  • "contract_id": 1,
  • "tracker_id": 1,
  • "contract_position_id": 1
}

Response samples

Content type
application/json
{
  • "success": false,
  • "message": "Forbidden"
}

Get a contract usage tracker instance by ID

Get a contract usage tracker instance by ID

Authorizations:
bearerAuth
path Parameters
id
required
any

ID of the contract usage tracker instance

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "message": "Forbidden"
}

Update a contract usage tracker instance by ID

Update a contract usage tracker instance by ID

Authorizations:
bearerAuth
path Parameters
id
required
any

ID of the contract usage tracker instance

Request Body schema: application/json
contract_id
integer
tracker_id
integer
contract_position_id
integer

Responses

Request samples

Content type
application/json
{
  • "contract_id": 1,
  • "tracker_id": 1,
  • "contract_position_id": 1
}

Response samples

Content type
application/json
{
  • "success": false,
  • "message": "Forbidden"
}

Delete a contract usage tracker instance by ID

Delete a contract usage tracker instance by ID

Authorizations:
bearerAuth
path Parameters
id
required
any

ID of the contract usage tracker instance

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "Contract usage tracker instance deleted successfully."
}

Contract Usage Tracker Items

Contract Usage Tracker Items

Get all contract usage tracker items

Get all contract usage tracker items

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "message": "Forbidden"
}

Create a new usage tracker item

Create a new usage tracker item

Authorizations:
bearerAuth
Request Body schema: application/json
tracker_id
integer
type
string
process
string
round
string
step
integer
amount
number

Responses

Request samples

Content type
application/json
{
  • "tracker_id": 1,
  • "type": "type",
  • "process": "equals",
  • "round": "none",
  • "step": 1,
  • "amount": 100
}

Response samples

Content type
application/json
{
  • "success": false,
  • "message": "Forbidden"
}

Get a usage tracker item by ID

Get a usage tracker item by ID

Authorizations:
bearerAuth
path Parameters
id
required
any

ID of the usage tracker item

Responses

Response samples

Content type
application/json
{
  • "success": false,
  • "message": "Forbidden"
}

Update a usage tracker item by ID

Update a usage tracker item by ID

Authorizations:
bearerAuth
path Parameters
id
required
any

ID of the usage tracker item

Request Body schema: application/json
tracker_id
integer
type
string
process
string
round
string
step
integer
amount
number

Responses

Request samples

Content type
application/json
{
  • "tracker_id": 1,
  • "type": "type",
  • "process": "equals",
  • "round": "none",
  • "step": 1,
  • "amount": 100
}

Response samples

Content type
application/json
{
  • "success": false,
  • "message": "Forbidden"
}

Delete a usage tracker item by ID

Delete a usage tracker item by ID

Authorizations:
bearerAuth
path Parameters
id
required
any

ID of the usage tracker item

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "Usage tracker item deleted successfully."
}