Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 2.14 KB

File metadata and controls

73 lines (46 loc) · 2.14 KB

\TaxIntegrationsAPI

All URIs are relative to https://connto.getopenpay.com

Method HTTP request Description
CreateTaxIntegration Post /integrations/tax/ Create Tax Integration

CreateTaxIntegration

TaxIntegrationExternal CreateTaxIntegration(ctx).CreateTaxIntegrationRequest(createTaxIntegrationRequest).Execute()

Create Tax Integration

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCreateTaxIntegrationRequest struct via the builder pattern

Name Type Description Notes
createTaxIntegrationRequest CreateTaxIntegrationRequest

Return type

TaxIntegrationExternal

Authorization

HTTPBearer

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]