Installation
Add the Go SDK to your project dependencies:Terminal
Quickstart
Initialize the Go client and perform requests using a context withsolifyn.ContextAccessToken.
main.go
API Structs
Services and endpoints are grouped under fields in the generatedAPIClient struct:
apiClient.ProductsAPI- Manage products and product addonsapiClient.LicenseAPI&apiClient.LicenseKeysAPI- Issue, update, and list license keysapiClient.LicenseKeysClientAPI- Validate (LicensesVerify) and activate (LicensesActivate) license keys on client applicationsapiClient.CheckoutAPI- Create checkout sessions and check currency/price previewsapiClient.CheckoutLinksAPI- Retrieve and manage shareable payment linksapiClient.CustomersAPI- Manage customer billing profilesapiClient.CollectionsAPI- Group products into searchable collectionsapiClient.SubscriptionsAPI- Update subscription statuses and actionsapiClient.DiscountsAPI- Manage discount couponsapiClient.MetersAPI- Ingest usage metric eventsapiClient.DeveloperAPI- Manage API keys and webhook endpoint subscriptionsapiClient.DigitalFileAPI- Manage digital download assetsapiClient.DisputesAPI- Handle and upload transaction dispute evidenceapiClient.OrdersAPI- Fetch customer invoices and purchase orders