POST api/Invoice/SaveInvoice
Request Information
URI Parameters
None.
Body Parameters
JsonInvoiceName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
SubscriberId | integer |
None. |
|
StatusId | integer |
None. |
|
strStatus | string |
None. |
|
CurrencyId | integer |
None. |
|
Currency | string |
None. |
|
CurrencySymbole | string |
None. |
|
InvoiceGenNumber | string |
None. |
|
BasicAmount | decimal number |
None. |
|
FullAmount | decimal number |
None. |
|
VAT | decimal number |
None. |
|
Description | string |
None. |
|
SessionId | string |
None. |
|
CreationDate | date |
None. |
|
PaymentDate | date |
None. |
|
InvoicePayments | Collection of JsonInvoicePayment |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "SubscriberId": 2, "StatusId": 3, "strStatus": "sample string 4", "CurrencyId": 5, "Currency": "sample string 6", "CurrencySymbole": "sample string 7", "InvoiceGenNumber": "sample string 8", "BasicAmount": 9.0, "FullAmount": 10.0, "VAT": 11.0, "Description": "sample string 12", "SessionId": "sample string 13", "CreationDate": "2024-04-25T08:40:30.4153051+03:00", "PaymentDate": "2024-04-25T08:40:30.4153051+03:00", "InvoicePayments": [ { "Id": 1, "InvoiceId": 2, "CurrencyId": 3, "Amount": 4.0, "TransactionNumber": "sample string 5", "Remark": "sample string 6", "PaymentDate": "2024-04-25T08:40:30.4309305+03:00", "Currency": "sample string 8", "CurrencySymbole": "sample string 9", "CardNumber": "sample string 10", "ReferenceNumber": "sample string 11" }, { "Id": 1, "InvoiceId": 2, "CurrencyId": 3, "Amount": 4.0, "TransactionNumber": "sample string 5", "Remark": "sample string 6", "PaymentDate": "2024-04-25T08:40:30.4309305+03:00", "Currency": "sample string 8", "CurrencySymbole": "sample string 9", "CardNumber": "sample string 10", "ReferenceNumber": "sample string 11" } ] }
application/xml, text/xml
Sample:
<JsonInvoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMSLibrary.Models"> <BasicAmount>9</BasicAmount> <CreationDate>2024-04-25T08:40:30.4153051+03:00</CreationDate> <Currency>sample string 6</Currency> <CurrencyId>5</CurrencyId> <CurrencySymbole>sample string 7</CurrencySymbole> <Description>sample string 12</Description> <FullAmount>10</FullAmount> <Id>1</Id> <InvoiceGenNumber>sample string 8</InvoiceGenNumber> <InvoicePayments> <JsonInvoicePayment> <Amount>4</Amount> <CardNumber>sample string 10</CardNumber> <Currency>sample string 8</Currency> <CurrencyId>3</CurrencyId> <CurrencySymbole>sample string 9</CurrencySymbole> <Id>1</Id> <InvoiceId>2</InvoiceId> <PaymentDate>2024-04-25T08:40:30.4309305+03:00</PaymentDate> <ReferenceNumber>sample string 11</ReferenceNumber> <Remark>sample string 6</Remark> <TransactionNumber>sample string 5</TransactionNumber> </JsonInvoicePayment> <JsonInvoicePayment> <Amount>4</Amount> <CardNumber>sample string 10</CardNumber> <Currency>sample string 8</Currency> <CurrencyId>3</CurrencyId> <CurrencySymbole>sample string 9</CurrencySymbole> <Id>1</Id> <InvoiceId>2</InvoiceId> <PaymentDate>2024-04-25T08:40:30.4309305+03:00</PaymentDate> <ReferenceNumber>sample string 11</ReferenceNumber> <Remark>sample string 6</Remark> <TransactionNumber>sample string 5</TransactionNumber> </JsonInvoicePayment> </InvoicePayments> <PaymentDate>2024-04-25T08:40:30.4153051+03:00</PaymentDate> <SessionId>sample string 13</SessionId> <StatusId>3</StatusId> <SubscriberId>2</SubscriberId> <VAT>11</VAT> <strStatus>sample string 4</strStatus> </JsonInvoice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />