POST api/Branch/Post?apiKey={apiKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

Body Parameters

Branch
NameDescriptionTypeAdditional information
Identity

Identity

None.

CountryState

CountryState

None.

Name

string

None.

Address

string

None.

ContactNo

string

None.

TelephoneNo

string

None.

EmailID

string

None.

Attachment

Attachment

None.

Longitude

decimal number

None.

Latitude

decimal number

None.

BranchType

BranchType

None.

HoursToGetReady

integer

None.

Description

string

None.

Message

string

None.

BranchOfficeTiming

BranchOfficeTiming

None.

GoogleLocationURL

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Identity": {
    "Id": "8cbe9826-2a7f-4272-92fe-e86e1dc3cb64",
    "Code": "sample string 2"
  },
  "CountryState": {
    "StateCode": "sample string 2",
    "StateName": "sample string 3",
    "CountryCode": "sample string 4",
    "CountryName": "sample string 5",
    "NationalityCode": "sample string 6",
    "NationalityName": "sample string 7"
  },
  "Name": "sample string 4",
  "Address": "sample string 5",
  "ContactNo": "sample string 6",
  "TelephoneNo": "sample string 7",
  "EmailID": "sample string 8",
  "Attachment": {
    "AttachmentID": "f16f9827-89e5-46de-8727-d3590a586965",
    "ImageString": "sample string 6",
    "AttachmentDataBase64": "sample string 7"
  },
  "Longitude": 11.1,
  "Latitude": 12.1,
  "BranchType": {
    "BranchTypeID": "754d5645-76f2-467e-ab09-b9ee8df69cbc",
    "Name": "sample string 2",
    "Attachment": {
      "AttachmentID": "f16f9827-89e5-46de-8727-d3590a586965",
      "ImageString": "sample string 6",
      "AttachmentDataBase64": "sample string 7"
    }
  },
  "HoursToGetReady": 15,
  "Description": "sample string 18",
  "Message": "sample string 19",
  "BranchOfficeTiming": {
    "BranchTimings": [
      {
        "DayString": "sample string 1",
        "Shifts": [
          "sample string 1",
          "sample string 2"
        ]
      },
      {
        "DayString": "sample string 1",
        "Shifts": [
          "sample string 1",
          "sample string 2"
        ]
      }
    ]
  },
  "GoogleLocationURL": "sample string 20"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
IsValid

boolean

None.

Message

string

None.

Code

string

None.

ID

globally unique identifier

None.

Errors

Collection of string

None.

ErrorCodes

Collection of ErrorCode

None.

Response Formats

application/json, text/json

Sample:
{
  "IsValid": true,
  "Message": "sample string 2",
  "Code": "sample string 3",
  "ID": "e1d4e14d-bfdc-43d5-b4fc-c0b4998792d2",
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "ErrorCodes": [
    1,
    1
  ]
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity">
  <Code>sample string 3</Code>
  <ErrorCodes>
    <ErrorCode>Success</ErrorCode>
    <ErrorCode>Success</ErrorCode>
  </ErrorCodes>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <ID>e1d4e14d-bfdc-43d5-b4fc-c0b4998792d2</ID>
  <IsValid>true</IsValid>
  <Message>sample string 2</Message>
</Result>