POST api/Upselling/ApplyForUpselling

Submit the application for an upselling offer.

Request Information

URI Parameters

None.

Body Parameters

ApplyForUpsellingRequest
NameDescriptionTypeAdditional information
Cpr

Cpr of the Main application on the initial contract for the upselling.

Cpr

Required

ContractId

Contract nr of the initial contract for the upselling.

integer

Required

RetailerId

Retailer of the initial contract for this upselling.

integer

Required

Phone

string

Required

Data type: PhoneNumber

Matching regular expression pattern: ^\d{8,8}$

String length: inclusive between 8 and 8

Email

string

Required

Data type: EmailAddress

Loan

Loan information

LoanWithPaymentOption

Required

Agreements

What customer agreed to.

Collection of AgreedTo

Required

BasisbankReferenceId

BasisbankReferenceId

None.

Retailer

Retailer

None.

DynamicFields

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

None.

Request Formats

application/json, text/json

Sample:
{
  "Cpr": {
    "Value": "sample string 1"
  },
  "ContractId": 1,
  "RetailerId": 2,
  "Phone": "sample string 3",
  "Email": "sample string 4",
  "Loan": {
    "Payment": {
      "PaymentMethod": "sample string 1",
      "BankAccount": {
        "BankNumber": "sample string 1",
        "AccountNumber": "sample string 2"
      }
    },
    "Amount": 1,
    "Duration": 2,
    "Repayment": {
      "RepaymentMethod": "PBS",
      "BankAccount": {
        "BankNumber": "sample string 1",
        "AccountNumber": "sample string 2"
      }
    }
  },
  "Agreements": [
    "MARKETING",
    "MARKETING"
  ],
  "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

ProcessResponse
NameDescriptionTypeAdditional information
IsExistingCustomer

boolean

None.

ApplicationState

ApplicationState

None.

PrintDocumentsUrl

string

None.

InterestRate

decimal number

None.

ContractId

Remove this when search by refid is implemented in frontoffice

string

None.

RegistredInDbr

boolean

None.

RegistredInRki

boolean

None.

FailedId

integer

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:
{
  "IsExistingCustomer": false,
  "ApplicationState": 0,
  "PrintDocumentsUrl": "sample string 1",
  "InterestRate": 2.1,
  "ContractId": "sample string 3",
  "RegistredInDbr": true,
  "RegistredInRki": true,
  "FailedId": 6,
  "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-03-18T14:26:03.1334858+01:00"
    },
    {
      "Name": "sample string 1",
      "FlaggedBy": "sample string 2",
      "Type": "sample string 3",
      "IsPersisted": true,
      "Flagged": "2019-03-18T14:26:03.1334858+01:00"
    }
  ]
}
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body