REST API to manage Reepay resources
This C# SDK is automatically generated by the Swagger Codegen project:
- API version: 1
- SDK version: 1.0.0
- Build date: 2016-11-10T07:34:51.044+01:00
- Build package: class io.swagger.codegen.languages.CSharpClientCodegen
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742
Run the following command to generate the DLL
- [Mac/Linux]
/bin/sh build.sh
- [Windows]
build.bat
Then include the DLL (under the bin
folder) in the C# project, and use the namespaces:
using IO.Swagger.Api;
using IO.Swagger.Client;
using Model;
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using Model;
namespace Example
{
public class Example
{
public void main()
{
var apiInstance = new AccountApi();
try
{
// Create private key
Key result = apiInstance.CreatePrivateKey();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountApi.CreatePrivateKey: " + e.Message );
}
}
}
}
All URIs are relative to https://localhost/
Class | Method | HTTP request | Description |
---|---|---|---|
AccountApi | CreatePrivateKey | POST /v1/account/privkey | Create private key |
AccountApi | CreatePublicKey | POST /v1/account/pubkey | Create public key |
AccountApi | ExpirePrivateKey | POST /v1/account/privkey/{key}/expire | Expire private key |
AccountApi | ExpirePublicKey | POST /v1/account/pubkey/{key}/expire | Expire public key |
AccountApi | GenerateWebhookSecret | POST /v1/account/webhook_settings/secret | Generate new webhook secret |
AccountApi | GetCurrentAccount | GET /v1/account | Get account |
AccountApi | GetDiscountSettings | GET /v1/account/discount_settings | Get discount settings |
AccountApi | GetMailSettings | GET /v1/account/mail_settings | Get mail settings |
AccountApi | GetPrivateKeys | GET /v1/account/privkey | Get list of private keys |
AccountApi | GetPublicKeys | GET /v1/account/pubkey | Get list of public keys |
AccountApi | GetWebhookSettings | GET /v1/account/webhook_settings | Get webhook settings |
AccountApi | UpdateAccountJson | PUT /v1/account | Update account |
AccountApi | UpdateDiscountSettings | PUT /v1/account/discount_settings | Update discount settings |
AccountApi | UpdateMailSettingsJson | PUT /v1/account/mail_settings | Update mail settings |
AccountApi | UpdateWebhookSettingsJson | PUT /v1/account/webhook_settings | Update webhook settings |
AdditionalCostApi | CancelAdditionalCost | POST /v1/additional_cost/{handle}/cancel | Cancel pending additional cost |
AdditionalCostApi | CreateAdditionalCostJson | POST /v1/additional_cost | Create additional cost |
AdditionalCostApi | GetAdditionalCost | GET /v1/additional_cost/{handle} | Get additional cost |
AdditionalCostApi | GetAdditionalCosts | GET /v1/additional_cost/subscription/{handle} | Get additional costs for subscription |
AgreementApi | CreateCardGatewayAgreement | POST /v1/agreement/card_gateway | Create card gateway agreement |
AgreementApi | DeleteCardGatewayAgreement | DELETE /v1/agreement/card_gateway/{id} | Delete card gateway agreement |
AgreementApi | GetCardGatewayAgreement | GET /v1/agreement/card_gateway/{id} | Get card gateway agreement |
AgreementApi | GetCardGatewayAgreements | GET /v1/agreement/card_gateway | Get all card gateway agreements |
AgreementApi | UpdateCardGatewayAgreement | PUT /v1/agreement/card_gateway/{id} | Update card gateway agreement |
AuthenticateApi | Login | POST /v1/authenticate/login | User login |
AuthenticateApi | Renew | POST /v1/authenticate/renew | Renew user login |
AuthenticateApi | VerifyAuthentication | GET /v1/authenticate/verify | Verify authentication |
CouponApi | CreateCoupon | POST /v1/coupon | Create coupon |
CouponApi | DeleteCoupon | DELETE /v1/coupon/{handle} | Delete coupon |
CouponApi | ExpireCoupon | POST /v1/coupon/{handle}/expire | Expire coupon |
CouponApi | GetCoupon | GET /v1/coupon/{handle} | Get coupon |
CouponApi | GetCoupons | GET /v1/coupon | Get list of coupons |
CouponApi | UpdateCoupon | PUT /v1/coupon/{handle} | Update coupon |
CouponApi | ValidateCode | GET /v1/coupon/code/validate | Validate coupon |
CreditApi | CancelCredit | POST /v1/credit/{handle}/cancel | Cancel credit |
CreditApi | CreateCreditJson | POST /v1/credit | Create credit |
CreditApi | GetCredit | GET /v1/credit/{handle} | Get credit |
CreditApi | GetCredits | GET /v1/credit/subscription/{handle} | Get credits for subscription |
CustomerApi | ActivatePaymentMethod | POST /v1/customer/{handle}/payment_method/{method_id}/activate | Activate payment method |
CustomerApi | AddCardJson | POST /v1/customer/{handle}/payment_method/card | Add card payment method |
CustomerApi | CreateCustomerInvoice | POST /v1/customer/{handle}/invoice | Create invoice ondemand for customer |
CustomerApi | CreateCustomerJson | POST /v1/customer | Create customer |
CustomerApi | CreateCustomerNoteJson | POST /v1/customer/{handle}/note | Create customer note |
CustomerApi | DeleteCustomer | DELETE /v1/customer/{handle} | Delete customer |
CustomerApi | GetCard | GET /v1/customer/{handle}/payment_method/card/{id} | Get card |
CustomerApi | GetCardDetails | GET /v1/customer/{handle}/payment_method/card/{id}/details | Get gateway card details |
CustomerApi | GetCustomer | GET /v1/customer/{handle} | Get customer |
CustomerApi | GetCustomerNotes | GET /v1/customer/{handle}/note | Get customer notes |
CustomerApi | GetCustomerPaymentMethods | GET /v1/customer/{handle}/payment_method | Get payment methods |
CustomerApi | GetCustomers | GET /v1/customer | Get list of customers |
CustomerApi | ImportCardJson | POST /v1/customer/{handle}/payment_method/card_import | Import card payment method |
CustomerApi | InactivatePaymentMethod | POST /v1/customer/{handle}/payment_method/{method_id}/inactivate | Inactivate payment method |
CustomerApi | UpdateCustomerJson | PUT /v1/customer/{handle} | Update customer |
DiscountApi | CreateDiscount | POST /v1/discount | Create discount |
DiscountApi | DeleteDiscount | DELETE /v1/discount/{handle} | Delete discount |
DiscountApi | GetDiscount | GET /v1/discount/{handle} | Get discount |
DiscountApi | GetDiscounts | GET /v1/discount | Get list of discounts |
DiscountApi | UndeleteDiscount | POST /v1/discount/{handle}/undelete | Undelete discount |
DunningPlanApi | CreateDunningPlanJson | POST /v1/dunning_plan | Create dunning plan |
DunningPlanApi | DeleteDunningPlan | DELETE /v1/dunning_plan/{handle} | Delete dunning plan |
DunningPlanApi | GetDunningPlan | GET /v1/dunning_plan/{handle} | Get dunning plan |
DunningPlanApi | GetDunningPlans | GET /v1/dunning_plan | Get list of dunning plans |
DunningPlanApi | UpdateJson | PUT /v1/dunning_plan/{handle} | Update dunning plan |
EventApi | GetEvent | GET /v1/event/{id} | Get event |
EventApi | GetEvents | GET /v1/event | Get list of events |
InvoiceApi | CancelAllDunningPending | POST /v1/invoice/cancel_all_dunning_pending/subscription/{handle} | Cancel all dunning and pending |
InvoiceApi | CancelInvoice | POST /v1/invoice/{id}/cancel | Cancel invoice |
InvoiceApi | GetInvoice | GET /v1/invoice/{id} | Get invoice |
InvoiceApi | GetInvoices | GET /v1/invoice | Get list of invoices |
InvoiceApi | ManualSettle | POST /v1/invoice/{id}/manual_settle | Manual settle |
InvoiceApi | ReactivateInvoice | POST /v1/invoice/{id}/reactivate | Reactivate invoice |
InvoiceApi | Refund | POST /v1/invoice/{id}/refund | Refund settled invoice |
InvoiceApi | TransactionDetails | GET /v1/invoice/{id}/card_transaction/{transaction}/details | Get card transaction details |
MailTemplateApi | GetSample | GET /v1/mail_template/sample | Get sample data |
OrganisationApi | GetOrganisation | GET /v1/organisation | Get organisation |
OrganisationApi | Update | PUT /v1/organisation | Update organisation |
PlanApi | CreatePlanJson | POST /v1/plan | Create plan |
PlanApi | DeletePlan | DELETE /v1/plan/{handle} | Delete plan |
PlanApi | GetCurrentPlan | GET /v1/plan/{handle}/current | Get plan |
PlanApi | GetPlan | GET /v1/plan/{handle}/{version} | Get plan version |
PlanApi | GetPlans | GET /v1/plan/{handle} | Get list of plan versions |
PlanApi | GetPlansList | GET /v1/plan | Get list of plans |
PlanApi | SupersedePlanJson | POST /v1/plan/{handle} | Supersede plan |
PlanApi | UpdatePlanJson | PUT /v1/plan/{handle} | Update plan |
SubscriptionApi | CancelChangePlan | POST /v1/subscription/{handle}/cancel_change_plan | Cancel pending plan change |
SubscriptionApi | CancelSubscription | POST /v1/subscription/{handle}/cancel | Cancel subscription |
SubscriptionApi | ChangeNextPeriodStartJson | POST /v1/subscription/{handle}/change_next_period_start | Change next renewal date |
SubscriptionApi | ChangePlanJson | POST /v1/subscription/{handle}/change_plan | Change plan |
SubscriptionApi | CreateSubscriptionDiscount | POST /v1/subscription/{handle}/discount | Add subscription discount |
SubscriptionApi | CreateSubscriptionInvoice | POST /v1/subscription/{handle}/invoice | Create invoice ondemand for subscription |
SubscriptionApi | CreateSubscriptionJson | POST /v1/subscription | Create subscription |
SubscriptionApi | DeleteSubscriptionDiscount | DELETE /v1/subscription/{handle}/discount/{sdHandle} | Delete subscription discount |
SubscriptionApi | Expire | POST /v1/subscription/{handle}/expire | Expire subscription |
SubscriptionApi | GetSubscription | GET /v1/subscription/{handle} | Get subscription |
SubscriptionApi | GetSubscriptionDiscount | GET /v1/subscription/{handle}/discount/{sdHandle} | Get subscription discount |
SubscriptionApi | GetSubscriptionDiscounts | GET /v1/subscription/{handle}/discount | Get subscription discounts |
SubscriptionApi | GetSubscriptionPaymentMethods | GET /v1/subscription/{handle}/payment_method | Get payment methods |
SubscriptionApi | GetSubscriptionPeriodBalance | GET /v1/subscription/{handle}/period_balance | Get the period balance for subscription |
SubscriptionApi | GetSubscriptions | GET /v1/subscription | Get list of subscriptions |
SubscriptionApi | IntervalAmount | GET /v1/subscription/{handle}/interval_amount | Calculate interval amount |
SubscriptionApi | OnHold | POST /v1/subscription/{handle}/on_hold | Subscription on hold |
SubscriptionApi | ReactivateSubscription | POST /v1/subscription/{handle}/reactivate | Reactivate subscription on hold |
SubscriptionApi | RedeemCouponCode | POST /v1/subscription/{handle}/coupon | Redeem coupon code for subscription |
SubscriptionApi | RemoveAllPaymentMethods | DELETE /v1/subscription/{handle}/payment_method | Remove all payment methods |
SubscriptionApi | RemovePaymentMethod | DELETE /v1/subscription/{handle}/payment_method/{method_id} | Remove payment method |
SubscriptionApi | SetCardPaymentMethodJson | POST /v1/subscription/{handle}/payment_method/card | Set card payment method |
SubscriptionApi | Uncancel | POST /v1/subscription/{handle}/uncancel | Uncancel subscription |
UserApi | DeleteUser | DELETE /v1/user/{id} | Delete user |
UserApi | GetUser | GET /v1/user/{id} | Get user |
UserApi | GetUsers | GET /v1/user | Get users |
UserApi | InviteUser | POST /v1/user/invite | Invite user |
UserApi | InviteUserAccept | POST /v1/user/invite/{token} | Accept invite |
UserApi | InviteUserGet | GET /v1/user/invite/{token} | Get invite |
UserApi | ResetPassword | POST /v1/user/reset_password | Reset password request |
UserApi | ResetPasswordWithToken | POST /v1/user/reset_password/{token} | Reset password |
UserApi | UpdateAuth | PUT /v1/user/{id}/groups | Update user groups |
UserApi | UpdatePassword | PUT /v1/user/{id}/password | Change password |
UserApi | UpdateUser | PUT /v1/user/{id} | Update user |
UserApi | VerifyEmail | POST /v1/user/verify_email/{token} | Verify email |
UserApi | VerifyEmailRequest | POST /v1/user/{id}/verify_email | Send verification email |
WebhookApi | DisableWebhooks | POST /v1/webhook/disable | Disable webhooks |
WebhookApi | GetWebhook | GET /v1/webhook/{id} | Get webhooks |
WebhookApi | GetWebhookRequests | GET /v1/webhook/{id}/request | Get webhook requests |
WebhookApi | GetWebhooks | GET /v1/webhook | Get list of webhooks |
WebhookApi | ResendJson | POST /v1/webhook/resend | Re-send webhooks |
WebhookApi | UpdateWebhooks | POST /v1/webhook/update | Update and resend webhooks |
- Model.Account
- Model.AccountLogin
- Model.AdditionalCost
- Model.CancelSubscription
- Model.Card
- Model.CardGatewayAgreement
- Model.CardImport
- Model.CardToken
- Model.CardTransaction
- Model.ChangeNextPeriodStart
- Model.ChangePlan
- Model.Coupon
- Model.CouponRedemption
- Model.CouponSearch
- Model.CreateAdditionalCost
- Model.CreateCardGatewayAgreement
- Model.CreateCoupon
- Model.CreateCredit
- Model.CreateCreditNoteLine
- Model.CreateCustomer
- Model.CreateCustomerInvoice
- Model.CreateCustomerNote
- Model.CreateDiscount
- Model.CreateDunningPlan
- Model.CreateOrderLine
- Model.CreateSubscription
- Model.CreateSubscriptionDiscount
- Model.CreateSubscriptionInvoice
- Model.CreateSubscriptionPlan
- Model.Credit
- Model.CreditInvoice
- Model.CreditNoteLine
- Model.Customer
- Model.CustomerNote
- Model.CustomerSearch
- Model.Discount
- Model.DiscountSearch
- Model.DiscountSettings
- Model.DunningPlan
- Model.EventList
- Model.ExpireSubscription
- Model.IntervalAmount
- Model.InviteUser
- Model.InviteUserAccept
- Model.Invoice
- Model.InvoiceAdjustment
- Model.InvoiceCreditNote
- Model.InvoiceSearch
- Model.Key
- Model.MailSettings
- Model.ManualRefundTransfer
- Model.ManualSettleTransfer
- Model.ManualTransaction
- Model.ModelEvent
- Model.OnHoldSubscription
- Model.OrderLine
- Model.Organisation
- Model.OrganisationLogin
- Model.PaymentMethods
- Model.Plan
- Model.ReactivateSubscription
- Model.RedeemCouponCode
- Model.RefundInvoice
- Model.SetCardPaymentMethod
- Model.Subscription
- Model.SubscriptionDiscount
- Model.SubscriptionLinks
- Model.SubscriptionPeriodBalance
- Model.SubscriptionSearch
- Model.SupersedeSubscriptionPlan
- Model.UpdateAccount
- Model.UpdateCardGatewayAgreement
- Model.UpdateCoupon
- Model.UpdateCustomer
- Model.UpdateDunningPlan
- Model.UpdateOrganisation
- Model.UpdateSubscriptionPlan
- Model.UpdateUser
- Model.UpdateUserGroups
- Model.UpdateUserPassword
- Model.UpdateWebhookSettings
- Model.User
- Model.UserAccount
- Model.UserLogin
- Model.UserRenew
- Model.UserResetRequestPassword
- Model.Webhook
- Model.WebhookDisableRequest
- Model.WebhookRequest
- Model.WebhookResendRequest
- Model.WebhookSettings
- Model.WebhookUpdateRequest
All endpoints do not require authorization.