Listar dados de pagamento da pessoa
GET
/api/seller/external/v1/person/{id}/payment-account
curl --request GET \ --get "https://api.spelt.com.br/api/seller/external/v1/person/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF/payment-account" \ --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/payment-account");
const headers = { "Authorization": "Bearer splt_live_SUA_CHAVE", "Content-Type": "application/json", "Accept": "application/json",};
fetch(url, { method: "GET", headers,}).then(response => response.json());$client = new \GuzzleHttp\Client();$url = 'https://api.spelt.com.br/api/seller/external/v1/person/iMRSFHQ9TYBYCWTPTRGW5G9ZPYF/payment-account';$response = $client->get( $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/payment-account'headers = { 'Authorization': 'Bearer splt_live_SUA_CHAVE', 'Content-Type': 'application/json', 'Accept': 'application/json'}
response = requests.request('GET', url, headers=headers)response.json()Lista os dados de pagamento da pessoa (padrão primeiro), com o banco.
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
The ID of the person.
Responses
Seção intitulada “Responses”Media typeapplication/json
object
data
Array<object>
object
id
string
kind
string
pix_key_type
string | null
pix_key
string | null
bank_id
string
branch
string
branch_digit
string | null
account_number
string
account_digit
string
account_type
string
holder_name
string | null
holder_document_number
string | null
is_default
boolean
bank
object
id
string
compe_code
string
ispb
string
short_name
string
logo_url
string
Example
{ "data": [ { "id": "01JA…", "kind": "bank", "pix_key_type": null, "pix_key": null, "bank_id": "01JA…", "branch": "1234", "branch_digit": null, "account_number": "56789", "account_digit": "0", "account_type": "checking", "holder_name": null, "holder_document_number": null, "is_default": true, "bank": { "id": "01JA…", "compe_code": "341", "ispb": "60701190", "short_name": "Itaú Unibanco", "logo_url": "https://api.spelt.com.br/images/banks/60701190.svg" } } ]}Media typeapplication/json
object
error
string
Example
{ "error": "Recurso não encontrado"}