POST CN/Add

Creates a new CN Detail

Request Information

URI Parameters

None.

Body Parameters

The CN Detail data

CNDetailViewModel
NameDescriptionTypeAdditional information
CNDetailID

integer

None.

InvoiceAttchment

HttpPostedFile

None.

CNNumberId

integer

None.

CNNumber

string

Required

strDateOfBooking

string

None.

StrCreatedOn

string

None.

DateOfBooking

date

Data type: Date

HandlingInfoId

integer

Required

HandlingInfo

string

None.

HandlingInfoList

Collection of Object

None.

SellerName

string

Required

GST

decimal number

None.

SellerState

string

None.

SellerId

integer

None.

OriginLocationId

integer

None.

BillNo

integer

None.

SellerStateId

integer

None.

ConsigneeName

string

Required

ConsigneeId

integer

None.

DestinationLocationId

integer

None.

ConsigneeStateId

integer

None.

ConsigneeState

string

None.

SellerAddress

string

None.

SellerGSTNo

string

None.

SellerPANNo

string

None.

ConsigneeAddress

string

None.

ConsigneeGSTNo

string

None.

ConsigneePANNo

string

None.

OriginLocation

string

None.

DestinationLocation

string

None.

InvoiceNumber

string

Required

strInvoiceDate

string

Required

InvoiceDate

date

None.

NumberOfPackets

integer

Required

CommodityId

integer

Required

Commodity

string

None.

CommodityList

Collection of Object

None.

PackingTypeId

integer

None.

PackingType

string

None.

PackingTypeList

Collection of Object

None.

PaymentTypeId

integer

None.

PaymentType

string

None.

PaymentTypeList

Collection of Object

None.

Remarks

string

None.

InsuredById

integer

None.

InsuredBy

string

None.

InsuredByList

Collection of Object

None.

InvoiceValue

decimal number

Required

NetWeight

decimal number

Required

GrossWeight

decimal number

Required

SpecialInstruction

string

None.

Amount

integer

Required

strAmount

string

None.

ForwardingCharges

integer

None.

strForwardingCharges

string

None.

Tax

integer

Required

Total

integer

Required

strTotal

string

None.

FreightCharge

decimal number

None.

CGST

decimal number

None.

strCGST

string

None.

SGST

decimal number

None.

strSGST

string

None.

Name

string

None.

IGST

decimal number

None.

strIGST

string

None.

PricePerKg

integer

None.

IsActive

boolean

None.

IsDelivered

boolean

None.

IListCNDetail

Collection of CNDetailViewModel

None.

Active

string

None.

ModuleName

CommonMessagesViewModel

None.

CreatedBy

integer

None.

strCreatedBy

string

None.

UpdatedBy

integer

None.

CreatedOn

date

None.

UpdatedOn

date

None.

ShipToId

integer

None.

ShipTo

string

None.

ShipToList

Collection of Object

None.

IsValid

boolean

None.

ErrorMsg

string

None.

CheckRequired

boolean

None.

strDetail

string

None.

logoImg

string

None.

logo

string

None.

TaxableTotal

integer

None.

strTaxableTotal

string

None.

CompanyIds

Collection of integer

None.

StrCompanyIds

Collection of string

None.

IsSellerNew

boolean

None.

IsConsigneeNew

boolean

None.

CompanyId

integer

None.

CompanyList

Collection of Object

None.

PrefixList

Collection of Object

None.

CompanyAdd

string

None.

CompanyGST

string

None.

CompanyName

string

None.

CompanyBankDetails

string

None.

TotalInWords

string

None.

Status

string

None.

ListCNDetails

Collection of CNDetailViewModel

None.

SellerEmail

string

None.

ReceiverEmail

string

None.

strFromDate

string

None.

strToDate

string

None.

ChallanDate

date

None.

CD

string

None.

PartyAccount

string

None.

PartyType

string

None.

InvoiceType

string

None.

TaxBillOfSupply

string

None.

BillCycle

string

None.

RoundOff

decimal number

None.

DeliveryDate

date

None.

strDeliveryDate

string

None.

LocationId

integer

None.

PartyCity

string

None.

ConsigneeCity

string

None.

cnDetailsIds

Collection of integer

None.

InsuranceRate

decimal number

None.

TSXRate

decimal number

None.

ThreeStarCompanyId

integer

None.

BillFillName

string

None.

InvoiceImage

HttpPostedFileBase

None.

strInvoiceImage

string

None.

IsPrint

boolean

None.

BillDate

date

None.

SellerRegistrationTypeId

integer

None.

ConsigneeRegistrationTypeId

integer

None.

SellerPhone

string

None.

ConsigneePhone

string

None.

LocationTypeList

Collection of Object

None.

strBillDate

string

None.

GoldGrossWeight

decimal number

None.

GoldNoOfPackets

integer

None.

ChildLocationName

string

None.

InvoiceImageName

string

None.

FinancialYear

string

None.

QRCodeImageBase64

string

None.

IsDeleted

boolean

None.

DeletedOn

date

None.

DeletedBy

integer

None.

Success

boolean

None.

Message

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CNDetailID": 0,
  "InvoiceAttchment": null,
  "CNNumberId": 76,
  "CNNumber": "TDR0000004",
  "strDateOfBooking": null,
  "StrCreatedOn": null,
  "DateOfBooking": null,
  "HandlingInfoId": 21,
  "HandlingInfo": null,
  "HandlingInfoList": null,
  "SellerName": "Kalyan Jwellers",
  "GST": 0.0,
  "SellerState": null,
  "SellerId": 2,
  "OriginLocationId": 4,
  "BillNo": null,
  "SellerStateId": null,
  "ConsigneeName": "Pooja Jwellers",
  "ConsigneeId": 4,
  "DestinationLocationId": 7,
  "ConsigneeStateId": null,
  "ConsigneeState": null,
  "SellerAddress": null,
  "SellerGSTNo": null,
  "SellerPANNo": null,
  "ConsigneeAddress": null,
  "ConsigneeGSTNo": null,
  "ConsigneePANNo": null,
  "OriginLocation": null,
  "DestinationLocation": null,
  "InvoiceNumber": "1241",
  "strInvoiceDate": "07/30/2019",
  "InvoiceDate": "0001-01-01T00:00:00",
  "NumberOfPackets": 4,
  "CommodityId": 2,
  "Commodity": null,
  "CommodityList": null,
  "PackingTypeId": 18,
  "PackingType": null,
  "PackingTypeList": null,
  "PaymentTypeId": 0,
  "PaymentType": null,
  "PaymentTypeList": null,
  "Remarks": null,
  "InsuredById": 23,
  "InsuredBy": null,
  "InsuredByList": null,
  "InvoiceValue": 12322.0,
  "NetWeight": 30.0,
  "GrossWeight": 35.0,
  "SpecialInstruction": "test",
  "Amount": 30000,
  "strAmount": null,
  "ForwardingCharges": null,
  "strForwardingCharges": null,
  "Tax": 8190,
  "Total": 53690,
  "strTotal": null,
  "FreightCharge": 0.0,
  "CGST": 9.0,
  "strCGST": null,
  "SGST": 9.0,
  "strSGST": null,
  "Name": null,
  "IGST": 18.0,
  "strIGST": null,
  "PricePerKg": 0,
  "IsActive": false,
  "IsDelivered": false,
  "IListCNDetail": null,
  "Active": null,
  "ModuleName": null,
  "CreatedBy": 0,
  "strCreatedBy": null,
  "UpdatedBy": 0,
  "CreatedOn": "0001-01-01T00:00:00",
  "UpdatedOn": "0001-01-01T00:00:00",
  "ShipToId": 0,
  "ShipTo": null,
  "ShipToList": null,
  "IsValid": false,
  "ErrorMsg": null,
  "CheckRequired": false,
  "strDetail": null,
  "logoImg": null,
  "logo": null,
  "TaxableTotal": null,
  "strTaxableTotal": null,
  "CompanyIds": null,
  "StrCompanyIds": null,
  "IsSellerNew": false,
  "IsConsigneeNew": false,
  "CompanyId": null,
  "CompanyList": null,
  "PrefixList": null,
  "CompanyAdd": null,
  "CompanyGST": null,
  "CompanyName": null,
  "CompanyBankDetails": null,
  "TotalInWords": null,
  "Status": null,
  "ListCNDetails": null,
  "SellerEmail": null,
  "ReceiverEmail": null,
  "strFromDate": null,
  "strToDate": null,
  "ChallanDate": "0001-01-01T00:00:00",
  "CD": null,
  "PartyAccount": null,
  "PartyType": null,
  "InvoiceType": null,
  "TaxBillOfSupply": null,
  "BillCycle": null,
  "RoundOff": 0.0,
  "DeliveryDate": null,
  "strDeliveryDate": null,
  "LocationId": null,
  "PartyCity": null,
  "ConsigneeCity": null,
  "cnDetailsIds": null,
  "InsuranceRate": null,
  "TSXRate": null,
  "ThreeStarCompanyId": 0,
  "BillFillName": null,
  "InvoiceImage": null,
  "strInvoiceImage": null,
  "IsPrint": null,
  "BillDate": null,
  "SellerRegistrationTypeId": 0,
  "ConsigneeRegistrationTypeId": 0,
  "SellerPhone": null,
  "ConsigneePhone": null,
  "LocationTypeList": null,
  "strBillDate": null,
  "GoldGrossWeight": null,
  "GoldNoOfPackets": null,
  "ChildLocationName": null,
  "InvoiceImageName": null,
  "FinancialYear": null,
  "QRCodeImageBase64": null,
  "IsDeleted": null,
  "DeletedOn": null,
  "DeletedBy": null,
  "Success": false,
  "Message": null
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage

CNDetailResponseModel
NameDescriptionTypeAdditional information
Id

integer

None.

Ids

Collection of integer

None.

strIds

Collection of string

None.

Success

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Ids": [
    1,
    2
  ],
  "strIds": [
    "sample string 1",
    "sample string 2"
  ],
  "Success": true,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<CNDetailResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ThreeStar.Common.Models">
  <Message>sample string 3</Message>
  <Success>true</Success>
  <Id>1</Id>
  <Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Ids>
  <strIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </strIds>
</CNDetailResponseModel>