All URIs are relative to https://connto.getopenpay.com
| Method | HTTP request | Description |
|---|---|---|
| CreatePaymentRoute | Post /payment-routes/ | Create Payment Route |
| DeletePaymentRoute | Delete /payment-routes/{payment_route_id} | Delete Payment Route |
| GetPaymentRoute | Get /payment-routes/{payment_route_id} | Get Payment Route |
| ListPaymentRoutes | Post /payment-routes/list | List Payment Routes |
| UpdatePaymentRoute | Put /payment-routes/{payment_route_id} | Update Payment Route |
PaymentRouteExternal CreatePaymentRoute(ctx).CreatePaymentRouteRequest(createPaymentRouteRequest).Execute()
Create Payment Route
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/getopenpay/getopenpay-go"
)
func main() {
createPaymentRouteRequest := *openapiclient.NewCreatePaymentRouteRequest("My Payment Route", map[string]interface{}(123)) // CreatePaymentRouteRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PaymentRoutesAPI.CreatePaymentRoute(context.Background()).CreatePaymentRouteRequest(createPaymentRouteRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PaymentRoutesAPI.CreatePaymentRoute``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreatePaymentRoute`: PaymentRouteExternal
fmt.Fprintf(os.Stdout, "Response from `PaymentRoutesAPI.CreatePaymentRoute`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreatePaymentRouteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| createPaymentRouteRequest | CreatePaymentRouteRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeletePaymentRouteResponse DeletePaymentRoute(ctx, paymentRouteId).Execute()
Delete Payment Route
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/getopenpay/getopenpay-go"
)
func main() {
paymentRouteId := "paymentRouteId_example" // string | The payment route ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PaymentRoutesAPI.DeletePaymentRoute(context.Background(), paymentRouteId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PaymentRoutesAPI.DeletePaymentRoute``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeletePaymentRoute`: DeletePaymentRouteResponse
fmt.Fprintf(os.Stdout, "Response from `PaymentRoutesAPI.DeletePaymentRoute`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| paymentRouteId | string | The payment route ID |
Other parameters are passed through a pointer to a apiDeletePaymentRouteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaymentRouteExternal GetPaymentRoute(ctx, paymentRouteId).Execute()
Get Payment Route
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/getopenpay/getopenpay-go"
)
func main() {
paymentRouteId := "paymentRouteId_example" // string | The payment route ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PaymentRoutesAPI.GetPaymentRoute(context.Background(), paymentRouteId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PaymentRoutesAPI.GetPaymentRoute``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPaymentRoute`: PaymentRouteExternal
fmt.Fprintf(os.Stdout, "Response from `PaymentRoutesAPI.GetPaymentRoute`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| paymentRouteId | string | The payment route ID |
Other parameters are passed through a pointer to a apiGetPaymentRouteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListResponsePaymentRouteExternal ListPaymentRoutes(ctx).Execute()
List Payment Routes
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/getopenpay/getopenpay-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PaymentRoutesAPI.ListPaymentRoutes(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PaymentRoutesAPI.ListPaymentRoutes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListPaymentRoutes`: ListResponsePaymentRouteExternal
fmt.Fprintf(os.Stdout, "Response from `PaymentRoutesAPI.ListPaymentRoutes`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListPaymentRoutesRequest struct via the builder pattern
ListResponsePaymentRouteExternal
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaymentRouteExternal UpdatePaymentRoute(ctx, paymentRouteId).UpdatePaymentRouteRequest(updatePaymentRouteRequest).Execute()
Update Payment Route
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/getopenpay/getopenpay-go"
)
func main() {
paymentRouteId := "paymentRouteId_example" // string | The payment route ID
updatePaymentRouteRequest := *openapiclient.NewUpdatePaymentRouteRequest("My Payment Route", map[string]interface{}(123)) // UpdatePaymentRouteRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PaymentRoutesAPI.UpdatePaymentRoute(context.Background(), paymentRouteId).UpdatePaymentRouteRequest(updatePaymentRouteRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PaymentRoutesAPI.UpdatePaymentRoute``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdatePaymentRoute`: PaymentRouteExternal
fmt.Fprintf(os.Stdout, "Response from `PaymentRoutesAPI.UpdatePaymentRoute`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| paymentRouteId | string | The payment route ID |
Other parameters are passed through a pointer to a apiUpdatePaymentRouteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
updatePaymentRouteRequest | UpdatePaymentRouteRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]