POST api/Webhook/RestaurantStatus

Use this API, find out the webhook payload JSON.

Request Information

URI Parameters

None.

Body Parameters

PiestroStatus
NameDescriptionTypeAdditional information
event

string

None.

payload

PiestroPayload

None.

Request Formats

application/json, text/json

Sample:
{
  "event": "sample string 1",
  "payload": {
    "id": "sample string 1",
    "Msg": "sample string 2",
    "orderId": "sample string 3",
    "name": "sample string 4",
    "phoneNumber": "sample string 5",
    "unlockCode": "sample string 6",
    "lockers": [
      1,
      2
    ],
    "lockersStr": "sample string 7",
    "status": "sample string 8",
    "statusCode": 9
  }
}

application/xml, text/xml

Sample:
<PiestroStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObject">
  <event>sample string 1</event>
  <payload>
    <Msg>sample string 2</Msg>
    <id>sample string 1</id>
    <lockers xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </lockers>
    <lockersStr>sample string 7</lockersStr>
    <name>sample string 4</name>
    <orderId>sample string 3</orderId>
    <phoneNumber>sample string 5</phoneNumber>
    <status>sample string 8</status>
    <statusCode>9</statusCode>
    <unlockCode>sample string 6</unlockCode>
  </payload>
</PiestroStatus>

Response Information

Resource Description

APIResponseBaseOfObject
NameDescriptionTypeAdditional information
StatusCode

integer

None.

IsSuccess

boolean

None.

Message

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1,
  "IsSuccess": true,
  "Message": "sample string 3",
  "Result": {}
}

application/xml, text/xml

Sample:
<APIResponseBaseOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObject.Other">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 3</Message>
  <Result />
  <StatusCode>1</StatusCode>
</APIResponseBaseOfanyType>