(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)
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.list_seats()
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
subscription_id |
OptionalNullable[str] |
➖ |
N/A |
order_id |
OptionalNullable[str] |
➖ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
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 |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
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 |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
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 |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
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)
models.CustomerSeatClaimResponse
| Error Type |
Status Code |
Content Type |
| models.HTTPValidationError |
422 |
application/json |
| models.SDKError |
4XX, 5XX |
*/* |