POST api/Webshop/Product

OBSOLETE, instead use: api/webshop/{company:int}/{retailer:int}/products/{code}

Request Information

URI Parameters

None.

Body Parameters

ProductInformationRequest
NameDescriptionTypeAdditional information
CompanyId

integer

None.

ProductCode

string

None.

RetailerId

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:
{
  "CompanyId": 1,
  "ProductCode": "sample string 2",
  "RetailerId": 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

ProductInformationResponse
NameDescriptionTypeAdditional information
CompanyId

integer

None.

RetailerId

integer

None.

ProductId

integer

None.

ProductCode

string

None.

Name

string

None.

MinLoanAmount

integer

None.

MaxLoanAmount

integer

None.

MinLoanDuration

integer

None.

MaxLoanDuration

integer

None.

ProductDocumentName

string

None.

InterestPercent

decimal number

None.

EstablishmentChargePercent

decimal number

None.

EstablishmentChargeMin

decimal number

None.

EstablishmentChargeMax

decimal number

None.

InvoiceChargePerMonth

decimal number

None.

GiroChargePerMonth

decimal number

None.

RequiresCoApplicantLimit

decimal number

None.

SecurityInsuranceAvailable

boolean

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:
{
  "CompanyId": 1,
  "RetailerId": 2,
  "ProductId": 3,
  "ProductCode": "sample string 4",
  "Name": "sample string 5",
  "MinLoanAmount": 6,
  "MaxLoanAmount": 7,
  "MinLoanDuration": 8,
  "MaxLoanDuration": 9,
  "ProductDocumentName": "sample string 10",
  "InterestPercent": 11.1,
  "EstablishmentChargePercent": 12.1,
  "EstablishmentChargeMin": 13.1,
  "EstablishmentChargeMax": 14.1,
  "InvoiceChargePerMonth": 15.1,
  "GiroChargePerMonth": 16.1,
  "RequiresCoApplicantLimit": 17.1,
  "SecurityInsuranceAvailable": true,
  "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:34:55.8794858+01:00"
    },
    {
      "Name": "sample string 1",
      "FlaggedBy": "sample string 2",
      "Type": "sample string 3",
      "IsPersisted": true,
      "Flagged": "2019-03-18T14:34:55.8794858+01:00"
    }
  ]
}
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body