POST public-api/phones/customer/save

This method creates/updates the phones associated with customers. It will not create new Phone Types, you will need to first create those in the web, but once you do they can be used here. Requires the Update Customer permission Accepts a maximum of 500 records at a time



Request Information

URI Parameters

None.

Body Parameters

Collection of SaveCustomerPhoneRequest
NameDescriptionTypeAdditional information
CustomerNo

string

None.

CustomerNumber

string

None.

FormId

WtFormId

None.

PhoneNumber

string

None.

PhoneExtension

string

None.

PhoneTypeName

string

None.

Request Formats

application/json

Sample:
[
  {
    "CustomerNo": "sample string 3",
    "CustomerNumber": "sample string 2",
    "FormId": 0,
    "PhoneNumber": "sample string 4",
    "PhoneExtension": "sample string 5",
    "PhoneTypeName": "sample string 6"
  },
  {
    "CustomerNo": "sample string 3",
    "CustomerNumber": "sample string 2",
    "FormId": 0,
    "PhoneNumber": "sample string 4",
    "PhoneExtension": "sample string 5",
    "PhoneTypeName": "sample string 6"
  }
]



Response Information

Resource Description

WaspResultOfResults
NameDescriptionTypeAdditional information
Data

Results

None.

Messages

Collection of WtResult

None.

BatchNumber

integer

None.

HasError

boolean

None.

HasHttpError

boolean

None.

HasMessage

boolean

None.

HasSuccessWithMoreDataRemaining

boolean

None.

TotalRecordsLongCount

integer

None.

Response Formats

application/json

Sample:
{
  "Data": {
    "ResultList": [
      {
        "ResultCode": 0,
        "Message": "sample string 1",
        "HttpStatusCode": 200,
        "FieldName": "sample string 2"
      },
      {
        "ResultCode": 0,
        "Message": "sample string 1",
        "HttpStatusCode": 200,
        "FieldName": "sample string 2"
      }
    ],
    "SuccessfullResults": 1,
    "TotalResults": 2,
    "ErrorCount": 0
  },
  "Messages": [
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    },
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    }
  ],
  "BatchNumber": 1,
  "HasError": false,
  "HasHttpError": false,
  "HasMessage": true,
  "HasSuccessWithMoreDataRemaining": false,
  "TotalRecordsLongCount": 1
}