POST | /api/createpaymenttoken |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
para | body | Dictionary<string, Object> | Yes | |
reference_number | body | string | Yes | |
card_type | body | string | Yes | |
card_number | body | string | Yes | |
card_expiry_date_month | body | string | Yes | |
card_expiry_date_year | body | string | Yes | |
card_cvn | body | string | Yes | |
bill_to_forename | body | string | Yes | |
bill_to_email | body | string | Yes | |
bill_to_address_line1 | body | string | Yes | |
bill_to_address_city | body | string | Yes | |
bill_to_address_state | body | string | Yes | |
bill_to_address_country | body | string | Yes | |
clientapp | body | string | Yes |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Locale | form | string | No | Locale. Ex: vi-VN, en-US |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Version | form | int | No | Version. Ex: 1,2,3,... |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ResponseText | form | string | No | |
FileInfo | form | FileInfo | No | |
ContentType | form | string | No | |
Headers | form | Dictionary<string, string> | No | |
Cookies | form | List<Cookie> | No | |
ETag | form | string | No | |
Age | form | TimeSpan? | No | |
MaxAge | form | TimeSpan? | No | |
Expires | form | DateTime? | No | |
LastModified | form | DateTime? | No | |
CacheControl | form | CacheControl | No | |
ResultScope | form | Func<IDisposable> | No | |
AllowsPartialResponse | form | bool | No | |
Options | form | IDictionary<string, string> | No | |
Status | form | int | No | |
StatusCode | form | HttpStatusCode | No | |
StatusDescription | form | string | No | |
Response | form | Object | No | |
ResponseFilter | form | IContentTypeWriter | No | |
RequestContext | form | IRequest | No | |
View | form | string | No | |
Template | form | string | No | |
PaddingLength | form | int | No | |
IsPartialRequest | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
OriginalRequest | form | Object | No | |
Response | form | IResponse | No | |
OperationName | form | string | No | |
Verb | form | string | No | |
RequestAttributes | form | RequestAttributes | No | |
RequestPreferences | form | IRequestPreferences | No | |
Dto | form | Object | No | |
ContentType | form | string | No | |
IsLocal | form | bool | No | |
UserAgent | form | string | No | |
Cookies | form | IDictionary<string, Cookie> | No | |
ResponseContentType | form | string | No | |
HasExplicitResponseContentType | form | bool | No | |
Items | form | Dictionary<string, Object> | No | |
Headers | form | INameValueCollection | No | |
QueryString | form | INameValueCollection | No | |
FormData | form | INameValueCollection | No | |
UseBufferedStream | form | bool | No | |
RawUrl | form | string | No | |
AbsoluteUri | form | string | No | |
UserHostAddress | form | string | No | |
RemoteIp | form | string | No | |
Authorization | form | string | No | |
IsSecureConnection | form | bool | No | |
AcceptTypes | form | string[] | No | |
PathInfo | form | string | No | |
ContentLength | form | long | No | |
Files | form | IHttpFile[] | No | |
UrlReferrer | form | Uri | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
OriginalResponse | form | Object | No | |
Request | form | IRequest | No | |
StatusCode | form | int | No | |
StatusDescription | form | string | No | |
ContentType | form | string | No | |
Dto | form | Object | No | |
UseBufferedStream | form | bool | No | |
IsClosed | form | bool | No | |
KeepAlive | form | bool | No | |
Items | form | Dictionary<string, Object> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcceptsGzip | form | bool | No | |
AcceptsDeflate | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Original | form | Object | No | |
AllKeys | form | string[] | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | No | |
FileName | form | string | No | |
ContentLength | form | long | No | |
ContentType | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/CreatePaymentTokenData HTTP/1.1
Host: api4.futabus.vn
Content-Type: application/xml
Content-Length: length
<CreatePaymentTokenData 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>
<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>
<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>
<para xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</para>
<reference_number>String</reference_number>
</CreatePaymentTokenData>
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" />