All URIs are relative to https://api.paystack.co
| Method | HTTP request | Description |
|---|---|---|
| BulkChargeCharges | Get /bulkcharge/{code}/charges | Fetch Charges in a Batch |
| BulkChargeFetch | Get /bulkcharge/{code} | Fetch Bulk Charge Batch |
| BulkChargeInitiate | Post /bulkcharge | Initiate Bulk Charge |
| BulkChargeList | Get /bulkcharge | List Bulk Charge Batches |
| BulkChargePause | Get /bulkcharge/pause/{code} | Pause Bulk Charge Batch |
| BulkChargeResume | Get /bulkcharge/resume/{code} | Resume Bulk Charge Batch |
Response BulkChargeCharges(ctx, code).Execute()
Fetch Charges in a Batch
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
code := "code_example" // string | Batch code
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BulkChargeAPI.BulkChargeCharges(context.Background(), code).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BulkChargeAPI.BulkChargeCharges``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BulkChargeCharges`: Response
fmt.Fprintf(os.Stdout, "Response from `BulkChargeAPI.BulkChargeCharges`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| code | string | Batch code |
Other parameters are passed through a pointer to a apiBulkChargeChargesRequest 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]
Response BulkChargeFetch(ctx, code).Execute()
Fetch Bulk Charge Batch
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
code := "code_example" // string | Batch code
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BulkChargeAPI.BulkChargeFetch(context.Background(), code).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BulkChargeAPI.BulkChargeFetch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BulkChargeFetch`: Response
fmt.Fprintf(os.Stdout, "Response from `BulkChargeAPI.BulkChargeFetch`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| code | string | Batch code |
Other parameters are passed through a pointer to a apiBulkChargeFetchRequest 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]
Response BulkChargeInitiate(ctx).Execute()
Initiate Bulk Charge
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BulkChargeAPI.BulkChargeInitiate(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BulkChargeAPI.BulkChargeInitiate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BulkChargeInitiate`: Response
fmt.Fprintf(os.Stdout, "Response from `BulkChargeAPI.BulkChargeInitiate`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiBulkChargeInitiateRequest struct via the builder pattern
- Content-Type: application/x-www-form-urlencoded, application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response BulkChargeList(ctx).PerPage(perPage).Page(page).From(from).To(to).Execute()
List Bulk Charge Batches
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
perPage := int32(56) // int32 | Number of records to fetch per page (optional)
page := int32(56) // int32 | The section to retrieve (optional)
from := time.Now() // time.Time | The start date (optional)
to := time.Now() // time.Time | The end date (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BulkChargeAPI.BulkChargeList(context.Background()).PerPage(perPage).Page(page).From(from).To(to).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BulkChargeAPI.BulkChargeList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BulkChargeList`: Response
fmt.Fprintf(os.Stdout, "Response from `BulkChargeAPI.BulkChargeList`: %v\n", resp)
}Other parameters are passed through a pointer to a apiBulkChargeListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| perPage | int32 | Number of records to fetch per page | |
| page | int32 | The section to retrieve | |
| from | time.Time | The start date | |
| to | time.Time | The end date |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response BulkChargePause(ctx, code).Execute()
Pause Bulk Charge Batch
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
code := "code_example" // string | Batch code
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BulkChargeAPI.BulkChargePause(context.Background(), code).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BulkChargeAPI.BulkChargePause``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BulkChargePause`: Response
fmt.Fprintf(os.Stdout, "Response from `BulkChargeAPI.BulkChargePause`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| code | string | Batch code |
Other parameters are passed through a pointer to a apiBulkChargePauseRequest 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]
Response BulkChargeResume(ctx, code).Execute()
Resume Bulk Charge Batch
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
code := "code_example" // string | Batch code
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BulkChargeAPI.BulkChargeResume(context.Background(), code).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BulkChargeAPI.BulkChargeResume``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `BulkChargeResume`: Response
fmt.Fprintf(os.Stdout, "Response from `BulkChargeAPI.BulkChargeResume`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| code | string | Batch code |
Other parameters are passed through a pointer to a apiBulkChargeResumeRequest 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]