Create new credit note from external channels
post
/service/v1/createCreditNote
This endpoint is used to create new credit note from external channels.
Request
Supported Media Types
- application/json
- application/xml
Header Parameters
-
appId: string
Application Id
-
branchCode: string
Branch Code
-
userId: string
User Id
Request Body that contains data required for creating a new CreditNote.
Root Schema : CreditNoteCollection
Type:
object
List of Credit Notes
Show Source
-
action(optional):
string
Is Auto Authorized
-
creditNoteList(optional):
array creditNoteList
-
errorCode(optional):
string
Error Code
-
errorDesc(optional):
string
Error Desc
-
paging(optional):
object PagingDto
Paging Dto
-
sourceTxnId(optional):
string
sourceTxnId
Nested Schema : creditNoteList
Type:
Show Source
array
-
Array of:
object CreditNoteModel
Credit Note Model
Nested Schema : PagingDto
Type:
object
Paging Dto
Show Source
-
totalResults(optional):
integer
Total Results
Nested Schema : CreditNoteModel
Type:
object
Credit Note Model
Show Source
-
action(optional):
string
action
-
adjustmentReason(optional):
string
Adjustment Reason
-
amount(optional):
number
Base Cn amount
-
buyerCode(optional):
string
Buyer Code
-
buyerDivCode(optional):
string
Buyer Division Code
-
buyerDivName(optional):
string
Buyer Division Name
-
buyerId(optional):
string
Buyer Id
-
buyerName(optional):
string
Buyer Name
-
cnDate(optional):
string
Cn Date
-
cnExpiryDate(optional):
string
Cn Expiry Date
-
cnNumber(optional):
string
Credit Note Reference Number
-
cnReconcilationStatus(optional):
string
Cn Reconcilation Status
-
cnStatus(optional):
string
Cn Status
-
commodityGridList(optional):
array commodityGridList
-
creditNoteId(optional):
string
Credit Note generated Id
-
creditNoteRefNo(optional):
string
Credit Note System generated RefNo
-
currency(optional):
string
Currency
-
discountAmount(optional):
number
Discount Amount
-
discountPercentage(optional):
number
Discount Percentage
-
expiresOn(optional):
string
expiresOn
-
fileName(optional):
string
File Name
-
filler1(optional):
string
Filler1
-
filler10(optional):
string
Filler10
-
filler2(optional):
string
Filler2
-
filler3(optional):
string
Filler3
-
filler4(optional):
string
Filler4
-
filler5(optional):
string
Filler5
-
filler6(optional):
string
Filler6
-
filler7(optional):
string
Filler7
-
filler8(optional):
string
Filler8
-
filler9(optional):
string
Filler9
-
isAutoAuth(optional):
string
Is Auto Authorized
-
isAutoReconcile(optional):
string
Is Auto Authorized
-
isRecon(optional):
string
isRecon
-
isTxnCreationReqd(optional):
string
is txn creation required
-
linkedInvoiceList(optional):
array linkedInvoiceList
-
linkInvoiceNumber(optional):
string
Pipe seperated invoice numbers
-
makerDtStamp(optional):
string
Maker Date Stamp
-
makerId(optional):
string
Maker Id
-
matchedAmount(optional):
number
Matched Amount
-
miscCharge1Amount(optional):
number
Miscellaneous Charge1 Amount
-
miscCharge1Desc(optional):
string
Miscellaneous Charge1 Description
-
miscCharge2Amount(optional):
number
Miscellaneous Charge2 Amount
-
miscCharge2Desc(optional):
string
Miscellaneous Charge2 Description
-
netAmount(optional):
number
Net Cn amount
-
procBranchCode(optional):
string
Proc Branch Code
-
procBranchDate(optional):
string
Proc Branch Date
-
programCode(optional):
string
Program Code
-
programName(optional):
string
Program Name
-
reasonCode(optional):
string
Reason Code
-
reasonErrorCode(optional):
string
Reason Error Code
-
reconciledPmtAmt(optional):
number
reconciledPmtAmt
-
reconTxnStatus(optional):
string
Recon Transaction Status
-
relationCode(optional):
string
Relation Code
-
remarks(optional):
string
Remarks
-
seqNo(optional):
integer(int64)
seqNo
-
sourceTxnId(optional):
string
Source Transaction Id
-
srcAppCd(optional):
string
Source Application Code
-
stageId(optional):
string
Stage Id
-
supplierCode(optional):
string
Supplier code
-
supplierDivCode(optional):
string
Supplier Division Code
-
supplierDivName(optional):
string
Supplier Division Name
-
supplierId(optional):
string
Supplier Id
-
supplierName(optional):
string
Supplier Name
-
taxAmount(optional):
number
Tax Amount
-
taxPercentage(optional):
number
Tax Percentage
-
totalAmount(optional):
number
Total Cn amount
-
transactionRefNo(optional):
string
Transaction Reference Number
-
unmatchedAmount(optional):
number
Unmatched Amount
Nested Schema : CnCommodityGridModel
Type:
Show Source
object
-
commodityCode(optional):
string
Commodity Code
-
commodityDesc(optional):
string
Commodity Description
-
commodityName(optional):
string
Commodity Name
-
costPerUnit(optional):
number
Cost Per Unit
-
creditNoteRefNo(optional):
string
Credit Note Reference Number
-
currency(optional):
string
Currency
-
descriptionOfGoods(optional):
string
Description of Goods
-
discountAmount(optional):
number
Discount Amount
-
discountPercentage(optional):
number
Discount Percentage
-
id(optional):
string
id
-
invoiceNumber(optional):
string
Invoice Number
-
netCost(optional):
number
Net cost
-
quantity(optional):
number
Quantity
-
seqNo(optional):
integer(int64)
seqNo
-
taxAmount(optional):
number
Tax Amount
-
taxPercentage(optional):
number
Tax Percentage
-
totalCost(optional):
number
Total Cost
-
totalWeight(optional):
number
Total weight
-
transactionRefNo(optional):
string
Transaction Reference Number
-
unit(optional):
string
Unit
-
unitWeight(optional):
number
Unit Weight
Nested Schema : LinkedInvoiceModel
Type:
Show Source
object
-
currency(optional):
string
-
invoiceAmount(optional):
number
-
invoiceDate(optional):
string
-
invoiceDueDate(optional):
string
-
invoiceNumber(optional):
string
-
invoiceRefNo(optional):
string
-
invoiceStatus(optional):
string
-
miscCharge1Amount(optional):
number
-
miscCharge2Amount(optional):
number
-
paymentStatus(optional):
string
Response
Supported Media Types
- application/json
- application/xml
201 Response
Returns the details of the newly created credit note
Root Schema : CreateCreditNoteResponseCollection
Type:
object
List of Create Credit Note Service Response
Show Source
Nested Schema : CreateCreditNoteResponse
Type:
Show Source
object
-
cnId(optional):
string
cnId
-
cnNumber(optional):
string
cnNumber
-
cnProcessStatus(optional):
string
cnProcessStatus
-
cnStatus(optional):
string
cnStatus
-
creditNoteRefNo(optional):
string
creditNoteRefNo
-
errors(optional):
array errors
-
supplierId(optional):
string
supplierId
-
transactionRefNo(optional):
string
transactionRefNo
Nested Schema : Error
Type:
object
Error Model
Show Source
-
errorCode(optional):
string
Error Code
-
errorDescription(optional):
string
Error Description
-
errorStatus(optional):
string
Error Status
400 Response
Bad Request
401 Response
Request does not have sufficient credentials.
403 Response
Request is not authorized.
405 Response
Invalid input
500 Response
Internal error