Remover pessoa
DELETE
/api/seller/external/v1/person/{id}
curl --request DELETE \ "https://api.spelt.com.br/api/seller/external/v1/person/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF" \ --header "Authorization: Bearer splt_live_SUA_CHAVE" \ --header "Content-Type: application/json" \ --header "Accept: application/json"const url = new URL( "https://api.spelt.com.br/api/seller/external/v1/person/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF");
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "DELETE", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/person/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF';$response = $client->delete( $url, [ 'headers' => [ 'Authorization' => 'Bearer splt_live_SUA_CHAVE', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], ]);$body = $response->getBody();print_r(json_decode((string) $body));import requestsimport json
url = 'https://api.spelt.com.br/api/seller/external/v1/person/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF'headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('DELETE', url, headers=headers)response.json()Recusa com 400 quando a pessoa ainda é usada por um lançamento ou uma recorrência ativa do Financeiro; nesse caso, inative-a pelo status. Pessoa só com contatos, endereços e notas pode ser removida.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
ULID da pessoa.
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
object
id
string
Example
{ "data": { "id": "01JA…" }}Media typeapplication/json
object
message
string
Example
{ "message": "Esta pessoa tem 3 lançamentos no Financeiro. Inative-a em vez de excluir."}Media typeapplication/json
object
message
string
Example
{ "message": "Seu papel de acesso não permite esta operação."}Media typeapplication/json
object
error
string
Example
{ "error": "Recurso não encontrado"}