POST api/CompanyBorrower/v1/InsertPurchaseInvoice
Request Information
URI Parameters
None.
Body Parameters
InsertPurchaseInvoiceRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| invoice | PurchaseInvoiceFundingInvoice |
None. |
|
| OrganizationCode | string |
None. |
|
| UserName | string |
None. |
|
| Password | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"invoice": {
"BrandCode": "sample string 1",
"ChannelCode": "sample string 2",
"ExternalInvoiceNumber": "sample string 3",
"ContractId": "f5b1e919-218e-484a-8007-b9fff635e34e",
"Bic": "sample string 4",
"Amount": 5.0,
"InstallmentCount": 6,
"InvoiceSenderInvoiceNumber": "sample string 7",
"InvoiceSenderName": "sample string 8",
"InvoiceSenderBic": "sample string 9",
"InvoicePaymentReference": "sample string 10",
"InvoiceSenderBankAccountNumber": "sample string 11"
},
"OrganizationCode": "sample string 1",
"UserName": "sample string 2",
"Password": "sample string 3"
}
application/xml, text/xml
Sample:
<InsertPurchaseInvoiceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">
<OrganizationCode>sample string 1</OrganizationCode>
<Password>sample string 3</Password>
<UserName>sample string 2</UserName>
<invoice>
<Amount>5</Amount>
<Bic>sample string 4</Bic>
<BrandCode>sample string 1</BrandCode>
<ChannelCode>sample string 2</ChannelCode>
<ContractId>f5b1e919-218e-484a-8007-b9fff635e34e</ContractId>
<ExternalInvoiceNumber>sample string 3</ExternalInvoiceNumber>
<InstallmentCount>6</InstallmentCount>
<InvoicePaymentReference>sample string 10</InvoicePaymentReference>
<InvoiceSenderBankAccountNumber>sample string 11</InvoiceSenderBankAccountNumber>
<InvoiceSenderBic>sample string 9</InvoiceSenderBic>
<InvoiceSenderInvoiceNumber>sample string 7</InvoiceSenderInvoiceNumber>
<InvoiceSenderName>sample string 8</InvoiceSenderName>
</invoice>
</InsertPurchaseInvoiceRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
InsertPurchaseInvoiceReply| Name | Description | Type | Additional information |
|---|---|---|---|
| Reply | PurchaseInvoiceFundingInvoiceReply |
None. |
|
| Ok | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| ErrorCode | string |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Reply": {
"IsValid": true,
"ValidationMessage": "sample string 2",
"IsApproved": true,
"RejectionReasonMessage": "sample string 4",
"RejectionReasonCode": "sample string 5",
"InvoiceId": "17099ddf-b727-467b-883d-4cd3b444ed0a",
"LoanAmount": 7.0,
"InstallmentCount": 8,
"InterestRate": 9.0,
"InstallmentAmount": 10.0,
"OpeningFee": 11.0,
"InstallmentFee": 12.0
},
"Ok": true,
"ErrorMessage": "sample string 2",
"ErrorCode": "sample string 3",
"Message": "sample string 4"
}
application/xml, text/xml
Sample:
<InsertPurchaseInvoiceReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FfApi.Controllers">
<ErrorCode>sample string 3</ErrorCode>
<ErrorMessage>sample string 2</ErrorMessage>
<Message>sample string 4</Message>
<Ok>true</Ok>
<Reply>
<InstallmentAmount>10</InstallmentAmount>
<InstallmentCount>8</InstallmentCount>
<InstallmentFee>12</InstallmentFee>
<InterestRate>9</InterestRate>
<InvoiceId>17099ddf-b727-467b-883d-4cd3b444ed0a</InvoiceId>
<IsApproved>true</IsApproved>
<IsValid>true</IsValid>
<LoanAmount>7</LoanAmount>
<OpeningFee>11</OpeningFee>
<RejectionReasonCode>sample string 5</RejectionReasonCode>
<RejectionReasonMessage>sample string 4</RejectionReasonMessage>
<ValidationMessage>sample string 2</ValidationMessage>
</Reply>
</InsertPurchaseInvoiceReply>