Browse Documentation
POST Update invoice template

Update Invoice Template

PUT /invoice_templates/:id

Update an existing Invoice Templates.

Parameters

  Parameter
  Type
 Description
 template_name
  String
 The name that distinguishes the template.
 address
  String
Business  address
 zipcode String
 Business Zipcode
cityStringBusiness City
 days_due
  String
Number of Days after which invoice is due
 language
  String

 vat_title  String
Title Of VAT
 vat
  Numeric
VAT
country  String
Country in which business is located
 phone
  String
Business contact phone
 fax
  String
Business Fax
 email
  Numeric
Business email address
website  String
Business website
accent_color  String
Default Invoice color e.g #000fff
invoice_titleStringTitle for Invoices
offer_title  String
Title for offers
creditnote_titleStringTitle for Credit Note
payment_instructionStringPayment instructions
payment_receipt_titleStringPayment Receipt Title
payment_receipt_messageStringPayment Receipt Message
payment_receipt_sms_messageStringPayment Receipt SMS Message
termsStringTerms and conditions
mail_offerStringOffer Mail Body
subject_offerStringOffer mail subject
mail_invoiceStringInvoice mail body
subject_invoiceStringInvoice mail subject
mail_creditnote_outStringInvoice mail subject
subject_creditnote_outStringCreditnoteout mail body
mail_purchase_orderStringPurchaseOrder mail body
subject_purchase_orderStringPurchase Order mail subject
currencyStringDefault currency for invoices


Request

   
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer token" \
-XPUT \
-d '{
 "invoice_template":{
 "days_due":40,
            "template_name": "Business Standard",
 "language": "fr",
            "terms" :"Pay in 30days",
            "default": true
 }
 }
' \
https://dev.accounteer.com/api/v0.1/invoice_templates/9db72d7ab068b8ac4cf4e52ed0b17fc449a397ad
     

Response

{
    "id": "9db72d7ab068b8ac4cf4e52ed0b17fc449a397ad",
    "organization_id": "9a3a10a3515ac8ab664fc3311ffc8c9f3259e38b",
    "template_name": "Business Standard",
    "language": "fr",
    "days_due": 40,
    "invoice_title": "INVOICE",
    "creditnote_title": "CREDIT NOTE",
    "offer_title": "OFFER",
    "payment_instruction": null,
    "payment_receipt_title": "PAYMENT RECEIPT",
    "payment_receipt_message": null,
    "payment_receipt_sms_message": null,
    "terms": "Pay in 30days",
    "default": true,
    "accent_color": "#0088cc",
    "mail_offer": null,
    "subject_offer": "Test Subject Offer",
    "mail_invoice": null,
    "subject_invoice": "Test Subject Invoice",
    "mail_creditnote_out": "Test mail credit note note",
    "subject_creditnote_out": "Test subject credit note note",
    "mail_purchase_order": "Test mail purchase order",
    "subject_purchase_order": "Test subject purchase order",
    "vat_title": "VAT",
    "vat": null,
    "phone": null,
    "email": null,
    "country": null,
    "fax": null,
    "currency": "EUR",
    "address":null,
    "city":null,
    "zipcode": null
}