Billsby
App · 24 actions
Manage subscription customers, subscriptions, invoices and feature tags in Billsby.
Actions
| Action | What it does |
|---|---|
| Add feature tags | Add custom feature tags to one or more subscriptions, to switch features on in your product. |
| Cancel a subscription | Cancel a customer's subscription straight away. |
| Change a subscription's plan | Move a subscription to another plan and billing cycle, now or at its next renewal. |
| Create a customer | Create a customer without a subscription. |
| Create a one-time charge | Charge a customer once, outside their subscription. |
| Delete a customer | Delete a customer from Billsby. |
| Get a customer | Get a customer's details, address and payment totals. |
| Get a subscription | Get a subscription's plan, status, next billing date and amount. |
| Get an invoice | Get an invoice with its customer, amounts, taxes and line items. |
| List a customer's invoices | List the invoices of one customer. |
| List a customer's subscriptions | List the subscriptions of one customer. |
| List a product's plans | List the plans of a product, with their billing cycles and feature tags. |
| List a subscription's events | List the event log of a subscription: plan changes, payments, cancellations and more. |
| List a subscription's feature tags | List the feature tags on a subscription, from its plan and added by hand. |
| List credit notes | List the credit notes (refunds) across your Billsby account. |
| List customers | List the customers in your Billsby account, a page at a time, optionally searching by name. |
| List invoices | List the invoices across your Billsby account, optionally by status or a search. |
| List products | List the products in your Billsby account. |
| List subscriptions | List subscriptions, optionally only active ones, those in a free trial, or those on a product or plan. |
| Mark an invoice paid offline | Record that an unpaid invoice was paid outside Billsby, such as by bank transfer. |
| Remove a feature tag | Remove a custom feature tag from a subscription. |
| Update a customer | Change a customer's name, email, phone number or billing address. |
| Update a subscription's renewal date | Move a subscription's next renewal date, optionally pausing it until then. |
| Write off an invoice | Write off an unpaid invoice, so Billsby stops trying to collect it. |
Add feature tags
Add custom feature tags to one or more subscriptions, to switch features on in your product.
Inputs
- Subscriptions
subscription_unique_idslistRequired - The subscriptions to tag.
- Tags
tag_nameslistRequired - The feature tags to add, such as `pro-reports`.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"result": "example"
}
}Cancel a subscription
Cancel a customer's subscription straight away.
Inputs
- Subscription
subscription_unique_idtextRequired - The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
- Customer
customer_unique_idtextRequired - The customer the subscription belongs to.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"result": "example"
}
}Change a subscription's plan
Move a subscription to another plan and billing cycle, now or at its next renewal.
Inputs
- Subscription
subscription_unique_idtextRequired - The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
- Customer
customer_unique_idtextRequired - The customer the subscription belongs to.
- Product
product_idnumber - The product whose plans to choose from.
- Plan
plan_idnumberRequired - The plan to move to.
- Billing cycle
cycle_idnumberRequired - The billing cycle (price and frequency) of the new plan.
- When
whentext - When the change takes effect. Leave empty to change it now.One of:
Now,At next renewal. - Units
unitsnumber - How many units, for a cycle priced per unit.At least 1.
- Refund unused time
issue_refundtrue/false - For a change made now, credit the unused part of the current plan on the first invoice of the new one.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"result": "example"
}
}Create a customer
Create a customer without a subscription. Add a subscription to them later in Billsby or its checkout.
Inputs
- First name
first_nametextRequired - The customer's first name.
- Last name
last_nametextRequired - The customer's last name.
- Email
emailtextRequired - The customer's email address.
- Address line 1
address_line_1textRequired - Street address.
- Address line 2
address_line_2text - Apartment, suite or area.
- City
citytextRequired - City.
- State or region
statetextRequired - State, county or region. For a US address, the two-letter state code, such as `CA`.
- Country
countrytextRequired - Three-letter ISO country code, such as `USA`, `GBR` or `DEU`.
- Postcode
post_codetextRequired - Postcode or ZIP code.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"customerUniqueId": "example"
}
}Create a one-time charge
Charge a customer once, outside their subscription. Billsby raises an invoice and takes the payment from the card on file.
Inputs
- Customer
customer_unique_idtextRequired - The customer, by their Billsby customer ID (such as `6ZY37ULDEF`).
- Description
descriptiontextRequired - What the charge is for, shown on the invoice.
- Amount
amountnumberRequired - The amount in the currency's smallest unit, such as cents: `1000` charges 10.00.At least 1.
- Currency
currency_codetextRequired - Three-letter currency code, such as `USD`, `GBP` or `EUR`.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"result": "example"
}
}Delete a customer
Delete a customer from Billsby.
Inputs
- Customer
customer_unique_idtextRequired - The customer, by their Billsby customer ID (such as `6ZY37ULDEF`).
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"result": "example"
}
}Get a customer
Get a customer's details, address and payment totals.
Inputs
- Customer
customer_unique_idtextRequired - The customer, by their Billsby customer ID (such as `6ZY37ULDEF`).
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"additionalEmail": "example",
"averageAmountPerMonth": "example",
"billingAddress": {
"addressLine1": "example",
"addressLine2": "example",
"city": "example",
"country": "example",
"postCode": "example",
"state": "example"
},
"cardStatus": "example",
"companyCurrency": "example",
"createdOn": "example",
"customerUniqueId": "example",
"email": "example",
"firstName": "example",
"isMarketingConsentGiven": true,
"lastName": "example",
"phoneNumber": "example",
"phoneNumberDialCode": "example",
"phoneNumberDialCountry": "example",
"status": "example",
"totalAmountPaid": "example"
}
}Get a subscription
Get a subscription's plan, status, next billing date and amount.
Inputs
- Subscription
subscription_unique_idtextRequired - The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"contractMinimumTermEnd": "example",
"createdOn": "example",
"currency": "example",
"customerEmail": "example",
"customerFullname": "example",
"customerId": 1,
"customerUniqueId": "example",
"cycleId": 1,
"nextBillingAmount": 1,
"nextBillingAmountFormatted": "example",
"nextBillingDate": "example",
"planId": 1,
"planName": "example",
"planPricingModel": {},
"productId": 1,
"productName": "example",
"status": "example",
"subscriptionId": 1,
"subscriptionUniqueId": "example",
"totalRevenue": 1,
"totalRevenueFormatted": "example",
"units": 1
}
}Get an invoice
Get an invoice with its customer, amounts, taxes and line items.
Inputs
- Invoice number
invoice_numbertextRequired - The invoice number, such as `0WX1VTRPWY-1`.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"addressCity": "example",
"addressCountry": "example",
"addressLine1": "example",
"amount": "example",
"createdOn": "example",
"currency": "example",
"customerEmail": "example",
"customerFirstName": "example",
"customerLastName": "example",
"customerUniqueId": "example",
"formattedAmount": "example",
"invoiceId": "example",
"invoiceNumber": "example",
"invoiceType": "example",
"status": "example",
"subTotal": "example",
"subscriptions": [
{}
],
"taxTotal": "example",
"taxes": [
{}
]
}
}List a customer's invoices
List the invoices of one customer.
Inputs
- Customer
customer_unique_idtextRequired - The customer, by their Billsby customer ID (such as `6ZY37ULDEF`).
Outputs
datalist- The response from Billsby.
Example output
{
"data": [
{
"amount": 1,
"createdOn": "example",
"currency": "example",
"formattedAmount": "example",
"invoiceId": 1,
"invoiceNumber": "example",
"linkedTransactionsCount": 1,
"refundableAmount": 1,
"status": "example"
}
]
}List a customer's subscriptions
List the subscriptions of one customer.
Inputs
- Customer
customer_unique_idtextRequired - The customer, by their Billsby customer ID (such as `6ZY37ULDEF`).
Outputs
datalist- The response from Billsby.
Example output
{
"data": [
{
"createdOn": "example",
"currency": "example",
"nextBilling": "example",
"planId": 1,
"planName": "example",
"productId": 1,
"productName": "example",
"revenue": "example",
"status": "example",
"subscriptionId": "example",
"units": 1
}
]
}List a product's plans
List the plans of a product, with their billing cycles and feature tags.
Inputs
- Product
product_idnumberRequired - The product.
Outputs
datalist- The response from Billsby.
Example output
{
"data": [
{
"cycles": [
{
"cycleId": 1,
"planId": 1,
"pricingModel": {},
"visibility": "example"
}
],
"description": "example",
"displayName": "example",
"featureTags": [
"example"
],
"hasActiveSubscription": true,
"name": "example",
"planId": 1,
"pricingModelType": 1,
"productId": 1,
"visibility": "example"
}
]
}List a subscription's events
List the event log of a subscription: plan changes, payments, cancellations and more.
Inputs
- Subscription
subscription_unique_idtextRequired - The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Results per page
page_sizenumber - How many results per page, up to 100. Leave empty for 50.From 1 to 100.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"currentPage": 1,
"pageCount": 1,
"pageSize": 1,
"results": [
{
"createdOn": "example",
"eventData": {},
"subscriptionEventLogId": 1,
"type": "example"
}
],
"rowCount": 1
}
}List a subscription's feature tags
List the feature tags on a subscription, from its plan and added by hand.
Inputs
- Subscription
subscription_unique_idtextRequired - The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
Outputs
datalist- The response from Billsby.
Example output
{
"data": [
"example"
]
}List credit notes
List the credit notes (refunds) across your Billsby account.
Inputs
- Search
searchtext - Only credit notes matching this text.
- Status
statustext - Only credit notes with this status.One of:
Pending,Paid,Failed. - Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Results per page
page_sizenumber - How many results per page, up to 100. Leave empty for 50.From 1 to 100.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"currentPage": 1,
"pageCount": 1,
"pageSize": 1,
"results": [
{
"amount": "example",
"createdOn": "example",
"creditNoteId": 1,
"creditNoteUniqueId": "example",
"currency": "example",
"customerFirstName": "example",
"customerFullName": "example",
"customerId": 1,
"customerLastName": "example",
"customerUniqueId": "example",
"status": "example"
}
],
"rowCount": 1
}
}List customers
List the customers in your Billsby account, a page at a time, optionally searching by name.
Inputs
- Search
searchtext - Only customers whose name contains this text.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Results per page
page_sizenumber - How many results per page, up to 100. Leave empty for 50.From 1 to 100.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"currentPage": 1,
"pageCount": 1,
"pageSize": 1,
"results": [
{
"billingAddress": {
"addressLine1": "example",
"addressLine2": "example",
"city": "example",
"country": "example",
"postCode": "example",
"state": "example"
},
"createdOn": "example",
"customerUniqueId": "example",
"email": "example",
"firstName": "example",
"lastName": "example",
"phoneNumber": "example",
"status": "example"
}
],
"rowCount": 1
}
}List invoices
List the invoices across your Billsby account, optionally by status or a search.
Inputs
- Search
searchtext - Only invoices matching this text, such as a customer name or invoice number.
- Status
statustext - Only invoices with this status.One of:
Pending,Paid,Unpaid,Paid offline,Written off. - Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Results per page
page_sizenumber - How many results per page, up to 100. Leave empty for 50.From 1 to 100.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"currentPage": 1,
"pageCount": 1,
"pageSize": 1,
"results": [
{
"amount": 1,
"createdOn": "example",
"currency": "example",
"customerFirstName": "example",
"customerFullName": "example",
"customerId": 1,
"customerLastName": "example",
"customerUniqueId": "example",
"formattedAmount": "example",
"invoiceId": 1,
"invoiceNumber": "example",
"status": "example"
}
],
"rowCount": 1
}
}List products
List the products in your Billsby account.
Inputs
- Search
searchtext - Only products whose name contains this text.
- Visibility
visibilitytext - Only products with this visibility.One of:
Public,Hidden,Internal,Off sale. - Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Results per page
page_sizenumber - How many results per page, up to 100. Leave empty for 50.From 1 to 100.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"currentPage": 1,
"pageCount": 1,
"pageSize": 1,
"results": [
{
"alertEmail": "example",
"billingCurrency": "example",
"description": "example",
"displayName": "example",
"hasPlans": true,
"name": "example",
"numberOfPlans": 1,
"productId": 1,
"visibility": 1
}
],
"rowCount": 1
}
}List subscriptions
List subscriptions, optionally only active ones, those in a free trial, or those on a product or plan.
Inputs
- Active only
is_activetrue/false - Only active subscriptions.
- In free trial only
is_in_free_trialtrue/false - Only subscriptions in a free trial.
- Product name
product_nametext - Only subscriptions to products with this name.
- Plan name
plan_nametext - Only subscriptions on plans with this name.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Results per page
page_sizenumber - How many results per page, up to 100. Leave empty for 50.From 1 to 100.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"currentPage": 1,
"pageCount": 1,
"pageSize": 1,
"results": [
{
"createdOn": "example",
"customerEmail": "example",
"customerFullname": "example",
"customerId": 1,
"customerUniqueId": "example",
"isInFreeTrial": true,
"planId": "example",
"planName": "example",
"productId": "example",
"productName": "example",
"status": "example",
"subscriptionId": 1,
"subscriptionUniqueId": "example"
}
],
"rowCount": 1
}
}Mark an invoice paid offline
Record that an unpaid invoice was paid outside Billsby, such as by bank transfer.
Inputs
- Invoice number
invoice_numbertextRequired - The invoice number, such as `0WX1VTRPWY-1`.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"result": "example"
}
}Remove a feature tag
Remove a custom feature tag from a subscription.
Inputs
- Tag
tag_nametextRequired - The feature tag to remove.
- Subscription
subscription_unique_idtextRequired - The subscription to remove it from.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"result": "example"
}
}Update a customer
Change a customer's name, email, phone number or billing address. Fields left empty keep their current value.
Inputs
- Customer
customer_unique_idtextRequired - The customer, by their Billsby customer ID (such as `6ZY37ULDEF`).
- First name
first_nametext - New first name.
- Last name
last_nametext - New last name.
- Email
emailtext - New email address.
- Phone country
phone_dial_countrytext - The country of the phone number, such as `UK` or `US`.
- Phone dialing code
phone_dial_codetext - The phone number's dialing code, such as `+44`.
- Phone number
phone_numbertext - The phone number, without the leading 0.
- Address line 1
address_line_1text - Street address.
- Address line 2
address_line_2text - Apartment, suite or area.
- City
citytext - City.
- State or region
statetext - State, county or region. For a US address, the two-letter state code, such as `CA`.
- Country
countrytext - Three-letter ISO country code, such as `USA`, `GBR` or `DEU`.
- Postcode
post_codetext - Postcode or ZIP code.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"additionalEmail": "example",
"averageAmountPerMonth": "example",
"billingAddress": {
"addressLine1": "example",
"addressLine2": "example",
"city": "example",
"country": "example",
"postCode": "example",
"state": "example"
},
"cardStatus": "example",
"companyCurrency": "example",
"createdOn": "example",
"customerUniqueId": "example",
"email": "example",
"firstName": "example",
"isMarketingConsentGiven": true,
"lastName": "example",
"phoneNumber": "example",
"phoneNumberDialCode": "example",
"phoneNumberDialCountry": "example",
"status": "example",
"totalAmountPaid": "example"
}
}Update a subscription's renewal date
Move a subscription's next renewal date, optionally pausing it until then.
Inputs
- Subscription
subscription_unique_idtextRequired - The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
- Next renewal date
new_renewal_datedateRequired - The new next renewal date.
- Pause until then
pause_subscriptiontrue/false - Pause the subscription until the new renewal date.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {}
}Write off an invoice
Write off an unpaid invoice, so Billsby stops trying to collect it.
Inputs
- Invoice number
invoice_numbertextRequired - The invoice number, such as `0WX1VTRPWY-1`.
Outputs
dataobject- The response from Billsby.
Example output
{
"data": {
"result": "example"
}
}