Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 3.54 KB

README.md

File metadata and controls

58 lines (42 loc) · 3.54 KB

Customers

(Customers)

Available Operations

SetBillableStatus

Set a customer's billable status. This endpoint's availability is dependent on your client's configuration.

Example Usage

package main

import(
	metronomegosdk "github.com/speakeasy-sdks/metronome-go-sdk"
	"github.com/speakeasy-sdks/metronome-go-sdk/models/operations"
	"context"
	"log"
)

func main() {
    s := metronomegosdk.New(
        metronomegosdk.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
    )

    ctx := context.Background()
    res, err := s.Customers.SetBillableStatus(ctx, nil)
    if err != nil {
        log.Fatal(err)
    }
    if res.Object != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
request operations.SetCustomerBillableStatusRequestBody ✔️ The request object to use for the request.
opts []operations.Option The options for this request.

Response

*operations.SetCustomerBillableStatusResponse, error

Error Object Status Code Content Type
sdkerrors.BadRequest 400 application/json
sdkerrors.NotFound 404 application/json
sdkerrors.SDKError 4xx-5xx /