Skip to main content
PUT
/
v1
/
recurring-invoices
/
{recurringInvoiceId}
Update recurring invoice
curl --request PUT \
  --url https://app.blinksale.test/api/v1/recurring-invoices/{recurringInvoiceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "01jtbf0c9zaraqx3swthf88n5y",
  "name": "Monthly Hosting",
  "frequency": "MONTHLY",
  "start_date": "2023-06-01",
  "end_date": "2023-12-25",
  "max_occurrences": 123,
  "currency": "USD",
  "tax_id": "01jtbf0c9zaraqx3swthf88n5y",
  "tax_distribution": "PER_DOCUMENT",
  "discount_type": "PERCENTAGE",
  "discount_value": 0,
  "discount_distribution": "NO_DISCOUNT",
  "net_terms": "NET30",
  "has_late_fee": true,
  "late_fee_kind": "PERCENTAGE",
  "late_fee_interval": "ONE_TIME",
  "late_fee": 5,
  "shipping": 0,
  "notes": "Monthly hosting services",
  "options": {},
  "template_items": [
    {
      "id": "01jtbf0c9zaraqx3swthf88n5y",
      "name": "Hosting Services",
      "description": "Monthly hosting and maintenance",
      "quantity": 1,
      "price": 99,
      "unit_of_measurement_id": "01jtbf0c9zaraqx3swthf88n5y",
      "tax_id": "01jtbf0c9zaraqx3swthf88n5y",
      "tax_name": "Sales Tax",
      "tax_percent": 8.5,
      "discount_type": "PERCENTAGE",
      "discount_value": 0
    }
  ]
}
'
{
  "success": true,
  "message": "Recurring invoice updated successfully",
  "data": {
    "id": "01jtbf0c9zaraqx3swthf88n5y",
    "organization_id": "01jtbf0c9zaraqx3swthf88n5y",
    "client_id": "01jtbf0c9zaraqx3swthf88n5y",
    "name": "Monthly Hosting",
    "frequency": "MONTHLY",
    "frequency_name": "Monthly",
    "status": "ACTIVE",
    "status_name": "Active",
    "start_date": "2023-06-01",
    "end_date": null,
    "max_occurrences": null,
    "occurrences": 3,
    "last_generated_date": "2023-08-01",
    "next_date": "2023-09-01",
    "client": {
      "id": "01jtbf0c9zaraqx3swthf88n5y",
      "name": "Acme Inc",
      "email": "[email protected]",
      "kind": "BUSINESS",
      "kind_name": "Business",
      "profile": {
        "company_name": "Acme Inc",
        "website": "https://acme.com"
      },
      "address": {
        "line1": "123 Main St",
        "line2": "Suite 101",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94107",
        "country": "US"
      },
      "document_defaults": {
        "currency": "USD"
      },
      "contact_count": 3,
      "note_count": 2,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "template": {
      "id": "01jtbf0c9zaraqx3swthf88n5y",
      "currency": "USD",
      "tax_id": "01jtbf0c9zaraqx3swthf88n5y",
      "tax_name": "Sales Tax",
      "tax_percent": 8.5,
      "tax_distribution": "PER_DOCUMENT",
      "discount_type": "PERCENTAGE",
      "discount_value": 10,
      "discount_distribution": "PER_DOCUMENT",
      "net_terms": "NET30",
      "has_late_fee": true,
      "late_fee_kind": "PERCENTAGE",
      "late_fee_interval": "ONE_TIME",
      "late_fee": 5,
      "shipping": 15,
      "notes": "Monthly hosting services.",
      "options": {},
      "items": [
        {
          "id": "01jtbf0c9zaraqx3swthf88n5y",
          "organization_id": "01jtbf0c9zaraqx3swthf88n5y",
          "name": "Consulting Services",
          "description": "Professional consulting services",
          "quantity": 10,
          "price": 150,
          "unit_of_measurement_id": "01jtbf0c9zaraqx3swthf88n5y",
          "unit_name": "Hour",
          "tax_id": "01jtbf0c9zaraqx3swthf88n5y",
          "tax_name": "Sales Tax",
          "tax_percent": 8.5,
          "discount_type": "PERCENTAGE",
          "discount_value": 10,
          "subtotal": 1500,
          "tax_amount": 127.5,
          "total": 1627.5
        }
      ]
    },
    "is_due_for_generation": false,
    "can_generate_invoices": true,
    "is_editable": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Access token obtained from the /v1/auth/login endpoint

Path Parameters

recurringInvoiceId
string<uuid>
required

The ID of the recurring invoice to update

Body

application/json
client_id
string<uuid>
Example:

"01jtbf0c9zaraqx3swthf88n5y"

name
string | null
Example:

"Monthly Hosting"

frequency
string
Example:

"MONTHLY"

start_date
string<date>
Example:

"2023-06-01"

end_date
string<date> | null
max_occurrences
integer | null
currency
string
Example:

"USD"

tax_id
string<uuid> | null
Example:

"01jtbf0c9zaraqx3swthf88n5y"

tax_distribution
string
Example:

"PER_DOCUMENT"

discount_type
string
Example:

"PERCENTAGE"

discount_value
number<float>
Example:

0

discount_distribution
string
Example:

"NO_DISCOUNT"

net_terms
string
Example:

"NET30"

has_late_fee
boolean
Example:

true

late_fee_kind
string
Example:

"PERCENTAGE"

late_fee_interval
string
Example:

"ONE_TIME"

late_fee
number<float>
Example:

5

shipping
number<float> | null
Example:

0

notes
string | null
Example:

"Monthly hosting services"

options
object
template_items
object[]

Response

Recurring invoice updated successfully

success
boolean
Example:

true

message
string
Example:

"Recurring invoice updated successfully"

data
object