PT.Api

<back to all web services

UpdatePaymentTokenData

Requires Authentication
The following routes are available for this service:
POST/api/updatepaymenttoken
UpdatePaymentTokenData Parameters:
NameParameterData TypeRequiredDescription
parabodyDictionary<string, Object>Yes
access_keybodystringYes
profile_idbodystringYes
reference_numberbodystringYes
payment_tokenbodystringYes
amountbodyfloatYes
currencybodystringYes
payment_methodbodystringYes
card_typebodystringYes
card_numberbodystringYes
card_expiry_date_monthbodystringYes
card_expiry_date_yearbodystringYes
card_cvnbodystringYes
bill_to_forenamebodystringYes
bill_to_surnamebodystringYes
bill_to_emailbodystringYes
bill_to_address_line1bodystringYes
bill_to_address_citybodystringYes
bill_to_address_statebodystringYes
bill_to_address_countrybodystringYes
transaction_uuidbodystringYes
signed_date_timebodystringYes
consumer_idbodystringYes
signed_field_namesbodystringYes
unsigned_field_namesbodystringYes
signaturebodystringYes
id_tokenbodystringYes
clientappbodystringYes
LocaleRequest Parameters:
NameParameterData TypeRequiredDescription
LocaleformstringNoLocale. Ex: vi-VN, en-US
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
VersionformintNoVersion. Ex: 1,2,3,...
HttpResult Parameters:
NameParameterData TypeRequiredDescription
ResponseTextformstringNo
FileInfoformFileInfoNo
ContentTypeformstringNo
HeadersformDictionary<string, string>No
CookiesformList<Cookie>No
ETagformstringNo
AgeformTimeSpan?No
MaxAgeformTimeSpan?No
ExpiresformDateTime?No
LastModifiedformDateTime?No
CacheControlformCacheControlNo
ResultScopeformFunc<IDisposable>No
AllowsPartialResponseformboolNo
OptionsformIDictionary<string, string>No
StatusformintNo
StatusCodeformHttpStatusCodeNo
StatusDescriptionformstringNo
ResponseformObjectNo
ResponseFilterformIContentTypeWriterNo
RequestContextformIRequestNo
ViewformstringNo
TemplateformstringNo
PaddingLengthformintNo
IsPartialRequestformboolNo
IRequest Parameters:
NameParameterData TypeRequiredDescription
OriginalRequestformObjectNo
ResponseformIResponseNo
OperationNameformstringNo
VerbformstringNo
RequestAttributesformRequestAttributesNo
RequestPreferencesformIRequestPreferencesNo
DtoformObjectNo
ContentTypeformstringNo
IsLocalformboolNo
UserAgentformstringNo
CookiesformIDictionary<string, Cookie>No
ResponseContentTypeformstringNo
HasExplicitResponseContentTypeformboolNo
ItemsformDictionary<string, Object>No
HeadersformINameValueCollectionNo
QueryStringformINameValueCollectionNo
FormDataformINameValueCollectionNo
UseBufferedStreamformboolNo
RawUrlformstringNo
AbsoluteUriformstringNo
UserHostAddressformstringNo
RemoteIpformstringNo
AuthorizationformstringNo
IsSecureConnectionformboolNo
AcceptTypesformstring[]No
PathInfoformstringNo
ContentLengthformlongNo
FilesformIHttpFile[]No
UrlReferrerformUriNo
IResponse Parameters:
NameParameterData TypeRequiredDescription
OriginalResponseformObjectNo
RequestformIRequestNo
StatusCodeformintNo
StatusDescriptionformstringNo
ContentTypeformstringNo
DtoformObjectNo
UseBufferedStreamformboolNo
IsClosedformboolNo
KeepAliveformboolNo
ItemsformDictionary<string, Object>No
IRequestPreferences Parameters:
NameParameterData TypeRequiredDescription
AcceptsGzipformboolNo
AcceptsDeflateformboolNo
INameValueCollection Parameters:
NameParameterData TypeRequiredDescription
OriginalformObjectNo
AllKeysformstring[]No
IHttpFile Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
FileNameformstringNo
ContentLengthformlongNo
ContentTypeformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/UpdatePaymentTokenData HTTP/1.1 
Host: api5.futabus.vn 
Content-Type: application/xml
Content-Length: length

<UpdatePaymentTokenData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel">
  <Version xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">0</Version>
  <Locale xmlns="http://schemas.datacontract.org/2004/07/PT.Api.ServiceModel.Common">vi-VN</Locale>
  <access_key>String</access_key>
  <amount>0</amount>
  <bill_to_address_city>String</bill_to_address_city>
  <bill_to_address_country>String</bill_to_address_country>
  <bill_to_address_line1>String</bill_to_address_line1>
  <bill_to_address_state>String</bill_to_address_state>
  <bill_to_email>String</bill_to_email>
  <bill_to_forename>String</bill_to_forename>
  <bill_to_surname>String</bill_to_surname>
  <card_cvn>String</card_cvn>
  <card_expiry_date_month>String</card_expiry_date_month>
  <card_expiry_date_year>String</card_expiry_date_year>
  <card_number>String</card_number>
  <card_type>String</card_type>
  <clientapp>String</clientapp>
  <consumer_id>String</consumer_id>
  <currency>String</currency>
  <id_token>String</id_token>
  <para xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </para>
  <payment_method>String</payment_method>
  <payment_token>String</payment_token>
  <profile_id>String</profile_id>
  <reference_number>String</reference_number>
  <signature>String</signature>
  <signed_date_time>String</signed_date_time>
  <signed_field_names>String</signed_field_names>
  <transaction_uuid>String</transaction_uuid>
  <unsigned_field_names>String</unsigned_field_names>
</UpdatePaymentTokenData>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomHttpResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types" />