(customer_seats)
Scopes: customer_seats:write
from polar_sdk import Polar
with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:
res = polar.customer_seats.assign_seat(request={})
# Handle response
print(res)
| Parameter | Type | Required | Description |
|---|
request | models.SeatAssign | :heavy_check_mark: | The request object to use for the request. |
retries | Optional[utils.RetryConfig] | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
models.CustomerSeat
| Error Type | Status Code | Content Type |
|---|
| models.HTTPValidationError | 422 | application/json |
| models.SDKError | 4XX, 5XX | */* |
Scopes: customer_seats:read
from polar_sdk import Polar
with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:
res = polar.customer_seats.list_seats()
# Handle response
print(res)
| Parameter | Type | Required | Description |
|---|
subscription_id | OptionalNullable[str] | :heavy_minus_sign: | N/A |
order_id | OptionalNullable[str] | :heavy_minus_sign: | N/A |
retries | Optional[utils.RetryConfig] | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
models.SeatsList
| Error Type | Status Code | Content Type |
|---|
| models.HTTPValidationError | 422 | application/json |
| models.SDKError | 4XX, 5XX | */* |
Scopes: customer_seats:write
from polar_sdk import Polar
with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:
res = polar.customer_seats.revoke_seat(seat_id="<id>")
# Handle response
print(res)
| Parameter | Type | Required | Description |
|---|
seat_id | str | :heavy_check_mark: | N/A |
retries | Optional[utils.RetryConfig] | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
models.CustomerSeat
| Error Type | Status Code | Content Type |
|---|
| models.HTTPValidationError | 422 | application/json |
| models.SDKError | 4XX, 5XX | */* |
Scopes: customer_seats:write
from polar_sdk import Polar
with Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
) as polar:
res = polar.customer_seats.resend_invitation(seat_id="<id>")
# Handle response
print(res)
| Parameter | Type | Required | Description |
|---|
seat_id | str | :heavy_check_mark: | N/A |
retries | Optional[utils.RetryConfig] | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
models.CustomerSeat
| Error Type | Status Code | Content Type |
|---|
| models.HTTPValidationError | 422 | application/json |
| models.SDKError | 4XX, 5XX | */* |
Get Claim Info
from polar_sdk import Polar
with Polar() as polar:
res = polar.customer_seats.get_claim_info(invitation_token="<value>")
# Handle response
print(res)
| Parameter | Type | Required | Description |
|---|
invitation_token | str | :heavy_check_mark: | N/A |
retries | Optional[utils.RetryConfig] | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
models.SeatClaimInfo
| Error Type | Status Code | Content Type |
|---|
| models.HTTPValidationError | 422 | application/json |
| models.SDKError | 4XX, 5XX | */* |
Claim Seat
from polar_sdk import Polar
with Polar() as polar:
res = polar.customer_seats.claim_seat(request={
"invitation_token": "<value>",
})
# Handle response
print(res)
| Parameter | Type | Required | Description |
|---|
request | models.SeatClaim | :heavy_check_mark: | The request object to use for the request. |
retries | Optional[utils.RetryConfig] | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
models.CustomerSeatClaimResponse
| Error Type | Status Code | Content Type |
|---|
| models.HTTPValidationError | 422 | application/json |
| models.SDKError | 4XX, 5XX | */* |