Skip to content

Files

Latest commit

 

History

History
63 lines (45 loc) · 1.78 KB

CheckoutApi.md

File metadata and controls

63 lines (45 loc) · 1.78 KB

CheckoutApi

All URIs are relative to https://{customerId}.billabear.cloud/api/v1

Method HTTP request Description
createCheckout POST /checkout Create Checkout

createCheckout

InlineResponse201 createCheckout(body)

Create Checkout

Create checkout<br><br><strong>Since 2024.01</strong>

Example

// Import classes:
//import com.billabear.sdk.invoker.ApiClient;
//import com.billabear.sdk.invoker.ApiException;
//import com.billabear.sdk.invoker.Configuration;
//import com.billabear.sdk.invoker.auth.*;
//import com.billabear.sdk.api.CheckoutApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");

CheckoutApi apiInstance = new CheckoutApi();
CheckoutBody body = new CheckoutBody(); // CheckoutBody | 
try {
    InlineResponse201 result = apiInstance.createCheckout(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling CheckoutApi#createCheckout");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body CheckoutBody

Return type

InlineResponse201

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json