Polar::Api::CustomerSeats
API client for customer_seats operations
Constants
Constructors
Creates a new CustomerSeats instance
@param client [Client] The Polar API client instance
Instance methods
Assign Seat
Scopes: customer_seats:write
Endpoint: POST /v1/customer-seats
Parameters:
body(required): Request body as Polar::Models::SeatAssign
Returns: Polar::Models::CustomerSeat
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
Claim Seat
Endpoint: POST /v1/customer-seats/claim
Parameters:
body(required): Request body as Polar::Models::SeatClaim
Returns: Polar::Models::CustomerSeatClaimResponse
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
Get Claim Info
Endpoint: GET /v1/customer-seats/claim/{invitation_token}
Parameters:
invitation_token(required): Path parameter
Returns: Polar::Models::SeatClaimInfo
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
List Seats
Scopes: customer_seats:write
Endpoint: GET /v1/customer-seats
Parameters:
subscription_id(optional): Query parameterorder_id(optional): Query parameter
Returns: Polar::Models::SeatsList
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
Resend Invitation
Scopes: customer_seats:write
Endpoint: POST /v1/customer-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_seats:write
Endpoint: DELETE /v1/customer-seats/{seat_id}
Parameters:
seat_id(required): Path parameter
Returns: Polar::Models::CustomerSeat
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors