(BillingV1 )
using HathoraCloud;
using HathoraCloud. Models. Shared;
var sdk = new HathoraCloudSDK(
security: new Security( ) {
HathoraDevToken = " <YOUR_BEARER_TOKEN_HERE>" ,
} ,
appId: " app-af469a92-5b45-4565-b3c4-b79878de67d2" ) ;
using ( var res = await sdk. BillingV1. GetBalanceAsync ( ) )
{
// handle response
}
GetBalanceResponse
Error Object
Status Code
Content Type
HathoraCloud.Models.Errors.ApiError
401,404
application/json
HathoraCloud.Models.Errors.SDKException
4xx-5xx
/
using HathoraCloud;
using HathoraCloud. Models. Shared;
var sdk = new HathoraCloudSDK(
security: new Security( ) {
HathoraDevToken = " <YOUR_BEARER_TOKEN_HERE>" ,
} ,
appId: " app-af469a92-5b45-4565-b3c4-b79878de67d2" ) ;
using ( var res = await sdk. BillingV1. GetInvoicesAsync ( ) )
{
// handle response
}
GetInvoicesResponse
Error Object
Status Code
Content Type
HathoraCloud.Models.Errors.ApiError
401,404
application/json
HathoraCloud.Models.Errors.SDKException
4xx-5xx
/
using HathoraCloud;
using HathoraCloud. Models. Shared;
var sdk = new HathoraCloudSDK(
security: new Security( ) {
HathoraDevToken = " <YOUR_BEARER_TOKEN_HERE>" ,
} ,
appId: " app-af469a92-5b45-4565-b3c4-b79878de67d2" ) ;
using ( var res = await sdk. BillingV1. GetPaymentMethodAsync ( ) )
{
// handle response
}
GetPaymentMethodResponse
Error Object
Status Code
Content Type
HathoraCloud.Models.Errors.ApiError
401,404,500
application/json
HathoraCloud.Models.Errors.SDKException
4xx-5xx
/
InitStripeCustomerPortalUrl
using HathoraCloud;
using HathoraCloud. Models. Shared;
var sdk = new HathoraCloudSDK(
security: new Security( ) {
HathoraDevToken = " <YOUR_BEARER_TOKEN_HERE>" ,
} ,
appId: " app-af469a92-5b45-4565-b3c4-b79878de67d2" ) ;
CustomerPortalUrl req = new CustomerPortalUrl( ) {
ReturnUrl = " <value>" ,
} ;
using ( var res = await sdk. BillingV1. InitStripeCustomerPortalUrlAsync ( req) )
{
// handle response
}
Parameter
Type
Required
Description
request
CustomerPortalUrl
✔️
The request object to use for the request.
InitStripeCustomerPortalUrlResponse
Error Object
Status Code
Content Type
HathoraCloud.Models.Errors.ApiError
401,404,429
application/json
HathoraCloud.Models.Errors.SDKException
4xx-5xx
/