rehive.admin.groups.get().then(function (res) { ... }, function (err) { ... });
{- "status": "success",
- "data": {
- "count": 123,
- "results": [
- {
- "name": "string",
- "label": "string",
- "description": "string",
- "section": "system",
- "default": true,
- "public": true,
- "listed": true,
- "tiers": [
- {
- "id": 0,
- "level": 0,
- "name": "string",
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": null,
- "name": null,
- "label": null,
- "tx_type": null
}, - "currency": {
- "code": null,
- "display_code": null,
- "description": null,
- "symbol": null,
- "unit": null,
- "divisibility": null,
- "icon": null
}, - "account_definition": {
- "name": null,
- "label": null
}
}
],
}, - "archived": false,
- "created": 0,
- "updated": 0
}
]
}
}
{- "name": "string",
- "label": "string",
- "description": "string",
- "section": "admin",
- "default": true,
- "public": true,
- "listed": true
}
{- "status": "success",
- "data": {
- "name": "string",
- "label": "string",
- "description": "string",
- "section": "system",
- "default": true,
- "public": true,
- "listed": true,
- "tiers": [
- {
- "id": 0,
- "level": 0,
- "name": "string",
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
],
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
rehive.admin.groups.get({"name": groupName}) .then(function (res) { ... }, function (err) { ... });
{- "status": "success",
- "data": {
- "name": "string",
- "label": "string",
- "description": "string",
- "section": "system",
- "default": true,
- "public": true,
- "listed": true,
- "tiers": [
- {
- "id": 0,
- "level": 0,
- "name": "string",
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
],
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
{- "name": "string",
- "label": "string",
- "description": "string",
- "section": "system",
- "default": true,
- "public": true,
- "listed": true,
- "archived": false
}
{- "status": "success",
- "data": {
- "name": "string",
- "label": "string",
- "description": "string",
- "section": "system",
- "default": true,
- "public": true,
- "listed": true,
- "tiers": [
- {
- "id": 0,
- "level": 0,
- "name": "string",
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
],
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
{- "name": "string",
- "label": "string",
- "description": "string",
- "section": "system",
- "default": true,
- "public": true,
- "listed": true,
- "archived": false
}
{- "status": "success",
- "data": {
- "name": "string",
- "label": "string",
- "description": "string",
- "section": "system",
- "default": true,
- "public": true,
- "listed": true,
- "tiers": [
- {
- "id": 0,
- "level": 0,
- "name": "string",
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
],
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
rehive.admin.groups.obj(group_name).fees.get()
{- "status": "success",
- "data": [
- {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "created": 0,
- "updated": 0,
- "inferred": true,
- "archived": true
}
]
}
{- "name": "string",
- "value": 0,
- "percentage": 0,
- "tx_type": "credit",
- "subtype": "string",
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "inferred": true,
- "account_definition": "string",
- "currency": "string"
}
{- "status": "success",
- "data": {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "created": 0,
- "updated": 0,
- "inferred": true,
- "archived": true
}
}
rehive.admin.groups.obj(group_name).fees.create( tx_type="debit", currency="USD" )
{- "status": "success",
- "data": {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "created": 0,
- "updated": 0,
- "inferred": true,
- "archived": true
}
}
{- "name": "string",
- "value": 0,
- "percentage": 0,
- "tx_type": "credit",
- "subtype": "string",
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "inferred": true,
- "account_definition": "string",
- "currency": "string",
- "archived": false
}
{- "status": "success",
- "data": {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "created": 0,
- "updated": 0,
- "inferred": true,
- "archived": true
}
}
{- "name": "string",
- "value": 0,
- "percentage": 0,
- "tx_type": "credit",
- "subtype": "string",
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "inferred": true,
- "account_definition": "string",
- "currency": "string",
- "archived": false
}
{- "status": "success",
- "data": {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "created": 0,
- "updated": 0,
- "inferred": true,
- "archived": true
}
}
rehive.admin.groups.permissions.get(groupName) .then(function (res) { ... }, function (err) { ... });
{- "status": "success",
- "data": {
- "count": 123,
- "results": [
- {
- "id": 0,
- "section": "system",
- "type": "accesscontrolrule",
- "level": "view",
- "properties": {
- "property1": null,
- "property2": null
}
}
]
}
}
{- "permissions": [
- {
- "section": "admin",
- "type": "accesscontrolrule",
- "level": "view",
- "properties": {
- "property1": null,
- "property2": null
}
}
]
}
{- "status": "success",
- "data": {
- "permissions": [
- {
- "id": 0,
- "section": "system",
- "type": "accesscontrolrule",
- "level": "view",
- "properties": {
- "property1": null,
- "property2": null
}
}
]
}
}
rehive.admin.groups.permissions .get(group_name, {"id": permissionId}).then(function (res) { ... }, function (err) { ... });
{- "status": "success",
- "data": {
- "id": 0,
- "section": "system",
- "type": "accesscontrolrule",
- "level": "view",
- "properties": {
- "property1": null,
- "property2": null
}
}
}
{- "properties": {
- "property1": null,
- "property2": null
}
}
{- "status": "success",
- "data": {
- "id": 0,
- "section": "system",
- "type": "accesscontrolrule",
- "level": "view",
- "properties": {
- "property1": null,
- "property2": null
}
}
}
{- "properties": {
- "property1": null,
- "property2": null
}
}
{- "status": "success",
- "data": {
- "id": 0,
- "section": "system",
- "type": "accesscontrolrule",
- "level": "view",
- "properties": {
- "property1": null,
- "property2": null
}
}
}
rehive.admin.groups.permissions .delete(group_name, permissionId).then(function (res) { ... }, function (err) { ... });
{- "status": "sucess"
}
{- "status": "success",
- "data": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
],
}
}
{- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": 0,
- "currency": "string",
- "account_definition": "string"
}
],
}
{- "status": "success",
- "data": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
],
}
}
{- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": 0,
- "currency": "string",
- "account_definition": "string"
}
],
}
{- "status": "success",
- "data": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
],
}
}
rehive.admin.groups.tiers.get(groupName) .then(function (res) { ... }, function (err) { ... });
{- "status": "success",
- "data": [
- {
- "id": 0,
- "level": -2147483648,
- "name": "string",
- "description": "string",
- "limits": [
- {
- "id": 0,
- "value": 0,
- "type": "max",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string"
}
], - "fees": [
- {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
]
}, - "archived": true,
- "created": 0,
- "updated": 0
}
]
}
{- "level": -2147483648,
- "name": "string",
- "description": "string"
}
{- "status": "success",
- "data": {
- "id": 0,
- "level": -2147483648,
- "name": "string",
- "description": "string",
- "limits": [
- {
- "id": 0,
- "value": 0,
- "type": "max",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string"
}
], - "fees": [
- {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
]
}, - "archived": true,
- "created": 0,
- "updated": 0
}
}
rehive.admin.groups.tiers.get(groupName, {"id": tierId}) .then(function (res) { ... }, function (err) { ... });
{- "status": "success",
- "data": {
- "id": 0,
- "level": -2147483648,
- "name": "string",
- "description": "string",
- "limits": [
- {
- "id": 0,
- "value": 0,
- "type": "max",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string"
}
], - "fees": [
- {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
]
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
{- "level": -2147483648,
- "name": "string",
- "description": "string",
- "archived": false
}
{- "status": "success",
- "data": {
- "id": 0,
- "level": -2147483648,
- "name": "string",
- "description": "string",
- "limits": [
- {
- "id": 0,
- "value": 0,
- "type": "max",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string"
}
], - "fees": [
- {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
]
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
{- "level": -2147483648,
- "name": "string",
- "description": "string",
- "archived": false
}
{- "status": "success",
- "data": {
- "id": 0,
- "level": -2147483648,
- "name": "string",
- "description": "string",
- "limits": [
- {
- "id": 0,
- "value": 0,
- "type": "max",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string"
}
], - "fees": [
- {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string"
}
], - "settings": {
- "allow_transactions": true,
- "allow_debit_transactions": true,
- "allow_credit_transactions": true,
- "disallowed_transaction_subtypes": [
- {
- "subtype": {
- "id": 0,
- "name": "string",
- "label": "string",
- "tx_type": "credit"
}, - "currency": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}, - "account_definition": {
- "name": "string",
- "label": "string"
}
}
]
}, - "archived": false,
- "created": 0,
- "updated": 0
}
}
rehive.admin.groups.tiers.delete(groupName, tierId) .then(function (res) { ... }, function (err) { ... });
{- "status": "sucess"
}
rehive.admin.groups.tiers.fees.get(groupName, tierId) .then(function (res) { ... }, function (err) { ... });
{- "status": "success",
- "data": [
- {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "created": 0,
- "updated": 0,
- "inferred": true,
- "archived": true
}
]
}
{- "name": "string",
- "value": 0,
- "percentage": 0,
- "tx_type": "credit",
- "subtype": "string",
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "inferred": true,
- "account_definition": "string",
- "currency": "string"
}
{- "status": "success",
- "data": {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "created": 0,
- "updated": 0,
- "inferred": true,
- "archived": true
}
}
rehive.admin.groups.tiers.fees.get( group_name, tier_id, {"id": feeId}).then(function (res) { ... }, function (err) { ... });
{- "status": "success",
- "data": {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "created": 0,
- "updated": 0,
- "inferred": true,
- "archived": true
}
}
{- "name": "string",
- "value": 0,
- "percentage": 0,
- "tx_type": "credit",
- "subtype": "string",
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "inferred": true,
- "account_definition": "string",
- "currency": "string",
- "archived": false
}
{- "status": "success",
- "data": {
- "id": 0,
- "name": "string",
- "tx_type": "credit",
- "subtype": "string",
- "account_definition": "string",
- "currency": "string",
- "value": 0,
- "percentage": 0,
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "created": 0,
- "updated": 0,
- "inferred": true,
- "archived": true
}
}
{- "name": "string",
- "value": 0,
- "percentage": 0,
- "tx_type": "credit",
- "subtype": "string",
- "description": "string",
- "debit_account": "string",
- "credit_account": "string",
- "debit_subtype": "string",
- "credit_subtype": "string",
- "inferred": true,
- "account_definition": "string",
- "currency": "string",
- "archived": false
}