# Get organization settings GET https://api-sandbox.payabli.com/api/Organization/settings/{orgId} Retrieves an organization's settings. Reference: https://docs.payabli.com/developers/api-reference/organization/get-organization-settings ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get organization settings version: endpoint_organization.GetSettingsOrganization paths: /Organization/settings/{orgId}: get: operationId: get-settings-organization summary: Get organization settings description: Retrieves an organization's settings. tags: - - subpackage_organization parameters: - name: orgId in: path description: The numeric identifier for organization, assigned by Payabli. required: true schema: type: integer - name: requestToken in: header required: true schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/type_:SettingsQueryRecord' components: schemas: type_:ReadOnly: type: boolean type_:KeyValue: type: object properties: key: type: string description: Key name. readOnly: $ref: '#/components/schemas/type_:ReadOnly' value: type: string description: Key value. type_:SettingsQueryRecord: type: object properties: customFields: type: array items: $ref: '#/components/schemas/type_:KeyValue' description: Any custom fields defined for the org. forInvoices: type: array items: $ref: '#/components/schemas/type_:KeyValue' forPayOuts: type: array items: $ref: '#/components/schemas/type_:KeyValue' forWallets: type: array items: $ref: '#/components/schemas/type_:KeyValue' description: >- Information about digital wallet settings for the entity. Available values are `isApplePayEnabled` and `isGooglePayEnabled`. general: type: array items: $ref: '#/components/schemas/type_:KeyValue' identifiers: type: array items: $ref: '#/components/schemas/type_:KeyValue' ``` ## SDK Code Examples ```typescript GetSettings import { PayabliClient, PayabliEnvironment } from "@payabli/sdk-node"; async function main() { const client = new PayabliClient({ environment: PayabliEnvironment.Sandbox, apiKey: "YOUR_API_KEY_HERE", }); await client.organization.getSettingsOrganization(123); } main(); ``` ```python GetSettings from payabli import payabli from payabli.environment import payabliEnvironment client = payabli( environment=payabliEnvironment.SANDBOX, api_key="YOUR_API_KEY_HERE" ) client.organization.get_settings_organization( org_id=123 ) ``` ```csharp GetSettings using PayabliApi; using System.Threading.Tasks; namespace Usage; public class Example { public async Task Do() { var client = new PayabliApiClient( apiKey: "YOUR_API_KEY_HERE", clientOptions: new ClientOptions { BaseUrl = PayabliApiEnvironment.Sandbox } ); await client.Organization.GetSettingsOrganizationAsync( 123 ); } } ``` ```go GetSettings package example import ( client "github.com/payabli/sdk-go/v/client" option "github.com/payabli/sdk-go/v/option" payabli "github.com/payabli/sdk-go/v" context "context" ) func do() { client := client.NewClient( option.WithBaseURL( payabli.Environments.Sandbox, ), option.WithApiKey( "YOUR_API_KEY_HERE", ), ) client.Organization.GetSettingsOrganization( context.TODO(), 123, ) } ``` ```ruby GetSettings require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/Organization/settings/123") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["requestToken"] = '' response = http.request(request) puts response.read_body ``` ```java GetSettings import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api-sandbox.payabli.com/api/Organization/settings/123") .header("requestToken", "") .asString(); ``` ```php GetSettings request('GET', 'https://api-sandbox.payabli.com/api/Organization/settings/123', [ 'headers' => [ 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift GetSettings import Foundation let headers = ["requestToken": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/Organization/settings/123")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```