Plugin Billing

Update plugin billing record

PUT
http://localhost:3000/api/plugins/{pluginId}/subscriptions/{subscriptionId}/billings/{id}

Body

application/json
amountnumber>= 0

Billing amount

Example
99.99
currencystring

Currency code

Example
USD
billingDatestring<date-time>

Billing date

Example
2025-01-01T00:00:00Z
dueDatestring<date-time>

Due date for payment

Example
2025-01-15T00:00:00Z
paymentDueDatestring<date-time>

Payment due date

Example
2025-01-30T00:00:00Z
statusstringpendingprocessedpaidoverduefailedcancelledrefundedpartially_paid

Billing status

billingPeriodStartstring<date-time>

Billing period start date

Example
2025-01-01T00:00:00Z
billingPeriodEndstring<date-time>

Billing period end date

Example
2025-01-31T23:59:59Z
invoiceNumberstring

Invoice number

Example
INV-202501-0001
invoiceUrlstring

Invoice URL

Example
https://example.com/invoices/inv-123
taxAmountnumber>= 0

Tax amount

Example
9.99
taxRatenumber[0, 1]

Tax rate (as decimal)

Example
0.1
discountAmountnumber>= 0

Discount amount

Example
5
discountCodestring

Discount code

Example
SAVE10
descriptionstring

Billing description/notes

Example
Monthly subscription fee for Premium plan
paymentReferencestring

Payment reference

Example
PAY_12345
metadataobject

Billing metadata

Example
{
  "source": "automated",
  "campaign": "summer2025"
}

Parameters

idstringrequiredpath

Response

200OK

Plugin billing record updated successfully

Authorization

bearerhttp (bearer) in header

Enter JWT token

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey