Criar pagador.
Cadastra um pagador (customer) para usar nas cobranças da conta. Informe os dados pessoais ou empresariais do pagador. O id retornado entra no body da invoice.
POST
OAuth2 invoices.writeheader
AuthorizationBearer <token>Escopo: invoices.write
x-account-id?integerIdentificador interno da conta filha que será operada. Obrigatório quando o token foi emitido por uma credencial BaaS (clientId com prefixo baas_) em endpoints operacionais de conta.
Formato
int64application/json- body
name*stringNome completo (nome e sobrenome).
Tamanho
3 <= length <= 255email?stringFormato
emailTamanho
length <= 255phone?stringTamanho
length <= 20document*stringTamanho
11 <= length <= 20address*Criado
application/json- response
id?integerFormato
int64accountId?integerFormato
int64name?stringemail?stringphone?stringdocument?stringaddress?addresses?array<>curl -X POST 'https://cashout.infopago.com.br/api/v2/customers' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "document": "stringstrin", "address": { "address": "string", "district": "string", "city": "string", "zipCode": "stringst", "uf": "st" }}'Exemplo de resposta
{ "id": 0, "accountId": 0, "name": "string", "email": "string", "phone": "string", "document": "string", "address": { "address": "string", "number": "string", "complement": "string", "district": "string", "city": "string", "zipCode": "stringst", "uf": "st" }, "addresses": [ { "address": "string", "number": "string", "complement": "string", "district": "string", "city": "string", "zipCode": "stringst", "uf": "st" } ]}