All URIs are relative to https://{customerId}.billabear.cloud/api/v1
Method | HTTP request | Description |
---|---|---|
ChargeInvoice | Post /invoice/{invoiceId}/charge | Charge Invoice |
DownloadInvoice | Get /invoice/{invoiceId}/download | Download Invoice |
DownloadReceipt | Get /receipt/{receiptId}/download | Download Receipt |
GetInvoicesForCustomer | Get /customer/{customerId}/invoices | List Customer Invoices |
GetPaymentsForCustomer | Get /customer/{customerId}/payment | List Customer Payments |
ListPayment | Get /payment | List |
RefundPayment | Post /payment/{paymentId}/refund | Refund Payment |
InlineResponse20012 ChargeInvoice(ctx, invoiceId) Charge Invoice
Attempts to charge a card that is on file for the invoice amount
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
invoiceId | string | The id of the invoice |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File DownloadInvoice(ctx, invoiceId) Download Invoice
Returns the pdf blob for the invoice
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
invoiceId | string | The id of the invoice |
- Content-Type: Not defined
- Accept: application/pdf
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File DownloadReceipt(ctx, receipt) Download Receipt
Returns the pdf blob for the Receipt
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
receipt | string | The id of the receipt |
- Content-Type: Not defined
- Accept: application/pdf
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2004 GetInvoicesForCustomer(ctx, customerId) List Customer Invoices
List Customer Invoices
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
customerId | string | The id of the customer to retrieve |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2003 GetPaymentsForCustomer(ctx, customerId, optional) List Customer Payments
List Customer Payment
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
customerId | string | The id of the customer to retrieve | |
optional | *PaymentsApiGetPaymentsForCustomerOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a PaymentsApiGetPaymentsForCustomerOpts struct
Name | Type | Description | Notes |
---|
limit | optional.Int32| How many items to return at one time (max 100) | lastKey | optional.String| The key to be used in pagination to say what the last key of the previous page was | name | optional.String| The name to search for |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2007 ListPayment(ctx, optional) List
List all payment
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *PaymentsApiListPaymentOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a PaymentsApiListPaymentOpts struct
Name | Type | Description | Notes |
---|---|---|---|
limit | optional.Int32 | How many items to return at one time (max 100) | |
lastKey | optional.String | The key to be used in pagination to say what the last key of the previous page was | |
name | optional.String | The name to search for |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string RefundPayment(ctx, body, paymentId) Refund Payment
Issue a refund for payment
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | IssueRefundPayment | ||
paymentId | string | The id of the payment |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]