-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from automotechnologies/docs
- Loading branch information
Showing
9 changed files
with
1,126 additions
and
1,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# doitpay\BalanceAPI | ||
|
||
All URIs are relative to *https://api.doitpay.co* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**GetBalance**](BalanceAPI.md#GetBalance) | **Get** /merchant/v1/balance | Obtains the balances for a business. | ||
|
||
|
||
|
||
## GetBalance | ||
|
||
Obtains the balances for a business. | ||
|
||
|
||
|
||
### Example | ||
|
||
```go | ||
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) | ||
} | ||
``` | ||
|
||
### Path Parameters | ||
|
||
This endpoint does not need any path parameters | ||
|
||
### Other Parameters | ||
|
||
Other parameters are passed through a pointer to a apiGetBalanceRequest struct via the builder pattern | ||
|
||
### Return type | ||
|
||
[**Balance**](InternalWebControllersMerchantApiv1BalanceStandardResponse.md) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json | ||
|
||
[[Back to top]](#) | ||
[[Back to README]](../../README.md) | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.