POST api/webshop/apply-amount

Applying for an amount

Request Information

URI Parameters

None.

Body Parameters

ApplyAmountRequest
NameDescriptionTypeAdditional information
Contract

Contract

None.

Applicant

Applicant

None.

CoApplicant

CoApplicant

None.

Loan

WebshopLoan

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:
{
  "Contract": {
    "CompanyId": 1,
    "RetailerId": 2,
    "ContractId": 3,
    "ProductId": 4
  },
  "CoApplicant": {
    "FullName": "sample string 1",
    "Ssn": {
      "Pid": "sample string 1",
      "IsValid": false,
      "Result": 0,
      "Value": "sample string 2"
    },
    "Email": "sample string 2",
    "Phone": "sample string 3",
    "PictureId": {
      "IssuedBy": "sample string 1",
      "IssuedDate": "2019-05-22T16:57:06.8655222+02:00",
      "Number": "sample string 3",
      "Type": 4
    }
  },
  "Loan": {
    "PurchasingDescription": "sample string 1",
    "PurchasingAmount": 0,
    "Amount": 2,
    "Duration": 3,
    "Repayment": {
      "RepaymentMethod": "PBS",
      "BankAccount": {
        "BankNumber": "sample string 1",
        "AccountNumber": "sample string 2"
      }
    },
    "Payment": {
      "PaymentMethod": "sample string 1",
      "BankAccount": {
        "BankNumber": "sample string 1",
        "AccountNumber": "sample string 2"
      }
    }
  },
  "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

ProcessWebshopApplicationResponse
NameDescriptionTypeAdditional information
State

State of the application

RetailerApplicationState

None.

SubState

SubState of the application is used only for the applications that are accepted.

SubState

None.

ApplicantFullName

Official applicant full name.

string

None.

CoApplicantFullName

Official co-applicant full name.

string

None.

ApprovedLoan

The actual loan conditions that were approved by the bank.

ApprovedLoan

None.

DigitalSigningPage

Applicant and CoApplicant can open this link and by providing their CPR can sign the contract with their digital signature

URI

None.

Registrations

Customer registrations. Applicant/Co-Applicant must be informed about the registrations. This is enforced by danish law.Information about the registrations can only be retained for 24 hours after initial was processed.

Collection of Registration

None.

FailedRequestId

The ID to track the failed request.

integer

None.

IsExistingCustomer

boolean

None.

ContractId

Theof the contract in case of acceptance.

string

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:
{
  "State": "ACCEPTED",
  "SubState": "NO_SUB_STATE",
  "ApplicantFullName": "sample string 1",
  "CoApplicantFullName": "sample string 2",
  "ApprovedLoan": {
    "Amount": 1,
    "NominalInterestRate": 2.0,
    "AnnualEffectiveInterestRate": 3.0,
    "AnnualPercentageRate": 4.0,
    "MonthlyPayment": 5.0,
    "PayOutAmount": 6.0,
    "EstablishmentFee": 7.0,
    "PurchasingDescription": "sample string 8",
    "PurchasingAmount": 9,
    "OrderId": "sample string 10",
    "SalesAssistant": "sample string 11",
    "Duration": 12,
    "Repayment": {
      "RepaymentMethod": "PBS",
      "BankAccount": {
        "BankNumber": "sample string 1",
        "AccountNumber": "sample string 2"
      }
    },
    "Payment": {
      "PaymentMethod": "sample string 1",
      "BankAccount": {
        "BankNumber": "sample string 1",
        "AccountNumber": "sample string 2"
      }
    }
  },
  "DigitalSigningPage": "http://webapihelppage3.com",
  "Registrations": [
    "RKI",
    "RKI"
  ],
  "FailedRequestId": 4,
  "IsExistingCustomer": false,
  "ContractId": "sample string 5",
  "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-22T16:57:06.8665222+02:00"
    },
    {
      "Name": "sample string 1",
      "FlaggedBy": "sample string 2",
      "Type": "sample string 3",
      "IsPersisted": true,
      "Flagged": "2019-05-22T16:57:06.8665222+02:00"
    }
  ]
}
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body