rehive.company.get().then(function(company){ ... }, function(err){ ... })
{- "status": "string",
- "data": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "support_email": "user@example.com",
- "contact_email": "user@example.com",
- "country": "AF",
- "address": "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,
}
}
], - "require_transaction_subtypes": true,
- "require_verification": true,
- "allow_registrations": true,
- "allow_overdrafts": true,
- "allow_session_durations": true,
- "require_registration": true,
- "default_session_duration": 300,
- "require_terms_and_conditions": true,
- "require_privacy_policy": true,
- "nationalities": [
- "AF"
]
}, - "services": "string",
- "public": true,
- "config": { },
- "mode": "test",
- "status": "pending",
- "created": "string",
- "updated": "string"
}
]
}
{- "status": "string",
- "data": {
- "count": 0,
- "results": [
- {
- "id": 0,
- "name": "string",
- "number": "string",
- "type": "string",
- "bank_name": "string",
- "bank_code": "string",
- "branch_code": "string",
- "branch_address": {
- "line_1": "string",
- "line_2": "string",
- "city": "string",
- "state_province": "string",
- "country": "AF",
- "postal_code": "string",
- "state_code": "string"
}, - "routing_number": "string",
- "swift": "string",
- "iban": "string",
- "bic": "string",
- "metadata": { },
- "currencies": [
- {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}
], - "created": "string",
- "updated": "string"
}
]
}
}
rehive.company.currencies.get().then(function(res){ ... }, function(err){ ... })
{- "status": "string",
- "data": {
- "count": 0,
- "results": [
- {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
- "created": "string",
- "updated": "string"
}
]
}
}
rehive.company.currencies.get({code: code}).then(function(res){ ... }, function(err){ ... })
{- "status": "string",
- "data": {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
- "created": "string",
- "updated": "string"
}
}
{- "status": "string",
- "data": {
- "count": 0,
- "results": [
- {
- "id": 0,
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "name": "string",
- "type": "paypal",
- "metadata": { },
- "currencies": [
- {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}
], - "created": "string",
- "updated": "string"
}
]
}
}