Ocamba REST description
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/contacts
account_idstring (required) | Unique account identifier defined as a path parameter. |
totalinteger | |
items |
{
"total": 3,
"items": [
{
"id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
"type": "email",
"value": "[email protected]"
}
]
}
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/contacts
account_idstring (required) | Unique account identifier defined as a path parameter. |
{
"type": "email",
"value": "[email protected]"
}
{
"id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
"type": "email",
"value": "[email protected]"
}
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/contacts/{id}
account_idstring (required) | Unique account identifier defined as a path parameter. |
idstring (required) | Unique identifier defined as a path parameter. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
"type": "email",
"value": "[email protected]"
}
]
}
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/contacts/{id}
account_idstring (required) | Unique account identifier defined as a path parameter. |
idstring (required) | Unique identifier defined as a path parameter. |
{
"type": "email",
"value": "[email protected]"
}
At least one of the updatable fields should be sent via HTTP body in order to change the current state of the account.
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/contacts/{id}
account_idstring (required) | Unique account identifier defined as a path parameter. |
idstring (required) | Unique identifier defined as a path parameter. |
We recommend you consider other options before deletion
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/limits
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idinteger | Unique identifier for the object defined as a query parameter. |
typestring | Describe type of the object. |
create_timestring | Timezone: GMT. |
update_timestring | Timezone: GMT. |
itemstring | |
periodstring | Describe the period of the limit. |
valueinteger | Value of the upper limit. |
account_idstring (required) | Unique account identifier defined as a path parameter. |
totalinteger | |
items |
{
"total": 3,
"items": [
{
"id": "1000",
"company_id": "1000001",
"account_id": "1000000",
"type": "budget",
"item": "income",
"period": "day",
"value": 1,
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
]
}
Sortable fields are: account_id, period, value, create_time and update_time.
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/limits
account_idstring (required) | Unique account identifier defined as a path parameter. |
{
"type": "budget",
"item": "income",
"period": "day",
"value": 1
}
{
"id": "1000",
"company_id": "1000001",
"account_id": "1000000",
"type": "budget",
"item": "income",
"period": "day",
"value": 1,
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
Unique constraint is defined on a combination of the following fields: type
, item
and period
. If you try to create two AccountLimit
objects with same values on this combination of fields, the second object will be considered as Duplicate entry
and your request will be rejected.
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/limits/{id}
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
idstring (required) | Unique identifier for the object defined as a path parameter. |
account_idstring (required) | Unique account identifier defined as a path parameter. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "1000",
"company_id": "1000001",
"account_id": "1000000",
"type": "budget",
"item": "income",
"period": "day",
"value": 1,
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
]
}
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/limits/{id}
idstring (required) | Unique identifier for the object defined as a path parameter. |
account_idstring (required) | Unique account identifier defined as a path parameter. |
{
"value":123
}
At least one of the updatable fields should be sent via HTTP body in order to change the current state of the account limit.
https://api.ocamba.com/v2/ocamba/accounts/{account_id}/limits/{id}
idstring (required) | Unique identifier for the object defined as a path parameter. |
account_idstring (required) | Unique account identifier defined as a path parameter. |
This change will be automatically synchronized to an ad server.
We recommend you consider other options before deletion.
https://api.ocamba.com/v2/ocamba/accounts
Displays account contacts details
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idinteger | Unique account id. |
statusstring | Displays current status of the account |
namestring | Name of the account. |
update_timestring | Timezone: GMT. |
create_timestring | Timezone: GMT. |
totalinteger | |
items |
{
"total": 3,
"items": [
{
"id": "1000000",
"company_id": "1000001",
"creator_id": "1000001",
"status": "active",
"ssp_configuration": {
"advertiser": "enabled",
"publisher": "disabled"
},
"configured_status": "active",
"name": "Demo account",
"image": "https://storage.ocamba.com/1000001/adex/accounts/1000000/account.jpeg",
"contacts": [
{
"id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
"type": "email",
"value": "[email protected]"
}
],
"feeds": {
"postbacks": "https://google.com"
},
"is_default": 1,
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
]
}
Searchable field is name.
Sortable fields are: creator_id, status, name, is_default, create_time and update_time.
https://api.ocamba.com/v2/ocamba/accounts
Allows creation of an account.
{
"status": "active",
"ssp_configuration": {
"advertiser": "enabled",
"publisher": "disabled"
},
"name": "Demo account",
"contacts": [
{
"type": "email",
"value": "[email protected]"
}
],
"feeds": {
"postbacks": "https://google.com"
}
}
{
"id": "1000000",
"company_id": "1000001",
"creator_id": "1000001",
"status": "active",
"ssp_configuration": {
"advertiser": "enabled",
"publisher": "disabled"
},
"configured_status": "active",
"name": "Demo account",
"image": "https://storage.ocamba.com/1000001/adex/accounts/1000000/account.jpeg",
"contacts": [
{
"id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
"type": "email",
"value": "[email protected]"
}
],
"feeds": {
"postbacks": "https://google.com"
},
"is_default": 1,
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
https://api.ocamba.com/v2/ocamba/accounts/{id}
Returns the details of the account with the specified id
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
idstring (required) | Unique account id. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "1000000",
"company_id": "1000001",
"creator_id": "1000001",
"status": "active",
"ssp_configuration": {
"advertiser": "enabled",
"publisher": "disabled"
},
"configured_status": "active",
"name": "Demo account",
"image": "https://storage.ocamba.com/1000001/adex/accounts/1000000/account.jpeg",
"contacts": [
{
"id": "95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b",
"type": "email",
"value": "[email protected]"
}
],
"feeds": {
"postbacks": "https://google.com"
},
"is_default": 1,
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
]
}
If you don’t know the account id, list the accounts to find it.
https://api.ocamba.com/v2/ocamba/accounts/{id}
Updates the details of the account with the specified id.
idstring (required) | Unique account id. |
{
"status": "active",
"ssp_configuration": {
"advertiser": "enabled",
"publisher": "disabled"
},
"name": "Demo account",
"contacts": [
{
"type": "email",
"value": "[email protected]"
}
],
"feeds": {
"postbacks": "https://google.com"
}
}
At least one of the updatable fields should be sent via HTTP body in order to change the current state of the account.
If you don’t know the account id, list the account to find it.
https://api.ocamba.com/v2/ocamba/accounts/{id}
Deletes the account with the specified id.
idstring (required) | Unique account id. |
You can not delete account which is already in use.
This change will be automatically synchronized to an ad server.
We recommend you consider other options before deletion.
If you don’t know the account id, list the accounts to find it.
https://api.ocamba.com/v2/ocamba/accounts/{id}/image
Uploads the image for the account with specified id
idstring (required) | Unique account id. |
--form 'image=@"logo.jpeg"'
https://api.ocamba.com/v2/ocamba/accounts/{id}/image
Deletes the image for the account with specified id
idstring (required) | Unique account id. |
https://api.ocamba.com/v2/ocamba/app-store
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idinteger | Unique identifier for the object defined as a query parameter. |
titlestring | Title of the object. |
typestring | Describe type of the object. |
namestring | Name of the object. |
statusstring | Describe status of the object. |
create_timestring | Timezone: GMT. |
update_timestring | Timezone: GMT. |
is_publishedinteger | Describe publish status. |
totalinteger | |
items |
{
"total": 2,
"items": [
{
"id": "1001",
"type": "application",
"title": "AdExchange",
"name": "adex",
"logo": "https://sm.ocmcore.com/share/6197120/ocamba/apps/adex/logo/adex.svg",
"description": "Ocamba AdExchange is an automated bidding system with full machine learning for maximum efficiency in Ad campaign management. It allows you to have full control over Ad display, with advanced targeting and statistics to improve and manage your campaign performance with ease. ",
"published_version": "1.0.1",
"rc_version": "2.0.28",
"status": "active",
"installed_version": "2.0.28",
"create_time": "2021-02-17 15:29:25",
"update_time": "2021-07-20 12:17:09"
},
{
"id": "1005",
"type": "application",
"title": "Lorem Ipsum",
"name": "loremipsum",
"logo": "https://cdn2.iconfinder.com/data/icons/advertising-agency-malibu-vol-2/128/Open_Exchange-512.png",
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages.",
"published_version": "1.0.8",
"rc_version": "1.0.9",
"status": "uninstalled",
"installed_version": "1.0.9",
"create_time": "2021-03-05 12:27:18",
"update_time": "2021-04-13 13:48:06"
}
]
}
{
"items": [
{
"id": "123456789",
"type": "application",
"title": "AdExchange",
"name": "adex",
"description": "here goes description",
"logo": "https://logo-uri-example.com",
"published_version": "1.0.10",
"rc_version": "2.0.1",
"status": "trial",
"installed_version": "2.0.28",
"create_time": "2021-11-25 13:45:03",
"update_time": "2021-11-26 11:37:25"
}
]
}
Searchable fields are: title, description, rc_version and published_version.
Sortable fields are: id, type, title, name, create_time and update_time.
https://api.ocamba.com/v2/ocamba/app-store/{app_id}
idstring (required) | Unique identifier for the object defined as a path parameter. |
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "1003",
"type": "application",
"title": "Push App",
"name": "push",
"logo": "https://sm.ocmcore.com/share/6197120/ocamba/apps/push/logo/push.svg",
"description": "Ocamba Push allows you to deliver personalized push notifications to your audience. Fully customize your content, stimulate user engagement with real-time updates, promotions, or reminders, boost conversion rates, and increase traffic on your mobile app or website.",
"published_version": "1.0.0",
"rc_version": "2.0.16",
"status": "trial",
"installed_version": "2.0.16",
"create_time": "2021-03-03 09:29:18",
"update_time": "2021-07-20 12:17:09"
}
]
}
{
"items": [
{
"id": "123456789",
"type": "application",
"title": "AdExchange",
"name": "adex",
"description": "here goes description",
"logo": "https://logo-uri-example.com",
"published_version": "1.0.10",
"rc_version": "2.0.1",
"status": "trial",
"installed_version": "2.0.28",
"create_time": "2021-11-25 13:45:03",
"update_time": "2021-11-26 11:37:25"
}
]
}
If you don’t know the app id, list the members to find it.
https://api.ocamba.com/v2/ocamba/app-store/{app_id}/pricing
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
typestring | Describe type of the object. |
namestring | Name of the object. |
create_timestring | Timezone: GMT. |
update_timestring | Timezone: GMT. |
planstring |
idstring (required) | Unique identifier for the object defined as a path parameter. |
totalinteger | |
items |
{
"total": 4,
"items": [
{
"plan": "enterprise",
"app_id": "1003",
"type": "deal",
"name": "ENTERPRISE",
"base": "business",
"components": {
"contact_us": [
{
"name": "contact us"
}
],
"features": [
{
"name": "Unlimited Apps"
},
{
"name": "Custom Audience Segments"
},
{
"name": "Custom User Data"
},
{
"name": "Full Onboarding"
},
{
"name": "White label domains"
},
{
"name": "Self Serving Platform"
},
{
"name": "Dedicated Account Manager"
},
{
"name": "Integration Engineer Support"
}
],
"plan_info": [
{
"limit": "Over 500K Subscribers"
}
]
}
}
]
}
{
"items": [
{
"id": "123456789",
"type": "application",
"title": "AdExchange",
"name": "adex",
"description": "here goes description",
"logo": "https://logo-uri-example.com",
"published_version": "1.0.10",
"rc_version": "2.0.1",
"status": "trial",
"installed_version": "2.0.28",
"create_time": "2021-11-25 13:45:03",
"update_time": "2021-11-26 11:37:25"
}
]
}
If you don’t know the app id, list apps to find it.
https://api.ocamba.com/v2/ocamba/app-store/{app_id}/install
idstring (required) | Unique identifier for the object defined as a path parameter. |
https://api.ocamba.com/v2/ocamba/app-store/{app_id}/uninstall
idstring (required) | Unique identifier for the object defined as a path parameter. |
https://api.ocamba.com/v2/ocamba/app-store/{app_id}/update
idstring (required) | Unique identifier for the object defined as a path parameter. |
https://api.ocamba.com/v2/ocamba/app-store/{app_id}/buy
idstring (required) | Unique identifier for the object defined as a path parameter. |
{
"plan": "business",
"recurring_charge": "mrc",
"payment":{
"id": "6KH22796H07396938",
"provider": "paypal"
}
}
https://api.ocamba.com/v2/ocamba/app-store/{app_id}/upgrade
idstring (required) | Unique identifier for the object defined as a path parameter. |
{
"plan": "business",
"recurring_charge": "mrc",
"payment":{
"id": "6KH22796H07396938",
"provider": "paypal"
}
}
https://api.ocamba.com/v2/ocamba/apps
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idinteger | Unique identifier for the object defined as a query parameter. |
namestring | Name of the object. |
titlestring | Title of the object. |
typestring | Describe type of the object. |
create_timestring | Timezone: GMT. |
update_timestring | Timezone: GMT. |
totalnumber | |
items |
{
"total": 7,
"items": [
{
"id": "1018",
"type": "application",
"title": "developer",
"name": "developer",
"create_time": "2021-10-08 11:42:48",
"update_time": "2021-11-15 09:43:31"
},
{
"id": "1017",
"type": "application",
"title": "demoapp",
"name": "demoapp",
"create_time": "2021-10-08 11:27:31",
"update_time": "2021-11-15 08:10:49"
},
{
"id": "1016",
"type": "application",
"title": "finance",
"name": "finance",
"create_time": "2021-10-08 10:00:25",
"update_time": "2021-10-08 10:04:41"
}
]
}
{
"items": [
{
"id": "123456789",
"type": "application",
"title": "AdExchange",
"name": "adex",
"description": "here goes description",
"logo": "https://logo-uri-example.com",
"plan": "'{ \n \"features\" : [\"billing\"]\n }'",
"create_time": "2021-11-25 13:45:03",
"update_time": "2021-11-26 11:37:25"
}
]
}
Searchable fields are title and description.
Sortable fields are: id, type, title, name, create_time and update_time.
https://api.ocamba.com/v2/ocamba/apps/{id}
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
idstring (required) | Unique identifier for the object defined as a path parameter. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "1003",
"type": "application",
"title": "Push App",
"name": "push",
"description": "Ocamba Push allows you to deliver personalized push notifications to your audience. Fully customize your content, stimulate user engagement with real-time updates, promotions, or reminders, boost conversion rates, and increase traffic on your mobile app or website.",
"logo": "https://sm.ocmcore.com/share/6197120/ocamba/apps/push/logo/push.svg",
"create_time": "2021-03-03 09:29:18",
"update_time": "2021-07-20 12:17:09"
}
]
}
{
"items": [
{
"id": "123456789",
"type": "application",
"title": "AdExchange",
"name": "adex",
"description": "here goes description",
"logo": "https://logo-uri-example.com",
"plan": "'{ \n \"features\" : [\"billing\"]\n }'",
"create_time": "2021-11-25 13:45:03",
"update_time": "2021-11-26 11:37:25"
}
]
}
If you don’t know the app id, list the apps to find it.
https://api.ocamba.com/v2/ocamba/apps/{id}/members
idstring (required) | Unique identifier for the object defined as a path parameter. |
namestring | Name of the object. |
statusstring | Describe status of the object. |
emailstring | Email which is being used for a object. |
create_timestring | Timezone: GMT. |
update_timestring | Timezone: GMT. |
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
totalinteger | |
items |
{
"total": 2,
"items": [
{
"id": "1234567",
"name": "John Doe",
"status": "active",
"email": "[email protected]",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
},
{
"id": "7654321",
"name": "Jane Doe",
"status": "active",
"email": "[email protected]",
"create_time": "2020-08-28 11:29:48",
"update_time": "2021-04-15 17:13:59"
}
]
}
{
"items": [
{
"id": "1000163",
"company_id": "1000000",
"name": "John Doe",
"status": "active",
"email": "[email protected]",
"image": "https://image-uri-example.com",
"preferences": {},
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
Sortable fields are create_time and update_time.
https://api.ocamba.com/v2/ocamba/apps/{id}/members
{
"add": ["1234567", "7654321"]
}
{
"remove": ["7654321"]
}
https://api.ocamba.com/v2/ocamba/ebs/automations
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
{
"total":1,
"items":[
{
"id":"10001",
"company_id":"6197120",
"status":"active",
"name":"Push welcome",
"description":"Push adex welcome notification",
"event":{
"id":"1000",
"integration_id":"10000"
},
"actions":{
"id":"1002",
"integration_id":"10000",
"data":{
"user_id":"{{event.user_id}}",
"zone_id":"12345678"
}
},
"create_time":"2022-07-02 12:30:40",
"update_time":"2022-07-05 13:19:10"
}
]
}
https://api.ocamba.com/v2/ocamba/ebs/automations
{
"status":"active",
"name":"Push welcome",
"description":"Push adex welcome notification",
"event":{
"id":"1000",
"integration_id":"10000"
},
"actions":{
"id":"1002",
"integration_id":"10000",
"data":{
"user_id":"{{event.user_id}}",
"zone_id":"12345678"
}
}
}
{
"id":"11000",
"company_id":"6197120",
"status":"active",
"name":"Push welcome",
"description":"Push adex welcome notification",
"event":{
"id":"1000",
"integration_id":"10000"
},
"actions":{
"id":"1002",
"integration_id":"10000",
"data":{
"user_id":"{{event.user_id}}",
"zone_id":"12345678"
}
},
"create_time":"2022-07-02 12:30:40",
"update_time":"2022-07-05 13:19:10"
}
https://api.ocamba.com/v2/ocamba/ebs/automations/{id}
Show details for an automation, by provided ID.
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
idstring (required) | Unique identifier for the object defined as a path parameter. |
{
"total":1,
"items":[
{
"id":"10001",
"company_id":"6197120",
"status":"active",
"name":"Push welcome",
"description":"Push adex welcome notification",
"event":{
"id":"1000",
"integration_id":"10000"
},
"actions":{
"id":"1002",
"integration_id":"10000",
"data":{
"user_id":"{{event.user_id}}",
"zone_id":"12345678"
}
},
"create_time":"2022-07-02 12:30:40",
"update_time":"2022-07-05 13:19:10"
}
]
}
If you don’t know the automation id, list the automations to find it.
https://api.ocamba.com/v2/ocamba/ebs/automations/{id}
idstring (required) | Unique identifier for the object defined as a path parameter. |
{
"status":"inactive",
"name":"Push welcome",
"event":{
"id":"1000",
"integration_id":"10000"
}
}
https://api.ocamba.com/v2/ocamba/ebs/automations/{id}
idstring (required) | Unique identifier for the object defined as a path parameter. |
If you don’t know the automation id, list the automations to find it.
https://api.ocamba.com/v2/ocamba/autonomous-system
The read-only autonomous-system Service provides details about the ASN and ASO (autonomous system number and autonomous system organization) for IP addresses
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idinteger | Unique ASN - autonomous system number |
asninteger | ASN - autonomous system number |
asointeger | ASO - autonomous system organization |
ispstring | Name of the Internet service provider. |
organizationinteger | Name of the organization |
totalinteger | |
items |
{
"total": 70819,
"items": [
{
"id": "55734",
"asn": 55734,
"aso": "001 IT Complex",
"isp": "001 IT Complex",
"organization": "001 IT Complex"
},
{
"id": "60502",
"asn": 60502,
"aso": "01 System Srl",
"isp": "01 System Srl",
"organization": "01 System Srl"
},
{
"id": "209288",
"asn": 209288,
"aso": "020 ICT",
"isp": "020 ICT",
"organization": "020 ICT"
}
]
}
{
"items": [
{
"id": "55734",
"asn": 55734,
"aso": "001 IT Complex",
"isp": "001 IT Complex",
"organization": "001 IT Complex"
}
]
}
Searchable fields are: aso, isp and organization.
Sortable fields are: id, asn, aso, isp and organization.
https://api.ocamba.com/v2/ocamba/autonomous-system/{id}
The read-only autonomous-system Service provides details about the ASN and ASO (autonomous system number and autonomous system organization) for IP addresses when id (ASN) is specified
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idinteger (required) | Unique ASN - autonomous system number |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "55734",
"asn": 55734,
"aso": "001 IT Complex",
"isp": "001 IT Complex",
"organization": "001 IT Complex"
}
]
}
{
"items": [
{
"id": "55734",
"asn": 55734,
"aso": "001 IT Complex",
"isp": "001 IT Complex",
"organization": "001 IT Complex"
}
]
}
If you don’t know the id, list the collection to find it.
https://api.ocamba.com/v2/ocamba/browsers
The read-only Browsers Service allows you to see which browsers are registered in Ocamba. You can use this service to retrieve the id-s and names of browsers
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
nameinteger | The name of the browser, example - Chrome. |
idinteger | Unique browser id |
totalinteger | |
items |
{
"total": 12,
"items": [
{
"id": "72",
"name": "Android"
},
{
"id": "17",
"name": "Edge"
},
{
"id": "12",
"name": "Chrome"
}
]
}
{
"items": [
{
"id": "12",
"name": "Chrome",
"versions": [
{
"id": "174",
"name": "Chrome 10",
"versions": "10.0"
}
]
}
]
}
Searchable field is name.
Sortable fields are id and name.
https://api.ocamba.com/v2/ocamba/browsers/{id}
The read-only Browsers service returns a browser name when id is specified
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
idinteger (required) | Unique browser “id” |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "72",
"name": "Android"
}
]
}
{
"items": [
{
"id": "12",
"name": "Chrome",
"versions": [
{
"id": "174",
"name": "Chrome 10",
"versions": "10.0"
}
]
}
]
}
If you don’t know the browser id, list the browsers to find it.
https://api.ocamba.com/v2/ocamba/cities
The read-only City Service allows you to see information about the cities registered in Ocamba, including the name, region, country code, and country to which each city belongs.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
namestring | The name of the city. |
idstring | Unique id of the city |
regionstring | The name of the region to which the city belongs. Example - British Columbia |
country_codestring | The two-letter, uppercase ISO Code of the country to which the city belongs. Example - CA. |
full_namestring | Full address |
totalinteger | |
items |
{
"total": 168596,
"items": [
{
"id": "5881639",
"name": "100 Mile House",
"region": "British Columbia",
"country_code": "CA",
"full_name": "100 Mile House, British Columbia, CA"
},
{
"id": "3504833",
"name": "12 de Haina",
"region": "Nacional",
"country_code": "DO",
"full_name": "12 de Haina, Nacional, DO"
},
{
"id": "8556282",
"name": "150 Mile House",
"region": "British Columbia",
"country_code": "CA",
"full_name": "150 Mile House, British Columbia, CA"
}
]
}
{
"items": [
{
"id": "5881639",
"country_code": "CA",
"region": "British Columbia",
"name": "100 Mile House",
"full_name": "100 Mile House, British Columbia, CA"
}
]
}
Searchable fields are: name, region and full_name.
Sortable fields are: id, region, country_code name and full_name.
https://api.ocamba.com/v2/ocamba/cities/{id}
The read-only City service returns a name of the city when it’s id is specified.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idinteger (required) | Unique id of the city |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "5881639",
"name": "100 Mile House",
"region": "British Columbia",
"country_code": "CA",
"full_name": "100 Mile House, British Columbia, CA"
}
]
}
{
"items": [
{
"id": "5881639",
"country_code": "CA",
"region": "British Columbia",
"name": "100 Mile House",
"full_name": "100 Mile House, British Columbia, CA"
}
]
}
If you don’t know the city id, list the cities to find it.
https://api.ocamba.com/v2/ocamba/company
Returns details of the Company registered in Ocamba.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "1234567",
"name": "Ocamba App",
"short_name": "OAPP",
"domain": "ocamba.app",
"status": "active",
"logo": "https://dev-storage.ocamba.com/1234567/ocamba/company/logo/mickey-mouse.jpg",
"create_time": "2021-01-20T14:50:46Z",
"update_time": "2021-10-29T14:02:37Z"
}
]
}
{
"items": [
{
"id": "1000163",
"ownver_id": "10132163",
"xero_id": "c13a387e-af72-475d-98ef-b03dfae8d750",
"name": "Ocamba App",
"short_name": "OAPP",
"status": "active",
"domain": "demo.app",
"registration_number": "12345",
"vat_id": "45",
"logo": "https://path/logo.jpeg",
"address": "Dragise Misovic 163b, Cacak, Serbia",
"email": "[email protected]",
"website": "https://www.google.com",
"billing": {
"email": "[email protected]",
"address": {
"street": "Dragise Misovica 163b",
"city": "Cacak",
"country": "RS",
"postal_code": "32000"
}
},
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
https://api.ocamba.com/v2/ocamba/company
Edit the details of the registered Company.
{
"name": "DemoTest App",
"short_name": "DTAPP",
"address": "Vojvode Stepe 14, Cacak, Serbia",
"website": "www.google.com"
}
At least one of the updatable fields should be sent via HTTP body in order to change the current state of the company.
If you don’t know the company id
, list the companies to find it.
https://api.ocamba.com/v2/ocamba/company/logo
Allows to set or update the logo of the company with specified id.
idstring (required) | Unique identifier for the object defined as a path parameter. |
--form 'file=@"path/logo.jpeg"'
If you don’t know the company id, list the companies to find it.
https://api.ocamba.com/v2/ocamba/company/logo
Allows to delete the logo of the company with specified id.
idstring (required) | Unique identifier for the object defined as a path parameter. |
This change will be automatically synchronized to an ad server.
We recommend you consider other options before deletion.
If you don’t know the company id, list the companies to find it.
https://api.ocamba.com/v2/ocamba/connection-types
The read-only Connection-types Service allows you to see which internet connection types are registered in Ocamba.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idinteger | Unique connection type id |
nameinteger | The name of the connection type. Example - cable/dsl, cellular, corporate, dialup, unknown |
totalinteger | |
items |
{
"total": 5,
"items": [
{
"id": "2",
"name": "cable/dsl"
},
{
"id": "4",
"name": "cellular"
},
{
"id": "3",
"name": "corporate"
},
{
"id": "1",
"name": "dialup"
},
{
"id": "0",
"name": "unknown"
}
]
}
{
"items": [
{
"id": "2",
"name": "cable/dsl"
}
]
}
Searchable field is name.
Sortable fields are name and id.
https://api.ocamba.com/v2/ocamba/connection-types/{id}
The read-only Connection-type Service returns internet connection type registered with specified id in Ocamba.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idinteger (required) | Unique id of the connection type |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "2",
"name": "cable/dsl"
}
]
}
{
"items": [
{
"id": "2",
"name": "cable/dsl"
}
]
}
If you don’t know the connection-type id, list the connection-types to find it.
https://api.ocamba.com/v2/ocamba/countries
The read-only Countries Service allows you to see information about the countries registered in Ocamba.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idstring | Unique id of the country. |
namestring | The name of the country. |
codestring | The two-letter, uppercase ISO Code of the country. Example - CA |
code3string | The three-letter, uppercase ISO country code. Example - AFG |
totalinteger | |
items |
{
"total": 256,
"items": [
{
"id": "AF",
"code": "AF",
"code3": "AFG",
"name": "Afghanistan"
},
{
"id": "AX",
"code": "AX",
"code3": "AXA",
"name": "Aland Islands"
},
{
"id": "DZ",
"code": "DZ",
"code3": "DZA",
"name": "Algeria"
}
]
}
{
"items": [
{
"id": "AF",
"code": "AF",
"code3": "AFG",
"name": "Afghanistan"
}
]
}
Searchable field is name.
Sortable fields are: name, code, code3 and id.
https://api.ocamba.com/v2/ocamba/countries/{id}
The read-only Country Service returns the two-letter, uppercase ISO Code of the country with specified id.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idstring (required) | Unique id of the country |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "AF",
"code": "AF",
"code3": "AFG",
"name": "Afghanistan"
}
]
}
{
"items": [
null
]
}
If you don’t know the country id, list the countries to find it.
https://api.ocamba.com/v2/ocamba/currencies
The read-only Currencies service returns the list of usable currencies in Ocamba
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idstring | Unique id of the currency. Example - CNY |
namestring | The name of the currency. Example - Euro |
codestring | Three-letter, uppercase currency code. Example - CNY |
ratenumber | Currency exchange rate. Example - 6.3848 |
totalinteger | |
items |
{
"total": 8,
"items": [
{
"id": "CNY",
"code": "CNY",
"name": "Chinese Yuan Renminbi",
"rate": 6.3848
},
{
"id": "EUR",
"code": "EUR",
"name": "Euro",
"rate": 0.88963
},
{
"id": "ILS",
"code": "ILS",
"name": "Israeli Shekel",
"rate": 3.09698
}
]
}
{
"items": [
{
"id": "CNY",
"code": "CNY",
"name": "Chinese Yuan Renminbi",
"rate": 6.3848
}
]
}
Searchable field is name.
Sortable fields are: name, code, rate and id.
https://api.ocamba.com/v2/ocamba/currencies/{id}
The read-only Currency Service returns parameters of the country with specified id.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idstring (required) | Unique id of the currency. Example - CNY |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "CNY",
"code": "CNY",
"name": "Chinese Yuan Renminbi",
"rate": 6.3848
}
]
}
{
"items": [
null
]
}
If you don’t know the currency id, list the currencies to find it.
https://api.ocamba.com/v2/ocamba/dashboards
https://api.ocamba.com/v2/ocamba/dashboards
{
"app_id": "1001",
"name": "Activity dashboard",
"description": "Displays user activity",
"system": 1,
"is_default": 1
}
{
"id": "295",
"company_id": "6197120",
"app_id": "1001",
"ref": null,
"creator_id": "1000077",
"name": "Activity dashboard",
"description": "Displays user activity"
}
https://api.ocamba.com/v2/ocamba/dashboards/{id}
fieldsstring | When you retrieve a collection of some source, you can specify a subset of fields to be returned for each source. For efficiency, every source in a collection is represented by the default representation. |
viewstring | You can request one of the predefined representations(default, full) or custom representation according to your needs. |
sortstring | The collection of accounts can be sorted by name, type, create_time, campaign_count and zone_count (ASC) is a default. |
pagestring | When you retrieve a collection of sources, pagination is enforced by default. If you don’t specify a value for the collection size, 10 is used as a default. |
idstring (required) | Unique identifier for the object defined as a path parameter. |
https://api.ocamba.com/v2/ocamba/dashboards/{id}
idstring (required) | Unique identifier for the object defined as a path parameter. |
{
"app_id": "1001",
"name": "Activity dashboard",
"description": "Displays user activity",
"system": 1,
"is_default": 1
}
https://api.ocamba.com/v2/ocamba/dashboards/{id}
idstring (required) | Unique identifier for the object defined as a path parameter. |
https://api.ocamba.com/v2/ocamba/dashboards/{id}/pin
idstring (required) | Unique identifier for the object defined as a path parameter. |
app_idstring (required) | The ID of the application to which the dashboard will be pinned. |
https://api.ocamba.com/v2/ocamba/dashboards/{id}/widgets
idstring (required) | Unique identifier for the object defined as a path parameter. |
[
{
"id": "42",
"grid": {"h": 20,"w": 20,"x": 5, "y": 5}
},
{
"id": "41",
"grid": {"h": 10,"w": 10, "x": 10, "y": 10}
}
]
https://api.ocamba.com/v2/ocamba/device-manufacturers
The read-only device-manufacturers service returns the list of device manufacturers names specified in Ocamba.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idstring | Unique id of the device manufacturer. Example - 14. |
namestring | The name of the device manufacturer. Example - APPLE |
totalinteger | |
items |
{
"total": 16,
"items": [
{
"id": "14",
"name": "APPLE"
},
{
"id": "13",
"name": "BLACKBERRY"
},
{
"id": "1",
"name": "Dell"
}
]
}
{
"items": [
{
"id": "14",
"name": "APPLE"
}
]
}
Searchable field is name.
Sortable fields are name and id.
https://api.ocamba.com/v2/ocamba/device-manufacturers/{id}
The read-only device-manufacturer service returns name of the device manufacturer with specified id.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idstring (required) | Unique id of the device manufacturer. Example - 14. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "14",
"name": "APPLE"
}
]
}
{
"items": [
{
"id": "14",
"name": "APPLE"
}
]
}
If you don’t know the device-manufacture id, list the device-manufactures to find it.
https://api.ocamba.com/v2/ocamba/event-system/integrations
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
{
"total": 1,
"items": [
{
"id": "10000",
"name": "Ocamba Hood",
"description": "Hood app from Ocamba platform",
"homepage": "https://ocamba.com",
"version": "1.0.0",
"audience": "public",
"create_time": "2022-06-30 07:55:49",
"update_time": "2022-06-30 07:55:49",
"events": [
{
"id": "1000",
"integration_id": "10000",
"name": "Push subscription",
"item": "Push",
"description": "Triggers when user subscribes",
"operation": {
"output_params": [
{
"key": "user_id",
"type": "string"
}
{
"key": "app_name",
"type": "string"
},
{
"key": "tag_id",
"type": "string"
}
]
},
"create_time": "2022-06-30 08:23:34",
"update_time": "2022-07-04 10:47:30"
}
],
"actions": [
{
"id": "1010",
"integration_id": "10000",
"name": "Send Adex notification",
"item": "Push",
"description": "Send webpush to a subscribed user on Ocamba hood tag",
"engine": "api",
"operation": {
"input_params": {
"user_id": {
"key": "User id",
"type": "string",
"description": "user from ocamba platform, use from event only",
"required": true,
"in": "body"
},
"zone_id": {
"key": "Zone id",
"type": "string",
"description": "Zone id from Ocamba adex",
"required": true,
"in": "body"
}
}
},
"create_time": "2022-06-30 08:25:18"
}
]
}
]
}
https://api.ocamba.com/v2/ocamba/event-system/integrations/{id}
Show details for a integration, by provided ID.
idstring (required) | Unique identifier for the object defined as a path parameter. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "10014",
"name": "Integration",
"description": "Description of integration",
"logo": "https://www.google.com/search?q=logo&rlz=1C5CHFA_enRS985RS988",
"homepage": "https://delsystems.net/index.htm",
"version": "1.1.10",
"audience": "public",
"events": [
{
"id": "1026",
"integration_id": "10002",
"name": "Create Event",
"item": "item",
"description": "Creates a Event",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
],
"actions": [
{
"id": "1014",
"integration_id": "10014",
"name": "Create Ticket",
"item": "Ticket",
"engine": "email",
"properties": {
"label": {
"key": "url",
"type": "string",
"description": "design description",
"required": true
}
},
"description": "Creates a Ticket",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
],
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
If you don’t know the integration id, list the integrations to find it.
https://api.ocamba.com/v2/ocamba/invites
The Invites Service allows you to add Users to the Ocamba platform and manipulate the invitations.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idinteger | Unique id of the invite. |
statusstring | Returns the status of the invite. May be Active, Pending, Expired |
create_timestring | Time of the invite, in Etc/GMT timezone. |
inviter_idstring | A unique id of the inviter. |
inviteestring | Email address of the User invited to Ocamba platform. |
invite_timestring | Inviting time, initial or subsequent, in Etc/GMT timezone. |
messagestring | Optional message sent to user invited to Ocamba. |
totalinteger | |
items |
{
"total": 11,
"items": [
{
"id": "293",
"inviter_id": "1000125",
"invitee": "[email protected]",
"name": "John Doe",
"status": "expired",
"create_time": "2021-10-29 06:59:40"
},
{
"id": "292",
"inviter_id": "1000005",
"invitee": "[email protected]",
"name": "John Doe",
"status": "expired",
"create_time": "2021-10-29 06:57:35"
},
{
"id": "291",
"inviter_id": "1000034",
"invitee": "[email protected]",
"name": "John Doe",
"status": "expired",
"create_time": "2021-10-20 15:09:38"
}
]
}
{
"items": [
{
"id": "423",
"company_id": "1000163",
"inviter_id": "1123163",
"access": "{\n \"1010\": \"1107\"\n}",
"name": "John Doe",
"invitee": "[email protected]",
"message": "some message",
"status": "expired",
"invite_time": "2021-07-30 12:50:13",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
Searchable fields are: invitee, name and message.
Sortable fields are: id, inviter_id, invitee, name, status, create_time and update_time.
https://api.ocamba.com/v2/ocamba/invites
This service allows inviting Users to Ocamba platform.
{
"invitee": "[email protected]",
"message": "only for testing"
}
{
"id": "295",
"company_id": "6345624",
"inviter_id": "1000077",
"access": {
"1010": "1107"
},
"invitee": "[email protected]",
"name": "john.doe",
"message": "only for testing",
"status": "pending"
}
https://api.ocamba.com/v2/ocamba/invites/{id}
Returns details of an invite sent by specified ID.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
idstring (required) | Unique id of the invite. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "293",
"inviter_id": "1000125",
"invitee": "[email protected]",
"name": "John Doe",
"status": "expired",
"create_time": "2021-10-29T06:59:40Z"
}
]
}
{
"items": [
{
"id": "423",
"company_id": "1000163",
"inviter_id": "1123163",
"access": "{\n \"1010\": \"1107\"\n}",
"name": "John Doe",
"invitee": "[email protected]",
"message": "some message",
"status": "expired",
"invite_time": "2021-07-30 12:50:13",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
If you don’t know the invite id, list the invites to find it.
https://api.ocamba.com/v2/ocamba/invites/{id}
Allows deletion of an invite with specified ID.
idstring (required) | Unique id of the invite. |
We recommend you consider other options before deletion.
If you don’t know the invite id, list the invites to find it.
https://api.ocamba.com/v2/ocamba/invites/{id}/resend
Allows resending an invite with specified ID.
idstring (required) | Unique id of the invite. |
Only expired invites can be resend.
If you don’t know the invite id, list the invites to find it.
https://api.ocamba.com/v2/ocamba/invoices
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
company_idinteger | A unique company identifier generated by the Ocamba platform. |
statusstring | Describe status of the object. |
update_timestring | Timezone: GMT. |
create_timestring | Timezone: GMT. |
idstring (uuid) | A unique identifier generated by the Ocamba platform. |
invoice_numberstring | The invoice number, generated by Ocamba api. Unique. |
app_idstring | A unique app identifier generated by the Ocamba platform. |
amountfloat | Total amount. |
pricefloat | Sum of prices applied on the invoice line items. |
discountfloat | Total of discounts applied on the invoice line items. |
taxnumber (integer) | Total tax on invoice. |
currency_codestring | Three-letter, uppercase currency code. |
sentnumber (integer) | Indicates if invoice is sent to company billing address or not. |
start_timestring | When billing period starts. |
end_timestring | When billing period ends. |
payment_timestring | When invoice was paid. Only for ‘paid’ invoices. |
due_datestring | Due date. |
totalinteger | |
items |
{
"total": 209,
"items": [
{
"id": "2c9ab0a8-d0d2-49aa-b790-9697cc3aed14",
"company_id": "6197120",
"app_id": "1003",
"invoice_number": "OCM-213376",
"status": "paid",
"price": 9.99,
"tax": 2,
"amount": 11.99,
"currency_code": "USD",
"pdf": "https://dev-storage.ocamba.com/6197120/ocamba/invoices/OCM-213376.pdf",
"sent": 1,
"items": [
{
"name": "Ocamba Push Startup Plan (Monthly)",
"quantity": 1,
"unit_price": 9.99,
"price": 9.99,
"discount_rate": 0,
"discount": 0,
"tax_rate": 20,
"tax": 2,
"amount": 11.99
}
],
"due_date": "2021-11-24",
"payment_time": "2021-11-24 10:23:55",
"create_time": "2021-11-24 10:23:55",
"update_time": "2021-11-24 10:24:04"
},
{
"id": "6c5206d1-e4d7-4331-8db6-0fa7b4905592",
"company_id": "6197120",
"app_id": "1003",
"invoice_number": "OCM-213375",
"status": "paid",
"price": 99.99,
"tax": 20,
"amount": 119.99,
"currency_code": "USD",
"pdf": "https://dev-storage.ocamba.com/6197120/ocamba/invoices/OCM-213375.pdf",
"sent": 1,
"items": [
{
"name": "Ocamba Push Business Plan (Monthly)",
"quantity": 1,
"unit_price": 99.99,
"price": 99.99,
"discount_rate": 0,
"discount": 0,
"tax_rate": 20,
"tax": 20,
"amount": 119.99
}
],
"due_date": "2021-11-24",
"payment_time": "2021-11-24 08:30:18",
"create_time": "2021-11-24 08:30:18",
"update_time": "2021-11-24 08:31:04"
},
{
"id": "c8a1ccbf-7b59-4d8a-aa3d-a246f31432e5",
"company_id": "6197120",
"app_id": "1001",
"invoice_number": "OCM-213372",
"status": "paid",
"price": 249.99,
"tax": 50,
"amount": 299.99,
"currency_code": "USD",
"pdf": "https://dev-storage.ocamba.com/6254628/ocamba/invoices/OCM-213372.pdf",
"sent": 1,
"items": [
{
"name": "Ocamba Adex Network Plan (Monthly)",
"quantity": 1,
"unit_price": 249.99,
"price": 249.99,
"discount_rate": 0,
"discount": 0,
"tax_rate": 20,
"tax": 50,
"amount": 299.99
}
],
"start_date": "2021-11-23",
"end_date": "2021-11-23",
"due_date": "2021-11-23",
"payment_time": "2021-11-23 11:59:28",
"create_time": "2021-11-23 11:59:28",
"update_time": "2021-11-23 13:05:13"
}
]
}
{
"items": [
{
"id": "2c9ab0a8-d0d2-49aa-b790-9697cc3aed14",
"app_id": "1000",
"invoice_number": "OCM-210001",
"status": "paid",
"price": 99.99,
"tax": 2.2,
"amount": 102.19,
"currency_code": "USD",
"pdf": "https://storage.ocamba.com/9999999/ocamba/invoices/OCM-210001.pdf",
"sent": 1,
"items": [
{
"name": "Ocamba Push Startup Plan (Monthly)"
}
],
"due_date": "2021-11-24",
"start_date": "2021-11-01",
"end_date": "2021-11-30",
"payment_time": "2021-11-24 10:23:55",
"create_time": "2021-11-10 10:23:55",
"update_time": "2021-11-10 10:23:55"
}
]
}
Searchable field is invoice_number.
Sortable fields are: invoice_number, status, price, discount, amount, tax, currency_code, xero_status, start_date, end_date, payment_time, due_date, create_time and update_time.
https://api.ocamba.com/v2/ocamba/languages
The read-only languages Service returns the list of languages specified in Ocamba.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
namestring | The name of the language. Example - Arabic. |
idstring | Unique id of the language. Example - ar. |
codestring | Two-letter, lowercase language code. |
code3string | Three-letter, lowercase language code. |
totalinteger | |
items |
{
"total": 40,
"items": [
{
"id": "ar",
"code": "ar",
"code3": "ara",
"name": "Arabic"
},
{
"id": "bg",
"code": "bg",
"code3": "bul",
"name": "Bulgarian"
},
{
"id": "ca",
"code": "ca",
"code3": "cat",
"name": "Catalan"
}
]
}
{
"items": [
{
"id": "ar",
"code": "ar",
"code3": "ara",
"name": "Arabic"
}
]
}
Searchable field is name.
Sortable fields are: name, code, code3 and id.
https://api.ocamba.com/v2/ocamba/languages/{id}
The read-only language service returns name of the language with specified id.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idstring (required) | Unique id of the language. Example - ar. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "ar",
"code": "ar",
"code3": "ara",
"name": "Arabic"
}
]
}
{
"items": [
{
"id": "ar",
"code": "ar",
"code3": "ara",
"name": "Arabic"
}
]
}
If you don’t know the language id, list the languages to find it.
https://api.ocamba.com/v2/ocamba/media-library
Returns the list of company related media existing in Ocamba
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
totalinteger | |
items |
{
"total": 30,
"items": [
{
"id": "124",
"company_id": "6123120",
"app_id": "1001",
"user_id": "1001277",
"location": "https://sm.ocmcore.com/share/6123120/adex/media/16919029-joda.jpeg",
"name": "joda.jpeg",
"size": 193302,
"mime_type": "image/jpeg",
"width": 1200,
"height": 900,
"create_time": "2022-03-28 08:36:19",
"update_time": "2022-03-28 08:36:19"
},
{
"id": "123",
"company_id": "6123120",
"app_id": "1001",
"user_id": "1001277",
"location": "https://sm.ocmcore.com/share/6123120/adex/media/1255776809-rick.jpeg",
"name": "rick.jpeg",
"size": 5020,
"mime_type": "image/jpeg",
"width": 200,
"height": 200,
"create_time": "2022-03-28 08:35:59",
"update_time": "2022-03-28 08:35:59"
},
{
"id": "122",
"company_id": "6123120",
"app_id": "1001",
"user_id": "1001277",
"location": "https://sm.ocmcore.com/share/6123120/adex/media/3846873605-test1234.png",
"name": "test1234.png",
"size": 41236,
"mime_type": "image/png",
"width": 400,
"height": 479,
"create_time": "2022-03-28 08:35:32",
"update_time": "2022-03-28 08:35:32"
}
]
}
{
"items": [
{
"id": "12",
"company_id": "1000123",
"app_id": "1000123",
"user_id": "1123143",
"location": "https://sm.ocmcore.com/share/6191234/adex/media/3945083025-example.png",
"name": "example",
"mime_type": "image/jpeg",
"size": 4356,
"width": 300,
"height": 300,
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
https://api.ocamba.com/v2/ocamba/media-library
Uploads the media to the system.
--form 'app="adex"' \
--form 'file=@"path/example.jpeg"'
{
"id": "12",
"company_id": "1000123",
"app_id": "1000123",
"user_id": "1123143",
"location": "https://sm.ocmcore.com/share/6191234/adex/media/3945083025-example.png",
"name": "example",
"mime_type": "image/jpeg",
"size": 4356,
"width": 300,
"height": 300,
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
Image upload can only be accomplished using the multipart/form-data, as shown in the example.
https://api.ocamba.com/v2/ocamba/media-library/{id}
Show details of media library with specified id.
idstring (required) | Unique identifier for media library. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "12",
"company_id": "1000123",
"app_id": "1000123",
"user_id": "1123143",
"location": "https://sm.ocmcore.com/share/6191234/adex/media/3945083025-example.png",
"name": "example",
"mime_type": "image/jpeg",
"size": 4356,
"width": 300,
"height": 300,
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
If you don’t know the media library id, list the media libraries to find it.
https://api.ocamba.com/v2/ocamba/media-library/{id}
Deletes media library with the specified id.
idstring (required) | Unique identifier for media library. |
This change will be automatically synchronized to an ad server.
We recommend you consider other options before deletion.
If you don’t know the media library id, list the media libraries to find it.
https://api.ocamba.com/v2/ocamba/members
Members function returns details of the selected members.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
statusstring | Represents member’s current status. May be Active, Pending, Expired. |
emailstring | Member’s email address. |
idinteger | Unique member’s id. |
totalinteger | |
items |
{
"total": 29,
"items": [
{
"id": "1000163",
"name": "John Doe",
"status": "active",
"email": "[email protected]",
"create_time": "2021-07-30T12:50:13Z",
"update_time": "2021-07-30T12:50:13Z"
},
{
"id": "1000006",
"name": "Jane Doe",
"status": "active",
"email": "[email protected]",
"create_time": "2020-08-28T11:29:48Z",
"update_time": "2021-04-15T17:13:59Z"
},
{
"id": "1000005",
"name": "Johnny Doe",
"status": "active",
"email": "[email protected]",
"image": "https://storage.ocamba.com/6197120/members/1000005/image/jonny.png"
}
]
}
{
"items": [
{
"id": "1000163",
"company_id": "1000000",
"name": "John Doe",
"status": "active",
"email": "[email protected]",
"image": "https://image-uri-example.com",
"preferences": {},
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
https://api.ocamba.com/v2/ocamba/members/{id}
Show details for a member, by provided ID.
idstring (required) | Unique member id. |
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
totalinteger | |
items |
{
"total": 29,
"items": [
{
"id": "1000163",
"name": "John Doe",
"status": "active",
"email": "[email protected]",
"create_time": "2021-07-30T12:50:13Z",
"update_time": "2021-07-30T12:50:13Z"
}
]
}
{
"items": [
{
"id": "1000163",
"company_id": "1000000",
"name": "John Doe",
"status": "active",
"email": "[email protected]",
"image": "https://image-uri-example.com",
"preferences": {},
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
If you don’t know the member id, list the members to find it.
https://api.ocamba.com/v2/ocamba/members/{id}
Delete a member, by provided ID.
idstring (required) | Unique member id. |
We recommend you consider other options before deletion.
If you don’t know the member id, list the members to find it.
https://api.ocamba.com/v2/ocamba/members/{id}
Update a member, by provided ID.
idstring (required) | Unique member id. |
{
"name": "Doe Jonesd"
}
At least one of the updatable fields should be sent via HTTP body in order to change the current state of the member.
If you don’t know the member id, list the members to find it.
https://api.ocamba.com/v2/ocamba/members/{id}/image
Update image of a member with the specified id.
idstring (required) | Unique member id. |
--form 'file=@"path/logo.jpeg"'
If you don’t know the member id, list the members to find it.
https://api.ocamba.com/v2/ocamba/members/{id}/image
Delete image of a member with the specified id.
idstring (required) | Unique member id. |
We recommend you consider other options before deletion.
If you don’t know the member id, list the members to find it.
https://api.ocamba.com/v2/ocamba/orders
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
update_timestring | Timezone: GMT. |
create_timestring | Timezone: GMT. |
idstring (uuid) | A unique identifier generated by the Ocamba platform. |
detailsstring | Additional information about an order. |
amountnumber | Order price. |
currency_codestring | Three-letter, uppercase currency code. |
start_timestring | Timezone: GMT. |
app_idstring (required) | A unique company identifier generated by the Ocamba platform. |
totalinteger | |
items |
{
"total": 209,
"items": [
{
"id": "c7db9321-dc48-43f1-b32d-a45a4991879a",
"company_id": "6197120",
"app_id": "1003",
"details": "Ocamba Push Startup Plan (Monthly)",
"amount": 11.99,
"currency_code": "USD",
"start_time": "2021-11-24 10:23:55",
"create_time": "2021-11-24 10:23:55",
"update_time": "2021-11-24 10:23:55"
},
{
"id": "f6082c6e-a535-4591-831a-0ac23d08d7f3",
"company_id": "6197120",
"app_id": "1003",
"details": "Ocamba Push Business Plan (Monthly)",
"amount": 119.99,
"currency_code": "USD",
"start_time": "2021-11-24 08:30:18",
"create_time": "2021-11-24 08:30:18",
"update_time": "2021-11-24 08:30:18"
},
{
"id": "6363e70f-baca-4a1f-b0d3-82b5628048ed",
"company_id": "6197120",
"app_id": "1003",
"details": "Ocamba Push Startup Plan (Monthly)",
"amount": 11.99,
"currency_code": "USD",
"start_time": "2021-11-22 12:13:32",
"create_time": "2021-11-22 12:13:32",
"update_time": "2021-11-22 12:13:32"
}
]
}
{
"items": [
{
"id": "1000163",
"company_id": "1000000",
"name": "John Doe",
"status": "active",
"email": "[email protected]",
"image": "https://image-uri-example.com",
"preferences": {},
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
Searchable field is details.
Sortable fields are: amount, currency_code, start_date, create_time and update_time.
https://api.ocamba.com/v2/ocamba/orders/{id}
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idstring (uuid) (required) | A unique identifier generated by the Ocamba platform. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "c7db9321-dc48-43f1-b32d-a45a4991879a",
"company_id": "6197120",
"app_id": "1003",
"details": "Ocamba Push Startup Plan (Monthly)",
"amount": 11.99,
"currency_code": "USD",
"start_time": "2021-11-24 10:23:55",
"create_time": "2021-11-24 10:23:55",
"update_time": "2021-11-24 10:23:55"
}
]
}
{
"items": [
{
"id": "37ca408f-59d8-4910-bcb0-54dad2641c61",
"company_id": "1234567",
"app_id": "1003",
"details": "Ocamba Push Startup Plan (Monthly)",
"amount": 10.99,
"currency_code": "USD",
"start_time": "2021-07-30 12:50:13",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
If you don’t know the order id, list the orders to find it.
https://api.ocamba.com/v2/ocamba/os
The read-only oss service returns the list of operating systems registered in Ocamba.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idstring | Unique id of the operating system. Example - 12 |
namestring | The name of the operating system. Example - Android |
totalinteger | |
items |
{
"total": 12,
"items": [
{
"id": "12",
"name": "Android"
},
{
"id": "11",
"name": "BlackBerry"
},
{
"id": "18",
"name": "Chrome"
}
]
}
{
"items": [
{
"id": "12",
"name": "Android",
"versions": {
"id": "12",
"name": "Android",
"versions": "11.0"
}
}
]
}
Searchable field is name.
Sortable fields are name and id.
https://api.ocamba.com/v2/ocamba/os/{id}
The read-only os Service displays information about the operating system with the specified id
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
idstring (required) | Unique id of the operating system. Example - 12 |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "12",
"name": "Android"
}
]
}
{
"items": [
{
"id": "12",
"name": "Android",
"versions": {
"id": "12",
"name": "Android",
"versions": "11.0"
}
}
]
}
If you don’t know the os id, list the oss to find it.
https://api.ocamba.com/v2/ocamba/regions
The read-only regions service displays the information about the regions and the 2-letter country codes of the countries they belong.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idstring | Unique id of the region. Example id=“2661876”. |
namestring | The name of the region. Example name=“Aargau”. |
totalinteger | |
items |
{
"total": 3150,
"items": [
{
"id": "831053",
"name": "Kosovo",
"country_code": "RS",
"full_name": "Kosovo, RS"
},
{
"id": "2661876",
"name": "Aargau",
"country_code": "CH",
"full_name": "Aargau, CH"
},
{
"id": "2565340",
"name": "Abia State",
"country_code": "NG",
"full_name": "Abia State, NG"
},
{
"id": "11153151",
"name": "Abidjan",
"country_code": "CI",
"full_name": "Abidjan, CI"
}
]
}
{
"items": [
{
"id": "2661876",
"name": "Aargau",
"country_code": "CH",
"full_name": "Aargau, CH"
}
]
}
Searchable field is name, id and full_name.
Sortable fields are name, id, country_code and full_name.
https://api.ocamba.com/v2/ocamba/regions/{id}
The read-only region Service displays information about the region with the specified id
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idstring (required) | Unique id of the region. Example id=“2661876”. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "2661876",
"name": "Aargau",
"country_code": "CH",
"full_name": "Aargau, CH"
}
]
}
{
"items": [
{
"id": "2661876",
"name": "Aargau",
"country_code": "CH",
"full_name": "Aargau, CH"
}
]
}
If you don’t know the region id, list the regions to find it.
https://api.ocamba.com/v2/ocamba/reports
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
https://api.ocamba.com/v2/ocamba/reports
{
"name": "Top 10",
"description": "Displays top 10 exchanges with highest income",
"ds": "{ \"fields\": \"exchange_name,income\", \"source\": \"adex.exchange\", \"limit\": \"10\", \"order\": { \"field\" : \"income\", \"op\" : \"-\" } }"
}
https://api.ocamba.com/v2/ocamba/reports/{id}
https://api.ocamba.com/v2/ocamba/reports/{id}
{
"name": "Top 10",
"description": "Displays top 10 exchanges with highest income",
"ds": "{ \"fields\": \"exchange_name,income\", \"source\": \"adex.exchange\", \"limit\": \"10\", \"order\": { \"field\" : \"income\", \"op\" : \"-\" } }"
}
System report can’t be modified.
If you don’t know the report id, list the reports to find it.
https://api.ocamba.com/v2/ocamba/reports/{id}
System report can’t be deleted.
If you don’t know the report id, list the reports to find it.
https://api.ocamba.com/v2/ocamba/timezones
The read-only timezones service displays the information about the timezones.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
create_timestring | Timezone: GMT. |
update_timestring | Timezone: GMT. |
idstring | Unique id of the timezone. Example NST. |
namestring | The name of the timezone. Example “New Zealand Standard Time”. |
codestring | Three-letter, uppercase timezone code. |
totalinteger | |
items |
{
"total": 28,
"items": [
{
"id": "NST",
"code": "NST",
"name": "New Zealand Standard Time",
"short_offset": 12,
"offset": "GMT+12:00",
"create_time": "2021-01-22 10:00:28",
"update_time": "2021-01-22 12:45:02"
},
{
"id": "SST",
"code": "SST",
"name": "Solomon Standard Time",
"short_offset": 11,
"offset": "GMT+11:00",
"create_time": "2021-01-22 10:00:28",
"update_time": "2021-01-22 10:00:28"
},
{
"id": "AET",
"code": "AET",
"name": "Australia Eastern Time",
"short_offset": 10,
"offset": "GMT+10:00",
"create_time": "2021-01-22 10:00:28",
"update_time": "2021-01-22 12:45:02"
}
]
}
{
"items": [
{
"id": "NST",
"code": "NST",
"name": "New Zealand Standard Time",
"short_offset": 12,
"offset": "GMT+12:00",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
Searchable field is name.
Sortable fields are: id, code, name, short_offset, offset, create_time and update_time.
https://api.ocamba.com/v2/ocamba/timezones/{id}
The read-only timezone service displays information about the timezone with the specified id
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
idstring (required) | Unique id of the timezone. Example NST. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "NST",
"code": "NST",
"name": "New Zealand Standard Time",
"short_offset": 12,
"offset": "GMT+12:00",
"create_time": "2021-01-22 10:00:28",
"update_time": "2021-01-22 12:45:02"
}
]
}
{
"items": [
{
"id": "NST",
"code": "NST",
"name": "New Zealand Standard Time",
"short_offset": 12,
"offset": "GMT+12:00",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
If you don’t know the timezone id, list the timezones to find it.
https://api.ocamba.com/v2/ocamba/traffic-sources
The read-only traffic-sources service displays the information about the sources of the incoming traffic to the site.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idstring | Unique id of the traffic source. Example id=2. |
namestring | The name of the traffic source. Example - Direct, Internal, Link, Search Engine, Social Network, Paid, Other, Undefined, Unknown. |
totalinteger | |
items |
{
"items": [
{
"id": "2",
"name": "Paid"
}
]
}
Searchable field is name.
Sortable fields are name and id.
https://api.ocamba.com/v2/ocamba/traffic-sources/{id}
The read-only traffic-source service displays information about the source of the traffic to the site with the specified id.
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
namestring | Name of the object. |
idstring (required) | Unique id of the traffic source. Example id=2. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "1",
"name": "Direct"
}
]
}
{
"items": [
{
"id": "2",
"name": "Paid"
}
]
}
Searchable field is name.
Sortable fields are name and id.
https://api.ocamba.com/v2/ocamba/transactions
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
update_timestring | Timezone: GMT. |
create_timestring | Timezone: GMT. |
idstring (uuid) | A unique identifier generated by the Ocamba platform. |
payment_providerstring | Name of the payment provider. |
amountfloat | Transaction price. |
currency_codestring | Three-letter, uppercase currency code. |
totalinteger | |
items |
{
"total": 188,
"items": [
{
"id": "37ca408f-59d8-4910-bcb0-54dad2641c61",
"company_id": "1234567",
"invoice_numbers": [
"OCM-213376"
],
"payment_provider": "paypal",
"amount": 11.99,
"currency_code": "USD",
"create_time": "2021-11-24 10:23:55",
"update_time": "2021-11-24 10:24:02"
},
{
"id": "71dd4289-0f8a-4c3d-b6ef-5658c17a9e20",
"company_id": "1234567",
"invoice_numbers": [
"OCM-213375"
],
"payment_provider": "paypal",
"amount": 119.99,
"currency_code": "USD",
"create_time": "2021-11-24 08:30:18",
"update_time": "2021-11-24 08:31:02"
},
{
"id": "bae70678-efbb-4448-b83c-5d3c5beb9f96",
"company_id": "1234567",
"invoice_numbers": [
"OCM-213370"
],
"payment_provider": "paypal",
"amount": 11.99,
"currency_code": "USD",
"create_time": "2021-11-22 12:13:32",
"update_time": "2021-11-22 12:14:01"
}
]
}
{
"items": [
{
"id": "37ca408f-59d8-4910-bcb0-54dad2641c61",
"company_id": "1234567",
"invoice_numbers": [
"OCM-213376"
],
"payment_provider": "paypal",
"amount": 10.99,
"currency_code": "USD",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
Searchable field is payment_provider.
Sortable fields are: amount, currency_code, xero_status, create_time and update_time.
https://api.ocamba.com/v2/ocamba/transactions/{id}
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
idstring (uuid) (required) | A unique identifier generated by the Ocamba platform. |
totalinteger | |
items |
{
"total": 1,
"items": [
{
"id": "37ca408f-59d8-4910-bcb0-54dad2641c61",
"company_id": "1234567",
"invoice_numbers": [
"OCM-213376"
],
"payment_provider": "paypal",
"amount": 11.99,
"currency_code": "USD",
"create_time": "2021-11-24 10:23:55",
"update_time": "2021-11-24 10:24:02"
}
]
}
{
"items": [
{
"id": "37ca408f-59d8-4910-bcb0-54dad2641c61",
"company_id": "1234567",
"invoice_numbers": [
"OCM-213376"
],
"payment_provider": "paypal",
"amount": 10.99,
"currency_code": "USD",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
If you don’t know the transaction id, list the transactions to find it.
https://api.ocamba.com/v2/ocamba/usage
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
idinteger | Unique identifier for the object defined as a query parameter. |
create_timestring | Timezone: GMT. |
update_timestring | Timezone: GMT. |
pricenumber | App total price. |
discountnumber | App total discount. |
amountnumber | App total amount. |
currency_codestring | Three-letter, uppercase currency code. |
limit_statusstring | Describe a limit status. |
usage_percentinteger | App usage percent. |
start_timestring | Timezone: GMT. |
end_timestring | Timezone: GMT. |
app_idstring (required) | A unique company identifier generated by the Ocamba platform. |
totalinteger | |
items |
{
"total": 3,
"items": [
{
"id": "1971",
"company_id": "6197120",
"app_id": "1001",
"items": [
{
"name": "adex requests",
"quantity": 5938,
"unit_price": 0,
"price": 0,
"discount_rate": 0,
"discount": 0,
"tax_rate": 20,
"tax": 0,
"amount": 0,
"description": "Adex Requests",
"unit": 1
}
],
"currency_code": "USD",
"limit_status": "0",
"usage_percent": 0.59,
"start_time": "2021-11-01T00:00:00Z",
"end_time": "2021-11-30T00:00:00Z"
},
{
"id": "1969",
"company_id": "6197120",
"app_id": "1007",
"items": [
{
"name": "enterprise",
"quantity": 1,
"unit_price": 1,
"price": 1,
"discount_rate": 0,
"discount": 0,
"tax_rate": 20,
"tax": 0.2,
"amount": 1.2,
"description": "Ocamba MST Enterprise Plan (Annually)",
"unit": 1
}
],
"price": 1,
"amount": 1.2,
"currency_code": "USD",
"limit_status": "0",
"start_time": "2021-10-30T00:00:00Z",
"end_time": "2021-11-29T00:00:00Z"
},
{
"id": "1982",
"company_id": "6197120",
"app_id": "1003",
"items": [
{
"name": "subscribers",
"quantity": 98985,
"unit_price": 0,
"price": 0,
"discount_rate": 0,
"discount": 0,
"tax_rate": 20,
"tax": 0,
"amount": 0,
"description": "Subscribers included in plan",
"unit": 1
}
],
"currency_code": "USD",
"limit_status": "0",
"usage_percent": 100,
"start_time": "2021-11-10T00:00:00Z",
"end_time": "2021-12-09T00:00:00Z"
}
]
}
{
"items": [
{
"id": "1998",
"company_id": "10013213",
"app-id": "1000163",
"app": {
"id": "123456789",
"type": "application",
"title": "AdExchange",
"name": "adex",
"description": "here goes description",
"logo": "https://logo-uri-example.com",
"plan": "'{ \n \"features\" : [\"billing\"]\n }'",
"create_time": "2021-11-25 13:45:03",
"update_time": "2021-11-26 11:37:25"
},
"items": [
{
"invoice_item": {
"name": "Ocamba Push Startup Plan (Monthly)"
},
"description": "Subscribers included in plan",
"unit": 1
}
],
"amount": 1.2,
"price": 10.99,
"currency_code": "USD",
"limit_status": "0",
"usage_percent": 100,
"start_date": "2021-07-20",
"end_date": "2021-07-30",
"create_time": "2021-07-30 12:50:13",
"update_time": "2021-07-30 12:50:13"
}
]
}
Searchable field is items.
Sortable fields are: price, discount, amount, currency_code, limit_status, usage_percent, start_date, end_date, create_time and update_time.
https://api.ocamba.com/v2/ocamba/widgets
fieldsstring | The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter. Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name See “Tips” for the list of filterable parameters. |
viewstring | Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used. Note that the “fields” parameter has precedence over the “view” parameter. |
pagestring | The page number indicates which set of items will be returned in the response. The format of request is “page=N,M” where ‘N’ (required) represents page number and ‘M’ (optional) is number of items per page. Examples: N=1, M=20 → returns page 1 with 20 items N=2, M=20 → returns page 2 with 20 items (items 21-40) N=3 → returns page 3. The number of objects returned depends on the resource settings. |
sortstring | Sorts the response by specified field(s) with the option to specify sorting order (ascending by default, add prefix “-” for descending). Examples: GET /v2/ocamba/RESOURCE_NAME?sort=name → sorts per name, ascending GET /v2/ocamba/RESOURCE_NAME?sort=-id → sorts per id descending GET /v2/ocamba/RESOURCE_NAME?sort=id,-name → sorts per id ascending, then name descending See tips for the list of sortable fields. |
qstring | Set the q parameter value to search for a keyword or search term. Example: GET /v2/ocamba/members?q=sou → returns members that contain string ‘sou’ See tips for the list of searchable parameters. |
q_fieldsstring | Use the q_fields parameter to list all fields you want to include in the search using q parameter. Note that not all fields are searchable on a specific object. If parameter q_fields is not specified, search is performed on a default search field. Examples: GET /v2/ocamba/members?q=sou&q_fields=lname → API retuns members whose lname contains string ‘sou’. GET /v2/ocamba/members?q=sou&q_fields=fname,lname,email → API returns members that contain string ‘sou’ in any of the specified fields. See tips for the list of searchable parameters. |
dashboard_idstring | List widgets that are assigned to the provided dashboard |
https://api.ocamba.com/v2/ocamba/widgets
{
"app_id": "1001",
"ref": "w1",
"name": "Top 10",
"description": "Displays top 10 users with most activities",
"system": 1,
"type": "timeline"
}
https://api.ocamba.com/v2/ocamba/widgets/{id}
https://api.ocamba.com/v2/ocamba/widgets/{id}
{
"app_id": "1001",
"ref": "w1",
"name": "Top 10",
"description": "Displays top 10 users with most activities",
"system": 1,
"type": "timeline"
}
Changes will be applied on all dashboards associated with this widget.
System widget can’t be modified.
If you don’t know the widget id, list the widgets to find it.
https://api.ocamba.com/v2/ocamba/widgets/{id}
Deleting a widget will remove the widget from all dashboards.
System widget can’t be deleted.
If you don’t know the widget id, list the widgets to find it.
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 1000000 |
company_idstring (required) | A unique company identifier generated by the Ocamba platform.Example: 1000001 |
creator_idstring (required) | A unique creator identifier generated by the Ocamba platform.Example: 1000001 |
statusstring (required) | The status reflects the current status of the account which may be overridden by some background processes.Example: active |
ssp_configuration | Configuration of the SSP. |
configured_statusstring (required) | The configured_status reflects the current status of the account configured by the client.Example: active |
namestring (required) | Name of the account.Example: Demo account |
imagestring (uri) | URL to the account image.Example: https://storage.ocamba.com/1000001/adex/accounts/1000000/account.jpeg |
contacts[ account-contact ] | List of account contacts. |
feeds | Values that are pasted to the creative landing URL. |
is_defaultinteger (required) | For default account is_default is set to 1 . Default account can’t be removed.Example: 1 |
create_timedateTime (required) | Timezone: GMT.Example: 2021-10-29 12:47:00 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-10-30 14:27:26 |
Name | Description |
---|---|
idstring (uuid) (required) | A unique identifier generated by the Ocamba platform.Example: 95eb301b-6aaf-42ad-a219-ccbd5f4d3d2b |
typestring (required) | Describes type of the contact.Example: email |
valuestring (required) | The actual contact, based on contact type. For example, if contact type is email , the value must be a valid email address.Example: [email protected] |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 1000 |
company_idstring (required) | A unique company identifier generated by the Ocamba platform.Example: 1000001 |
account_idstring (required) | A unique account identifier generated by the Ocamba platform.Example: 1000000 |
typestring (required) | Represent the type of the account limit.Example: budget |
itemstring (required) | Depends on the type . If type is budget allowed values are income and expense . If type is frequency allowed values are: impressions , clicks and conversions .Example: income |
periodstring (required) | Describe the period of the limit.Example: day |
valueinteger (required) | Value of the upper limit.Example: 1 |
create_timestring (required) | Timezone: GMT.Example: 2021-10-29 12:47:00 |
update_timestring (required) | Timezone: GMT.Example: 2021-10-30 14:27:26 |
Name | Description |
---|---|
idstring | The ID of the action, generated by Ocamba API.Example: 1014 |
integration_idstring | The ID of the integration.Example: 10014 |
namestring | The Action name.Example: Create Ticket |
itemstring (required) | The Action item.Example: Ticket |
enginestring (required) | Action engine.Example: email |
propertiesproperties | The Action properties map. |
descriptionstring (required) | The detailed Action description.Example: Creates a Ticket |
create_timedateTime | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
streetstring (required) | Street location.Example: Dragise Misovica 163b |
citystring (required) | City location.Example: Cacak |
countrystring (required) | Country location.Example: RS |
postal_codestring (required) | Postal code.Example: 32000 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 123456789 |
typestring (required) | Describe app type.Example: application |
titlestring (required) | Represent the title of the app.Example: AdExchange |
namestring (required) | Represent name of the app.Example: adex |
descriptionstring | Additional information about an app.Example: here goes description |
logostring (uri) | Represent the logo of app.Example: https://logo-uri-example.com |
planstring (required) | Represent the pricing plan.Example: ‘{ “features” : [“billing”] }’ |
create_timedateTime (required) | Timezone: GMT.Example: 2021-11-25 13:45:03 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-11-26 11:37:25 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 123456789 |
typestring (required) | Describe app type.Example: application |
titlestring (required) | Represent the title of the app.Example: AdExchange |
namestring (required) | Represent name of the app.Example: adex |
descriptionstring (required) | Additional information about an app.Example: here goes description |
logostring (uri) | Represent the logo of app.Example: https://logo-uri-example.com |
is_publishednumber (integer) (required) | Describes application publish status.Example: 0 |
published_versionstring | Latest published version.Example: 1.0.10 |
rc_versionstring | Release candidate.Example: 2.0.1 |
statusstring (required) | Describes status of the app.Example: trial |
installed_versionstring | Installed version.Example: 2.0.28 |
planobject | Plan object. |
trialobject | Trial object. |
create_timedateTime (required) | Timezone: GMT.Example: 2021-11-25 13:45:03 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-11-26 11:37:25 |
Name | Description |
---|---|
Usernamestring (required) | Unique user identification.Example: [email protected] |
Passwordstring (required) | Unique string used to verify the identity of a user.Example: Test1234 |
Domainstring (required) | Access domain of the company.Example: demo.app |
Name | Description |
---|---|
idstring | The ID of the event, generated by Ocamba API.Example: 10001 |
company_idstring | The ID of the integration.Example: 6197120 |
statusstring (required) | The Status of Automation.Example: active |
namestring | The Automation name.Example: First automation |
descriptionstring | The detailed Automation description.Example: Push welcome |
event[ ebs-event ] | Events objects. |
actions[ ebs-action ] | Actions objects. |
create_timedateTime | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 55734 |
asnnumber (integer) (required) | Name of the Autonomous System Numbers.Example: 55734 |
asostring (required) | Name of the App Store Optimization.Example: 001 IT Complex |
ispstring (required) | Name of the Internet service provider.Example: 001 IT Complex |
organizationstring (required) | Name of the organization.Example: 001 IT Complex |
Name | Description |
---|---|
emailstring (required) | Billing emial address.Example: [email protected] |
address(required) | Billing address. |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 12 |
namestring (required) | Browser name.Example: Chrome |
versions[ browser-version ](required) | Array of browser versions objects. |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 174 |
namestring (required) | Full name of the browser version.Example: Chrome 10 |
versionsstring (required) | Versions number.Example: 10.0 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 5881639 |
country_codestring | Two-letter, uppercase country code which is city located.Example: CA |
regionstring | The region name which is city located.Example: British Columbia |
namestring (required) | City name.Example: 100 Mile House |
full_namestring (required) | Full name.Example: 100 Mile House, British Columbia, CA |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 1000163 |
ownver_idstring (required) | A unique owner identifier generated by the Ocamba platform.Example: 10132163 |
xero_idstring | A unique identifier from an external source.Example: c13a387e-af72-475d-98ef-b03dfae8d750 |
namestring (required) | Full name of a company.Example: Ocamba App |
short_namestring | Short name of a company.Example: OAPP |
statusstring (required) | Describe an account status.Example: active |
domainstring (required) | Company domain name.Example: demo.app |
registration_numberstring | A unique registration number generated by the Ocamba platform.Example: 12345 |
vat_idstring | Company VAT ID.Example: 45 |
logostring (uri) | Defines the logo of company.Example: https://path/logo.jpeg |
addressstring | Company address.Example: Dragise Misovic 163b, Cacak, Serbia |
emailstring | Company email address.Example: [email protected] |
websitestring (uri) (required) | Company website url.Example: https://www.google.com |
preferencesmember-settings | Member settings object. |
billingbilling | Billing object. |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 2 |
namestring (required) | Connection type name.Example: cable/dsl |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: AF |
codestring (required) | Two-letter, uppercase country code.Example: AF |
code3string (required) | Three-letter, uppercase country code.Example: AFG |
namestring (required) | Country name.Example: Afghanistan |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: CNY |
codestring (required) | Three-letter, uppercase currency code.Example: CNY |
namestring (required) | Currency name.Example: Chinese Yuan Renminbi |
ratefloat (required) | An exchange rate.Example: 6.3848 |
Name | Description |
---|---|
idstring (uuid) (required) | The ID of the dashboard, generated by Ocamba API.Example: 2c9ab0a8-d0d2-49aa-b790-9697cc3aed14 |
company_idstring (required) | The ID of the company, assigned by Ocamba API. |
app_idstring (required) | The ID of the application, assigned by Ocamba API.Example: 1001 |
creator_idstring (required) | The ID of the member who creates a dashboard, assigned by Ocamba API. |
namestring (required) | The dashboard name. Minimum length 1. Maximum length 100.Example: Activity dashboard |
descriptionstring | The detailed dashboard description. Minimum length 5. Maximum length 1000.Example: Displays user activity |
iconstring (required) | The dashboard icon. |
systeminteger (required) | Describe dashboard system status.Example: 1 |
is_defaultinteger (required) | Describe dashboard default status.Example: 1 |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 14 |
namestring (required) | Device name.Example: APPLE |
Name | Description |
---|---|
idstring | The ID of the event, generated by Ocamba API.Example: 1002 |
integration_idstring | The ID of the integration.Example: 10000 |
dataobject | Action data.Example: { “body”: { “user_id”: “{{event.user_id}}”, “zone_id”: “123345678” } } |
filters[ ebs-filter ] | A tool for finding and executing only the event that is matched with filter.Example: [ {“key”:"{{event.tag_id}}",“match”:“in:120,960”} ] |
actions[ ebs-action ] | New actions to execute.Example: [ { “id”:“1010”, “integration_id”:“10000”, “data”:{ “body”:{ “user_id”:"{{event.user_id}}", “zone_id”:“123456” } } } ] |
Name | Description |
---|---|
idstring | The ID of the event, generated by Ocamba API.Example: 1000 |
integration_idstring | The ID of the integration.Example: 10000 |
Name | Description |
---|---|
keystring (required) | The tag id that filters events.Example: {{event.tag_id}} |
matchstring (required) | Input that will match event key.Example: 120 |
filters[ ebs-filter ] | A tool for finding and executing only the event that is matched with filter.Example: [ {“key”:"{{event.tag_id}}",“match”:“in:120,960”} ] |
Name | Description |
---|---|
codeinteger (required) | Equal to HTTP response status code.Example: 400 |
titlestring (required) | A general error message, available for both ‘client-side’ and ‘server-side’ responses.Example: Bad Request. |
messagestring | A more detailed human-readable error message, indicating why the request cannot be fulfilled. Not available for the ‘server-side’ errors.Example: The name may not be greater than 100 characters. |
trace_idstring (required) | A unique identifier for the provided error, generated on the server-side for correlation purposes.Example: 2431b61e-8a07-433f-8051-2b204e59e52d |
details | An object that contains individual instance of the error. This field SHOULD be required for ‘client-side’ errors, but there is no guarantee that details can be extracted for all ‘client-side’ errors. |
Name | Description |
---|---|
idstring | The ID of the event, generated by Ocamba API.Example: 1026 |
integration_idstring | The ID of the integration.Example: 10002 |
namestring (required) | The Event name.Example: Create Event |
itemstring (required) | The Event item.Example: item |
descriptionstring (required) | The detailed Event description.Example: Creates a Event |
create_timedateTime | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
themestring (required) | Theme which will be applied to the overall Ocamba UI.Example: light |
timezoneinteger (required) | Time zone which will be applied to the overall Ocamba UI.Example: 1 |
number_format(required) | Number format which will be applied to the overall Ocamba UI. |
date_formatstring (required) | Date format which will be applied to the overall Ocamba UI.Example: DD-MM-YYYY |
time_formatstring (required) | Time format which will be applied to the overall Ocamba UI.Example: 24 |
first_week_daystring (required) | First day of week which will be applied to the overall Ocamba UI.Example: mon |
currencystring (required) | Currency which will be applied to all Ocamba platform transactions.Example: EUR |
Name | Description |
---|---|
idstring | The ID of the dashboard, generated by Ocamba API.Example: 10014 |
namestring (required) | The integration name.Example: Integration |
descriptionstring (required) | The detailed integration description.Example: Description of integration |
logostring (url) | The integration icon.Example: https://www.google.com/search?q=logo&rlz=1C5CHFA_enRS985RS988 |
homepagestring (url) | The integration homepage.Example: https://delsystems.net/index.htm |
versionstring | The integration version.Example: 1.1.10 |
audiencestring (required) | Integration audiece.Example: public |
events[ event ] | Array of integration events objects. |
actions[ action ] | Array of integration actions objects. |
create_timedateTime | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 423 |
company_idstring (required) | A unique identifier generated by the Ocamba platform.Example: 1000163 |
inviter_idstring (required) | A unique inviter identifier generated by the Ocamba platform.Example: 1123163 |
accessobject | Key value pair of app_id(key) and role_id(value).Example: { “1010”: “1107” } |
namestring | Name of the person invited to Ocamba platform.Example: John Doe |
inviteestring (required) | Email address of the person invited to Ocamba platform.Example: [email protected] |
messagestring | Optional message sent to user invited to Ocamba.Example: some message |
statusstring (required) | Describes invitation status.Example: expired |
invite_timedateTime (required) | Inviting time, Timezone: GMT.Example: 2021-07-30 12:50:13 |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (uuid) (required) | The ID of the invoice, generated by the Ocamba API.Example: 2c9ab0a8-d0d2-49aa-b790-9697cc3aed14 |
app_idstring (required) | The ID of the applicationExample: 1000 |
invoice_numberstring (required) | The invoice number, generated by Ocamba api. Unique.Example: OCM-210001 |
statusstring (required) | The current status of the invoice.Example: paid |
pricefloat (required) | Sum of prices applied on the invoice line items.Example: 99.99 |
discountfloat (required) | Total of discounts applied on the invoice line items.Example: 0 |
taxfloat (required) | Total tax on invoice.Example: 2.2 |
amountfloat (required) | Total amount.Example: 102.19 |
currency_codestring (required) | The three-letter currency code, supported by Ocamba, that indicates the currency.Example: USD |
pdfstring (uri) | Location of the pdf version of the invoice.Example: https://storage.ocamba.com/9999999/ocamba/invoices/OCM-210001.pdf |
sentinteger (required) | Indicates if invoice is sent to company billing address or not.Example: 1 |
items[ invoice-item ](required) | Array of the invoice items. Minimum length 1. |
due_datedate (required) | Due dateExample: 2021-11-24 |
start_datedate | When billing period starts.Example: 2021-11-01 |
end_datedate | When billing period ends.Example: 2021-11-30 |
payment_timedateTime | When invoice was paid. Only for ‘paid’ invoices.Example: 2021-11-24 10:23:55 |
create_timedateTime (required) | Timezone: GMT.Example: 2021-11-10 10:23:55 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-11-10 10:23:55 |
Name | Description |
---|---|
namestring | Name of the invoice.Example: Ocamba Push Startup Plan (Monthly) |
quantityfloat (required) | Line item quantity. |
unit_pricefloat (required) | Price per one unit. |
pricefloat (required) | Line item price (price = quantity * unit_price ). |
discount_ratefloat (required) | Represents a discount expressed as a percentage. Used to calculate discount. |
discountfloat (required) | Line item discount (discount = price * discount_rate / 100 ). |
tax_ratefloat (required) | Represents a tax expressed as a percentage. Used to calculate tax. |
taxfloat (required) | Line item tax (tax = (price - discount) * tax_rate / 100 ). |
amountfloat (required) | Line item amount (amount = price - discount + tax ). |
Name | Description |
---|---|
keystring (required) | The Designer key.Example: url |
typestring (required) | The Designer type.Example: string |
descriptionstring (required) | The Designer description.Example: design description |
requiredboolean | The Designer required.Example: true |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: ar |
codestring (required) | Two-letter, lowercase language code.Example: ar |
code3string (required) | Three-letter, lowercase language code.Example: ara |
namestring (required) | Language name.Example: Arabic |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 12 |
company_idstring (required) | A unique company identifier generated by the Ocamba platform.Example: 1000123 |
app_idstring (required) | A unique application identifier generated by the Ocamba platform.Example: 1000123 |
user_idstring (required) | A unique user identifier generated by the Ocamba platform.Example: 1123143 |
locationstring (url) (required) | Url location where file is stored.Example: https://sm.ocmcore.com/share/6191234/adex/media/3945083025-example.png |
namestring (required) | Name of the file.Example: example |
mime_typestring (required) | Mime type of the file.Example: image/jpeg |
sizeinteger (required) | Size of file in bytes.Example: 4356 |
widthinteger (required) | Available only for image mime types, represent width of image in pixels.Example: 300 |
heightinteger (required) | Available only for image mime types, represent height of image in pixels.Example: 300 |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 1000163 |
company_idstring (required) | A unique company identifier generated by the Ocamba platform.Example: 1000000 |
namestring (required) | Name of the member.Example: John Doe |
statusstring (required) | Describe member status.Example: active |
emailstring (email) (required) | Member email address.Example: [email protected] |
imagestring (url) | The image of the member.Example: https://image-uri-example.com |
preferences | Member settings object. |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
generalgeneral-settings(required) | General settings object. |
securitysecurity-settings(required) | Security settings object. |
Name | Description |
---|---|
idstring (uuid) (required) | A unique identifier generated by the Ocamba platform.Example: 37ca408f-59d8-4910-bcb0-54dad2641c61 |
company_idstring (required) | A unique company identifier generated by the Ocamba platform.Example: 1234567 |
app_idstring (required) | A unique app identifier generated by the Ocamba platform.Example: 1003 |
detailsstring (required) | Additional information about an order.Example: Ocamba Push Startup Plan (Monthly) |
amountfloat (required) | Order price.Example: 10.99 |
currency_codestring (required) | Three-letter, uppercase currency code.Example: USD |
start_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 12 |
namestring (required) | Operation system name.Example: Android |
versionsos-version(required) | Array of os versions objects. |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 12 |
namestring (required) | Full name of operation system version.Example: Android |
versionsstring (required) | Versions number.Example: 11.0 |
Name | Description |
---|---|
labellabel | The key of properties maps.Example: label |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 2661876 |
namestring (required) | Region name.Example: Aargau |
country_codestring (required) | Country code.Example: CH |
full_namestring (required) | Full name.Example: Aargau, CH |
Name | Description |
---|---|
idstring (uuid) (required) | The ID of the report, generated by Ocamba API.Example: 132 |
company_idstring (required) | The ID of the company, assigned by Ocamba API.Example: 12345678 |
app_idstring | The ID of the application, assigned by Ocamba API. |
creator_idstring | The ID of the creator, assigned by Ocamba API. |
refstring | Ref field is related only with system reports. |
namestring (required) | The widget name. Minimum length 1. Maximum length 100.Example: Top 10 |
descriptionstring | The detailed report description. Minimum length 5. Maximum length 1000.Example: Displays top 10 exchanges with highest income |
systeminteger | Indicates whether the report is system or user defined. Note that system reports can’t be deleted or modified. |
dsobject (required) | Report configuration.Example: { “fields”: “exchange_name,income”, “source”: “adex.exchange”, “limit”: “10”, “order”: { “field” : “income”, “op” : “-” } } |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
ip_restrictions[ string ](required) | Array of unique IP addresses allowed to access to the Ocamba platform. Only IPv4 format is supported. |
country_restrictions[ string ](required) | Array of countries allowed to access to the Ocamba platform. |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 12345 |
namestring (required) | Companuy name.Example: JohnDoe |
domainstring (required) | Companuy domain.Example: demo.app |
emailstring (required) | Main email of the company.Example: [email protected] |
apps[ string ] | Array of apps to which the company will have access. |
is_new_userinteger (required) | Indicates if user already exists.Example: 1 |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: NST |
codestring (required) | Three-letter, uppercase timezone code.Example: NST |
namestring (required) | Full name of the timezone.Example: New Zealand Standard Time |
short_offsetnumber (integer) (required) | Short representation of hours a certain time zone is ahead of or behind GMT.Example: 12 |
offsetstring (required) | Full representation of hours a certain time zone is ahead of or behind GMT.Example: GMT+12:00 |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 2 |
namestring (required) | Traffic source type.Example: Paid |
Name | Description |
---|---|
idstring (uuid) (required) | A unique identifier generated by the Ocamba platform.Example: 37ca408f-59d8-4910-bcb0-54dad2641c61 |
company_idstring (required) | A unique company identifier generated by the Ocamba platform.Example: 1234567 |
invoice_numbers[ string ] | Array of the invoice numbers. |
payment_providerstring (required) | Name of the payment provider.Example: paypal |
amountnumber (required) | Transaction price.Example: 10.99 |
currency_codestring (required) | Three-letter, uppercase currency code.Example: USD |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 1998 |
company_idstring (required) | A unique company identifier generated by the Ocamba platform.Example: 10013213 |
app-idstring (required) | A unique app identifier generated by the Ocamba platform.Example: 1000163 |
app(required) | App object. |
items[ object ](required) | Array of usage items objects. |
amountfloat (required) | App total amount.Example: 1.2 |
pricefloat (required) | App total price.Example: 10.99 |
discountfloat (required) | App total discount.Example: 0 |
currency_codestring (required) | Three-letter, uppercase currency code.Example: USD |
limit_statusstring (required) | Describe a limit status.Example: 0 |
usage_percentinteger (required) | App usage percent.Example: 100 |
start_datedateTime (required) | Timezone: GMT.Example: 2021-07-20 |
end_datedateTime (required) | Timezone: GMT.Example: 2021-07-30 |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
invoice_item(required) | Invoice item object. |
descriptionstring (required) | The detailed usage item description.Example: Subscribers included in plan |
unitnumber (required) | Usage item unit.Example: 1 |
Name | Description |
---|---|
idstring (uuid) (required) | The ID of the widget, generated by Ocamba API.Example: 2c9ab0a8-d0d2-49aa-b790-9697cc3aed14 |
company_idstring (required) | The ID of the company, assigned by Ocamba API.Example: 12345678 |
app_idstring (required) | The ID of the application, assigned by Ocamba API.Example: 1001 |
refstring | Ref field is related only with system widgets.Example: w1 |
namestring (required) | The widget name. Minimum length 1. Maximum length 100.Example: Top 10 |
descriptionstring | The detailed dashboard description. Minimum length 5. Maximum length 1000.Example: Displays top 10 users with most activities |
systeminteger (required) | Indicates whether the widget is system or user defined. Note that system widgets can’t be deleted or modified.Example: 1 |
typestring (required) | The type of the widget.Example: timeline |
confobject | The configuration of the widget. It is an arbitrary key-value pair object, where key must be a string, and value can be of any type. |
dsobject | widget configuration. |
gridobject | widget cordinates. |
create_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-07-30 12:50:13 |
Name | Description |
---|---|
advertiserstring | Status of the Advertiser. It can contain one of the following values: enabled, disabled or null.Example: enabled |
publisherstring | Status of the Publisher. It can contain one of the following values: enabled, disabled or null.Example: disabled |
Name | Description |
---|---|
postbacksstring (required) | Example: https://google.com |
Name | Description |
---|---|
streetstring (required) | Street location.Example: Dragise Misovica 163b |
citystring (required) | City location.Example: Cacak |
countrystring (required) | Country location.Example: RS |
postal_codestring (required) | Postal code.Example: 32000 |
Name | Description |
---|---|
fieldstring (required) | Pointer to the field in the request body, which triggered the error. |
valuestring (required) | Value of the field in error. |
rulestring (required) | Validation rule which indicates what goes wrong. |
issuestring (required) | A human-readable error message. |
Name | Description |
---|---|
thousand_separatorstring (required) | Separator represented as dot.Example: . |
decimal_separatorstring (required) | Separator represented as comma.Example: , |
Name | Description |
---|---|
generalgeneral-settings(required) | General settings object. |
securitysecurity-settings(required) | Security settings object. |
Name | Description |
---|---|
idstring (required) | A unique identifier generated by the Ocamba platform.Example: 123456789 |
typestring (required) | Describe app type.Example: application |
titlestring (required) | Represent the title of the app.Example: AdExchange |
namestring (required) | Represent name of the app.Example: adex |
descriptionstring | Additional information about an app.Example: here goes description |
logostring (uri) | Represent the logo of app.Example: https://logo-uri-example.com |
planstring (required) | Represent the pricing plan.Example: ‘{ “features” : [“billing”] }’ |
create_timedateTime (required) | Timezone: GMT.Example: 2021-11-25 13:45:03 |
update_timedateTime (required) | Timezone: GMT.Example: 2021-11-26 11:37:25 |
Name | Description |
---|---|
namestring | Name of the invoice.Example: Ocamba Push Startup Plan (Monthly) |
quantityfloat (required) | Line item quantity. |
unit_pricefloat (required) | Price per one unit. |
pricefloat (required) | Line item price (price = quantity * unit_price ). |
discount_ratefloat (required) | Represents a discount expressed as a percentage. Used to calculate discount. |
discountfloat (required) | Line item discount (discount = price * discount_rate / 100 ). |
tax_ratefloat (required) | Represents a tax expressed as a percentage. Used to calculate tax. |
taxfloat (required) | Line item tax (tax = (price - discount) * tax_rate / 100 ). |
amountfloat (required) | Line item amount (amount = price - discount + tax ). |