PUT
/
customers
/
{customer_id}
curl --request PUT \
  --url https://api.live.paisr.tech/{version}/customers/{customer_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "default_currency": "<string>",
  "billing_details": {
    "line_1": "Example Street 10",
    "line_2": "Example Street 11",
    "city": "Paramaribo",
    "state": "Kwatta",
    "zip_code": "<string>",
    "country": "SR"
  },
  "shipping_details": {
    "line_1": "Example Street 10",
    "line_2": "Example Street 11",
    "city": "Paramaribo",
    "state": "Kwatta",
    "zip_code": "<string>",
    "country": "SR"
  },
  "metadata": {}
}'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_id
string
required

The Customer ID.

Body

application/json
The details required to update a customer.

The body is of type object.

Response

200
application/json
Successfully updated customer.

The response is of type object.