Versions in this module Expand all Collapse all v1 v1.0.1 Apr 19, 2026 v1.0.0 Apr 19, 2026 Changes in this version + func VerifySignature(payload, signature, secret string) bool + type Address struct + City string + Country string + Name string + Phone string + State string + Street1 string + Street2 string + Zip string + type AddressValidationResult struct + Errors []string + IsValid bool + Normalized *Address + Suggestions []Address + type AnalyticsService struct + func (s *AnalyticsService) CarrierPerformance(ctx context.Context, startDate, endDate string) (ApiResponse[any], error) + func (s *AnalyticsService) CarrierSummary(ctx context.Context, startDate, endDate string) (ApiResponse[[]CarrierSummary], error) + func (s *AnalyticsService) DeliveryPerformance(ctx context.Context, startDate, endDate string) (ApiResponse[any], error) + func (s *AnalyticsService) InventoryMetrics(ctx context.Context) (ApiResponse[any], error) + func (s *AnalyticsService) OrderMetrics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error) + func (s *AnalyticsService) OrderTrend(ctx context.Context, startDate, endDate string) (ApiResponse[any], error) + func (s *AnalyticsService) PerformanceMetrics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error) + func (s *AnalyticsService) ReturnReasons(ctx context.Context, startDate, endDate string) (ApiResponse[any], error) + func (s *AnalyticsService) ReturnsMetrics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error) + func (s *AnalyticsService) ReturnsTrend(ctx context.Context, startDate, endDate string) (ApiResponse[any], error) + func (s *AnalyticsService) ShipmentsTrend(ctx context.Context, startDate, endDate string) (ApiResponse[[]ShipmentsTrend], error) + func (s *AnalyticsService) ShippingCostAnalytics(ctx context.Context, startDate, endDate string) (ApiResponse[any], error) + func (s *AnalyticsService) StockByWarehouse(ctx context.Context) (ApiResponse[any], error) + func (s *AnalyticsService) TopDestinations(ctx context.Context, startDate, endDate string, limit string) (ApiResponse[any], error) + func (s *AnalyticsService) TopSellingProducts(ctx context.Context, startDate, endDate string, limit string) (ApiResponse[any], error) + type ApiKeyInfo struct + CreatedAt string + ID string + Name string + Prefix string + type ApiKeysService struct + func (s *ApiKeysService) Create(ctx context.Context, req CreateApiKeyRequest) (ApiResponse[CreateApiKeyResponse], error) + func (s *ApiKeysService) List(ctx context.Context) (ApiResponse[[]ApiKeyInfo], error) + func (s *ApiKeysService) Revoke(ctx context.Context, keyID string) error + func (s *ApiKeysService) Rotate(ctx context.Context, keyID string) (ApiResponse[CreateApiKeyResponse], error) + type ApiResponse struct + Data T + Errors []string + Message string + Success bool + type AuthError struct + type AuthService struct + func (s *AuthService) ChangePassword(ctx context.Context, currentPassword, newPassword string) (ApiResponse[any], error) + func (s *AuthService) ForgotPassword(ctx context.Context, email string) (ApiResponse[any], error) + func (s *AuthService) GetProfile(ctx context.Context) (ApiResponse[any], error) + func (s *AuthService) Login(ctx context.Context, email, password string) (ApiResponse[LoginResponse], error) + func (s *AuthService) Logout(ctx context.Context) error + func (s *AuthService) RefreshToken(ctx context.Context, refreshToken string) (ApiResponse[LoginResponse], error) + func (s *AuthService) Register(ctx context.Context, req RegisterRequest) (ApiResponse[any], error) + func (s *AuthService) ResetPassword(ctx context.Context, token, newPassword string) (ApiResponse[any], error) + func (s *AuthService) UpdateProfile(ctx context.Context, data any) (ApiResponse[any], error) + func (s *AuthService) VerifyEmail(ctx context.Context, token string) (ApiResponse[any], error) + type BatchLabelJob struct + Completed int + Failed int + JobID string + Status string + Total int + type BatchLabelRequest struct + Items []CreateLabelRequest + type CarrierRecommendation struct + AvgCost float64 + AvgTransitDays float64 + CarrierCode string + ExceptionRate float64 + OnTimePercent float64 + Reason string + Score float64 + ShipmentCount int + type CarrierRecommendationRequest struct + DestinationPostalCode string + OriginPostalCode string + Priority string + WeightOz float64 + type CarrierRecommendationResponse struct + Lane string + Recommendations []CarrierRecommendation + SampleSize int + type CarrierSummary struct + Carrier string + Shipments int + TotalSpend float64 + type CarriersService struct + DHL *DhlService + FedEx *FedExService + UPS *UpsService + USPS *UspsService + type Client struct + Analytics *AnalyticsService + ApiKeys *ApiKeysService + Auth *AuthService + Carriers *CarriersService + EmailTemplates *EmailTemplatesService + HsCodes *HsCodesService + Insurance *InsuranceService + Inventory *InventoryService + Offsets *OffsetService + Orders *OrdersService + Pickups *PickupsService + RecurringShipments *RecurringShipmentsService + Reports *ReportsService + Returns *ReturnsService + Rules *RulesService + ScanForms *ScanFormsService + Shipping *ShippingService + Wallet *WalletService + Webhooks *WebhooksService + WorkspaceID string + Workspaces *WorkspacesService + func NewClient(cfg Config) *Client + func (c *Client) SetAPIKey(key string) + func (c *Client) SetAccessToken(token string) + type Config struct + APIKey string + AccessToken string + BaseURL string + MaxRetries int + Timeout time.Duration + WorkspaceID string + type CreateApiKeyRequest struct + Name string + type CreateApiKeyResponse struct + ID string + Key string + type CreateLabelRequest struct + Carrier string + FromAddress *Address + Parcel *Parcel + Service string + ToAddress *Address + type CreateWebhookRequest struct + Events []string + URL string + type CreateWorkspaceRequest struct + Name string + Slug string + type DeliveryPredictionRequest struct + CarrierCode string + DestinationPostalCode string + OriginPostalCode string + ServiceCode string + ShipDate string + type DeliveryPredictionResponse struct + CarrierCode string + Confidence float64 + EarliestDelivery string + LatestDelivery string + OnTimeRate float64 + PredictedDeliveryDate string + PredictedTransitDays int + SampleSize int + WorstCaseDelivery string + type DhlService struct + func (s *DhlService) CalculateLandedCost(ctx context.Context, body any) (any, error) + func (s *DhlService) CancelPickup(ctx context.Context) error + func (s *DhlService) CreatePickup(ctx context.Context, body any) (any, error) + func (s *DhlService) CreateShipment(ctx context.Context, body any) (any, error) + func (s *DhlService) FindServicePoints(ctx context.Context, params map[string]string) (any, error) + func (s *DhlService) GetMultiPieceRates(ctx context.Context, body any) (any, error) + func (s *DhlService) GetProducts(ctx context.Context, params map[string]string) (any, error) + func (s *DhlService) GetProofOfDelivery(ctx context.Context, params map[string]string) (any, error) + func (s *DhlService) GetRates(ctx context.Context, params map[string]string) (any, error) + func (s *DhlService) GetReferenceData(ctx context.Context, params map[string]string) (any, error) + func (s *DhlService) ScreenShipment(ctx context.Context, body any) (any, error) + func (s *DhlService) Track(ctx context.Context, params map[string]string) (any, error) + func (s *DhlService) TrackMultiple(ctx context.Context, params map[string]string) (any, error) + func (s *DhlService) UpdatePickup(ctx context.Context, body any) (any, error) + func (s *DhlService) UploadInvoice(ctx context.Context, body any) (any, error) + func (s *DhlService) ValidateAddress(ctx context.Context, params map[string]string) (any, error) + type EmailTemplatesService struct + func (s *EmailTemplatesService) Create(ctx context.Context, req any) (ApiResponse[any], error) + func (s *EmailTemplatesService) Delete(ctx context.Context, id string) error + func (s *EmailTemplatesService) Get(ctx context.Context, id string) (ApiResponse[any], error) + func (s *EmailTemplatesService) List(ctx context.Context) (ApiResponse[any], error) + func (s *EmailTemplatesService) Preview(ctx context.Context, id string, context_ any) (ApiResponse[any], error) + func (s *EmailTemplatesService) Update(ctx context.Context, id string, req any) (ApiResponse[any], error) + type FedExService struct + func (s *FedExService) AddPackagesToOpenShipment(ctx context.Context, body any) (any, error) + func (s *FedExService) CancelPickup(ctx context.Context, body any) (any, error) + func (s *FedExService) CancelShipment(ctx context.Context, body any) (any, error) + func (s *FedExService) ConfirmOpenShipment(ctx context.Context, body any) (any, error) + func (s *FedExService) CreateFreightShipment(ctx context.Context, body any) (any, error) + func (s *FedExService) CreateOpenShipment(ctx context.Context, body any) (any, error) + func (s *FedExService) CreatePickup(ctx context.Context, body any) (any, error) + func (s *FedExService) CreateReturnShipment(ctx context.Context, body any) (any, error) + func (s *FedExService) CreateShipment(ctx context.Context, body any) (any, error) + func (s *FedExService) GetFreightRate(ctx context.Context, body any) (any, error) + func (s *FedExService) GetRates(ctx context.Context, body any) (any, error) + func (s *FedExService) GetServiceStandards(ctx context.Context, body any) (any, error) + func (s *FedExService) GroundClose(ctx context.Context, body any) (any, error) + func (s *FedExService) RegisterTrackingNotification(ctx context.Context, body any) (any, error) + func (s *FedExService) SearchLocations(ctx context.Context, body any) (any, error) + func (s *FedExService) Track(ctx context.Context, body any) (any, error) + func (s *FedExService) TrackMultiPiece(ctx context.Context, body any) (any, error) + func (s *FedExService) UploadTradeDocuments(ctx context.Context, body any) (any, error) + func (s *FedExService) ValidateAddress(ctx context.Context, body any) (any, error) + func (s *FedExService) ValidatePostalCode(ctx context.Context, body any) (any, error) + func (s *FedExService) ValidateShipment(ctx context.Context, body any) (any, error) + type FlexOpsError struct + Code string + Errors []string + Message string + StatusCode int + func (e *FlexOpsError) Error() string + type HsCodesService struct + func (s *HsCodesService) EstimateLandedCost(ctx context.Context, req any) (ApiResponse[any], error) + func (s *HsCodesService) Lookup(ctx context.Context, code string) (ApiResponse[any], error) + func (s *HsCodesService) Search(ctx context.Context, query string, params url.Values) (ApiResponse[any], error) + type InsurancePolicy struct + Coverage float64 + PolicyID string + Premium float64 + Provider string + Status string + TrackingNumber string + type InsuranceQuote struct + Coverage float64 + Premium float64 + Provider string + type InsuranceService struct + func (s *InsuranceService) FileClaim(ctx context.Context, policyID string, claim any) (ApiResponse[any], error) + func (s *InsuranceService) GetProviders(ctx context.Context) (ApiResponse[[]string], error) + func (s *InsuranceService) GetQuote(ctx context.Context, req any) (ApiResponse[InsuranceQuote], error) + func (s *InsuranceService) Purchase(ctx context.Context, req any) (ApiResponse[InsurancePolicy], error) + func (s *InsuranceService) Void(ctx context.Context, policyID string) error + type InventoryService struct + func (s *InventoryService) GetCompleteSnapshot(ctx context.Context, params url.Values) (ApiResponse[any], error) + func (s *InventoryService) GetPartNumbers(ctx context.Context, params url.Values) (ApiResponse[any], error) + func (s *InventoryService) GetWarehouseSnapshot(ctx context.Context, params url.Values) (ApiResponse[any], error) + func (s *InventoryService) PostAsnReceipt(ctx context.Context, receipt any) (ApiResponse[any], error) + func (s *InventoryService) UpdateInventory(ctx context.Context, data any) (ApiResponse[any], error) + type Label struct + Carrier string + CreatedAt string + LabelData string + LabelFormat string + LabelID string + Rate float64 + Service string + TrackingNumber string + type LoginRequest struct + Email string + Password string + type LoginResponse struct + AccessToken string + ExpiresIn int + RefreshToken string + type OffsetService struct + func (s *OffsetService) BatchOffset(ctx context.Context, labelIDs []string) (ApiResponse[any], error) + func (s *OffsetService) GetEmissions(ctx context.Context, labelID string) (ApiResponse[any], error) + func (s *OffsetService) Offset(ctx context.Context, labelID string) (ApiResponse[any], error) + type Order struct + CreatedAt string + Items []OrderItem + OrderNumber string + Status string + type OrderItem struct + Name string + Price float64 + Quantity int + SKU string + type OrdersService struct + func (s *OrdersService) Cancel(ctx context.Context, orderNumber string) (ApiResponse[any], error) + func (s *OrdersService) Create(ctx context.Context, order any) (ApiResponse[any], error) + func (s *OrdersService) GetByStatus(ctx context.Context, params url.Values) (ApiResponse[[]Order], error) + func (s *OrdersService) GetCountryCodes(ctx context.Context) (ApiResponse[any], error) + func (s *OrdersService) GetDetails(ctx context.Context, orderNumber string) (ApiResponse[Order], error) + func (s *OrdersService) GetExtendedDetails(ctx context.Context, orderNumber string) (ApiResponse[any], error) + func (s *OrdersService) GetItems(ctx context.Context, orderNumber string) (ApiResponse[any], error) + func (s *OrdersService) GetNewOrders(ctx context.Context, params url.Values) (ApiResponse[[]Order], error) + func (s *OrdersService) GetShipMethods(ctx context.Context) (ApiResponse[any], error) + func (s *OrdersService) GetStatus(ctx context.Context, orderNumber string) (ApiResponse[any], error) + func (s *OrdersService) GetStatusTypes(ctx context.Context) (ApiResponse[any], error) + func (s *OrdersService) GetWarehouses(ctx context.Context) (ApiResponse[any], error) + type PaginatedResponse struct + Items []T + Page int + PageSize int + TotalCount int + TotalPages int + type Parcel struct + DimUnit string + Height float64 + Length float64 + Weight float64 + WeightUnit string + Width float64 + type PickupConfirmation struct + Carrier string + Date string + ID string + Status string + type PickupRequest struct + Carrier string + Date string + TimeEnd string + TimeStart string + type PickupsService struct + func (s *PickupsService) Cancel(ctx context.Context, pickupID string) error + func (s *PickupsService) Get(ctx context.Context, pickupID string) (ApiResponse[PickupConfirmation], error) + func (s *PickupsService) List(ctx context.Context) (ApiResponse[[]PickupConfirmation], error) + func (s *PickupsService) Schedule(ctx context.Context, req PickupRequest) (ApiResponse[PickupConfirmation], error) + type RateLimitError struct + RetryAfter int + type RateRequest struct + From *Address + FromZip string + Parcel *Parcel + To *Address + ToZip string + Weight float64 + WeightUnit string + type RecurringShipmentsService struct + func (s *RecurringShipmentsService) Create(ctx context.Context, req any) (ApiResponse[any], error) + func (s *RecurringShipmentsService) Delete(ctx context.Context, id string) error + func (s *RecurringShipmentsService) Get(ctx context.Context, id string) (ApiResponse[any], error) + func (s *RecurringShipmentsService) List(ctx context.Context, params url.Values) (ApiResponse[any], error) + func (s *RecurringShipmentsService) Pause(ctx context.Context, id string) (ApiResponse[any], error) + func (s *RecurringShipmentsService) Resume(ctx context.Context, id string) (ApiResponse[any], error) + func (s *RecurringShipmentsService) Trigger(ctx context.Context, id string) (ApiResponse[any], error) + func (s *RecurringShipmentsService) Update(ctx context.Context, id string, req any) (ApiResponse[any], error) + type RegisterRequest struct + Email string + FirstName string + LastName string + Password string + type ReportsService struct + func (s *ReportsService) Create(ctx context.Context, req any) (ApiResponse[any], error) + func (s *ReportsService) Delete(ctx context.Context, id string) error + func (s *ReportsService) Get(ctx context.Context, id string) (ApiResponse[any], error) + func (s *ReportsService) List(ctx context.Context) (ApiResponse[any], error) + func (s *ReportsService) Update(ctx context.Context, id string, req any) (ApiResponse[any], error) + type ReturnAuthorization struct + ID string + Items []ReturnItem + OrderNumber string + Status string + type ReturnItem struct + Quantity int + Reason string + SKU string + type ReturnRequest struct + Items []ReturnItem + OrderNumber string + Reason string + type ReturnsService struct + func (s *ReturnsService) Approve(ctx context.Context, returnID string) (ApiResponse[ReturnAuthorization], error) + func (s *ReturnsService) Cancel(ctx context.Context, returnID string) error + func (s *ReturnsService) Create(ctx context.Context, req ReturnRequest) (ApiResponse[ReturnAuthorization], error) + func (s *ReturnsService) GenerateLabel(ctx context.Context, returnID string) (ApiResponse[any], error) + func (s *ReturnsService) Get(ctx context.Context, returnID string) (ApiResponse[ReturnAuthorization], error) + func (s *ReturnsService) List(ctx context.Context, params url.Values) (ApiResponse[[]ReturnAuthorization], error) + func (s *ReturnsService) MarkReceived(ctx context.Context, returnID string, items any) (ApiResponse[any], error) + func (s *ReturnsService) ProcessRefund(ctx context.Context, returnID string) (ApiResponse[any], error) + func (s *ReturnsService) Reject(ctx context.Context, returnID, reason string) (ApiResponse[ReturnAuthorization], error) + type RuleAction struct + Type string + Value string + type RuleCondition struct + Field string + Group int + Operator string + Value string + type RulesService struct + func (s *RulesService) Create(ctx context.Context, rule any) (ApiResponse[ShippingRule], error) + func (s *RulesService) Delete(ctx context.Context, ruleID string) error + func (s *RulesService) Get(ctx context.Context, ruleID string) (ApiResponse[ShippingRule], error) + func (s *RulesService) List(ctx context.Context) (ApiResponse[[]ShippingRule], error) + func (s *RulesService) Reorder(ctx context.Context, ruleIDs []string) (ApiResponse[any], error) + func (s *RulesService) Update(ctx context.Context, ruleID string, rule any) (ApiResponse[ShippingRule], error) + type ScanForm struct + Carrier string + CreatedAt string + FormURL string + ID string + type ScanFormRequest struct + Carrier string + TrackingNumbers []string + type ScanFormsService struct + func (s *ScanFormsService) Create(ctx context.Context, req ScanFormRequest) (ApiResponse[ScanForm], error) + func (s *ScanFormsService) Get(ctx context.Context, scanFormID string) (ApiResponse[ScanForm], error) + func (s *ScanFormsService) List(ctx context.Context) (ApiResponse[[]ScanForm], error) + type ShipmentsTrend struct + Count int + Date string + type ShippingRate struct + Carrier string + Currency string + DeliveryDate string + EstimatedDays int + Rate float64 + Service string + type ShippingRule struct + Actions []RuleAction + Conditions []RuleCondition + ID string + IsActive bool + Name string + Priority int + type ShippingService struct + func (s *ShippingService) CancelLabel(ctx context.Context, labelID string) error + func (s *ShippingService) CreateBatch(ctx context.Context, req BatchLabelRequest) (ApiResponse[BatchLabelJob], error) + func (s *ShippingService) CreateLabel(ctx context.Context, req CreateLabelRequest) (ApiResponse[Label], error) + func (s *ShippingService) DownloadBatchLabel(ctx context.Context, jobID, itemID string) ([]byte, error) + func (s *ShippingService) GetBatchStatus(ctx context.Context, jobID string) (ApiResponse[BatchLabelJob], error) + func (s *ShippingService) GetCarriers(ctx context.Context) (ApiResponse[any], error) + func (s *ShippingService) GetCheapestRate(ctx context.Context, req RateRequest) (ApiResponse[ShippingRate], error) + func (s *ShippingService) GetFastestRate(ctx context.Context, req RateRequest) (ApiResponse[ShippingRate], error) + func (s *ShippingService) GetRates(ctx context.Context, req RateRequest) (ApiResponse[[]ShippingRate], error) + func (s *ShippingService) GetRecommendations(ctx context.Context, req CarrierRecommendationRequest) (ApiResponse[CarrierRecommendationResponse], error) + func (s *ShippingService) GetSavings(ctx context.Context) (ApiResponse[any], error) + func (s *ShippingService) PredictDelivery(ctx context.Context, req DeliveryPredictionRequest) (ApiResponse[DeliveryPredictionResponse], error) + func (s *ShippingService) PreviewBatch(ctx context.Context, req BatchLabelRequest) (ApiResponse[BatchLabelJob], error) + func (s *ShippingService) Track(ctx context.Context, trackingNumber string) (ApiResponse[TrackingInfo], error) + func (s *ShippingService) ValidateAddress(ctx context.Context, address Address) (ApiResponse[AddressValidationResult], error) + type TrackingEvent struct + Description string + Location string + Status string + Timestamp string + type TrackingInfo struct + Carrier string + EstimatedDelivery string + Events []TrackingEvent + Status string + StatusDetail string + TrackingNumber string + type UpsService struct + func (s *UpsService) CancelPickup(ctx context.Context) error + func (s *UpsService) CreateFreightShipment(ctx context.Context, body any) (any, error) + func (s *UpsService) CreateLabel(ctx context.Context, body any) (any, error) + func (s *UpsService) CreatePickup(ctx context.Context, body any) (any, error) + func (s *UpsService) GetFreightRate(ctx context.Context, body any) (any, error) + func (s *UpsService) GetLandedCost(ctx context.Context, body any) (any, error) + func (s *UpsService) GetRates(ctx context.Context, body any) (any, error) + func (s *UpsService) GetTransitTimes(ctx context.Context, body any) (any, error) + func (s *UpsService) SearchLocations(ctx context.Context, body any) (any, error) + func (s *UpsService) Track(ctx context.Context, params map[string]string) (any, error) + func (s *UpsService) UploadDocument(ctx context.Context, body any) (any, error) + func (s *UpsService) ValidateAddress(ctx context.Context, body any) (any, error) + type UspsService struct + func (s *UspsService) CancelDomesticLabel(ctx context.Context) error + func (s *UspsService) CancelInternationalLabel(ctx context.Context) error + func (s *UspsService) CancelPickup(ctx context.Context) error + func (s *UspsService) CityStateLookup(ctx context.Context, zipCode string) (any, error) + func (s *UspsService) CreateDomesticLabel(ctx context.Context, body any) (any, error) + func (s *UspsService) CreateInternationalLabel(ctx context.Context, body any) (any, error) + func (s *UspsService) CreatePickup(ctx context.Context, body any) (any, error) + func (s *UspsService) CreateReturnLabel(ctx context.Context, body any) (any, error) + func (s *UspsService) CreateScanForm(ctx context.Context, body any) (any, error) + func (s *UspsService) DeliveryStandards(ctx context.Context, params map[string]string) (any, error) + func (s *UspsService) FindDropOffLocations(ctx context.Context, params map[string]string) (any, error) + func (s *UspsService) FindPostOffices(ctx context.Context, params map[string]string) (any, error) + func (s *UspsService) GetDomesticPrices(ctx context.Context, body any) (any, error) + func (s *UspsService) GetDomesticProducts(ctx context.Context, body any) (any, error) + func (s *UspsService) GetDomesticRates(ctx context.Context, body any) (any, error) + func (s *UspsService) GetInternationalPrices(ctx context.Context, body any) (any, error) + func (s *UspsService) GetInternationalRates(ctx context.Context, body any) (any, error) + func (s *UspsService) TrackDetail(ctx context.Context, params map[string]string) (any, error) + func (s *UspsService) TrackSummary(ctx context.Context, params map[string]string) (any, error) + func (s *UspsService) ValidateAddress(ctx context.Context, params map[string]string) (any, error) + func (s *UspsService) ZipCodeLookup(ctx context.Context, params map[string]string) (any, error) + type WalletBalance struct + AutoReloadEnabled bool + Balance float64 + Currency string + type WalletService struct + func (s *WalletService) AddFunds(ctx context.Context, amount float64) (ApiResponse[any], error) + func (s *WalletService) ConfigureAutoReload(ctx context.Context, config any) (ApiResponse[any], error) + func (s *WalletService) GetBalance(ctx context.Context) (ApiResponse[WalletBalance], error) + func (s *WalletService) ListTransactions(ctx context.Context, params url.Values) (ApiResponse[any], error) + type WebhookSubscription struct + Events []string + ID string + IsActive bool + URL string + type WebhooksService struct + func (s *WebhooksService) Create(ctx context.Context, req CreateWebhookRequest) (ApiResponse[WebhookSubscription], error) + func (s *WebhooksService) Delete(ctx context.Context, webhookID string) error + func (s *WebhooksService) Get(ctx context.Context, webhookID string) (ApiResponse[WebhookSubscription], error) + func (s *WebhooksService) List(ctx context.Context) (ApiResponse[[]WebhookSubscription], error) + func (s *WebhooksService) ListDeliveryLogs(ctx context.Context, webhookID string) (ApiResponse[[]any], error) + func (s *WebhooksService) RotateSecret(ctx context.Context, webhookID string) (ApiResponse[map[string]string], error) + func (s *WebhooksService) Update(ctx context.Context, webhookID string, data any) (ApiResponse[WebhookSubscription], error) + type Workspace struct + ID string + IsActive bool + Name string + PlanID string + Slug string + type WorkspaceMember struct + Email string + Role string + UserID string + type WorkspacesService struct + func (s *WorkspacesService) Create(ctx context.Context, req CreateWorkspaceRequest) (ApiResponse[Workspace], error) + func (s *WorkspacesService) Get(ctx context.Context, workspaceID string) (ApiResponse[Workspace], error) + func (s *WorkspacesService) InviteMember(ctx context.Context, email, role string) (ApiResponse[any], error) + func (s *WorkspacesService) List(ctx context.Context) (ApiResponse[[]Workspace], error) + func (s *WorkspacesService) ListMembers(ctx context.Context) (ApiResponse[[]WorkspaceMember], error) + func (s *WorkspacesService) RemoveMember(ctx context.Context, userID string) error + func (s *WorkspacesService) Update(ctx context.Context, data any) (ApiResponse[Workspace], error) + func (s *WorkspacesService) UpdateMemberRole(ctx context.Context, userID, role string) (ApiResponse[any], error)