Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
REBILLIA_API_KEYYesRequired API key for Rebillia Public API, used as X-AUTH-TOKEN for all requests. Obtain from Rebillia dashboard.
REBILLIA_API_URLNoOptional base URL for the Rebillia API, defaults to https://api.rebillia.com/v1 (include /v1 for Public API).https://api.rebillia.com/v1

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_customersC

List customers with optional query parameters for filtering and pagination. GET /customers. See https://apiguide.rebillia.com/ for the Public API.

get_customerA

Get a specific customer by ID. GET /customers/{customerId}. Optional include supports: addressbook, paymentmethod, lastInvoice, subscriptions, unpaidInvoices, externalCustomers.

create_customerA

Create a new customer. POST /customers. Required: firstName, lastName, email. Optional: businessName, locale, phoneNum, phoneExt, preferredCurrency, taxExempt.

update_customerA

Update an existing customer. PUT /customers/{customerId}. Required: customerId. Optional: firstName, lastName, email, businessName, locale, phoneNum, phoneExt, preferredCurrency, taxExempt, status (active|disabled|archived).

delete_customerA

Delete a customer by ID. DELETE /customers/{customerId}. WARNING: Cascading delete may remove or orphan related data (addresses, payment methods, subscriptions, invoices, etc.). Use with caution.

get_customer_invoicesA

List invoices for a customer. GET /customers/{customerId}/invoices. Supports pagination (pageNo, itemPerPage), include (e.g. detail, transactions), status (authorized|posted|canceled|partialPaid|paid|voided|refund|partialRefund), dateFrom, dateTo, and subscriptionId.

get_customer_unpaid_invoicesA

List unpaid invoices for a customer. GET /customers/{customerId}/invoices/unpaid. Supports pagination (pageNo, itemPerPage).

get_customer_subscriptionsA

List subscriptions for a customer. GET /customers/{customerId}/subscriptions. Supports pagination and include (e.g. rateplan, rateplanCharge).

get_customer_logsA

List activity logs for a customer. GET /customers/{customerId}/logs. Returns paginated log entries.

list_customer_addressesA

List all address book entries for a customer. GET /customers/{customerId}/addressbooks. Optional: pageNo, itemPerPage.

get_customer_addressA

Get a single address book entry by ID. GET /customers/{customerId}/addressbooks/{addressId}.

create_customer_addressB

Create an address book entry for a customer. POST /customers/{customerId}/addressbooks. Required: name, contactName, street1, city, state, zip, countryCode (ISO 3166-1 alpha-2), type (residential or commercial). Optional: street2, company, contactEmail, contactPhone.

update_customer_addressA

Update an address book entry (partial update). PUT /customers/{customerId}/addressbooks/{addressId}. Only explicitly provided fields are modified; omitted fields are kept from the existing address record.

delete_customer_addressB

Delete an address book entry. DELETE /customers/{customerId}/addressbooks/{addressId}.

list_customer_payment_methodsA

List all payment methods for a customer. GET /customers/{customerId}/paymentmethods. Optional: pageNo, itemPerPage.

get_customer_payment_methodA

Get a single payment method by ID. GET /customers/{customerId}/paymentmethods/{paymentMethodId}.

create_customer_payment_methodA

Create a payment method for a customer. Gateway-agnostic: required companyGatewayId, type (card or ach), paymentMethodNonce, billingAddress (countryCode, street1, city, state, zip). Obtain gateway client credential via get_client_token; use your payment integration to produce paymentMethodNonce, then call this tool. No raw card data or gateway-specific fields in MCP.

update_customer_payment_methodA

Update a payment method's billing address (gateway-agnostic). PUT /customers/{customerId}/paymentmethods/{paymentMethodId}. Required: customerId, paymentMethodId, billingAddress (countryCode, street1, city, state, zip). Optional: street2. No payment or gateway-specific fields.

delete_customer_payment_methodB

Delete a payment method. DELETE /customers/{customerId}/paymentmethods/{paymentMethodId}.

list_customer_charges_creditsA

List charges and credits for a customer. GET /customers/{customerId}/charges_credits. Optional filters: status, type (charge or credit).

create_customer_charge_creditA

Create a charge or credit for a customer. POST /customers/{customerId}/charges_credits. IMPORTANT: amount is in CENTS (e.g. 10000 = $100.00). Required: amount (integer, in cents), type (charge or credit), companyCurrencyId, category (physical or digital). Optional: description, qty (default 1), isFreeShipping, taxable, weight (required by API when category is physical).

delete_customer_charge_creditA

Delete a charge or credit for a customer. DELETE /customers/{customerId}/charges_credits/{chargeCreditId}. Fails if the charge/credit has invoice details assigned.

list_productsB

List products. GET /products. Optional: include (productRateplan, productRateplanCharge, chargeTier), status (published|draft|archived|disabled), name, category (baseProducts|addOn|bundleProduct|miscellaneous|service), orderBy, sortBy (ASC/DESC), itemPerPage, pageNo.

get_productA

Get a product by ID. GET /products/{productId}. Optional: include.

create_productB

Create a product. POST /products. Required: name, category. Optional: description, internalProductId, sku.

update_productB

Update a product. PUT /products/{productId}. Optional: name, category, description, internalProductId, sku.

delete_productA

Delete a product. DELETE /products/{productId}. Warning: This also deletes associated rate plans and related data (cascading deletion).

update_product_statusB

Update a product status. PUT /products/{productId}/status. Required: status. Valid values: published, archived, disabled.

link_external_productB

Link an external product to a product. POST /products/{productId}/external-products. Required: companyIntegrationId, productId (external), settings with modifierDisplayName.

unlink_external_productB

Unlink an external product from a product. DELETE /products/{productId}/external-products/{externalProductId}.

list_product_rate_plansA

List product rate plans for a product. GET /products/{productId}/product-rateplans. Product reference: productId (URI: /products/{productId}). Optional: include, orderBy, sortBy, pageNo, itemPerPage.

get_product_rate_planB

Get a rate plan by ID. GET /product-rateplans/{ratePlanId}. Rate plan reference: ratePlanId (URI: /product-rateplans/{ratePlanId}).

create_product_rate_planC

Create a rate plan. POST /product-rateplans. Required: productId (product reference, URI: /products/{productId}), name, type (contract|ongoing|prepaid). Optional: description, effectiveStartDate, effectiveEndDate, minimumCommitment, image.

update_product_rate_planB

Update a rate plan. PUT /product-rateplans/{ratePlanId}. Optional: name, type (contract|ongoing|prepaid), description, effectiveStartDate, effectiveEndDate, image.

delete_product_rate_planB

Delete a rate plan. DELETE /product-rateplans/{ratePlanId}.

update_product_rate_plan_statusB

Update a rate plan status. PUT /product-rateplans/{ratePlanId}/status. Required: status. Valid values: published, archived, disabled, discontinue.

sync_product_rate_planB

Sync a rate plan. POST /product-rateplans/{ratePlanId}/sync.

list_product_rate_plan_chargesA

List product rate plan charges for a product rate plan. GET /product-rateplans/{ratePlanId}/product-rateplan-charges. Product rate plan reference: ratePlanId (URI: /product-rateplans/{ratePlanId}). Optional: include, orderBy, sortBy, pageNo, itemPerPage.

get_product_rate_plan_chargeB

Get a rate plan charge by ID. GET /product-rateplan-charges/{chargeId}.

create_product_rate_plan_chargeB

Create a rate plan charge. POST /product-rateplan-charges. Required: ratePlanId (rate plan reference, URI: /product-rateplans/{ratePlanId}), name, chargeType (oneTime|recurring|usage), chargeModel (flatFeePricing|perUnitPricing|tieredPricing|volumePricing), billCycleType, category (physical|digital), chargeTier (array of {currency ex. 'USD', price in cents, optional startingUnit, endingUnit, priceFormat, tier}), taxable, weight. Optional: billingPeriod (day|week|month|year), billingTiming (inAdvance|inArrears), description, etc.

update_product_rate_plan_chargeA

Update a product rate plan charge. PUT /product-rateplan-charges/{chargeId}. You can send only the fields you want to change (e.g. chargeTier with new price); the tool fetches the current charge and merges your input so the backend receives all required fields. Validates in MCP before calling the API. Optional inputs: name, chargeType, chargeModel, billCycleType, category, chargeTier (currency, price as dollars e.g. 22.87 or cents e.g. 2287), taxable, weight, endDateCondition, billingPeriod, billingTiming, billingPeriodAlignment, specificBillingPeriod, billCycleDay (1-31 when billCycleType specificDayOfMonth), weeklyBillCycleDay (when specificDayOfWeek), monthlyBillCycleYear (1-12 when specificMonthOfYear). When chargeType is recurring, billingPeriod, specificBillingPeriod, billingPeriodAlignment, billingTiming are required.

delete_product_rate_plan_chargeB

Delete a rate plan charge. DELETE /product-rateplan-charges/{chargeId}.

list_subscriptionsA

List subscriptions. GET /subscriptions. Optional: include, query, orderBy, sortBy, filterId, status (exact status), customerId (customer id), companyGatewayId (subscription company gateway id), dateFrom/dateTo (createdAt range; dateFrom from 00:00:00, dateTo through 23:59:59; invalid dates are ignored), itemPerPage, pageNo. Examples: /v1/subscriptions?status=active ; /v1/subscriptions?customerId=123&companyGatewayId=8 ; /v1/subscriptions?dateFrom=2026-01-01&dateTo=2026-01-31 ; /v1/subscriptions?status=paused&customerId=123&dateFrom=2026-01-01&dateTo=2026-01-31.

get_subscriptionB

Get a subscription by ID. GET /subscriptions/{subscriptionId}. Optional: include.

create_subscriptionB

Create a subscription from a product rate plan. POST /subscriptions/from-product-rateplan. Required: productRatePlanId, customerId, customerPaymentMethodId, billingAddressId, effectiveStartDate.

update_subscriptionC

Update a subscription. PUT /subscriptions/{subscriptionId}. Optional: name, companyCurrencyId, companyGatewayId, customerPaymentMethodId, detail, effectiveStartDate, billingAddressId, shippingAddressId.

delete_subscriptionA

Delete a subscription. DELETE /subscriptions/{subscriptionId}. Warning: Prefer changing status to archived (update_subscription_status) instead of deleting when you want to end a subscription without removing it from records.

update_subscription_statusA

Update a subscription status. PUT /subscriptions/{subscriptionId}/status. Required: status. Meanings: active – subscription is active and billing; paused – subscription is temporarily paused (no billing); archived – subscription is ended/archived (use instead of delete when ending); requestPayment – subscription is awaiting payment method or payment.

get_subscription_upcoming_chargesB

View all upcoming charges for a subscription. GET /subscriptions/{subscriptionId}/upcoming. Returns scheduled charges (recurring, one-time, usage) with amounts and dates. Optional: include.

get_subscription_invoicesA

List invoices for a subscription. GET /subscriptions/{subscriptionId}/invoices. Returns paginated invoices. Use include for line-item detail and transactions (e.g. include=detail,transactions).

get_subscription_logsA

Get activity history for a subscription. GET /subscriptions/{subscriptionId}/logs. Returns paginated log entries (status changes, renewals, payments, etc.).

get_subscription_external_invoicesA

List e-commerce orders (external invoices) linked to a subscription. GET /subscriptions/{subscriptionId}/external-invoices. Returns paginated external invoice records. Optional: include, pageNo, itemPerPage.

list_subscription_rate_plansA

List rate plans on a subscription. GET /subscriptions/{subscriptionId}/rateplans. Returns paginated rate plans (product rate plan ref, name, type, effectiveStartDate, charges when included). Optional: include, pageNo, itemPerPage, orderBy, sortBy, status (active|pause|cancel|archived), type (ongoing|prepaid|contract). status/type filters are case-insensitive.

get_subscription_rate_planA

Get a single rate plan on a subscription. GET /subscriptions/{subscriptionId}/rateplans/{ratePlanId}.

add_subscription_rate_planB

Add a rate plan to a subscription. POST /subscriptions/{subscriptionId}/rateplans. Required: productRatePlanId (product rate plan to attach). Optional: name, type (contract|ongoing|prepaid), effectiveStartDate, changeStatusBasedOnCharge, ratePlanCharge (array of {quantity, optional productRatePlanChargeId, or name, chargeType, chargeTier, etc.).

update_subscription_rate_planB

Update a rate plan on a subscription. PUT /subscriptions/{subscriptionId}/rateplans/{ratePlanId}. Optional: name, type (contract|ongoing|prepaid), effectiveStartDate, changeStatusBasedOnCharge.

remove_subscription_rate_planA

Remove a rate plan from a subscription. DELETE /subscriptions/{subscriptionId}/rateplans/{ratePlanId}.

get_subscription_rate_plan_chargeB

Get a single rate plan charge on a subscription. GET /subscriptions/{subscriptionId}/rateplan-charges/{chargeId}.

add_subscription_rate_plan_chargeB

Add a rate plan charge to a subscription rate plan. POST .../rateplan-charges. Required: subscriptionId, ratePlanId, quantity, name, category (physical|digital), chargeModel (flatFeePricing|perUnitPricing|tieredPricing|volumePricing), billCycleType (chargeTriggerDay|defaultFromCustomer|specificDayOfMonth|specificDayOfWeek|specificMonthOfYear|subscriptionStartDay|subscriptionFreeTrial), chargeTier array (each: currency, price required; optional startingUnit, endingUnit, priceFormat, tier), chargeType (oneTime|recurring|usage), endDateCondition (subscriptionEnd|fixedPeriod), taxable (boolean), weight. When chargeType is recurring, billingPeriodAlignment and specificBillingPeriod are also required. Optional: productRatePlanChargeId, billingPeriod, billingTiming.

update_subscription_rate_plan_chargeA

Update a rate plan charge on a subscription. PUT /subscriptions/{subscriptionId}/rateplan-charges/{chargeId}. Required: subscriptionId, chargeId, quantity, name, chargeModel (flatFeePricing|perUnitPricing|tieredPricing|volumePricing), billCycleType, chargeTier (array: currency, price required). For price, you can pass a string dollars '41.00' or integer cents 4100 – the tool always sends cents to the API (same logic as create_invoice detail.amount). Also required: chargeType (oneTime|recurring|usage), endDateCondition (subscriptionEnd|fixedPeriod), taxable (boolean), weight. When chargeType is recurring, billingPeriodAlignment is also required. Optional: billingPeriod, billingTiming, specificBillingPeriod.

remove_subscription_rate_plan_chargeB

Remove a rate plan charge from a subscription. DELETE /subscriptions/{subscriptionId}/rateplan-charges/{chargeId}.

list_invoicesB

List invoices. GET /invoices. Optional: include (detail, transactions, billruns, externalInvoices), status, query, orderBy, sortBy, filterId, itemPerPage, pageNo.

get_invoiceA

Get an invoice by ID. GET /invoices/{invoiceId}. Optional: include.

create_invoiceA

Create an invoice. POST /invoices. Required: companyCurrencyId, companyGatewayId, customerId, paymentMethodId, detail (array, at least one line item), dateDue, dateFrom, dateTo. Optional: billingAddress, shippingAddress (when provided: contactName, street1, city, zip, countryCode (ISO 3166-1 alpha-2), type residential|commercial), customerEmail (max 45), customerName (max 45), customerPhone (max 45), paymentType (offlinePaymentProvider|thirdPartyPaymentProvider|walletPaymentProvider|otherPayment), shippingAmount (CENTS), terms (max 200), comments (max 200). Detail: amount can be '41.00' (dollars) or 4100 (cents). Tool always sends cents to publicAPI.

update_invoiceA

Update an invoice. PUT /invoices/{invoiceId}. Only invoices with status 'posted' or 'requestPayment' can be updated. All body fields optional. Accepted: companyGatewayId, customerId, customerEmail, customerName, customerPhone (max 45), customerPaymentMethodId, dateDue, dateFrom, dateTo, comments, paymentType (offlinePaymentProvider|thirdPartyPaymentProvider|walletPaymentProvider), paymentMethodId, shippingAddress (when provided: contactName, street1, city, zip, countryCode (ISO 3166-1 alpha-2), type residential|commercial), shippingAmount (cents), shippingServiceId, detail (line items: amount as '41.00' dollars or 4100 cents; tool sends cents). Note: billingAddress is not accepted on update. Invoice must have customer and customerPaymentMethod set to avoid server error.

delete_invoiceC

Delete an invoice. DELETE /invoices/{invoiceId}.

charge_invoiceA

Charge an invoice (card/online payment). POST /invoices/{invoiceId}/charge. AMOUNT IN CENTS: e.g. 5500 = $55.00. Required: invoiceId, amount (integer cents), paymentType (offlinePaymentProvider | thirdPartyPaymentProvider | walletPaymentProvider | otherPayment). Use thirdPartyPaymentProvider for card/online.

charge_invoice_externalA

Charge an invoice via offline payment (cash/check/wire). POST /invoices/{invoiceId}/charge with paymentType: offlinePaymentProvider. AMOUNT IN CENTS: e.g. 5500 = $55.00. Required: invoiceId, amount (integer cents).

void_invoiceA

Void an invoice. PUT /invoices/{invoiceId}/void. CRITICAL: This action is IRREVERSIBLE. Use with caution.

list_transactionsB

List transactions. GET /transactions. Optional: customerId, invoiceId, status (settled|authorized|declined|error|voided|requiresPaymentMethod|awaitingForSettlement|authorizeAndHold), type (sale|refund), dateFrom, dateTo, companyGatewayId, orderBy, sortBy, itemPerPage, pageNo.

get_transactionA

Get a transaction by ID. GET /transactions/{transactionId}.

refund_transactionB

Refund a transaction. POST /transactions/{transactionId}/refund. AMOUNT IN CENTS: e.g. 250 = $2.50, 5500 = $55.00. Required: transactionId, amount (integer cents).

void_transactionA

Void a transaction. POST /transactions/{transactionId}/void. Only works before settlement; after settlement use refund_transaction instead.

list_bill_runsA

List bill runs. GET /bill-run. Optional: include (e.g. invoice), query (filter by status: completed, pending, error), orderBy, sortBy, itemPerPage, pageNo.

get_bill_runA

Get a bill run by ID. GET /bill-run/{billRunId}.

update_bill_runA

Update a bill run. PUT /bill-run/{billRunId}. Required: billRunId, newDateTime. Use ISO 8601: YYYY-MM-DDTHH:MM:SS or with timezone (e.g. 2026-02-26T20:05:00Z). If no timezone, Z (UTC) is appended. Note: this tool only works on bill runs with status pending. Calls against completed or error runs will fail.

get_bill_run_invoicesA

Get invoices for a bill run. GET /bill-run/{billRunId}/invoices. Returns paginated invoices. Optional: pageNo, itemPerPage.

list_global_gatewaysA

List available global gateway types (e.g. Stripe, Braintree). GET /globals/gateways. Returns gblGatewayId, name, keyName, requiredFields (setting keys), and fieldDetails (keyName + displayName). Use this before create_gateway to discover valid gblGatewayId and which keys to pass in the setting object.

list_gatewaysB

List company gateways. GET /gateways. Optional: status (filter by active, disabled, error, archive), companyCurrencyId, include.

get_gatewayA

Get a company gateway by ID. GET /gateways/{gatewayId}.

get_client_tokenA

Get the gateway client credential to initialize your payment integration and produce a paymentMethodNonce. Use the returned value in your hosted payment UI; then pass the resulting token as paymentMethodNonce to create_customer_payment_method. Gateway-agnostic: no gateway-specific concepts in MCP. Optional customerId scopes the credential to a customer (e.g. for vault). Required for PayFabric; optional for others. Requires company API token (X-AUTH-TOKEN).

create_setup_intentA

Create or retrieve a setup intent via the gateway endpoint. Use only as part of a gateway-agnostic payment method flow: the returned setupIntent.id can be used as paymentMethodNonce for create_customer_payment_method. No raw card data.

create_gatewayA

Create a company gateway. POST /gateways. Required: gblGatewayId, setting (credentials object). Optional: displayName, card (array of card type IDs), paymentMethod. Use list_global_gateways first to discover valid gblGatewayId and required setting keys (requiredFields / fieldDetails) for each gateway type (e.g. Stripe, Braintree); then build setting with those keys as field names and your credential values.

update_gatewayB

Update a company gateway. PUT /gateways/{gatewayId}. Optional: displayName, setting (credentials key-value object).

delete_gatewayA

Delete a company gateway. DELETE /gateways/{gatewayId}. Fails if gateway is linked to company currencies or customers.

test_gatewayA

Test gateway connection. GET /gateways/{gatewayId}/test. Returns the gateway object with connection status (e.g. status active on success).

list_currenciesB

List company currencies. GET /currencies. Optional: include, itemPerPage, pageNo.

get_currencyB

Get a company currency by ID. GET /currencies/{currencyId}.

create_currencyB

Create a company currency. POST /currencies. Required: currencyId (global currency ID), conversionRate (number), fixedRate (boolean).

update_currencyB

Update a company currency. PUT /currencies/{companyCurrencyId}. Required: companyCurrencyId, conversionRate, fixedRate.

delete_currencyA

Delete a company currency. DELETE /currencies/{companyCurrencyId}. Fails if currency is in use (invoices, subscriptions, transactions, or gateways).

get_default_currencyA

Get the company default currency. GET /currencies/default.

set_default_currencyA

Set the company default currency. POST /currencies/default. Required: currencyId (global currency ID). Creates company currency if needed. Fails if there are invoices with that currency.

list_integrationsB

List company integrations. GET /integrations. Optional: type (ecommerce, email, marketing, tax, shipping, accounting, chat).

get_integration_configB

Get company integration config by ID. GET /integrations/{integrationId}/config.

get_integration_by_keyB

Get global integration info by key name. GET /integrations/{keyName}/get. keyName: avalara, bigcommerce, customRate, fedex, flatRate, freeShipping, freshBooksCloudAccounting, google, mailchimp, monsoonStoneEdge, myob, pickupInStore, quickbooks, saasu, salesforce, shipBy, shipperHq, shippingZone, shopify, slack, smtp, taxamo, thomsonreuters, ups, upsShippingProtection, usps, vertex, xero.

list_integrations_by_keyA

List company integrations by key name. GET /integrations/{keyName}/list. keyName: avalara, bigcommerce, customRate, fedex, flatRate, freeShipping, freshBooksCloudAccounting, google, mailchimp, monsoonStoneEdge, myob, pickupInStore, quickbooks, saasu, salesforce, shipBy, shipperHq, shippingZone, shopify, slack, smtp, taxamo, thomsonreuters, ups, upsShippingProtection, usps, vertex, xero.

list_external_invoicesB

List external invoices for an integration. GET /integrations/{integrationId}/external-invoices. Optional: include, itemPerPage, pageNo.

list_external_productsA

List external products for an integration. GET /integrations/{integrationId}/products. Required: integrationId, productName (sent as name query param).

get_external_productA

Get an external product by ID. GET /integrations/{integrationId}/products/{externalProductId}. API expects numeric productId.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Overview documentationRebillia API overview – read this first. Base URLs, authentication, pagination, date format, amount handling. Main entry point for Rebillia API docs.
rebillia-data-modelsDomain model hierarchy and relationships
rebillia-subscription-statusesStatus guide (active, paused, archived, requestPayment)
rebillia-charge-typesCharge type reference (chargeType, chargeModel, billingPeriod, billingTiming enums)
rebillia-gatewaysGateway creation flow: list_global_gateways and create_gateway (gblGatewayId, setting)
CountriesSupported countries (id, code, name). Use code (ISO 3166-1 alpha-2) as countryCode in address tools.
Global gatewaysAvailable gateway types (gblGatewayId, name, keyName, requiredFields, fieldDetails). Use with create_gateway.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rhinosaas/rebillia-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server