Scopes: customer_seats:write
customer_seats:write
Go
package main import( "context" "os" macropaygo "github.com/web3group/macropay-go-main" "log" ) func main() { ctx := context.Background() s := macropaygo.New( macropaygo.WithSecurity(os.Getenv("MACROPAY_ACCESS_TOKEN")), ) res, err := s.CustomerSeats.ListSeats(ctx, nil, nil) if err != nil { log.Fatal(err) } if res.SeatsList != nil { // handle response } }
{ "seats": [ { "created_at": "2023-11-07T05:31:56Z", "modified_at": "2023-11-07T05:31:56Z", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "subscription_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "<string>", "customer_email": "<string>", "invitation_token_expires_at": "2023-11-07T05:31:56Z", "claimed_at": "2023-11-07T05:31:56Z", "revoked_at": "2023-11-07T05:31:56Z", "seat_metadata": {} } ], "available_seats": 123, "total_seats": 123 }
You can generate an Organization Access Token from your organization's settings.
Successful Response
List of seats
Show child attributes
Number of available seats
Total number of seats for the subscription