- listSeats - List Seats
- assignSeat - Assign Seat
- revokeSeat - Revoke Seat
- resendInvitation - Resend Invitation
- getClaimInfo - Get Claim Info
- claimSeat - Claim Seat
Scopes: customer_seats:write
declare(strict_types=1);
require 'vendor/autoload.php';
use Polar;
$sdk = Polar\Polar::builder()
->setSecurity(
'<YOUR_BEARER_TOKEN_HERE>'
)
->build();
$response = $sdk->customerSeats->listSeats(
);
if ($response->seatsList !== null) {
// handle response
}| Parameter | Type | Required | Description |
|---|---|---|---|
subscriptionId |
?string | ➖ | N/A |
orderId |
?string | ➖ | N/A |
?Operations\CustomerSeatsListSeatsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\HTTPValidationError | 422 | application/json |
| Errors\APIException | 4XX, 5XX | */* |
Scopes: customer_seats:write
declare(strict_types=1);
require 'vendor/autoload.php';
use Polar;
use Polar\Models\Components;
$sdk = Polar\Polar::builder()
->setSecurity(
'<YOUR_BEARER_TOKEN_HERE>'
)
->build();
$request = new Components\SeatAssign();
$response = $sdk->customerSeats->assignSeat(
request: $request
);
if ($response->customerSeat !== null) {
// handle response
}| Parameter | Type | Required | Description |
|---|---|---|---|
$request |
Components\SeatAssign | ✔️ | The request object to use for the request. |
?Operations\CustomerSeatsAssignSeatResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\HTTPValidationError | 422 | application/json |
| Errors\APIException | 4XX, 5XX | */* |
Scopes: customer_seats:write
declare(strict_types=1);
require 'vendor/autoload.php';
use Polar;
$sdk = Polar\Polar::builder()
->setSecurity(
'<YOUR_BEARER_TOKEN_HERE>'
)
->build();
$response = $sdk->customerSeats->revokeSeat(
seatId: '<value>'
);
if ($response->customerSeat !== null) {
// handle response
}| Parameter | Type | Required | Description |
|---|---|---|---|
seatId |
string | ✔️ | N/A |
?Operations\CustomerSeatsRevokeSeatResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\HTTPValidationError | 422 | application/json |
| Errors\APIException | 4XX, 5XX | */* |
Scopes: customer_seats:write
declare(strict_types=1);
require 'vendor/autoload.php';
use Polar;
$sdk = Polar\Polar::builder()
->setSecurity(
'<YOUR_BEARER_TOKEN_HERE>'
)
->build();
$response = $sdk->customerSeats->resendInvitation(
seatId: '<value>'
);
if ($response->customerSeat !== null) {
// handle response
}| Parameter | Type | Required | Description |
|---|---|---|---|
seatId |
string | ✔️ | N/A |
?Operations\CustomerSeatsResendInvitationResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\HTTPValidationError | 422 | application/json |
| Errors\APIException | 4XX, 5XX | */* |
Get Claim Info
declare(strict_types=1);
require 'vendor/autoload.php';
use Polar;
$sdk = Polar\Polar::builder()->build();
$response = $sdk->customerSeats->getClaimInfo(
invitationToken: '<value>'
);
if ($response->seatClaimInfo !== null) {
// handle response
}| Parameter | Type | Required | Description |
|---|---|---|---|
invitationToken |
string | ✔️ | N/A |
?Operations\CustomerSeatsGetClaimInfoResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\HTTPValidationError | 422 | application/json |
| Errors\APIException | 4XX, 5XX | */* |
Claim Seat
declare(strict_types=1);
require 'vendor/autoload.php';
use Polar;
use Polar\Models\Components;
$sdk = Polar\Polar::builder()->build();
$request = new Components\SeatClaim(
invitationToken: '<value>',
);
$response = $sdk->customerSeats->claimSeat(
request: $request
);
if ($response->customerSeatClaimResponse !== null) {
// handle response
}| Parameter | Type | Required | Description |
|---|---|---|---|
$request |
Components\SeatClaim | ✔️ | The request object to use for the request. |
?Operations\CustomerSeatsClaimSeatResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| Errors\HTTPValidationError | 422 | application/json |
| Errors\APIException | 4XX, 5XX | */* |