POST api/Upselling/LoadOfferByContractNumber

Use this method when customer does not have an existing offer.

This method is designed for the cases where customer applies for upselling on his own without recieving an offer.

Request Information

URI Parameters

None.

Body Parameters

LoadOfferByContractNumberRequest
NameDescriptionTypeAdditional information
RetailerId

ContractNumber on the contract

integer

Required

ContractId

ContractNumber on the contract

integer

Required

Cpr

CPr of the customer on the initial contract.

Cpr

Required

CompanyId

integer

None.

BasisbankReferenceId

BasisbankReferenceId

None.

Retailer

Retailer

None.

DynamicFields

Collection of Pair of string [key] and string [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "RetailerId": 1,
  "ContractId": 2,
  "Cpr": {
    "Value": "sample string 1"
  },
  "CompanyId": 3,
  "BasisbankReferenceId": {
    "ReferenceId": 1
  },
  "Retailer": {
    "CompanyId": 1,
    "RetailerId": 2,
    "EntryType": 3,
    "PinCode": 0,
    "ProductId": 4,
    "ProductCode": "sample string 5",
    "Signature": "sample string 6"
  },
  "DynamicFields": [
    {
      "Key": "sample string 1",
      "Value": "sample string 2"
    },
    {
      "Key": "sample string 1",
      "Value": "sample string 2"
    }
  ],
  "Flags": []
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LoadOfferResponse
NameDescriptionTypeAdditional information
Phone

Phone defined on the initial contract

string

None.

Email

Email defined on the initial contract.

string

None.

LoanAmount

Loan amount on the upselling offer.

decimal number

None.

ContractId

Contract number on the initial contract.

string

None.

RetailerId

Retailer number on the initial contract.

string

None.

EligableForInsurance

Inidicates if the customer should be offered an option for Trygheds Forsikring.

boolean

None.

ProductCode

string

None.

InterestRate

decimal number

None.

ProductId

integer

None.

OutstandingAmount

Outstanding Amount on original loan

decimal number

None.

UpsellingRetailerId

Retailer on the upselling offer

integer

None.

UpsellingCompanyId

Company on the upselling offer

integer

None.

rentepct_gl

The interest rate of the old application.

decimal number

None.

BasisbankReferenceId

Reference id associated with the request

BasisbankReferenceId

None.

Success

Indicates if the request was processed successfully

boolean

None.

ErrorDetails

Failure details, will be present in case of an internal error.

Exception

None.

DynamicFields

Collection of Pair of string [key] and string [value]

None.

Flags

Collection of Flag

None.

Response Formats

application/json, text/json

Sample:
{
  "Phone": "sample string 1",
  "Email": "sample string 2",
  "LoanAmount": 3.0,
  "ContractId": "sample string 4",
  "RetailerId": "sample string 5",
  "EligableForInsurance": true,
  "ProductCode": "sample string 7",
  "InterestRate": 8.0,
  "ProductId": 9,
  "OutstandingAmount": 10.0,
  "UpsellingRetailerId": 11,
  "UpsellingCompanyId": 12,
  "rentepct_gl": 13.0,
  "BasisbankReferenceId": {
    "ReferenceId": 1
  },
  "Success": false,
  "ErrorDetails": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  },
  "DynamicFields": [
    {
      "Key": "sample string 1",
      "Value": "sample string 2"
    },
    {
      "Key": "sample string 1",
      "Value": "sample string 2"
    }
  ],
  "Flags": [
    {
      "Name": "sample string 1",
      "FlaggedBy": "sample string 2",
      "Type": "sample string 3",
      "IsPersisted": true,
      "Flagged": "2019-05-22T17:05:40.6095357+02:00"
    },
    {
      "Name": "sample string 1",
      "FlaggedBy": "sample string 2",
      "Type": "sample string 3",
      "IsPersisted": true,
      "Flagged": "2019-05-22T17:05:40.6095357+02:00"
    }
  ]
}
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body