Get Billing Details for a user. The method expects a userToken or a j_username/j_password pair from which the user of this request will be determined. If the j_username/j_password pair is provided for one-time authentication, the request has to be made using HTTPS protocol. If neither the userToken nor the j_username/j_password is provided, the owner of the application will be considered making this request. This method is not available to general public. Only Veoh's partners can access this feature.
Request URL
HTTPS://www.veoh.com/rest/v1/?method=veoh.billing.updateInfo&apiKey=[your api key]
HTTP method
POST
Arguments
userToken(Optional)
The userToken that represents the requester
j_username(Optional)
The username of the user making this request. It has to represent a valid user in the sysetm.Combined with the j_password, it will be used to provide one time authentication.
j_password(Optional)
The password of the user making this request. Combined with the j_username, it will be used to provide one time authentication.
firstName(Optional)
First name
lastName(Optional)
Last name
address(Optional)
The street address.
city(Optional)
The city
province(Optional)
The province
zip(Optional)
The zip code.
country(Optional)
the country
cardNumber(Optional)
The credit card number
expirationMonth(Optional)
The expiration month of the credit card
expirationYear(Optional)
The expiration year of the credit card
cardType(Optional)
The type of the credit card
cvv(Optional)
The credit card cvv
cardToken(Optional)
The credit card token
saveBillingDetails(Optional)
Save billing details or not
changeCC(Optional)
The credit card changeCC
verbose(Optional)
The verbose level of the response. It has to be 0,1,or 2. Default is 2.
Example Response
#EXAMPLERESPONSE#
Error Codes
100 : rest.api.serviceUnavailable
The REST API service in temporarily unavailable
118 : rest.api.invalidApiKey
The api key provided in the url is not valid.
117 : rest.api.noApiKeyProvided
No api key has been provided in the request.
131 : rest.api.tooManyRequests
The number of requests made has exceeded the limit of this apiKey.
117 : rest.api.noApiKeyProvided
No api key has been provided in the request.
132 : rest.api.gapNotEnough
The request has to be made after a certain period of time associated with this apiKey
114 : rest.api.verboseNotInt
The verbose level provided in the request is not a valid integer
115 : rest.api.invalidVerbose
The verbose level provided in the request is invalid, it has to be 0, 1,or 2
128 : rest.api.httpsReqired
HTTPS protocol is required for one time authentication.
247 : rest.user.invalidUserToken
The userToken provided in the request is not valid.
248 : rest.user.invalidUserTokenExpired
The userToken provided in the request has expired.
224 : rest.user.logginFailed
The username or the password provided in the request is not valid. Authentication failed.
128 : rest.api.httpsReqired
HTTPS protocol is required for one time authentication.
212 : rest.user.invalidFirstname
The first name provided in the request is invalid
213 : rest.user.invalidLastName
The last name provided in the request is invalid
220 : rest.user.invalidAddress
The 'address' parameter provided in the request is not valid.
221 : rest.user.invalidCity
The 'city' parameter provided in the request is not valid.
222 : rest.user.invalidProvince
The 'province' parameter provided in the request is not valid.
223 : rest.user.invalidCountry
The 'country' parameter provided in the request is not valid.
224 : rest.user.invalidPostalcode
The 'postalCode' parameter provided in the request is not valid.
707 : rest.billing.invalidCardNumber
The 'cardNumber' parameter provided in the request is not valid
708 : rest.billing.invalidExpirationMonth
The 'expirationMonth' parameter provided in the request is not valid
709 : rest.billing.invalidExpirationYear
The 'expirationYear' parameter provided in the request is not valid
710 : rest.billing.invalidCardType
The 'cardType' parameter provided in the request is not valid
711 : rest.billing.invalidCardCVV
The 'cvv' parameter provided in the request is not valid
712 : rest.billing.invalidCardChangeCVV
The 'cardNumber' parameter provided in the request is not valid
713 : rest.billing.invalidCardSaveBD
The 'saveBillingDetails' parameter provided in the request is not valid
714 : rest.billing.invalidCardToken
The 'cardToken' parameter to provided in the request is not valid