POST api/CompanyBorrower/v1/InsertPurchaseInvoice
Request Information
URI Parameters
None.
Body Parameters
InsertPurchaseInvoiceRequestName | 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": "06f16368-a5b1-4268-baf0-a906adc9f26d", "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>06f16368-a5b1-4268-baf0-a906adc9f26d</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
InsertPurchaseInvoiceReplyName | 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": "26f68ce1-f7dd-4f69-a5eb-d1b218379c59", "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>26f68ce1-f7dd-4f69-a5eb-d1b218379c59</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>