Update template late fees configuration
PATCH/invoices/template/:templateId/payment-methods-configuration
API to update template late fees configuration by template id
Request
Version stringrequired
API Version
Available options
v3templateId stringrequired
Template Id
- application/json
- Body
- Example (auto)
Bodyrequired
altIdstringrequired
location Id / company Id based on altType
altTypestringrequired
Alt Type
Available options
locationpaymentMethodsobject
Payment Methods for Invoices
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"paymentMethods": {
"stripe": {
"enableBankDebitOnly": false
}
}
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
_idstringrequired
Template Id
altIdstringrequired
Location Id or Agency Id
altTypestringrequired
Available options
locationnamestringrequired
Name of the Template
businessDetailsobjectrequired
Business Details
currencystringrequired
Currency
discountobject
Discount
itemsstring[]required
Invoice Items
invoiceNumberPrefixstring
prefix for invoice number
totalnumberrequired
Total Amount
createdAtstringrequired
created at
updatedAtstringrequired
updated at
{
"_id": "6578278e879ad2646715ba9c",
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"name": "New Template",
"businessDetails": {
"name": "Alex",
"address": {
"addressLine1": "9931 Beechwood",
"city": "St. Houston",
"state": "TX",
"countryCode": "USA",
"postalCode": "559-6993"
},
"phoneNo": "+1-214-559-6993",
"website": "www.example.com"
},
"currency": "USD",
"discount": {
"type": "percentage",
"value": 0
},
"items": [
{
"taxes": [],
"_id": "c6tZZU0rJBf30ZXx9Gli",
"productId": "c6tZZU0rJBf30ZXx9Gli",
"priceId": "c6tZZU0rJBf30ZXx9Gli",
"currency": "USD",
"name": "Macbook Pro",
"qty": 1,
"amount": 999
}
],
"invoiceNumberPrefix": "INV-",
"total": 999,
"createdAt": "2023-12-12T09:27:42.355Z",
"updatedAt": "2023-12-12T09:27:42.355Z"
}