API to get an template by template id
Request
Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Provide your bearer token in the Authorization header when making requests to protected resources.
Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Provide your bearer token in the Authorization header when making requests to protected resources.
Path Parameters
templateId
stringTemplate Id
Examples:
6578278e879ad2646715ba9c
Query Parameters
altId
stringlocation Id / company Id based on altType
Examples:
6578278e879ad2646715ba9c
altType
stringAlt Type
Allowed value:
location
Examples:
location
Headers
Authorization
stringAccess Token
Example:
Bearer 9c48df2694a849b6089f9d0d3513efe
Version
stringAPI Version
Allowed value:
2021-07-28
Responses
200
Successful response
Body
_id
stringTemplate Id
Example:
6578278e879ad2646715ba9c
altId
stringLocation Id or Agency Id
Example:
6578278e879ad2646715ba9c
altType
stringAllowed value:
location
name
stringName of the Template
Example:
New Template
businessDetails
objectBusiness Details
Example:
{"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"}
logoUrl
stringBusiness Logo URL
Example:
https://example.com/logo.png
name
stringBusiness Name
Example:
ABC Corp.
phoneNo
stringBusiness Phone Number
Example:
+1-214-559-6993
address
objectBusiness Address
Example:
9931 Beechwood, TX
website
stringBusiness Website Link
Example:
wwww.example.com
customValues
array[string]Custom Values
currency
stringCurrency
Example:
USD
discount
objectDiscount
Example:
{"type":"percentage","value":0}
value
numberDiscount Value
Default:
0
Example:
10
type
stringDiscount type
Allowed values:
percentagefixed
Default:
percentage
Example:
percentage
validOnProductIds
array[string]Product Ids on which discount is applicable
Example:
[ '6579751d56f60276e5bd4154' ]
items
array[string]Invoice Items
Example:
[{"taxes":[],"_id":"c6tZZU0rJBf30ZXx9Gli","productId":"c6tZZU0rJBf30ZXx9Gli","priceId":"c6tZZU0rJBf30ZXx9Gli","currency":"USD","name":"Macbook Pro","qty":1,"amount":999}]
invoiceNumberPrefix
stringprefix for invoice number
Example:
INV-
total
numberTotal Amount
Example:
999
createdAt
stringcreated at
Example:
2023-12-12T09:27:42.355Z
updatedAt
stringupdated at
Example:
2023-12-12T09:27:42.355Z
422
Unprocessable Entity
Body
statusCode
number
Example:
422
message
array[string]
Example:
["Unprocessable Entity"]
error
string
Example:
Unprocessable Entity
401
Unauthorized
Body
statusCode
number
Example:
401
message
string
Example:
Invalid token: access token is invalid
error
string
Example:
Unauthorized
400
Bad Request
Body
statusCode
number
Example:
400
message
string
Example:
Bad Request