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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"para":{"String":{}},"access_key":"String","profile_id":"String","reference_number":"String","payment_token":"String","amount":0,"currency":"String","payment_method":"String","card_type":"String","card_number":"String","card_expiry_date_month":"String","card_expiry_date_year":"String","card_cvn":"String","bill_to_forename":"String","bill_to_surname":"String","bill_to_email":"String","bill_to_address_line1":"String","bill_to_address_city":"String","bill_to_address_state":"String","bill_to_address_country":"String","transaction_uuid":"String","signed_date_time":"String","consumer_id":"String","signed_field_names":"String","unsigned_field_names":"String","signature":"String","id_token":"String","clientapp":"String","Locale":"vi-VN","Version":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}