Skip to main content
PUT
/
v3
/
customer
Update Customer
curl --request PUT \
  --url https://service-sandbox.tazapay.com/v3/customer/ \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": {
    "calling_code": "1",
    "number": "9876543210"
  },
  "billing": [
    {
      "name": "Andrew Robin",
      "address": {
        "line1": "9th West",
        "line2": "57th Street",
        "city": "New York",
        "state": "New York",
        "country": "US",
        "postal_code": "10019"
      },
      "phone": {
        "calling_code": "1",
        "number": "9876543210"
      }
    }
  ],
  "shipping": [
    {
      "name": "Andrew Robin",
      "address": {
        "line1": "9th West",
        "line2": "57th Street",
        "city": "New York",
        "state": "New York",
        "country": "US",
        "postal_code": "10019"
      },
      "phone": {
        "calling_code": "1",
        "number": "9876543210"
      }
    }
  ],
  "metadata": {
    "key1": "value1",
    "key2": "value2"
  }
}
'
{
  "status": "success",
  "message": "",
  "data": {
    "message": "Successfully updated the customer"
  }
}
Allows you to look up details of existing users on Tazapay’s database with their Tazapay account UUID.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
phone
object

Customer phone details

billing_address
object[]

Billing Details of the customer

shipping_address
object[]

Shipping Details of the customer

metadata
string<json>

Set of key-value pairs to attach to the customer object

customer_id
string

Customer id for which details need to be updated.

Response

200 - application/json

200

status
string
message
string
data
object