All URIs are relative to https://{customerId}.billabear.cloud/api/v1
| Method | HTTP request | Description |
|---|---|---|
| completeFrontendPaymentDetails | POST /customer/{customerId}/payment-methods/frontend-payment-token | Complete Frontend Detail Collection |
| deletePaymentDetails | DELETE /payment-methods/{paymentDetailsId} | Delete |
| deletePaymentDetailsCustomer | DELETE /customer/{customerId}/payment-methods/{paymentDetailsId} | Delete With Customer |
| getPaymentDetails | GET /payment-methods/{paymentDetailsId} | Fetch |
| listPaymentDetails | GET /customer/{customerId}/payment-methods | List Customer's Payment Details |
| makeDefaultPaymentDetails | POST /payment-methods/{paymentDetailsId}/default | Make Default |
| makeDefaultPaymentDetailsCustomer | POST /customer/{customerId}/payment-methods/{paymentDetailsId}/default | Make Default With Customer |
| startFrontendPaymentDetails | GET /customer/{customerId}/payment-methods/frontend-payment-token | Start Frontend Detail Collection |
PaymentDetails completeFrontendPaymentDetails(body, customerId)
Complete Frontend Detail Collection
Complete frontend payment details
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.PaymentDetailsApi();
let body = new BillaBear.FrontendToken(); // FrontendToken |
let customerId = "customerId_example"; // String | The id of the customer to retrieve
apiInstance.completeFrontendPaymentDetails(body, customerId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| body | FrontendToken | ||
| customerId | String | The id of the customer to retrieve |
- Content-Type: application/json
- Accept: application/json
deletePaymentDetails(paymentDetailsId)
Delete
Delete Payment Details
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.PaymentDetailsApi();
let paymentDetailsId = "paymentDetailsId_example"; // String | The id of the payment details
apiInstance.deletePaymentDetails(paymentDetailsId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| paymentDetailsId | String | The id of the payment details |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
deletePaymentDetailsCustomer(customerId, paymentDetailsId)
Delete With Customer
Delete Payment Details
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.PaymentDetailsApi();
let customerId = "customerId_example"; // String | The id of the customer to retrieve
let paymentDetailsId = "paymentDetailsId_example"; // String | The id of the payment details
apiInstance.deletePaymentDetailsCustomer(customerId, paymentDetailsId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| customerId | String | The id of the customer to retrieve | |
| paymentDetailsId | String | The id of the payment details |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
PaymentDetails getPaymentDetails(paymentDetailsId)
Fetch
Fetch the payment cards
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.PaymentDetailsApi();
let paymentDetailsId = "paymentDetailsId_example"; // String | The id of the payment details
apiInstance.getPaymentDetails(paymentDetailsId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| paymentDetailsId | String | The id of the payment details |
- Content-Type: Not defined
- Accept: application/json
InlineResponse2007 listPaymentDetails(customerId)
List Customer's Payment Details
List all customers <br><br>Added in version 1.1
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.PaymentDetailsApi();
let customerId = "customerId_example"; // String | The id of the customer to retrieve
apiInstance.listPaymentDetails(customerId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| customerId | String | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
makeDefaultPaymentDetails(customerId, paymentDetailsId)
Make Default
Delete Payment Details
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.PaymentDetailsApi();
let customerId = "customerId_example"; // String | The id of the customer to retrieve
let paymentDetailsId = "paymentDetailsId_example"; // String | The id of the payment details
apiInstance.makeDefaultPaymentDetails(customerId, paymentDetailsId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| customerId | String | The id of the customer to retrieve | |
| paymentDetailsId | String | The id of the payment details |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
makeDefaultPaymentDetailsCustomer(customerId, paymentDetailsId)
Make Default With Customer
Delete Payment Details
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.PaymentDetailsApi();
let customerId = "customerId_example"; // String | The id of the customer to retrieve
let paymentDetailsId = "paymentDetailsId_example"; // String | The id of the payment details
apiInstance.makeDefaultPaymentDetailsCustomer(customerId, paymentDetailsId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| customerId | String | The id of the customer to retrieve | |
| paymentDetailsId | String | The id of the payment details |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
FrontendToken startFrontendPaymentDetails(customerId)
Start Frontend Detail Collection
Start frontend payment details
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.PaymentDetailsApi();
let customerId = "customerId_example"; // String | The id of the customer to retrieve
apiInstance.startFrontendPaymentDetails(customerId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| customerId | String | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json