API to get list of templates
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.
Query Parameters
endAt
stringendAt in YYYY-MM-DD format
Examples:
2023-01-01
paymentMode
stringpayment mode
Allowed values:
defaultlivetest
Examples:
live
search
stringTo search for an invoice by id / name / email / phoneNo
Examples:
Alex
startAt
stringstartAt in YYYY-MM-DD format
Examples:
2023-01-01
status
stringstatus to be filtered
altId
stringlocation Id / company Id based on altType
Examples:
6578278e879ad2646715ba9c
altType
stringAlt Type
Allowed value:
location
Examples:
location
limit
stringLimit the number of items to return
Examples:
10
offset
stringNumber of items to skip
Examples:
10
Headers
Authorization
stringAccess Token
Example:
Bearer 9c48df2694a849b6089f9d0d3513efe
Version
stringAPI Version
Allowed value:
2021-07-28
Responses
200
Successful response
Body
data
array[object]_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
addressLine1
stringAddress Line 1
Example:
9931 Beechwood
addressLine2
stringAddress Line 2
Example:
Beechwood
city
stringCity
Example:
St. Houston
state
stringState
Example:
TX
countryCode
stringCountry Code
Example:
US
postalCode
stringPostal Code
Example:
559-6993
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
totalCount
numberTotal number of Templates
Example:
100
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