Billing Address

A billing address associated with the credit card represented by a token

Methods

PUT

Update the billing address for the credit card represented by the token

Request

Copied!
{
 "type": "object",
 "properties": {
  "address1": {
   "type": "string"
  },
  "address2": {
   "type": "string"
  },
  "address3": {
   "type": "string"
  },
  "postalCode": {
   "type": "string"
  },
  "city": {
   "type": "string"
  },
  "state": {
   "type": "string"
  },
  "countryCode": {
   "type": "string",
   "pattern": "^[A-Z]*$",
   "minLength": 2,
   "maxLength": 2
  }
 },
 "required": [
  "address1",
  "postalCode",
  "city",
  "countryCode"
 ]
}

Responses

Examples

PUT
 Update a billing address.
View
put
 Update a billing address. 
PUThttps://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoiajlLeUdhOUp6SExsd3JYN2RmdmFMeVM5cUt2Q0sweXd4UVdaejhPdk9TYmMyL0ZrNzNLMUNINnNXV0NZQjRnWjBJUDJja3F0THlSZ3N4S3pxMlRRNHc9PSJ9
Copied!
{
  "Accept": "application/vnd.worldpay.tokens-v3.hal+json",
  "Content-Type": "application/vnd.worldpay.tokens-v3.hal+json"
}
Copied!
{
  "address1": "1 Test Street",
  "address2": "Address line 2",
  "address3": "Address line 3",
  "postalCode": "TE12 34ST",
  "city": "Testville",
  "state": "Testshire",
  "countryCode": "TS"
}

204

Copied!
{
  "Content-Type": "application/vnd.worldpay.tokens-v3.hal+json"
}