POST api/OfferingService/PostOffering

Request Information

URI Parameters

None.

Body Parameters

PulishOfferingViewModel
NameDescriptionTypeAdditional information
OfferingId

integer

None.

OfferingCode

string

None.

OfferingName

string

Required

String length: inclusive between 0 and 128

OfferingCategoryId

integer

None.

StartTime

string

None.

EndTime

string

None.

ShopOfferingCategoryId

integer

None.

ShopOfferingCategoryParentId

integer

None.

Keywords

string

None.

BrandId

integer

None.

OfferingModel

string

None.

Unit

string

Required

PdfUrl

string

None.

PdfName

string

None.

IsUploadPdf

boolean

None.

OfferingPdfId

string

None.

Pics

Dictionary of string [key] and string [value]

None.

Price

decimal number

None.

MinPrice

decimal number

None.

MaxPrice

decimal number

None.

OfferingProvider

string

None.

OfferingDesc

string

None.

OfferingRemark

string

None.

SettlementTypes

string

None.

TransactionTypes

string

None.

SupplyChainStagingProvider

string

None.

FinanceLeaseProvider

string

None.

CustomParams

Dictionary of string [key] and string [value]

None.

Services

Collection of ServiceViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "OfferingId": 1,
  "OfferingCode": "sample string 2",
  "OfferingName": "sample string 3",
  "OfferingCategoryId": 5,
  "StartTime": "sample string 7",
  "EndTime": "sample string 8",
  "ShopOfferingCategoryId": 9,
  "ShopOfferingCategoryParentId": 10,
  "Keywords": "sample string 11",
  "BrandId": 1,
  "OfferingModel": "sample string 12",
  "Unit": "sample string 13",
  "PdfUrl": "sample string 14",
  "PdfName": "sample string 15",
  "IsUploadPdf": true,
  "OfferingPdfId": "sample string 17",
  "Pics": {
    "$id": "2",
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "Price": 1.0,
  "MinPrice": 1.0,
  "MaxPrice": 1.0,
  "OfferingProvider": "sample string 18",
  "OfferingDesc": "sample string 19",
  "OfferingRemark": "sample string 20",
  "SettlementTypes": "sample string 21",
  "TransactionTypes": "sample string 22",
  "SupplyChainStagingProvider": "sample string 23",
  "FinanceLeaseProvider": "sample string 24",
  "CustomParams": {
    "$id": "3",
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "Services": [
    {
      "$id": "4",
      "IsRequired": true,
      "ServiceID": 2,
      "ServiceProviderId": 3,
      "Name": "sample string 4",
      "Description": "sample string 5",
      "ServiceType": 0,
      "DataType": 0,
      "Code": "sample string 6",
      "ServiceAttributes": [
        {
          "$id": "5",
          "ServiceID": 1,
          "ServiceAttributeID": 2,
          "DataType": 0,
          "AttributeName": "sample string 3",
          "AttributeValue": "sample string 4",
          "AttributeValue1": "sample string 5",
          "IsProviderAttr": 6,
          "Priority": 7,
          "IsSelected": true,
          "CodeTypeID": 1
        },
        {
          "$ref": "5"
        }
      ],
      "IsDeleted": true,
      "IsProvider": true
    },
    {
      "$ref": "4"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfDictionaryOfBooleanAndString

None.

Response Formats

application/json, text/json

Sample:
{
  "HttpStatusCode": 100,
  "Success": true,
  "ResultType": 0,
  "message": "sample string 2",
  "LogMessage": "sample string 3",
  "Result": {
    "$id": "2",
    "True": "sample string 2"
  },
  "success": true
}