> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Recurly billing

> Observe Recurly billing resources and write subscriptions from your app.

Follow the [REST mount guide](https://docs.bijection.com/integrations/native-rest.md). Use one `providerEndpoint` and mount per mode at your site's regional origin, `https://api.recurly.com` or `https://api.eu.recurly.com`. Seal the Base64 value of the private API key followed by a colon as `Authorization` header auth with prefix `Basic `. Bind the receiver and the mount under the same protected `data` label.

| Provider mode | Path |
| - | - |
| `recurly.subscriptions.observations` | `/v2021-02-25/subscriptions` |
| `recurly.invoices.observations` | `/v2021-02-25/invoices` |
| `recurly.transactions.observations` | `/v2021-02-25/transactions` |

Initialize with `{ profile: { mode: "provider", provider, limit: 20 } }`. The source keys JSON by Recurly ID. It extracts only the opaque cursor from the next link and uses the installed route for each request. The next sweep starts over after `has_more` is false. Missing records remain landed. Each response supports up to 100 records and 36 KiB and requires the bundled parser artifact.

## Write subscriptions

Use `providerWriter` with `recurly.subscriptions.create-update` in `receivers.writers` under that mode. Bind the regional origin, a write-capable sealed Basic credential and the same protected label. Supply one Recurly subscription input object with existing billing information. For update, set the command's `id` to Recurly's subscription ID. The writer uses the versioned JSON media type.

The writer binds an exact caller command key to up to 24 KiB of JSON. Create accepts HTTP 200 or 201, and update accepts 200. Both require a subscription object ID, and an update requires the exact target ID. Commands perform no deletes and carry no read cursor.

[Recurly API versioning and pagination](https://docs.recurly.com/recurly-subscriptions/v2021-02-25/reference/getting-started-v2021-02-25)

Submit mode `recurly.subscriptions.cancel` through the existing subscription writer with `{ action: "cancelSubscription", id }`. It calls the versioned cancel endpoint. The once command accepts the matching subscription in `canceled` or `expired` state. Cancellation keeps the subscription record and carries no read cursor.

[Cancel a Recurly subscription](https://developers.recurly.com/api/v2021-02-25#operation/cancel_subscription)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.