Browse Documentation
POST Create new invoice template

Create New Invoice Template

POST /invoice_templates/

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
 City StringBusiness 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 | required  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_title | requiredStringPayment Receipt Title
payment_receipt_messageStringPayment Receipt Message
payment_receipt_sms_messageStringPayment Receipt SMS Message
termsStringTerms and conditions
mail_offerStringOffer Mail Body
subject_offer | requiredStringOffer mail subject
mail_invoiceStringInvoice mail body
subject_invoice | requiredStringInvoice mail subject
mail_creditnote_outStringInvoice mail subject
subject_creditnote_out | requiredStringCreditnoteout mail body
mail_purchase_orderStringPurchaseOrder mail body
subject_purchase_order | requiredStringPurchase Order mail subject
currencyStringDefault currency for invoices


Request

   
curl -s -H "Content-Type: application/json" -H "Authorization: Bearer token" \
-XPUT \
-d '{
"invoice_template":{
 "website":"www.accounteer.com",
 "company_name": "Accounteer",
 "default": true,
        "accent_color":"#0088cc",
        "subject_offer":" Test Subject Offer",
        "subject_invoice":"Test Subject Invoice",
        "subject_creditnote_out":"Test subject credit note out",
        "subject_purchase_order":"Test subject purchase order",
        "payment_receipt_title": "PAYMENT RECEIPT
}
}

 }
' \
https://dev.accounteer.com/api/v0.1/invoice_templates
     

Response

{
    "id": "9db72d7ab068b8ac4cf4e52ed0b17fc449a397ad",
    "company_name": "Accounteer",
    "organization_id": "9a3a10a3515ac8ab664fc3311ffc8c9f3259e38b",
    "template_name": "New Business Template",
    "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 out",
    "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",
    "website": "www.accounteer.com",
    "address": null,
    "zipcode":null,
    "city": null
}