Add/Edit Template
This endpoint is used to add/edit template details for invoice plugin
Method
POST https://api.ninjapay.me/webextension/api/v1/fiat/invoice/user/template/createParameters
id(number): If need to update template add value here from get template api responsetemplate(object): Contains the following properties:business_logo(string): URL of the business logo NOTE: use upload Attachment API response for valuebusiness_name(string, required): Name of the businessphone(string, required): Contact phone number (without country code)phone_code(string, required): Country code for the phone numberemail(string, required): Contact email addressbilling_address(string): Billing addresscity(string): City of the businessstate(string): State of the businesszipcode(string): Zipcode of the businesscountry(string): Country of the businessdocuments(object): Contains document details:doc_1(object): First document:title(string): Title of the documentvalue(string): Value of the document
doc_2(object): Second document:title(string): Title of the documentvalue(string): Value of the document
default_currency(string): Default currency for transactionsenable_qr(boolean): Enable or disable QR code generationredirect_url(string): URL to redirect after paymentinclude_invoice_id(boolean): Include invoice ID in the documentationwebhook_url(string): URL for webhook callbacksterms_condition_url(string): URL for terms and conditionscustom_thanks_message(string): Custom thank you messagecustom_button_text(string): Custom text for the payment buttongreen_donation_link(string): URL for green donation linkdonation_percentage(number): Percentage of donationdonation_message(string): Message regarding donationstax_details(object): Contains tax details:tax_title(string): Title for taxtax_percentage(number): Tax percentagetax_country(string): Country where the tax is applicableis_all_states(boolean): If tax is applicable to all statestax_states(array): List of states where tax is applicable (empty if all states)
Request Body
Response
Code Example
Last updated