All URIs are relative to https://connto.getopenpay.com
| Method | HTTP request | Description |
|---|---|---|
| CreateTaxIntegration | Post /integrations/tax/ | Create Tax Integration |
TaxIntegrationExternal CreateTaxIntegration(ctx).CreateTaxIntegrationRequest(createTaxIntegrationRequest).Execute()
Create Tax Integration
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/getopenpay/getopenpay-go"
)
func main() {
createTaxIntegrationRequest := *openapiclient.NewCreateTaxIntegrationRequest("US/Pacific", map[string]string{"key": "Inner_example"}, openapiclient.TaxIntegrationApiName("anrok_v1")) // CreateTaxIntegrationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TaxIntegrationsAPI.CreateTaxIntegration(context.Background()).CreateTaxIntegrationRequest(createTaxIntegrationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TaxIntegrationsAPI.CreateTaxIntegration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateTaxIntegration`: TaxIntegrationExternal
fmt.Fprintf(os.Stdout, "Response from `TaxIntegrationsAPI.CreateTaxIntegration`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateTaxIntegrationRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| createTaxIntegrationRequest | CreateTaxIntegrationRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]