v1

latestOpenAPI 3.1.02026-08-045901.5 MB

Add Purchase Invoice

post/purchase-invoice

Headers

api-tokenstring

Generate token from authentication api

x-api-keystring

This will shared while register

Request body

purchase_numberinteger

Purchase number in purchase invoice

bill_numberstring

Supplier's invoice or bill number

pur_inv_datestring date

Date of the invoice

due_datestring

The payment due date

purchase_order_idinteger

0 indicates no linked purchase order

tax_id1_type'0' | '1' | '2'

Tax applicability: - 0: No GST - 1: SGST+CGST - 2: IGST

currencystring

Currency code

taxable_amountstring

Sum of all taxable values

non_taxable_amountstring

Sum of all non taxable values

gst_amountstring

Total gst amount

cess_amountstring

CESS applicable under GST

adjust_amountstring

Additional adjustments

addvalue_amountstring

Additional value amount

total_amountstring

Sum of all amounts

payable_amountstring

Final amount to be paid

reverse_charge'0' | '1'

1-reverse charge mechanism applied, 0-reverse charge mechanism not applied

spl_supply'0' | '1' | '2' | '3'

Type of supply: - 0: Regular - 1: Import - 2: Input service - 3: Composition

basic_custom_dutystring
counter_dutystring
counter_duty_addstring
tax_credit_type'0' | '1'

GST ITC is claimable (1) or not (0).

gst_tax_creditinteger

Amount eligible for ITC.

status'0' | '1'

Status-0 for deleted, 1 for active

Response

200

statusinteger
idinteger
msgstring
download_urlstring
pdf_urlstring

Example response

{
  "status": 200,
  "id": 2970,
  "msg": "Purchase Invoice Created Successfully",
  "download_url": "https://in.ledgers.cloud/public/download-purchase-invoice/S0J2cVV2Um9zRHp2UHpBUG9TTDZFdz09/RXJlbUxtQTgzSGFJdTErNmJBSVNOUT09",
  "pdf_url": "https://in.ledgers.cloud/public/purchase-invoice/S0J2cVV2Um9zRHp2UHpBUG9TTDZFdz09/RXJlbUxtQTgzSGFJdTErNmJBSVNOUT09"
}