Follow

Consumer Update

Adds or updates a consumer based on supplied username.

 

Attributes 

Attribute

Value

Path

/v3/consumer

Support Formats

JSON, XML

HTTP Method

PUT

Secure

Yes

Rate Limited

No

Cache Timeout

TBC

HTTP Codes

·        204 - No Content

·        400 - Bad Request 

·        404 - Not Found

·        409 - Confiict

·        500 - Internal Server Error. 

 

Request

The following table contains the details of a typical HTTP Request for this service:

Type

Value

Header

POST /v3/consumer HTTP/1.1

Host: merchant.api.vmob.co

Content-Type: application/json

Accept-Language: en-US

x-vmob-authorization: dm1vYi53aW5kb3dzLjE6

Body 

{

 "userName":"john.doe@vmoblive.com",

 "password":"password123",

 "firstName": "John",

 "lastName": "Doe",

 "fullName": "John Doe",

 "gender": "m",

 "dateOfBirth":"1993-05-23",

 "emailAddress":"john.doe@vmoblive.com",

 "homeCity":4,

 "extendedData":"key1=value1,key2=value2",

 "tagValueAddReferenceCodes": ["plus9", ],

 "tagValueRemoveReferenceCodes": ["plus7", "plus8"]

}

 Notes:

  • If no consumer is found, a 404 will be returned.
  • All fields are optional apart from userName.
  • Please note - this API does not consider updates by consumers through the consumer API, so operates with a 'last in wins' model. Updates through this API will always overwrite whatever is currently recorded against the consumer.

 

Successful Response

The following table contains the details of a typical successful HTTP Request for this service. 

Type

Value

Header

HTTP/1.1 204 No Content

Content-Type: application/json

Cache-Control: no-store

Pragma: no-cache

Body

Empty

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.