Billsby

App · 24 actions

Manage subscription customers, subscriptions, invoices and feature tags in Billsby.

Actions

ActionWhat it does
Add feature tagsAdd custom feature tags to one or more subscriptions, to switch features on in your product.
Cancel a subscriptionCancel a customer's subscription straight away.
Change a subscription's planMove a subscription to another plan and billing cycle, now or at its next renewal.
Create a customerCreate a customer without a subscription.
Create a one-time chargeCharge a customer once, outside their subscription.
Delete a customerDelete a customer from Billsby.
Get a customerGet a customer's details, address and payment totals.
Get a subscriptionGet a subscription's plan, status, next billing date and amount.
Get an invoiceGet an invoice with its customer, amounts, taxes and line items.
List a customer's invoicesList the invoices of one customer.
List a customer's subscriptionsList the subscriptions of one customer.
List a product's plansList the plans of a product, with their billing cycles and feature tags.
List a subscription's eventsList the event log of a subscription: plan changes, payments, cancellations and more.
List a subscription's feature tagsList the feature tags on a subscription, from its plan and added by hand.
List credit notesList the credit notes (refunds) across your Billsby account.
List customersList the customers in your Billsby account, a page at a time, optionally searching by name.
List invoicesList the invoices across your Billsby account, optionally by status or a search.
List productsList the products in your Billsby account.
List subscriptionsList subscriptions, optionally only active ones, those in a free trial, or those on a product or plan.
Mark an invoice paid offlineRecord that an unpaid invoice was paid outside Billsby, such as by bank transfer.
Remove a feature tagRemove a custom feature tag from a subscription.
Update a customerChange a customer's name, email, phone number or billing address.
Update a subscription's renewal dateMove a subscription's next renewal date, optionally pausing it until then.
Write off an invoiceWrite 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

Subscriptionssubscription_unique_idslistRequired
The subscriptions to tag.
Tagstag_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

Subscriptionsubscription_unique_idtextRequired
The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
Customercustomer_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

Subscriptionsubscription_unique_idtextRequired
The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
Customercustomer_unique_idtextRequired
The customer the subscription belongs to.
Productproduct_idnumber
The product whose plans to choose from.
Planplan_idnumberRequired
The plan to move to.
Billing cyclecycle_idnumberRequired
The billing cycle (price and frequency) of the new plan.
Whenwhentext
When the change takes effect. Leave empty to change it now.One of: Now, At next renewal.
Unitsunitsnumber
How many units, for a cycle priced per unit.At least 1.
Refund unused timeissue_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 namefirst_nametextRequired
The customer's first name.
Last namelast_nametextRequired
The customer's last name.
EmailemailtextRequired
The customer's email address.
Address line 1address_line_1textRequired
Street address.
Address line 2address_line_2text
Apartment, suite or area.
CitycitytextRequired
City.
State or regionstatetextRequired
State, county or region. For a US address, the two-letter state code, such as `CA`.
CountrycountrytextRequired
Three-letter ISO country code, such as `USA`, `GBR` or `DEU`.
Postcodepost_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

Customercustomer_unique_idtextRequired
The customer, by their Billsby customer ID (such as `6ZY37ULDEF`).
DescriptiondescriptiontextRequired
What the charge is for, shown on the invoice.
AmountamountnumberRequired
The amount in the currency's smallest unit, such as cents: `1000` charges 10.00.At least 1.
Currencycurrency_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

Customercustomer_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

Customercustomer_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

Subscriptionsubscription_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 numberinvoice_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

Customercustomer_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

Customercustomer_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

Productproduct_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

Subscriptionsubscription_unique_idtextRequired
The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
Pagepagenumber
Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
Results per pagepage_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

Subscriptionsubscription_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

Searchsearchtext
Only credit notes matching this text.
Statusstatustext
Only credit notes with this status.One of: Pending, Paid, Failed.
Pagepagenumber
Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
Results per pagepage_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

Searchsearchtext
Only customers whose name contains this text.
Pagepagenumber
Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
Results per pagepage_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

Searchsearchtext
Only invoices matching this text, such as a customer name or invoice number.
Statusstatustext
Only invoices with this status.One of: Pending, Paid, Unpaid, Paid offline, Written off.
Pagepagenumber
Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
Results per pagepage_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

Searchsearchtext
Only products whose name contains this text.
Visibilityvisibilitytext
Only products with this visibility.One of: Public, Hidden, Internal, Off sale.
Pagepagenumber
Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
Results per pagepage_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 onlyis_activetrue/false
Only active subscriptions.
In free trial onlyis_in_free_trialtrue/false
Only subscriptions in a free trial.
Product nameproduct_nametext
Only subscriptions to products with this name.
Plan nameplan_nametext
Only subscriptions on plans with this name.
Pagepagenumber
Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
Results per pagepage_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 numberinvoice_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

Tagtag_nametextRequired
The feature tag to remove.
Subscriptionsubscription_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

Customercustomer_unique_idtextRequired
The customer, by their Billsby customer ID (such as `6ZY37ULDEF`).
First namefirst_nametext
New first name.
Last namelast_nametext
New last name.
Emailemailtext
New email address.
Phone countryphone_dial_countrytext
The country of the phone number, such as `UK` or `US`.
Phone dialing codephone_dial_codetext
The phone number's dialing code, such as `+44`.
Phone numberphone_numbertext
The phone number, without the leading 0.
Address line 1address_line_1text
Street address.
Address line 2address_line_2text
Apartment, suite or area.
Citycitytext
City.
State or regionstatetext
State, county or region. For a US address, the two-letter state code, such as `CA`.
Countrycountrytext
Three-letter ISO country code, such as `USA`, `GBR` or `DEU`.
Postcodepost_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

Subscriptionsubscription_unique_idtextRequired
The subscription, by its Billsby subscription ID (such as `Y7MX4G314L`).
Next renewal datenew_renewal_datedateRequired
The new next renewal date.
Pause until thenpause_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 numberinvoice_numbertextRequired
The invoice number, such as `0WX1VTRPWY-1`.

Outputs

dataobject
The response from Billsby.
Example output
{
  "data": {
    "result": "example"
  }
}

On this page