Polar::Api::CheckoutLinks
API client for checkout_links operations
Constants
Constructors
Creates a new CheckoutLinks instance
@param client [Client] The Polar API client instance
Instance methods
Create Checkout Link
Create a checkout link.
Scopes: checkout_links:write
Endpoint: POST /v1/checkout-links/
Parameters:
body(required): Request body as Polar::Models::CheckoutLinkCreate
Returns: Polar::Models::CheckoutLink
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
Delete Checkout Link
Delete a checkout link.
Scopes: checkout_links:write
Endpoint: DELETE /v1/checkout-links/{id}
Parameters:
id(required): The checkout link ID.
Returns: JSON response string
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
Get Checkout Link
Get a checkout link by ID.
Scopes: checkout_links:read checkout_links:write
Endpoint: GET /v1/checkout-links/{id}
Parameters:
id(required): The checkout link ID.
Returns: Polar::Models::CheckoutLink
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
List Checkout Links
List checkout links.
Scopes: checkout_links:read checkout_links:write
Endpoint: GET /v1/checkout-links/
Parameters:
organization_id(optional): Filter by organization ID.product_id(optional): Filter by product ID.page(optional): Page number, defaults to 1.limit(optional): Size of a page, defaults to 10. Maximum is 100.sorting(optional): Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign - before the criteria name to sort by descending order.
Returns: Polar::Models::ListResource(Polar::Models::CheckoutLink)
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors
Update Checkout Link
Update a checkout link.
Scopes: checkout_links:write
Endpoint: PATCH /v1/checkout-links/{id}
Parameters:
id(required): The checkout link ID.body(required): Request body as Polar::Models::CheckoutLinkUpdate
Returns: Polar::Models::CheckoutLink
Raises:
ResourceNotFoundErroron 404NotPermittedErroron 403HTTPValidationErroron 422PolarErroron other errors