Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 1.37 KB

README.md

File metadata and controls

54 lines (33 loc) · 1.37 KB

PolarCustomers

(customerPortal->customers)

Overview

Available Operations

  • get - Get Customer

get

Get a customer by ID for the authenticated customer or user.

Example Usage

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->customers->get(
    id: '<value>'
);

if ($response->customerPortalCustomer !== null) {
    // handle response
}

Parameters

Parameter Type Required Description
id string ✔️ The customer ID.

Response

?Operations\CustomerPortalCustomersGetResponse

Errors

Error Type Status Code Content Type
Errors\ResourceNotFound 404 application/json
Errors\HTTPValidationError 422 application/json
Errors\APIException 4XX, 5XX */*