All URIs are relative to https://{customerId}.billabear.cloud/api/v1
Method | HTTP request | Description |
---|---|---|
create_checkout | POST /checkout | Create Checkout |
InlineResponse201 create_checkout(body)
Create Checkout
Create checkout
Since 2024.01
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = SwaggerClient::CheckoutApi.new
body = SwaggerClient::CheckoutBody.new # CheckoutBody |
begin
#Create Checkout
result = api_instance.create_checkout(body)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling CheckoutApi->create_checkout: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | CheckoutBody |
- Content-Type: application/json
- Accept: application/json