Orders-orderId-account-paymentInfo:GET

From Hostway API Documentation
Revision as of 18:04, 15 February 2013 by Mike.robski (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GET /orders/{orderId}/account/paymentInfo

Get the payment method information for a given order. Only a minimum amount of information will be returned to recognize the payment method.

Contents


Request

GET /orders/{orderId}/account/paymentInfo

Request Parameters

orderId - string
The unique order Id. The URI of the order is returned by the POST /orders call.

URI Parameters

None.

Request Headers

Cookie
A cookie named OwnerId to identify the client (for most browser clients, the browser will do this automatically, depending on the browser configuration). The value of the cookie would come from the response to the create order request in the Set-Cookie response header.

Response

Status Code

200 OK
The operation was successfully completed.
404 Not Found
An account or payment method has not been added to the given order or the order does not exist.

Response Body

{
  "paymentInfoType": "credit_card",
  "accountNumber": "************1111",
  "creditCardType": "visa",
  "expirationDate": "2012-08",
  "links": [
    {"href": "https://api.hostway.com/orders/{order_id}/account/paymentInfo/", "rel": "self"}
  ]
}
 

Parameters

paymentInfoType - string
The type of payment method. Possible value(s) are:
credit_card
accountNumber - string
The credit card number. Only the last four digits will be revealed. Only applies for credit cards.
creditCardType - string
The type of credit card such as visa, mastercard, discover, etc. Only applies for credit cards.
expirationDate - string
The credit card expiration date in YYYY-MM format. Only applies for credit cards.
links - list
Hypermedia for this resource. Links to self.

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox