POST api/Merchant/EditMerchant

Request Information

URI Parameters

None.

Body Parameters

CGMerchant
NameDescriptionTypeAdditional information
MerchantId

integer

None.

MerchantName

string

None.

Address

string

None.

Email

string

None.

Phone

string

None.

ClubId

integer

None.

MerchantType

string

None.

Region

string

None.

CgRegion

string

None.

CgRegionId

integer

None.

Description

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

DateDeleted

date

None.

WebsiteUrl

string

None.

RegionId

integer

None.

BankAccountNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "MerchantId": 1,
  "MerchantName": "sample string 2",
  "Address": "sample string 3",
  "Email": "sample string 4",
  "Phone": "sample string 5",
  "ClubId": 6,
  "MerchantType": "sample string 7",
  "Region": "sample string 8",
  "CgRegion": "sample string 9",
  "CgRegionId": 10,
  "Description": "sample string 11",
  "Latitude": 1.1,
  "Longitude": 1.1,
  "DateDeleted": "2024-11-26T17:21:51.419659+00:00",
  "WebsiteUrl": "sample string 12",
  "RegionId": 13,
  "BankAccountNumber": "sample string 14"
}

application/xml, text/xml

Sample:
<CGMerchant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.Data">
  <Address>sample string 3</Address>
  <BankAccountNumber>sample string 14</BankAccountNumber>
  <CgRegion>sample string 9</CgRegion>
  <CgRegionId>10</CgRegionId>
  <ClubId>6</ClubId>
  <DateDeleted>2024-11-26T17:21:51.419659+00:00</DateDeleted>
  <Description>sample string 11</Description>
  <Email>sample string 4</Email>
  <Latitude>1.1</Latitude>
  <Longitude>1.1</Longitude>
  <MerchantId>1</MerchantId>
  <MerchantName>sample string 2</MerchantName>
  <MerchantType>sample string 7</MerchantType>
  <Phone>sample string 5</Phone>
  <Region>sample string 8</Region>
  <RegionId>13</RegionId>
  <WebsiteUrl>sample string 12</WebsiteUrl>
</CGMerchant>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MerchantResponse
NameDescriptionTypeAdditional information
ResponseObject

CGMerchant

None.

Code

ResponseCode

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseObject": {
    "MerchantId": 1,
    "MerchantName": "sample string 2",
    "Address": "sample string 3",
    "Email": "sample string 4",
    "Phone": "sample string 5",
    "ClubId": 6,
    "MerchantType": "sample string 7",
    "Region": "sample string 8",
    "CgRegion": "sample string 9",
    "CgRegionId": 10,
    "Description": "sample string 11",
    "Latitude": 1.1,
    "Longitude": 1.1,
    "DateDeleted": "2024-11-26T17:21:51.419659+00:00",
    "WebsiteUrl": "sample string 12",
    "RegionId": 13,
    "BankAccountNumber": "sample string 14"
  },
  "Code": 0,
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<MerchantResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.CasualGolf.WebApi.Contracts">
  <Code>None</Code>
  <Message>sample string 1</Message>
  <ResponseObject xmlns:d2p1="http://schemas.datacontract.org/2004/07/DotGolf.Data">
    <d2p1:Address>sample string 3</d2p1:Address>
    <d2p1:BankAccountNumber>sample string 14</d2p1:BankAccountNumber>
    <d2p1:CgRegion>sample string 9</d2p1:CgRegion>
    <d2p1:CgRegionId>10</d2p1:CgRegionId>
    <d2p1:ClubId>6</d2p1:ClubId>
    <d2p1:DateDeleted>2024-11-26T17:21:51.419659+00:00</d2p1:DateDeleted>
    <d2p1:Description>sample string 11</d2p1:Description>
    <d2p1:Email>sample string 4</d2p1:Email>
    <d2p1:Latitude>1.1</d2p1:Latitude>
    <d2p1:Longitude>1.1</d2p1:Longitude>
    <d2p1:MerchantId>1</d2p1:MerchantId>
    <d2p1:MerchantName>sample string 2</d2p1:MerchantName>
    <d2p1:MerchantType>sample string 7</d2p1:MerchantType>
    <d2p1:Phone>sample string 5</d2p1:Phone>
    <d2p1:Region>sample string 8</d2p1:Region>
    <d2p1:RegionId>13</d2p1:RegionId>
    <d2p1:WebsiteUrl>sample string 12</d2p1:WebsiteUrl>
  </ResponseObject>
</MerchantResponse>