Polar::Api::CustomerPortal::Seats
API client for seats operations in customer_portal context
Constants
Constructors
Creates a new Seats instance
@param client [Client] The Polar API client instance
Instance methods
Assign Seat
Scopes: customer_portal:write
Endpoint: POST /v1/customer-portal/seats
Parameters:
body(required): Request body as Polar::Models::SeatAssign
Returns: Polar::Models::CustomerSeat
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
List Claimed Subscriptions
List all subscriptions where the authenticated customer has claimed a seat.
Scopes: customer_portal:read customer_portal:write
Endpoint: GET /v1/customer-portal/seats/subscriptions
Returns: JSON response string
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
List Seats
Scopes: customer_portal:read customer_portal:write
Endpoint: GET /v1/customer-portal/seats
Parameters:
subscription_id(optional): Subscription IDorder_id(optional): Order ID
Returns: Polar::Models::SeatsList
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
Resend Invitation
Scopes: customer_portal:write
Endpoint: POST /v1/customer-portal/seats/{seat_id}/resend
Parameters:
seat_id(required): Path parameter
Returns: Polar::Models::CustomerSeat
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
Revoke Seat
Scopes: customer_portal:write
Endpoint: DELETE /v1/customer-portal/seats/{seat_id}
Parameters:
seat_id(required): Path parameter
Returns: Polar::Models::CustomerSeat
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors