Skip to main content
POST
Create Template

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
name
string
required
Minimum string length: 1
frequency
string
required
requestType
string
default:direct_payment
paymentMethod
string
default:direct_payment
supplierId
string | null
currency
string
default:VND
notes
string | null
startDate
string | null
lineItems
TemplateLineItem · object[]

Response

Successful Response

id
string
required
orgId
string
required
name
string
required
requestType
string
required
paymentMethod
string
required
currency
string
required
frequency
string
required
nextRunDate
string
required
isActive
boolean
required
supplierId
string | null
notes
string | null
lastGeneratedAt
string | null
createdAt
string | null
lineItems
TemplateLineItemResponse · object[]