PUT Receipts/ChargeInsurer

Initiates a charge request to the insurer for the specified receipt.

Request Information

URI Parameters

None.

Body Parameters

Lluni.Models.Common.Global.Recibo.InsurerReceiptCharge
NameDescriptionTypeAdditional information
PolicyId

integer

None.

Number

string

Required

TotalPremium

decimal number

Required

IsDebit

boolean

Required

InsurerAccess

string

Required

PaymentConfigurationId

integer

None.

UserCode

string

Required

Request Formats

application/json, text/json

Sample:
{
  "PolicyId": 1,
  "Number": "sample string 2",
  "TotalPremium": 3.0,
  "IsDebit": true,
  "InsurerAccess": "sample string 5",
  "PaymentConfigurationId": 1,
  "UserCode": "sample string 6"
}

application/xml, text/xml

Sample:
<InsurerReceiptCharge xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Lluni.Models.Common.Global.Recibo">
  <InsurerAccess>sample string 5</InsurerAccess>
  <IsDebit>true</IsDebit>
  <Number>sample string 2</Number>
  <PaymentConfigurationId>1</PaymentConfigurationId>
  <PolicyId>1</PolicyId>
  <TotalPremium>3</TotalPremium>
  <UserCode>sample string 6</UserCode>
</InsurerReceiptCharge>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns a string with the insurer's response if successful; otherwise, returns an appropriate error response such as BadRequest or NotFound.

Lluni.Models.Common.Global.Recibo.InsurerReceiptChargeResponse
NameDescriptionTypeAdditional information
Icon

string

None.

ErrorMessage

string

None.

ProcessNumber

string

None.

IsSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Icon": "sample string 1",
  "ErrorMessage": "sample string 2",
  "ProcessNumber": "sample string 3",
  "IsSuccess": true
}

application/xml, text/xml

Sample:
<InsurerReceiptChargeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Lluni.Models.Common.Global.Recibo">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Icon>sample string 1</Icon>
  <IsSuccess>true</IsSuccess>
  <ProcessNumber>sample string 3</ProcessNumber>
</InsurerReceiptChargeResponse>