(customerPortal->organizations)
- get - Get Organization
Get a customer portal's organization by slug.
declare(strict_types=1);
require 'vendor/autoload.php';
use Polar;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Polar\Polar::builder()->setSecurity($security)->build();
$response = $sdk->customerPortal->organizations->get(
slug: '<value>'
);
if ($response->organization !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
slug |
string | ✔️ | The organization slug. |
?Operations\CustomerPortalOrganizationsGetResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ResourceNotFound | 404 | application/json |
Errors\HTTPValidationError | 422 | application/json |
Errors\APIException | 4XX, 5XX | */* |