---
agentTools:
  projectIndex: https://docs.mundipagg.com/llms.txt
---

# Excluir endereço

Com o verbo _HTTP DELETE_, através do identificador do endereço(`address_id`) e do identificador do cliente (`customer_id`) ao qual o endereço está associado, é possível remover o endereço da **Wallet** do cliente.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Mundipagg API",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.mundipagg.com/core/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/customers/{customer_id}/addresses/{address_id}": {
      "delete": {
        "summary": "Excluir endereço",
        "description": "Com o verbo _HTTP DELETE_, através do identificador do endereço(`address_id`) e do identificador do cliente (`customer_id`) ao qual o endereço está associado, é possível remover o endereço da **Wallet** do cliente.",
        "operationId": "excluir-endereço",
        "parameters": [
          {
            "name": "customer_id",
            "in": "path",
            "description": "Código do cliente. Formato: `cus_XXXXXXXXXXXXXXXX`.",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "address_id",
            "in": "path",
            "description": "Código do endereço. Formato: `addr_XXXXXXXXXXXXXXXX`.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\": \"addr_GEjbAjaUK9h1PRLa\",\n    \"line_1\": \"10882, Malibu Point, Central Malibu\",\n    \"street\": \"Malibu Point\",\n    \"number\": \"10882\",\n    \"zip_code\": \"90265\",\n    \"neighborhood\": \"Central Malibu\",\n    \"city\": \"Malibu\",\n    \"state\": \"CA\",\n    \"country\": \"US\",\n    \"status\": \"deleted\",\n    \"created_at\": \"2018-12-14T18:57:18Z\",\n    \"updated_at\": \"2018-12-14T18:58:36Z\",\n    \"deleted_at\": \"2018-12-14T18:58:36Z\",\n    \"customer\": {\n        \"id\": \"cus_lMyKPqXiRhR8w9Dr\",\n        \"name\": \"Tony Stark\",\n        \"email\": \"17cdffc1-d919-4530-9427-c82ba5b5c77f@avengers.com\",\n        \"document\": \"93095135270\",\n        \"type\": \"individual\",\n        \"delinquent\": false,\n        \"created_at\": \"2018-12-14T17:55:36Z\",\n        \"updated_at\": \"2018-12-14T17:55:36Z\",\n        \"phones\": {\n            \"home_phone\": {\n                \"country_code\": \"55\",\n                \"number\": \"000000000\",\n                \"area_code\": \"21\"\n            },\n            \"mobile_phone\": {\n                \"country_code\": \"55\",\n                \"number\": \"000000000\",\n                \"area_code\": \"21\"\n            }\n        },\n        \"metadata\": {\n            \"company\": \"Avengers\"\n        }\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "addr_GEjbAjaUK9h1PRLa"
                    },
                    "line_1": {
                      "type": "string",
                      "example": "10882, Malibu Point, Central Malibu"
                    },
                    "street": {
                      "type": "string",
                      "example": "Malibu Point"
                    },
                    "number": {
                      "type": "string",
                      "example": "10882"
                    },
                    "zip_code": {
                      "type": "string",
                      "example": "90265"
                    },
                    "neighborhood": {
                      "type": "string",
                      "example": "Central Malibu"
                    },
                    "city": {
                      "type": "string",
                      "example": "Malibu"
                    },
                    "state": {
                      "type": "string",
                      "example": "CA"
                    },
                    "country": {
                      "type": "string",
                      "example": "US"
                    },
                    "status": {
                      "type": "string",
                      "example": "deleted"
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2018-12-14T18:57:18Z"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2018-12-14T18:58:36Z"
                    },
                    "deleted_at": {
                      "type": "string",
                      "example": "2018-12-14T18:58:36Z"
                    },
                    "customer": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "cus_lMyKPqXiRhR8w9Dr"
                        },
                        "name": {
                          "type": "string",
                          "example": "Tony Stark"
                        },
                        "email": {
                          "type": "string",
                          "example": "17cdffc1-d919-4530-9427-c82ba5b5c77f@avengers.com"
                        },
                        "document": {
                          "type": "string",
                          "example": "93095135270"
                        },
                        "type": {
                          "type": "string",
                          "example": "individual"
                        },
                        "delinquent": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2018-12-14T17:55:36Z"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2018-12-14T17:55:36Z"
                        },
                        "phones": {
                          "type": "object",
                          "properties": {
                            "home_phone": {
                              "type": "object",
                              "properties": {
                                "country_code": {
                                  "type": "string",
                                  "example": "55"
                                },
                                "number": {
                                  "type": "string",
                                  "example": "000000000"
                                },
                                "area_code": {
                                  "type": "string",
                                  "example": "21"
                                }
                              }
                            },
                            "mobile_phone": {
                              "type": "object",
                              "properties": {
                                "country_code": {
                                  "type": "string",
                                  "example": "55"
                                },
                                "number": {
                                  "type": "string",
                                  "example": "000000000"
                                },
                                "area_code": {
                                  "type": "string",
                                  "example": "21"
                                }
                              }
                            }
                          }
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "company": {
                              "type": "string",
                              "example": "Avengers"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"Card not found.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Card not found."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "csharp",
              "code": "using MundiAPI.PCL;\nusing System.Web.Mvc;\n\nnamespace MundipaggTest.Controllers {\n\n    public class HomeController : Controller {\n\n    public ActionResult Index() {\n\n    // Secret key fornecida pela Mundipagg\n    string basicAuthUserName = \"SUA_CHAVE_SECRETA\";\n    // Senha em branco. Passando apenas a secret key\n    string basicAuthPassword = \"\";\n\n    var client = new MundiAPIClient(basicAuthUserName, basicAuthPassword);\n\n    string customerId = \"cus_9El4qnTEKFKQoV7r\";\n    string addressId = \"addr_GEjbAjaUK9h1PRLa\";\n\n    var response = client.Customers.DeleteAddress(customerId,addressId);\n\n    return View();\n    }\n}\n}",
              "name": "SDK C#"
            }
          ],
          "samples-languages": [
            "csharp"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true,
  "_id": "5aba89f6b169810058a71e9a:5c13fda46f755a0984ba28cb"
}
```