Update Customer Profile
An Update Customer Profile request allows you to update a customer profile that is stored in a PayTrace PCI-compliant Customer Database(Vault).
Request
Response
POST: /v1/customer/update
REQUEST:
{
"customer_id": "customer456",
"billing_address": {
"zip": 85284,
"name": "Kevin Smith",
"street_address": "8320 E. West St",
"city": "Spokane",
"state": "WA",
"country":"US"
},
"credit_card": {
"number": 4111111111111111,
"expiration_month": 12,
"expiration_year": 2020
},
"csc": 999,
"shipping_address":{
"zip": 85284,
"name": "Kevin Smith",
"street_address": "8320 E. West St",
"city": "Spokane",
"state": "WA",
"county":"",
"country":"US"
},
"email":"",
"phone":"",
"fax":"",
"direct_deposit_account":"",
"transit_routing_number":"",
"new_id":""
}
Field types: R – Required, O – Optional, C - Conditional
RESPONSE:
{
"success": true,
"response_code": 161,
"status_message": "The customer profile for customer456/Kevin Smith was successfully updated.",
"customer_id": "customer456",
"masked_card_number": "xxxxxxxxxxxx1111"
}
page revision: 2, last edited: 12 May 2015 03:30