All URIs are relative to https://localhost:8080/RestAPI
| Method | HTTP request | Description |
|---|---|---|
| add_charge_to_account | POST /accounts/{account-ID}/invoice | Create a manual invoice. |
| add_credit_note_to_account | POST /accounts/{account-ID}/credit | Creates a credit-note which may be used by any subscription of this account. |
| add_permission_to_account | POST /accounts/{account-ID}/roles/{role} | Add a role to the account |
| create_account | POST /accounts | Create an Account. |
| delete_account | DELETE /accounts/{account-ID} | Delete the account specified by the account-ID parameter. |
| delete_metadata_for_account | DELETE /accounts/{account-ID}/metadata | Remove any associated metadata. |
| get_account_by_id | GET /accounts/{account-ID} | Returns a single account, specified by the account-ID parameter. |
| get_accounts_by_created | GET /accounts/created/{lower-threshold}/{upper-threshold} | Returns a collection of account objects with created times within the period specified by the lower-threshold and upper-threshold parameters. By default 10 values are returned. Records are returned in natural order. |
| get_accounts_by_updated | GET /accounts/updated/{lower-threshold}/{upper-threshold} | Returns a collection of account objects with updated times within the period specified by the lower-threshold and upper-threshold parameters. By default 10 values are returned. Records are returned in natural order. |
| get_accounts_by_user_id | GET /accounts/user/{user-ID} | Returns a collection of accounts, specified by the user-ID parameter. By default 10 values are returned. Records are returned in natural order. |
| get_all_accounts | GET /accounts | Returns a collection of all account objects. By default 10 values are returned. Records are returned in natural order. |
| get_available_credit_on_account | GET /accounts/{account-ID}/credit | Returns all available credit-notes for the specified account. By default 10 values are returned. Records are returned in natural order. |
| get_metadata_for_account | GET /accounts/{account-ID}/metadata | Retrieve any associated metadata. |
| get_permissions_on_account | GET /accounts/{account-ID}/roles | Retrieves a collection of roles, specified by the account-ID parameter. By default 10 values are returned. Records are returned in natural order. |
| remove_credit_from_account | DELETE /accounts/{account-ID}/credit/{value} | Decrease the amount of credit by the value specified or entirely if no value provided. |
| remove_permission_from_account | DELETE /accounts/{account-ID}/roles/{role} | Revoke the specified role. |
| set_metadata_for_account | POST /accounts/{account-ID}/metadata | Remove any existing metadata keys and create the provided data. |
| update_account | PUT /accounts | Update an Account. |
| upsert_metadata_for_account | PUT /accounts/{account-ID}/metadata | Update any existing metadata key-values and insert any new key-values, no keys will be removed. |
AddChargeToAccountResponsePagedMetadata add_charge_to_account(account_id, request)
Create a manual invoice.
{"nickname":"Create a manual invoice","request":"addChargeToAccountRequest.html","response":"addChargeToAccountResponse.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String | ID of the account.
request = Bfwd::AddChargesToAccountAPIRequest.new # AddChargesToAccountAPIRequest | The charge request
begin
#Create a manual invoice.
result = api_instance.add_charge_to_account(account_id, request)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->add_charge_to_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ID of the account. | |
| request | AddChargesToAccountAPIRequest | The charge request |
AddChargeToAccountResponsePagedMetadata
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
CreditNotePagedMetadata add_credit_note_to_account(account_id, credit_note)
Creates a credit-note which may be used by any subscription of this account.
{"nickname":"Add Credit","request":"addCreditNoteToAccountRequest.html", "response":"addCreditNoteToAccount.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String | ID of the account.
credit_note = Bfwd::CreditAccountRequest.new # CreditAccountRequest | The credit-note request
begin
#Creates a credit-note which may be used by any subscription of this account.
result = api_instance.add_credit_note_to_account(account_id, credit_note)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->add_credit_note_to_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ID of the account. | |
| credit_note | CreditAccountRequest | The credit-note request |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
RolePagedMetadata add_permission_to_account(account_id, role, opts)
Add a role to the account
{"nickname":"Add Role","response":"addRoleToAccountResponse.html","request":"addRoleToAccountRequest.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String | ID of the account.
role = "role_example" # String | ID or name of the role.
opts = {
organizations: ["organizations_example"] # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
}
begin
#Add a role to the account
result = api_instance.add_permission_to_account(account_id, role, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->add_permission_to_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ID of the account. | |
| role | String | ID or name of the role. | |
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
AccountPagedMetadata create_account(request)
Create an Account.
{"nickname":"Create a new account","response":"createAccountResponse.html","request":"createAccountRequest.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
request = Bfwd::CreateAccountRequest.new # CreateAccountRequest | The account object to be created.
begin
#Create an Account.
result = api_instance.create_account(request)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->create_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| request | CreateAccountRequest | The account object to be created. |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: text/xml, application/xml, application/json; charset=utf-8
AccountPagedMetadata delete_account(account_id, delete_gateway_data, organizations)
Delete the account specified by the account-ID parameter.
{"nickname":"Retire","response":"deleteAccount.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String |
delete_gateway_data = true # BOOLEAN |
organizations = ["organizations_example"] # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
begin
#Delete the account specified by the account-ID parameter.
result = api_instance.delete_account(account_id, delete_gateway_data, organizations)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->delete_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ||
| delete_gateway_data | BOOLEAN | ||
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. |
No authorization required
- Content-Type: text/plain, application/json; charset=utf-8
- Accept: application/json; charset=utf-8
DynamicMetadata delete_metadata_for_account(account_id, opts)
Remove any associated metadata.
{"nickname":"Clear metadata from account","request" :"deleteAccountMetadataRequest.html","response":"deleteAccountMetadataResponse.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String |
opts = {
organizations: ["organizations_example"] # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
}
begin
#Remove any associated metadata.
result = api_instance.delete_metadata_for_account(account_id, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->delete_metadata_for_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ||
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: text/plain, application/json; charset=utf-8
- Accept: application/json; charset=utf-8
AccountPagedMetadata get_account_by_id(account_id, opts)
Returns a single account, specified by the account-ID parameter.
{"nickname":"Retrieve an existing account","response":"getAccountByID.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String |
opts = {
organizations: ["organizations_example"] # Array<String> |
}
begin
#Returns a single account, specified by the account-ID parameter.
result = api_instance.get_account_by_id(account_id, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->get_account_by_id: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ||
| organizations | Array<String> | [optional] |
No authorization required
- Content-Type: text/plain, application/json; charset=utf-8
- Accept: application/json; charset=utf-8
AccountPagedMetadata get_accounts_by_created(lower_threshold, upper_threshold, opts)
Returns a collection of account objects with created times within the period specified by the lower-threshold and upper-threshold parameters. By default 10 values are returned. Records are returned in natural order.
{"nickname":"Retrieve by creation","response":"getAccountByCreated.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
lower_threshold = "lower_threshold_example" # String | The UTC DateTime specifying the start of the result period.
upper_threshold = "upper_threshold_example" # String | The UTC DateTime specifying the end of the result period.
opts = {
organizations: ["organizations_example"], # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
offset: 0, # Integer | The offset from the first taxation-link to return.
records: 10, # Integer | The maximum number of taxation-links to return.
order_by: "created", # String | Specify a field used to order the result set.
order: "DESC", # String | Ihe direction of any ordering, either ASC or DESC.
include_retired: true # BOOLEAN | Whether retired products should be returned.
}
begin
#Returns a collection of account objects with created times within the period specified by the lower-threshold and upper-threshold parameters. By default 10 values are returned. Records are returned in natural order.
result = api_instance.get_accounts_by_created(lower_threshold, upper_threshold, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->get_accounts_by_created: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| lower_threshold | String | The UTC DateTime specifying the start of the result period. | |
| upper_threshold | String | The UTC DateTime specifying the end of the result period. | |
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
| offset | Integer | The offset from the first taxation-link to return. | [optional] [default to 0] |
| records | Integer | The maximum number of taxation-links to return. | [optional] [default to 10] |
| order_by | String | Specify a field used to order the result set. | [optional] [default to created] |
| order | String | Ihe direction of any ordering, either ASC or DESC. | [optional] [default to DESC] |
| include_retired | BOOLEAN | Whether retired products should be returned. | [optional] [default to true] |
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json; charset=utf-8
AccountPagedMetadata get_accounts_by_updated(lower_threshold, upper_threshold, opts)
Returns a collection of account objects with updated times within the period specified by the lower-threshold and upper-threshold parameters. By default 10 values are returned. Records are returned in natural order.
{"nickname":"Retrieve by updated","response":"getAccountByUpdated.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
lower_threshold = "lower_threshold_example" # String | The UTC DateTime specifying the start of the result period.
upper_threshold = "upper_threshold_example" # String | The UTC DateTime specifying the end of the result period.
opts = {
organizations: ["organizations_example"], # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
offset: 0, # Integer | The offset from the first taxation-link to return.
records: 10, # Integer | The maximum number of taxation-links to return.
order_by: "created", # String | Specify a field used to order the result set.
order: "DESC", # String | Ihe direction of any ordering, either ASC or DESC.
include_retired: true # BOOLEAN | Whether retired products should be returned.
}
begin
#Returns a collection of account objects with updated times within the period specified by the lower-threshold and upper-threshold parameters. By default 10 values are returned. Records are returned in natural order.
result = api_instance.get_accounts_by_updated(lower_threshold, upper_threshold, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->get_accounts_by_updated: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| lower_threshold | String | The UTC DateTime specifying the start of the result period. | |
| upper_threshold | String | The UTC DateTime specifying the end of the result period. | |
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
| offset | Integer | The offset from the first taxation-link to return. | [optional] [default to 0] |
| records | Integer | The maximum number of taxation-links to return. | [optional] [default to 10] |
| order_by | String | Specify a field used to order the result set. | [optional] [default to created] |
| order | String | Ihe direction of any ordering, either ASC or DESC. | [optional] [default to DESC] |
| include_retired | BOOLEAN | Whether retired products should be returned. | [optional] [default to true] |
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json; charset=utf-8
AccountPagedMetadata get_accounts_by_user_id(user_id, opts)
Returns a collection of accounts, specified by the user-ID parameter. By default 10 values are returned. Records are returned in natural order.
{"nickname":"Retrieve by user","response":"getAccountByUserID.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
user_id = "user_id_example" # String |
opts = {
organizations: ["organizations_example"], # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
offset: 0, # Integer | The offset from the first account to return.
records: 10, # Integer | The maximum number of accounts to return.
order_by: "created", # String | Specify a field used to order the result set.
order: "DESC", # String | Ihe direction of any ordering, either ASC or DESC.
include_retired: true # BOOLEAN | Whether retired products should be returned.
}
begin
#Returns a collection of accounts, specified by the user-ID parameter. By default 10 values are returned. Records are returned in natural order.
result = api_instance.get_accounts_by_user_id(user_id, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->get_accounts_by_user_id: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| user_id | String | ||
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
| offset | Integer | The offset from the first account to return. | [optional] [default to 0] |
| records | Integer | The maximum number of accounts to return. | [optional] [default to 10] |
| order_by | String | Specify a field used to order the result set. | [optional] [default to created] |
| order | String | Ihe direction of any ordering, either ASC or DESC. | [optional] [default to DESC] |
| include_retired | BOOLEAN | Whether retired products should be returned. | [optional] [default to true] |
No authorization required
- Content-Type: text/plain, application/json; charset=utf-8
- Accept: application/json; charset=utf-8
AccountPagedMetadata get_all_accounts(opts)
Returns a collection of all account objects. By default 10 values are returned. Records are returned in natural order.
{"nickname":"Get all accounts","response":"getAccountAll.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
opts = {
id: ["id_example"], # Array<String> | A list of account IDs used to filter the output.
organizations: ["organizations_example"], # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
offset: 0, # Integer | The offset from the first taxation-link to return.
records: 10, # Integer | The maximum number of taxation-links to return.
order_by: "created", # String | Specify a field used to order the result set.
order: "DESC", # String | Ihe direction of any ordering, either ASC or DESC.
include_retired: true, # BOOLEAN | Whether retired products should be returned.
users_only: false, # BOOLEAN | Whether only accounts have a user should be returned.
metadata: "metadata_example" # String |
}
begin
#Returns a collection of all account objects. By default 10 values are returned. Records are returned in natural order.
result = api_instance.get_all_accounts(opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->get_all_accounts: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Array<String> | A list of account IDs used to filter the output. | [optional] |
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
| offset | Integer | The offset from the first taxation-link to return. | [optional] [default to 0] |
| records | Integer | The maximum number of taxation-links to return. | [optional] [default to 10] |
| order_by | String | Specify a field used to order the result set. | [optional] [default to created] |
| order | String | Ihe direction of any ordering, either ASC or DESC. | [optional] [default to DESC] |
| include_retired | BOOLEAN | Whether retired products should be returned. | [optional] [default to true] |
| users_only | BOOLEAN | Whether only accounts have a user should be returned. | [optional] [default to false] |
| metadata | String | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: text/plain, application/json; charset=utf-8
CreditNotePagedMetadata get_available_credit_on_account(account_id, opts)
Returns all available credit-notes for the specified account. By default 10 values are returned. Records are returned in natural order.
{"nickname":"Get available credit","response":"getAvailableCreditAccount.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String | The ID of the account
opts = {
organizations: ["organizations_example"], # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
offset: 0, # Integer | The offset from the first subscription to return.
records: 10, # Integer | The maximum number of subscriptions to return.
order_by: "id", # String | Specify a field used to order the result set.
order: "DESC", # String | Ihe direction of any ordering, either ASC or DESC.
include_retired: false # BOOLEAN | Whether retired subscriptions should be returned.
}
begin
#Returns all available credit-notes for the specified account. By default 10 values are returned. Records are returned in natural order.
result = api_instance.get_available_credit_on_account(account_id, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->get_available_credit_on_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | The ID of the account | |
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
| offset | Integer | The offset from the first subscription to return. | [optional] [default to 0] |
| records | Integer | The maximum number of subscriptions to return. | [optional] [default to 10] |
| order_by | String | Specify a field used to order the result set. | [optional] [default to id] |
| order | String | Ihe direction of any ordering, either ASC or DESC. | [optional] [default to DESC] |
| include_retired | BOOLEAN | Whether retired subscriptions should be returned. | [optional] [default to false] |
No authorization required
- Content-Type: text/plain, application/json; charset=utf-8
- Accept: application/json; charset=utf-8
DynamicMetadata get_metadata_for_account(account_id, opts)
Retrieve any associated metadata.
{"nickname":"Retrieve metadata on account","request":"getAccountMetadataRequest.html","response":"getAccountMetadataResponse.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String |
opts = {
organizations: ["organizations_example"] # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
}
begin
#Retrieve any associated metadata.
result = api_instance.get_metadata_for_account(account_id, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->get_metadata_for_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ||
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: text/plain, application/json; charset=utf-8
- Accept: application/json; charset=utf-8
RolePagedMetadata get_permissions_on_account(account_id, opts)
Retrieves a collection of roles, specified by the account-ID parameter. By default 10 values are returned. Records are returned in natural order.
{"nickname":"List roles on account","response":"getRoleByAccount.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String |
opts = {
organizations: ["organizations_example"], # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
offset: 0, # Integer | The offset from the first subscription to return.
records: 10, # Integer | The maximum number of subscriptions to return.
order_by: "id", # String | Specify a field used to order the result set.
order: "DESC", # String | Ihe direction of any ordering, either ASC or DESC.
include_retired: false # BOOLEAN | Whether retired subscriptions should be returned.
}
begin
#Retrieves a collection of roles, specified by the account-ID parameter. By default 10 values are returned. Records are returned in natural order.
result = api_instance.get_permissions_on_account(account_id, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->get_permissions_on_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ||
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
| offset | Integer | The offset from the first subscription to return. | [optional] [default to 0] |
| records | Integer | The maximum number of subscriptions to return. | [optional] [default to 10] |
| order_by | String | Specify a field used to order the result set. | [optional] [default to id] |
| order | String | Ihe direction of any ordering, either ASC or DESC. | [optional] [default to DESC] |
| include_retired | BOOLEAN | Whether retired subscriptions should be returned. | [optional] [default to false] |
No authorization required
- Content-Type: text/plain
- Accept: application/json; charset=utf-8
CreditNotePagedMetadata remove_credit_from_account(account_id, value, opts)
Decrease the amount of credit by the value specified or entirely if no value provided.
{"nickname":"Remove Credit","response":"removeCreditForAccount.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String |
value = "value_example" # String | <p>Either a credit note ID or a currency value.</p><p>If a credit note ID is provided any remaining credit will be removed from this credit note.</p><p>If a currency value is provided the format should be in the form of valueCurrency, where value is the value to remove. The currency should be an ISO 4217 Currency Code. For example setting the value as 10USD will reduce the credit on this account by $10 or 9.86USD would reduce the credit by $9.86. Note: the value will be reduced from any credit notes with available balance.</p>
opts = {
organizations: ["organizations_example"] # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
}
begin
#Decrease the amount of credit by the value specified or entirely if no value provided.
result = api_instance.remove_credit_from_account(account_id, value, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->remove_credit_from_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ||
| value | String | <p>Either a credit note ID or a currency value.</p><p>If a credit note ID is provided any remaining credit will be removed from this credit note.</p><p>If a currency value is provided the format should be in the form of valueCurrency, where value is the value to remove. The currency should be an ISO 4217 Currency Code. For example setting the value as 10USD will reduce the credit on this account by $10 or 9.86USD would reduce the credit by $9.86. Note: the value will be reduced from any credit notes with available balance.</p> | |
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: text/plain, application/json; charset=utf-8
- Accept: application/json; charset=utf-8
RolePagedMetadata remove_permission_from_account(account_id, role, opts)
Revoke the specified role.
{"nickname":"Remove Role","response":"removeRoleFromAccount.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account_id = "account_id_example" # String |
role = "role_example" # String | ID or name of the role.
opts = {
organizations: ["organizations_example"] # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
}
begin
#Revoke the specified role.
result = api_instance.remove_permission_from_account(account_id, role, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->remove_permission_from_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | ||
| role | String | ID or name of the role. | |
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: text/plain
- Accept: application/json; charset=utf-8
DynamicMetadata set_metadata_for_account(metadata, account_id, opts)
Remove any existing metadata keys and create the provided data.
{"nickname":"Set metadata on account","request":"setAccountMetadataRequest.html","response":"setAccountMetadataResponse.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
metadata = Bfwd::DynamicMetadata.new # DynamicMetadata |
account_id = "account_id_example" # String |
opts = {
organizations: ["organizations_example"] # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
}
begin
#Remove any existing metadata keys and create the provided data.
result = api_instance.set_metadata_for_account(metadata, account_id, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->set_metadata_for_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| metadata | DynamicMetadata | ||
| account_id | String | ||
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
AccountPagedMetadata update_account(account)
Update an Account.
{"nickname":"Update an account","response":"updateAccountResponse.html","request":"updateAccountRequest.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
account = Bfwd::Account.new # Account | The account object to be created.
begin
#Update an Account.
result = api_instance.update_account(account)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->update_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account | Account | The account object to be created. |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: text/xml, application/xml, application/json; charset=utf-8
DynamicMetadata upsert_metadata_for_account(metadata, account_id, opts)
Update any existing metadata key-values and insert any new key-values, no keys will be removed.
{"nickname":"Upsert metadata on account","request":"upsertAccountMetadataRequest.html","response":"upsertAccountMetadataResponse.html"}
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::AccountsApi.new
metadata = Bfwd::DynamicMetadata.new # DynamicMetadata |
account_id = "account_id_example" # String |
opts = {
organizations: ["organizations_example"] # Array<String> | A list of organization-IDs used to restrict the scope of API calls.
}
begin
#Update any existing metadata key-values and insert any new key-values, no keys will be removed.
result = api_instance.upsert_metadata_for_account(metadata, account_id, opts)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling AccountsApi->upsert_metadata_for_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| metadata | DynamicMetadata | ||
| account_id | String | ||
| organizations | Array<String> | A list of organization-IDs used to restrict the scope of API calls. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8