POST api/CreditPayments
Request Information
URI Parameters
None.
Body Parameters
CreditPaymentsModelsName | Description | Type | Additional information |
---|---|---|---|
CP_Id | integer |
None. |
|
CP_Order_Id_FK | integer |
Required |
|
CP_OrderDate | date |
Required |
|
CP_Order_Type | string |
Required |
|
DueDate | date |
None. |
|
CustomerPurchaseOrderSpeedSearch | CustomerPurchaseOrderSpeedSearchModels |
None. |
|
StockistPurchaseOrderSpeedSearch | StockistPurchaseOrderSpeedSearchModels |
None. |
|
BulkSalesOrderSpeedSearch | BulkSalesOrderSpeedSearchModels |
None. |
|
CP_No_Of_Days | decimal number |
Required |
|
CP_UserId_FK | integer |
None. |
|
CP_TS | date |
None. |
|
CP_Inactive | character |
None. |
|
CP_TS_LastEdited | date |
None. |
|
CP_TS_Edited_Uid_FK | integer |
None. |
|
CP_OrderNumber | integer |
None. |
|
CreditPaymentDetails | Collection of CreditPaymentsDetailsModels |
None. |
Request Formats
application/json, text/json
Sample:
{ "CP_Id": 1, "CP_Order_Id_FK": 2, "CP_OrderDate": "2025-01-09T00:57:26.9712974+05:30", "CP_Order_Type": "sample string 4", "DueDate": "2025-01-09T00:57:26.9712974+05:30", "CustomerPurchaseOrderSpeedSearch": { "COR_Id": 1, "COR_OrderNo": "sample string 2", "COR_Date": "2025-01-09T00:57:26.9712974+05:30", "COR_CustomerName": "sample string 4", "TotalAmount": 5.0, "TotalCollectedAmount": 6.0, "CIV_Invoice_No": "sample string 7", "IsCreditPayment": "sample string 8" }, "StockistPurchaseOrderSpeedSearch": { "POR_Id": 1, "POR_OrderNo": "sample string 2", "POR_Date": "2025-01-09T00:57:26.9712974+05:30", "SK_Name": "sample string 4", "TotalAmount": 5.0, "TotalCollectedAmount": 6.0, "SIV_Invoice_No": "sample string 7", "IsCreditPayment": "sample string 8" }, "BulkSalesOrderSpeedSearch": { "BS_Id": 1, "BS_OrderNo": "sample string 2", "BS_DateTime": "2025-01-09T00:57:26.9712974+05:30", "BS_Name": "sample string 4", "TotalAmount": 5.0, "TotalCollectedAmount": 6.0, "BS_InvoiceNo": "sample string 7", "IsCreditPayment": "sample string 8" }, "CP_No_Of_Days": 6.0, "CP_UserId_FK": 7, "CP_TS": "2025-01-09T00:57:26.9712974+05:30", "CP_Inactive": "A", "CP_TS_LastEdited": "2025-01-09T00:57:26.9712974+05:30", "CP_TS_Edited_Uid_FK": 11, "CP_OrderNumber": 12, "CreditPaymentDetails": [ { "CPD_Id": 1, "CPD_CP_Id_FK": 2, "CPD_Cheque_No": "sample string 3", "CPD_Cheque_Date": "2025-01-09T00:57:26.9712974+05:30", "CPD_Cheque_Rec_Date": "2025-01-09T00:57:26.9712974+05:30", "CPD_Bank": "sample string 6", "CPD_Branch": "sample string 7", "CPD_Amount": 8.0, "CPD_IsChequePassed": "sample string 9", "CPD_UserId_FK": 10, "CPD_TS": "2025-01-09T00:57:26.9712974+05:30", "CPD_Inactive": "A", "CPD_TS_LastEdited": "2025-01-09T00:57:26.9712974+05:30", "CPD_TS_Edited_Uid_FK": 14 }, { "CPD_Id": 1, "CPD_CP_Id_FK": 2, "CPD_Cheque_No": "sample string 3", "CPD_Cheque_Date": "2025-01-09T00:57:26.9712974+05:30", "CPD_Cheque_Rec_Date": "2025-01-09T00:57:26.9712974+05:30", "CPD_Bank": "sample string 6", "CPD_Branch": "sample string 7", "CPD_Amount": 8.0, "CPD_IsChequePassed": "sample string 9", "CPD_UserId_FK": 10, "CPD_TS": "2025-01-09T00:57:26.9712974+05:30", "CPD_Inactive": "A", "CPD_TS_LastEdited": "2025-01-09T00:57:26.9712974+05:30", "CPD_TS_Edited_Uid_FK": 14 } ] }
application/xml, text/xml
Sample:
<CreditPaymentsModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models"> <BulkSalesOrderSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch"> <d2p1:BS_DateTime>2025-01-09T00:57:26.9712974+05:30</d2p1:BS_DateTime> <d2p1:BS_Id>1</d2p1:BS_Id> <d2p1:BS_InvoiceNo>sample string 7</d2p1:BS_InvoiceNo> <d2p1:BS_Name>sample string 4</d2p1:BS_Name> <d2p1:BS_OrderNo>sample string 2</d2p1:BS_OrderNo> <d2p1:IsCreditPayment>sample string 8</d2p1:IsCreditPayment> <d2p1:TotalAmount>5</d2p1:TotalAmount> <d2p1:TotalCollectedAmount>6</d2p1:TotalCollectedAmount> </BulkSalesOrderSpeedSearch> <CP_Id>1</CP_Id> <CP_Inactive>65</CP_Inactive> <CP_No_Of_Days>6</CP_No_Of_Days> <CP_OrderDate>2025-01-09T00:57:26.9712974+05:30</CP_OrderDate> <CP_OrderNumber>12</CP_OrderNumber> <CP_Order_Id_FK>2</CP_Order_Id_FK> <CP_Order_Type>sample string 4</CP_Order_Type> <CP_TS>2025-01-09T00:57:26.9712974+05:30</CP_TS> <CP_TS_Edited_Uid_FK>11</CP_TS_Edited_Uid_FK> <CP_TS_LastEdited>2025-01-09T00:57:26.9712974+05:30</CP_TS_LastEdited> <CP_UserId_FK>7</CP_UserId_FK> <CreditPaymentDetails> <CreditPaymentsDetailsModels> <CPD_Amount>8</CPD_Amount> <CPD_Bank>sample string 6</CPD_Bank> <CPD_Branch>sample string 7</CPD_Branch> <CPD_CP_Id_FK>2</CPD_CP_Id_FK> <CPD_Cheque_Date>2025-01-09T00:57:26.9712974+05:30</CPD_Cheque_Date> <CPD_Cheque_No>sample string 3</CPD_Cheque_No> <CPD_Cheque_Rec_Date>2025-01-09T00:57:26.9712974+05:30</CPD_Cheque_Rec_Date> <CPD_Id>1</CPD_Id> <CPD_Inactive>65</CPD_Inactive> <CPD_IsChequePassed>sample string 9</CPD_IsChequePassed> <CPD_TS>2025-01-09T00:57:26.9712974+05:30</CPD_TS> <CPD_TS_Edited_Uid_FK>14</CPD_TS_Edited_Uid_FK> <CPD_TS_LastEdited>2025-01-09T00:57:26.9712974+05:30</CPD_TS_LastEdited> <CPD_UserId_FK>10</CPD_UserId_FK> </CreditPaymentsDetailsModels> <CreditPaymentsDetailsModels> <CPD_Amount>8</CPD_Amount> <CPD_Bank>sample string 6</CPD_Bank> <CPD_Branch>sample string 7</CPD_Branch> <CPD_CP_Id_FK>2</CPD_CP_Id_FK> <CPD_Cheque_Date>2025-01-09T00:57:26.9712974+05:30</CPD_Cheque_Date> <CPD_Cheque_No>sample string 3</CPD_Cheque_No> <CPD_Cheque_Rec_Date>2025-01-09T00:57:26.9712974+05:30</CPD_Cheque_Rec_Date> <CPD_Id>1</CPD_Id> <CPD_Inactive>65</CPD_Inactive> <CPD_IsChequePassed>sample string 9</CPD_IsChequePassed> <CPD_TS>2025-01-09T00:57:26.9712974+05:30</CPD_TS> <CPD_TS_Edited_Uid_FK>14</CPD_TS_Edited_Uid_FK> <CPD_TS_LastEdited>2025-01-09T00:57:26.9712974+05:30</CPD_TS_LastEdited> <CPD_UserId_FK>10</CPD_UserId_FK> </CreditPaymentsDetailsModels> </CreditPaymentDetails> <CustomerPurchaseOrderSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch"> <d2p1:CIV_Invoice_No>sample string 7</d2p1:CIV_Invoice_No> <d2p1:COR_CustomerName>sample string 4</d2p1:COR_CustomerName> <d2p1:COR_Date>2025-01-09T00:57:26.9712974+05:30</d2p1:COR_Date> <d2p1:COR_Id>1</d2p1:COR_Id> <d2p1:COR_OrderNo>sample string 2</d2p1:COR_OrderNo> <d2p1:IsCreditPayment>sample string 8</d2p1:IsCreditPayment> <d2p1:TotalAmount>5</d2p1:TotalAmount> <d2p1:TotalCollectedAmount>6</d2p1:TotalCollectedAmount> </CustomerPurchaseOrderSpeedSearch> <DueDate>2025-01-09T00:57:26.9712974+05:30</DueDate> <StockistPurchaseOrderSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch"> <d2p1:IsCreditPayment>sample string 8</d2p1:IsCreditPayment> <d2p1:POR_Date>2025-01-09T00:57:26.9712974+05:30</d2p1:POR_Date> <d2p1:POR_Id>1</d2p1:POR_Id> <d2p1:POR_OrderNo>sample string 2</d2p1:POR_OrderNo> <d2p1:SIV_Invoice_No>sample string 7</d2p1:SIV_Invoice_No> <d2p1:SK_Name>sample string 4</d2p1:SK_Name> <d2p1:TotalAmount>5</d2p1:TotalAmount> <d2p1:TotalCollectedAmount>6</d2p1:TotalCollectedAmount> </StockistPurchaseOrderSpeedSearch> </CreditPaymentsModels>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.