Skip to content

Activate license endpoint throws error when it should decode #8

@shayne

Description

@shayne

Calling activateLicense(...) can in a valid error response, for example if the activation limit has been reached. The data in this error response is essential for certain workflows. As it stands the response is unable to be decoded and results in a LemonSqueezyAPIError which only retains the String? error message.

The ActivateLicense data type should support decoding of a partial response. An example of the "error" response is linked below.

API docs:
https://docs.lemonsqueezy.com/help/licensing/license-api#endpoints

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions