All URIs are relative to https://connto.getopenpay.com
| Method | HTTP request | Description |
|---|---|---|
| CreateBillingMeterEventAdjustments | Post /billing/meter-event-adjustments/ | Create Billing Meter Event Adjustments |
BillingMeterEventAdjustmentExternal CreateBillingMeterEventAdjustments(ctx).CreateBillingMeterEventAdjustmentRequest(createBillingMeterEventAdjustmentRequest).Execute()
Create Billing Meter Event Adjustments
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/getopenpay/getopenpay-go"
)
func main() {
createBillingMeterEventAdjustmentRequest := *openapiclient.NewCreateBillingMeterEventAdjustmentRequest("CancelIdentifier_example", "EventName_example") // CreateBillingMeterEventAdjustmentRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingMeterEventAdjustmentsAPI.CreateBillingMeterEventAdjustments(context.Background()).CreateBillingMeterEventAdjustmentRequest(createBillingMeterEventAdjustmentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingMeterEventAdjustmentsAPI.CreateBillingMeterEventAdjustments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateBillingMeterEventAdjustments`: BillingMeterEventAdjustmentExternal
fmt.Fprintf(os.Stdout, "Response from `BillingMeterEventAdjustmentsAPI.CreateBillingMeterEventAdjustments`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateBillingMeterEventAdjustmentsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| createBillingMeterEventAdjustmentRequest | CreateBillingMeterEventAdjustmentRequest |
BillingMeterEventAdjustmentExternal
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]