Subscription
|
cancelSubscription(String customerId, String subscriptionId)
Cancel a Subscription
|
Charge
|
captureCharge(String id, int amount, int applicationFee, String statementDescriptor, String receiptEmail)
Capture a Charge
|
Account
|
createAccount(CreateAccountParameters createAccountParameters)
Create an Account
|
ApplicationFee
|
createApplicationFeeRefund(String id, int amount)
Create an Application Fee Refund
Refunds an application fee that has previously been collected but not yet refunded.
|
Token
|
createBankAccountToken(String bankAccountId, BankAccount bankAccount)
Create a Bank Account Token
Creates a single use token that wraps the details of a bank account.
|
BitcoinReceiver
|
createBitcoinReceiver(int amount, String currency, String email, String description, Map<String, Object> metadata, boolean refundMispayments)
Create a BitCoin Receiver
Creates a Bitcoin receiver object that can be used to accept bitcoin payments from your customer.
|
Card
|
createCard(String ownerId, String sourceToken, Source source)
Create a Card
Note that this is only available for Customers at this time, as Recipients (of Transfers) have been deprecated by Stripe.
|
Token
|
createCardToken(String cardId, Source card, String customer)
Create a Card Token
|
Charge
|
createCharge(CreateChargeParameters createChargeParameters)
Create a Charge
|
Coupon
|
createCoupon(String id, String duration, int amountOff, String currency, int durationInMonths, int maxRedemptions, int percentOff, String redeemBy, Map<String, Object> metadata)
Create a Coupon
|
Customer
|
createCustomer(int accountBalance, String couponCode, String description, String email, Map<String, Object> metadata)
Create a Customer
|
FileUpload
|
createFileUpload(String file, FilePurpose purpose)
Create a file upload
To upload a file to Stripe, you'll need to send a request of type multipart/form-data.
|
Invoice
|
createInvoice(String customerId, int applicationFee, String description, Map<String, Object> metadata, String statementDescriptor, String subscription, double taxPercent)
Create an invoice
Invoices are statements of what a customer owes for a particular billing period, including subscriptions, invoice items, and any automatic proration adjustments if necessary.
|
Plan
|
createPlan(String id, int amount, String currency, String interval, int intervalCount, String planName, int trialPeriodDays, String statementDescriptor, Map<String, Object> metadata)
Create a Plan
|
Refund
|
createRefund(String id, int amount, boolean refundApplicationFee, String reason, Map<String, Object> metadata)
Create a Refund
When you create a new refund, you must specify a charge to create it on.
|
Subscription
|
createSubscription(CreateSubscriptionParameters createSubscriptionParameters)
Create a Subscription
|
DeletedCard
|
deleteCard(String ownerId, String id)
Delete a Card
|
Object
|
deleteCoupon(String id)
Delete a Coupon
|
Object
|
deleteCustomer(String id)
Delete a Customer
|
Object
|
deletePlan(String id)
Delete a Plan
|
ConnectorConnectionStrategy
|
getConnectionStrategy()
|
CustomerSubscriptionCollection
|
listActiveSubscriptions(String customerId, String endingBefore, int limit, String startingAfter)
List Active Subscriptions
|
FeeRefundCollection
|
listAllApplicationFeeRefunds(String id, String endingBefore, int limit, String startingAfter)
List All Application Fee Refunds
You can see a list of the refunds belonging to a specific application fee.
|
ApplicationFeeCollection
|
listAllApplicationFees(String charge, String createdTimestamp, TimeRange created, String endingBefore, int limit, String startingAfter)
List all Application Fees
|
BalanceTransactionCollection
|
listAllBalanceHistory(ListAllBalanceHistoryParameters listAllBalanceHistoryParameters)
List all Balance History
|
BitcoinReceiverCollection
|
listAllBitcoinReceivers(String active, String endingBefore, String filled, int limit, String startingAfter, String uncapturedFunds)
List All Bitcoin Receivers
Returns a list of your receivers.
|
ChargeCollection
|
listAllCharges(String createdTimestamp, TimeRange created, String customer, String endingBefore, int limit, String startingAfter)
List all Charges
|
CouponCollection
|
listAllCoupons(ListAllCouponsParameters listAllCouponsParameters)
List all Coupons
|
PaymentSourceCollection
|
listAllCustomerCards(String ownerId, String endingBefore, int limit, String startingAfter)
List all Customer Cards
Note that this is only available for Customers at this time, as Recipients (of Transfers) have been deprecated by Stripe.
|
CustomerCollection
|
listAllCustomers(int limit, String startingAfter, String endingBefore)
List all Customers
|
EventCollection
|
listAllEvents(String createdTimestamp, TimeRange created, String endingBefore, int limit, String startingAfter, String type)
List All Events
List events, going back up to 30 days.
|
PlanCollection
|
listAllPlans(ListAllPlansParameters listAllPlansParameters)
List All Plans
|
ChargeRefundCollection
|
listAllRefunds(String chargeId, String endingBefore, int limit, String startingAfter)
List All Refunds
You can see a list of the refunds belonging to a specific charge.
|
Invoice
|
payInvoice(String id)
Pay an invoice
|
Account
|
retrieveAccount(String id)
Retrieve an Account's Details
|
InvoiceCollection
|
retrieveAllInvoices(String customerId, String dateTimestamp, TimeRange date, String endingBefore, int limit, String startingAfter)
List all Invoices
|
ApplicationFee
|
retrieveApplicationFee(String id)
Retrieve an Application Fee
|
FeeRefund
|
retrieveApplicationFeeRefund(String id, String fee)
Retrieve an Application Fee Refund
By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee.
|
Balance
|
retrieveBalance()
Retrieve the balance
|
BalanceTransaction
|
retrieveBalanceTransaction(String id)
Retrieve a Balance Transaction
|
BitcoinReceiver
|
retrieveBitcoinReceiver(String id)
Retrieve a Bitcoin Receiver
Retrieves the Bitcoin receiver with the given ID.
|
Card
|
retrieveCard(String ownerId, String id)
Retrieve a Card
Note that this is only available for Customers at this time, as Recipients (of Transfers) have been deprecated by Stripe.
|
Charge
|
retrieveCharge(String id)
Retrieve a Charge
|
Coupon
|
retrieveCoupon(String id)
Retrieve a Coupon
|
Customer
|
retrieveCustomer(String id)
Retrieve a Customer
|
Event
|
retrieveEvent(String id)
Retrieve a Event
Retrieves the Event with the given ID
|
Invoice
|
retrieveInvoice(String id)
Retrieve an Invoice
|
InvoiceLineItemCollection
|
retrieveInvoiceLineItems(String id, String customer, String endingBefore, int limit, String startingAfter, String subscription)
Retrieve an invoice's line items
When retrieving an invoice, you'll get a lines property containing the total count of line items and the first handful of those items.
|
Plan
|
retrievePlan(String id)
Retrieve a Plan
|
Refund
|
retrieveRefund(String id, String chargeId)
Retrieve a Refund
By default, you can see the 10 most recent refunds stored directly on the charge object, but you can also retrieve details about a specific refund stored on the charge.
|
Subscription
|
retrieveSubscription(String customerId, String subscriptionId)
Retrieve a Subscription
|
Token
|
retrieveToken(String id)
Retrieve a Token
Retrieves the token with the given ID
|
Invoice
|
retrieveUpcomingInvoice(String customerId, String subscription)
Retrieve an upcoming invoice
At any time, you can preview the upcoming invoice for a customer.
|
void
|
setConnectionStrategy(ConnectorConnectionStrategy connectionStrategy)
|
Account
|
updateAccount(UpdateAccountParameters updateAccountParameters)
Update an Account
You may only update accounts that you manage.
|
FeeRefund
|
updateApplicationFeeRefund(String id, String fee, Map<String, Object> metadata)
Update an Application Fee Refund
Updates the specified application fee refund by setting the values of the parameters passed.
|
Card
|
updateCard(String ownerId, String id, String addressCity, String addressCountry, String addressLine1, String addressLine2, String addressState, String addressZip, String expMonth, String expYear, Map<String, Object> metadata, String cardName)
Update a Card
Note that this is only available for Customers at this time, as Recipients (of Transfers) have been deprecated by Stripe.
|
Charge
|
updateCharge(String id, String description, Map<String, Object> metadata, String receiptEmail, Map<String, String> fraudDetails)
Update a Charge
Updates the specified charge by setting the values of the parameters passed.
|
Coupon
|
updateCoupon(String id, Map<String, Object> metadata)
Update a Coupon
Updates the metadata of a coupon.
|
Customer
|
updateCustomer(String id, int accountBalance, String couponCode, String description, String email, Map<String, Object> metadata, String sourceToken)
Update a Customer.
|
Invoice
|
updateInvoice(String invoiceId, int applicationFee, boolean closed, String description, boolean forgiven, Map<String, Object> metadata, String statementDescriptor, double taxPercent)
Update an invoice
|
Plan
|
updatePlan(String id, String planName, String statementDescriptor, Map<String, Object> metadata)
Update a Plan
|
Refund
|
updateRefund(String id, String chargeId, Map<String, Object> metadata)
Update a Refund
Updates the specified refund by setting the values of the parameters passed.
|
Subscription
|
updateSubscription(UpdateSubscriptionParameters updateSubscriptionParameters)
Update a Subscription
Note that Stripe uses a specific policy around prorating changed subscriptions.
|