POST api/v1/customers/merge

Request Information

URI Parameters

None.

Body Parameters

GraphCustomerMerge
NameDescriptionTypeAdditional information
KeepCustomerID

globally unique identifier

None.

RemoveCustomerIDs

Collection of globally unique identifier

None.

BranchID

globally unique identifier

None.

Version

Phiên bản

string

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "KeepCustomerID": "381d17d0-a199-4a2e-8471-47774371332b",
  "RemoveCustomerIDs": [
    "9c32099f-5dbe-4ac4-bdd8-49f073024be1",
    "08701040-772d-42aa-bd79-8584693e1317"
  ],
  "BranchID": "5773ae54-0ca7-417e-8957-d6d9735a7fc5",
  "Version": "sample string 3"
}

application/xml, text/xml

Sample:
<GraphCustomerMerge xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
  <Version>sample string 3</Version>
  <BranchID>5773ae54-0ca7-417e-8957-d6d9735a7fc5</BranchID>
  <KeepCustomerID>381d17d0-a199-4a2e-8471-47774371332b</KeepCustomerID>
  <RemoveCustomerIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>9c32099f-5dbe-4ac4-bdd8-49f073024be1</d2p1:guid>
    <d2p1:guid>08701040-772d-42aa-bd79-8584693e1317</d2p1:guid>
  </RemoveCustomerIDs>
</GraphCustomerMerge>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GraphServiceActionResult
NameDescriptionTypeAdditional information
Code

Mã HTTP trả về cho client

HttpStatusCode

None.

ErrorType

Loại lỗi

GrapAPIServiceErrorType

None.

ErrorMessage

Thông tin lỗi

string

None.

Data

Dữ liệu trả về cho client

Object

None.

Total

Tổng số bản ghi trên grid

integer

None.

Success

Thực thi Service thành công

boolean

None.

PrimaryKeyValue

Trả về ID của đối tượng khi cất thành công Phục vụ cho việc cập nhật ID của record trên grid sau khi thêm đối tượng

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "Code": 100,
  "ErrorType": 0,
  "ErrorMessage": "sample string 1",
  "Data": {},
  "Total": 3,
  "Success": true,
  "PrimaryKeyValue": {}
}

application/xml, text/xml

Sample:
<GraphServiceActionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
  <ActionType>Login</ActionType>
  <Code>Continue</Code>
  <Data />
  <ErrorMessage>sample string 1</ErrorMessage>
  <ErrorType>None</ErrorType>
  <PrimaryKeyValue />
  <ServerExceptionTraceMessage>sample string 6</ServerExceptionTraceMessage>
  <Success>true</Success>
  <Total>3</Total>
</GraphServiceActionResult>