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": "5fc295f0-1503-43eb-922a-a73af6a0599e",
    "PetOfferTitle": "sample string 2",
    "Price": 1.1,
    "AccountID": "e70904f7-5db7-4645-bada-f872f92dd1aa",
    "MobileNumber": "sample string 3",
    "PetCategoryID": 1,
    "ExpiryDate": "2020-07-08T00:50:00.8823785+02:00",
    "PetOfferStatusID": 1,
    "DiscountSerial": "sample string 4",
    "RemainingDiscountCount": 1,
    "CreatedOn": "2020-07-08T00:50:00.8823785+02: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": "2020-07-08T00:50:00.8823785+02:00",
      "CreatedByID": "64d6bb88-6771-4a90-81b5-5a83ca3e34a9",
      "IsActive": true,
      "HasChild": true,
      "ImageURL": "sample string 3"
    }
  },
  "PetCategoryAttributeValueList": [
    {
      "PetCategoryAttributeValueID": 1,
      "PetCategoryAttributeID": 1,
      "Value": "sample string 2",
      "PetOfferID": "b376810c-4295-411b-a93c-4ac2a4874c7c",
      "PetCategoryAttribute": {
        "PetCategoryAttributeID": 1,
        "PetCategoryID": 1,
        "Name": "sample string 2",
        "AttributeTypeID": 3,
        "IsRequired": true,
        "CreatedOn": "2020-07-08T00:50:00.8823785+02:00",
        "CreatedByID": 1,
        "IsCategoryFilter": true,
        "ViewType": 1,
        "IsActive": true,
        "PetCategory": {
          "PetCategoryID": 1,
          "Name": "sample string 2",
          "ParentID": 1,
          "CreatedOn": "2020-07-08T00:50:00.8823785+02:00",
          "CreatedByID": "64d6bb88-6771-4a90-81b5-5a83ca3e34a9",
          "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": "b376810c-4295-411b-a93c-4ac2a4874c7c",
      "PetCategoryAttribute": {
        "PetCategoryAttributeID": 1,
        "PetCategoryID": 1,
        "Name": "sample string 2",
        "AttributeTypeID": 3,
        "IsRequired": true,
        "CreatedOn": "2020-07-08T00:50:00.8823785+02:00",
        "CreatedByID": 1,
        "IsCategoryFilter": true,
        "ViewType": 1,
        "IsActive": true,
        "PetCategory": {
          "PetCategoryID": 1,
          "Name": "sample string 2",
          "ParentID": 1,
          "CreatedOn": "2020-07-08T00:50:00.8823785+02:00",
          "CreatedByID": "64d6bb88-6771-4a90-81b5-5a83ca3e34a9",
          "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":"5fc295f0-1503-43eb-922a-a73af6a0599e","PetOfferTitle":"sample string 2","Price":1.1,"AccountID":"e70904f7-5db7-4645-bada-f872f92dd1aa","MobileNumber":"sample string 3","PetCategoryID":1,"ExpiryDate":"2020-07-08T00:50:00.8823785+02:00","PetOfferStatusID":1,"DiscountSerial":"sample string 4","RemainingDiscountCount":1,"CreatedOn":"2020-07-08T00:50:00.8823785+02: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":"2020-07-08T00:50:00.8823785+02:00","CreatedByID":"64d6bb88-6771-4a90-81b5-5a83ca3e34a9","IsActive":true,"HasChild":true,"ImageURL":"sample string 3"}},"PetCategoryAttributeValueList":[{"PetCategoryAttributeValueID":1,"PetCategoryAttributeID":1,"Value":"sample string 2","PetOfferID":"b376810c-4295-411b-a93c-4ac2a4874c7c","PetCategoryAttribute":{"PetCategoryAttributeID":1,"PetCategoryID":1,"Name":"sample string 2","AttributeTypeID":3,"IsRequired":true,"CreatedOn":"2020-07-08T00:50:00.8823785+02:00","CreatedByID":1,"IsCategoryFilter":true,"ViewType":1,"IsActive":true,"PetCategory":{"PetCategoryID":1,"Name":"sample string 2","ParentID":1,"CreatedOn":"2020-07-08T00:50:00.8823785+02:00","CreatedByID":"64d6bb88-6771-4a90-81b5-5a83ca3e34a9","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":"b376810c-4295-411b-a93c-4ac2a4874c7c","PetCategoryAttribute":{"PetCategoryAttributeID":1,"PetCategoryID":1,"Name":"sample string 2","AttributeTypeID":3,"IsRequired":true,"CreatedOn":"2020-07-08T00:50:00.8823785+02:00","CreatedByID":1,"IsCategoryFilter":true,"ViewType":1,"IsActive":true,"PetCategory":{"PetCategoryID":1,"Name":"sample string 2","ParentID":1,"CreatedOn":"2020-07-08T00:50:00.8823785+02:00","CreatedByID":"64d6bb88-6771-4a90-81b5-5a83ca3e34a9","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.