POST api/NotificationPO/ponotification

Request Information

URI Parameters

None.

Body Parameters

NotificationPOReceivedDataModels
NameDescriptionTypeAdditional information
token

string

None.

truck_number

string

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "truck_number": "sample string 2"
}

application/xml, text/xml

Sample:
<NotificationPOReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.NotificationPOIntegrator.ReceivedDataModels">
  <token>sample string 1</token>
  <truck_number>sample string 2</truck_number>
</NotificationPOReceivedDataModels>

multipart/form-data

Sample:
<NotificationPOReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.NotificationPOIntegrator.ReceivedDataModels"><token>sample string 1</token><truck_number>sample string 2</truck_number></NotificationPOReceivedDataModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NotificationPOBaseTreeModels
NameDescriptionTypeAdditional information
message

string

None.

success

boolean

None.

data

NotificationPOSentDataModels

None.

Response Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "success": true,
  "data": {
    "message": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<NotificationPOBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.NotificationPOIntegrator.BaseTreeModels">
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.NotificationPOIntegrator.SentDataModels">
    <d2p1:message>sample string 1</d2p1:message>
  </data>
  <message>sample string 1</message>
  <success>true</success>
</NotificationPOBaseTreeModels>

multipart/form-data

Sample:
<NotificationPOBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.NotificationPOIntegrator.BaseTreeModels"><data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.NotificationPOIntegrator.SentDataModels"><d2p1:message>sample string 1</d2p1:message></data><message>sample string 1</message><success>true</success></NotificationPOBaseTreeModels>