---
agentTools:
  projectIndex: https://paddieswitch.readme.io/llms.txt
---

# Update Customer

This service enables merchant update the information of an existing Customer

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Paddieswitch",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://sandbox.paddieswitch.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v1/customers/update-customer": {
      "post": {
        "summary": "Update Customer",
        "description": "This service enables merchant update the information of an existing Customer",
        "operationId": "add-customer-copy",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "addressLine1": {
                    "type": "string",
                    "description": "This is the first line of address of the customer to be updated",
                    "default": "10, Lagos Street, Lagos"
                  },
                  "addressLine2": {
                    "type": "string",
                    "description": "This is the second line of address of the customer to be updated"
                  },
                  "city": {
                    "type": "string",
                    "description": "This is the customer's city",
                    "default": "Ikeja"
                  },
                  "countryAlpha2Code": {
                    "type": "string",
                    "description": "This is the customer's country alpha2Code E.g NG, GH, UK etc",
                    "default": "NG"
                  },
                  "email": {
                    "type": "string",
                    "description": "This is the valid email address of the customer",
                    "default": "test@gmail.com"
                  },
                  "expiryDate": {
                    "type": "string",
                    "description": "This is the customer's Identity card expiry date. Format: yyyy-mm-dd",
                    "default": "2099-09-26"
                  },
                  "firstName": {
                    "type": "string",
                    "description": "This is the customer's first name",
                    "default": "Azeez"
                  },
                  "idNumber": {
                    "type": "string",
                    "description": "This is the customer's Identity card number",
                    "default": "123456"
                  },
                  "idType": {
                    "type": "string",
                    "description": "This is the customer's Identification type E.g. nationalidcard, drivinglicense, none, passport",
                    "default": "nationalidcard"
                  },
                  "issueDate": {
                    "type": "string",
                    "description": "This is the customer's Id card issue date. Format: yyyy-mm-dd",
                    "default": "2020-09-26"
                  },
                  "issuerCountry": {
                    "type": "string",
                    "description": "This is the issuer country of the customer's Id card",
                    "default": "NG"
                  },
                  "lastName": {
                    "type": "string",
                    "description": "This is the customer's last name",
                    "default": "Edet"
                  },
                  "middleName": {
                    "type": "string",
                    "description": "This is the customer's middle name"
                  },
                  "stateOrRegion": {
                    "type": "string",
                    "description": "This is the customer's state or region",
                    "default": "Lagos"
                  },
                  "zipCode": {
                    "type": "string",
                    "description": "This is the customer's Zipcode",
                    "default": "100001"
                  }
                }
              },
              "examples": {
                "Add Customer request": {
                  "value": {
                    "addressLine1": "10, Lagos Street, Lagos",
                    "addressLine2": "string",
                    "city": "Ikeja",
                    "countryAlpha2Code": "NG",
                    "email": "test@gmail.com",
                    "expiryDate": "string",
                    "firstName": "string",
                    "idNumber": "string",
                    "idType": "nationalidcard",
                    "issueDate": "string",
                    "issuerCountry": "string",
                    "lastName": "string",
                    "middleName": "string",
                    "stateOrRegion": "string",
                    "zipCode": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Add Customer response": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "accept",
        "value": "application/json"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "62c83452eca9cf0268dfe556:65095befd05c0c005467a7ee"
}
```