All URIs are relative to https://api.doitpay.co
Method | HTTP request | Description |
---|---|---|
GetBalance | Get /merchant/v1/balance | Obtains the balances for a business. |
Obtains the balances for a business.
package main
import (
"context"
"fmt"
"os"
doitpay "github.com/automotechnologies/doitpay-go"
)
func main() {
doitpayClient := doitpay.NewAPIClient("API-KEY")
resp, r, err := doitpayClient.BalanceAPI.GetBalance(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BalanceAPI.GetBalance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetBalance`
fmt.Fprintf(os.Stdout, "Response from `BalanceAPI.GetBalance`: %v\n", resp)
}
This endpoint does not need any path parameters
Other parameters are passed through a pointer to a apiGetBalanceRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json