Skip to content

Latest commit

 

History

History
229 lines (146 loc) · 7.58 KB

PaymentsApi.md

File metadata and controls

229 lines (146 loc) · 7.58 KB

{{classname}}

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

ChargeInvoice

InlineResponse20014 ChargeInvoice(ctx, invoiceId) Charge Invoice

Attempts to charge a card that is on file for the invoice amount

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
invoiceId string The id of the invoice

Return type

InlineResponse20014

Authorization

ApiKeyAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DownloadInvoice

*os.File DownloadInvoice(ctx, invoiceId) Download Invoice

Returns the pdf blob for the invoice

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
invoiceId string The id of the invoice

Return type

*os.File

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/pdf

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DownloadReceipt

*os.File DownloadReceipt(ctx, receipt) Download Receipt

Returns the pdf blob for the Receipt

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
receipt string The id of the receipt

Return type

*os.File

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/pdf

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetInvoicesForCustomer

InlineResponse2006 GetInvoicesForCustomer(ctx, customerId) List Customer Invoices

List Customer Invoices

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
customerId string The id of the customer to retrieve

Return type

InlineResponse2006

Authorization

ApiKeyAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetPaymentsForCustomer

InlineResponse2004 GetPaymentsForCustomer(ctx, customerId, optional) List Customer Payments

List Customer Payment

Required Parameters

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

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 |

Return type

InlineResponse2004

Authorization

ApiKeyAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListPayment

InlineResponse2009 ListPayment(ctx, optional) List

List all payment

Required Parameters

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

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

Return type

InlineResponse2009

Authorization

ApiKeyAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

RefundPayment

RefundPayment(ctx, body, paymentId) Refund Payment

Issue a refund for payment

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body IssueRefundPayment
paymentId string The id of the payment

Return type

(empty response body)

Authorization

ApiKeyAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]