POST api/PetOffer/SubmitNewItemForSale

Request Information

URI Parameters

None.

Body Parameters

customeObject
NameDescriptionTypeAdditional information
petOfferInc

PetOffer

None.

PetCategoryAttributeValueList

Collection of PetCategoryAttributeValue

None.

Request Formats

application/json, text/json

Sample:
{
  "petOfferInc": {
    "PetOfferID": "9bebfe0a-91bf-40f5-a567-02ed2057c13e",
    "PetOfferTitle": "sample string 2",
    "Price": 1.1,
    "AccountID": "3b857f8a-c942-4a07-9b22-405b0c985dc0",
    "MobileNumber": "sample string 3",
    "PetCategoryID": 1,
    "ExpiryDate": "2021-01-25T14:10:27.2301123+01:00",
    "PetOfferStatusID": 1,
    "DiscountSerial": "sample string 4",
    "RemainingDiscountCount": 1,
    "CreatedOn": "2021-01-25T14:10:27.2301123+01:00",
    "IsPopular": 1,
    "Address": "sample string 5",
    "Description": "sample string 6",
    "Comment": "sample string 7",
    "Discount": "sample string 8",
    "PetCategory": {
      "PetCategoryID": 1,
      "Name": "sample string 2",
      "ParentID": 1,
      "CreatedOn": "2021-01-25T14:10:27.2301123+01:00",
      "CreatedByID": "0d38797c-bdcd-4d6d-bbde-448528afe457",
      "IsActive": true,
      "HasChild": true,
      "ImageURL": "sample string 3"
    }
  },
  "PetCategoryAttributeValueList": [
    {
      "PetCategoryAttributeValueID": 1,
      "PetCategoryAttributeID": 1,
      "Value": "sample string 2",
      "PetOfferID": "6cb06317-377a-4f29-9704-87213719d576",
      "PetCategoryAttribute": {
        "PetCategoryAttributeID": 1,
        "PetCategoryID": 1,
        "Name": "sample string 2",
        "AttributeTypeID": 3,
        "IsRequired": true,
        "CreatedOn": "2021-01-25T14:10:27.2301123+01:00",
        "CreatedByID": 1,
        "IsCategoryFilter": true,
        "ViewType": 1,
        "IsActive": true,
        "PetCategory": {
          "PetCategoryID": 1,
          "Name": "sample string 2",
          "ParentID": 1,
          "CreatedOn": "2021-01-25T14:10:27.2301123+01:00",
          "CreatedByID": "0d38797c-bdcd-4d6d-bbde-448528afe457",
          "IsActive": true,
          "HasChild": true,
          "ImageURL": "sample string 3"
        },
        "PetCategoryAttributeValues": [],
        "PickListValues": [
          {
            "PickListValueID": 1,
            "PickListValueName": "sample string 2",
            "PetCategoryAttributeID": 3
          },
          {
            "PickListValueID": 1,
            "PickListValueName": "sample string 2",
            "PetCategoryAttributeID": 3
          }
        ]
      }
    },
    {
      "PetCategoryAttributeValueID": 1,
      "PetCategoryAttributeID": 1,
      "Value": "sample string 2",
      "PetOfferID": "6cb06317-377a-4f29-9704-87213719d576",
      "PetCategoryAttribute": {
        "PetCategoryAttributeID": 1,
        "PetCategoryID": 1,
        "Name": "sample string 2",
        "AttributeTypeID": 3,
        "IsRequired": true,
        "CreatedOn": "2021-01-25T14:10:27.2301123+01:00",
        "CreatedByID": 1,
        "IsCategoryFilter": true,
        "ViewType": 1,
        "IsActive": true,
        "PetCategory": {
          "PetCategoryID": 1,
          "Name": "sample string 2",
          "ParentID": 1,
          "CreatedOn": "2021-01-25T14:10:27.2301123+01:00",
          "CreatedByID": "0d38797c-bdcd-4d6d-bbde-448528afe457",
          "IsActive": true,
          "HasChild": true,
          "ImageURL": "sample string 3"
        },
        "PetCategoryAttributeValues": [],
        "PickListValues": [
          {
            "PickListValueID": 1,
            "PickListValueName": "sample string 2",
            "PetCategoryAttributeID": 3
          },
          {
            "PickListValueID": 1,
            "PickListValueName": "sample string 2",
            "PetCategoryAttributeID": 3
          }
        ]
      }
    }
  ]
}

text/html

Sample:
{"petOfferInc":{"PetOfferID":"9bebfe0a-91bf-40f5-a567-02ed2057c13e","PetOfferTitle":"sample string 2","Price":1.1,"AccountID":"3b857f8a-c942-4a07-9b22-405b0c985dc0","MobileNumber":"sample string 3","PetCategoryID":1,"ExpiryDate":"2021-01-25T14:10:27.2301123+01:00","PetOfferStatusID":1,"DiscountSerial":"sample string 4","RemainingDiscountCount":1,"CreatedOn":"2021-01-25T14:10:27.2301123+01:00","IsPopular":1,"Address":"sample string 5","Description":"sample string 6","Comment":"sample string 7","Discount":"sample string 8","PetCategory":{"PetCategoryID":1,"Name":"sample string 2","ParentID":1,"CreatedOn":"2021-01-25T14:10:27.2301123+01:00","CreatedByID":"0d38797c-bdcd-4d6d-bbde-448528afe457","IsActive":true,"HasChild":true,"ImageURL":"sample string 3"}},"PetCategoryAttributeValueList":[{"PetCategoryAttributeValueID":1,"PetCategoryAttributeID":1,"Value":"sample string 2","PetOfferID":"6cb06317-377a-4f29-9704-87213719d576","PetCategoryAttribute":{"PetCategoryAttributeID":1,"PetCategoryID":1,"Name":"sample string 2","AttributeTypeID":3,"IsRequired":true,"CreatedOn":"2021-01-25T14:10:27.2301123+01:00","CreatedByID":1,"IsCategoryFilter":true,"ViewType":1,"IsActive":true,"PetCategory":{"PetCategoryID":1,"Name":"sample string 2","ParentID":1,"CreatedOn":"2021-01-25T14:10:27.2301123+01:00","CreatedByID":"0d38797c-bdcd-4d6d-bbde-448528afe457","IsActive":true,"HasChild":true,"ImageURL":"sample string 3"},"PetCategoryAttributeValues":[],"PickListValues":[{"PickListValueID":1,"PickListValueName":"sample string 2","PetCategoryAttributeID":3},{"PickListValueID":1,"PickListValueName":"sample string 2","PetCategoryAttributeID":3}]}},{"PetCategoryAttributeValueID":1,"PetCategoryAttributeID":1,"Value":"sample string 2","PetOfferID":"6cb06317-377a-4f29-9704-87213719d576","PetCategoryAttribute":{"PetCategoryAttributeID":1,"PetCategoryID":1,"Name":"sample string 2","AttributeTypeID":3,"IsRequired":true,"CreatedOn":"2021-01-25T14:10:27.2301123+01:00","CreatedByID":1,"IsCategoryFilter":true,"ViewType":1,"IsActive":true,"PetCategory":{"PetCategoryID":1,"Name":"sample string 2","ParentID":1,"CreatedOn":"2021-01-25T14:10:27.2301123+01:00","CreatedByID":"0d38797c-bdcd-4d6d-bbde-448528afe457","IsActive":true,"HasChild":true,"ImageURL":"sample string 3"},"PetCategoryAttributeValues":[],"PickListValues":[{"PickListValueID":1,"PickListValueName":"sample string 2","PetCategoryAttributeID":3},{"PickListValueID":1,"PickListValueName":"sample string 2","PetCategoryAttributeID":3}]}}]}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.