POST api/forb2b/add-shipping-address

Request Information

URI Parameters

None.

Body Parameters

B2B_ShipmentDetails
NameDescriptionTypeAdditional information
Id

integer

None.

ShippmentId

string

None.

Name

string

Required

MobileNo

string

Required

CustomerId

string

Required

EmailId

string

Required

Address1

string

Required

Address2

string

None.

Landmark

string

None.

City

string

Required

State

string

Required

PinCode

string

Required

WorkType

string

Required

Isdefault

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ShippmentId": "sample string 2",
  "Name": "sample string 3",
  "MobileNo": "sample string 4",
  "CustomerId": "sample string 5",
  "EmailId": "sample string 6",
  "Address1": "sample string 7",
  "Address2": "sample string 8",
  "Landmark": "sample string 9",
  "City": "sample string 10",
  "State": "sample string 11",
  "PinCode": "sample string 12",
  "WorkType": "sample string 13",
  "Isdefault": 1
}

application/xml, text/xml

Sample:
<B2B_ShipmentDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/fonofy_api.Model">
  <Address1>sample string 7</Address1>
  <Address2>sample string 8</Address2>
  <City>sample string 10</City>
  <CustomerId>sample string 5</CustomerId>
  <EmailId>sample string 6</EmailId>
  <Id>1</Id>
  <Isdefault>1</Isdefault>
  <Landmark>sample string 9</Landmark>
  <MobileNo>sample string 4</MobileNo>
  <Name>sample string 3</Name>
  <PinCode>sample string 12</PinCode>
  <ShippmentId>sample string 2</ShippmentId>
  <State>sample string 11</State>
  <WorkType>sample string 13</WorkType>
</B2B_ShipmentDetails>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'B2B_ShipmentDetails'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.