All URIs are relative to https://{customerId}.billabear.cloud/api/v1
| Method | HTTP request | Description |
|---|---|---|
| createCheckout | POST /checkout | Create Checkout |
InlineResponse201 createCheckout(body)
Create Checkout
Create checkout<br><br><strong>Since 2024.01</strong>
import {BillaBear} from 'billa_bear';
let defaultClient = BillaBear.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new BillaBear.CheckoutApi();
let body = new BillaBear.CheckoutBody(); // CheckoutBody |
apiInstance.createCheckout(body, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | CheckoutBody |
- Content-Type: application/json
- Accept: application/json