Concepts

This section of the docs describes the components of the Rebilly product. In Rebilly, components are called resources. Use this section to understand how Rebilly works and to aid with your integration. This section is for a developer audience.

Resources

The following table describes the entity relationships between each resource in Rebilly.

Resource Relationship Resource
Customer 1 to many Payment instrument
Customer 0 to many Transactions
Payment instrument 0 to many Transactions
Customer 0 to many Order
Order 1 to many Invoice
Invoice many to many Transactions
Credit memo many to many Invoice
Credit memo many to many Transaction
Invoices & orders 1 to many Products & plans (as "items")
Product 1 to many Plans
Customer 1 to many Plans
Organization 1 to many Website

Extend resources

Use custom fields to extend a resource scheme to include a custom field. Include the data within your API requests. Rebilly validates, stores, and returns the data when you retrieve the resource.

Example: To record a customer's preferred communication channel.

Copy
Copied
{
    "customFields": {
        "preferredCommunicationChannel": "email"
    }
}

For more information, select from the following: