Skip to main content

Update end-user information

Update end-user information

Last updated: 28-Apr-2017
Rate this article:

Overview

Use this method to add end user information to a subscription.

Requirements

Parameters

Parameter Type/Description

sessionID

Required (String)

 

Session identifier, output of the Login method. An exception is thrown for incorrect values.

subscriptionReferencesList

Required (StringArray)

 

 

EndUser

Object

 

Details below

 

FirstName

String

 

 

End user first name

 

LastName

String

 

 

End user last name

 

Company

String

 

 

End user company name. Can be NULL.

 

CountryCode

String

 

 

End user country code (ISO 3166 two-letter code).

 

State

String

 

 

End user state. Example: "Alabama". Can be NULL.

 

Email

String

 

 

End user email.

 

Fax

String

 

 

End user fax number. Can be NULL.

 

City

String

 

 

End user city.

 

Address1

String

 

 

End user address line 1. Can be NULL.

 

Address2

String

 

 

End user address line 2. Can be NULL.

 

Phone

String

 

 

End user phone number. Can be NULL.

 

Zip

String

 

 

End user zip. Can be NULL.

 

Language

String

 

 

ISO 639-1 two-letter language code for the end user language. Can be NULL.

Response

Parameter Type/Description
result Boolean
  True or false

Request

<?php

require ('PATH_TO_AUTH');  // Authentication example: https://knowledgecenter.avangate.com/Integration/Channel_Manager_API/JSON-RPC/02Authentication
require ('PATH_TO_setPartner'); // setPartner example: https://knowledgecenter.avangate.com/Integration/Channel_Manager_API/JSON-RPC/06Reference/Partner/00Set_partner

$subscriptionReferencesList = array('REFERENCE_1', 'REFERENCE_2');

$endUser = new stdClass();
$endUser->FirstName = 'FirstName';
$endUser->LastName = 'LastName';
$endUser->CountryCode = 'US';
$endUser->Email = 'email@example.com';
$endUser->City = 'LA';

$jsonRpcRequest = array (
'jsonrpc' => '2.0',
'id' => $i++,
'method' => 'updateSubscriptionsEndUser',
'params' => array($sessionID, $subscriptionReferencesList, $endUser)
);

var_dump (callRPC((Object)$jsonRpcRequest,$host));

Errors

Error Description

NOT_FOUND_PARTNER

A partner must be set first.

INVALID_SUBSCRIPTIONS_LIST_SIZE

Too many subscription references provided.

INVALID_COUNTRY

Invalid end user country code.

INVALID_END_USER_EMAIL

Invalid end user email provided.

EMPTY_END_USER_FIRST_NAME

End user first name is mandatory.

EMPTY_END_USER_LAST_NAME

End user last name is mandatory.

EMPTY_END_USER_CITY

End user city is mandatory.

 

Rate this article:

Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo