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": {
- "line_1": "string",
- "line_2": "string",
- "city": "string",
- "state_province": "string",
- "country": "string",
- "postal_code": "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,
- "default_transaction_lifespan": 300,
- "require_terms_and_conditions": true,
- "require_privacy_policy": true,
- "account_reference_length": -2147483648,
- "nationalities": [
- "AF"
], - "residencies": [
- "AF"
]
}, - "services": [
- {
- "id": 0,
- "slug": "string",
- "name": "string",
- "url": "string",
- "type": "system"
}
], - "public": true,
- "metadata": {
- "property1": null,
- "property2": null
}, - "mode": "test",
- "status": "pending",
- "created": 0,
- "updated": 0
}
}
{- "status": "string",
- "data": {
- "count": 123,
- "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": {
- "property1": null,
- "property2": null
}, - "currencies": [
- {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}
], - "action": "withdraw",
- "created": 0,
- "updated": 0
}
]
}
}
rehive.company.currencies.get().then(function(res){ ... }, function(err){ ... })
{- "status": "string",
- "data": {
- "count": 123,
- "results": [
- {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
- "metadata": {
- "property1": null,
- "property2": null
}, - "created": 0,
- "updated": 0
}
]
}
}
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,
- "metadata": {
- "property1": null,
- "property2": null
}, - "created": 0,
- "updated": 0
}
}
{- "status": "string",
- "data": {
- "count": 123,
- "results": [
- {
- "id": 0,
- "username": "string",
- "email": "user@example.com",
- "mobile": "string",
- "name": "string",
- "type": "paypal",
- "metadata": {
- "property1": null,
- "property2": null
}, - "currencies": [
- {
- "code": "string",
- "display_code": "string",
- "description": "string",
- "symbol": "string",
- "unit": "string",
- "divisibility": -2147483648,
}
], - "action": "withdraw",
- "created": 0,
- "updated": 0
}
]
}
}