POST v2/{token}/comprador/novo

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

Required

Body Parameters

CompradorRequest
NameDescriptionTypeAdditional information
id

string

None.

first_name

string

None.

last_name

string

None.

taxpayer_id

string

None.

description

Object

None.

email

string

None.

phone_number

Object

None.

address

Endereco

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "first_name": "sample string 2",
  "last_name": "sample string 3",
  "taxpayer_id": "sample string 4",
  "description": {},
  "email": "sample string 6",
  "phone_number": {},
  "address": {
    "line1": "sample string 1",
    "line2": "sample string 2",
    "line3": {},
    "neighborhood": "sample string 4",
    "city": "sample string 5",
    "state": "sample string 6",
    "postal_code": "sample string 7",
    "country_code": "sample string 8"
  }
}

application/xml, text/xml

Sample:
<CompradorRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DoctusPay.Request">
  <Descricao />
  <Documento>sample string 4</Documento>
  <Email>sample string 6</Email>
  <Endereco xmlns:d2p1="http://schemas.datacontract.org/2004/07/DoctusPay.Dominio">
    <d2p1:Bairro>sample string 4</d2p1:Bairro>
    <d2p1:CEP>sample string 7</d2p1:CEP>
    <d2p1:Cidade>sample string 5</d2p1:Cidade>
    <d2p1:CodigoPais>sample string 8</d2p1:CodigoPais>
    <d2p1:Complemento />
    <d2p1:Estado>sample string 6</d2p1:Estado>
    <d2p1:Logradouro>sample string 1</d2p1:Logradouro>
    <d2p1:Numero>sample string 2</d2p1:Numero>
  </Endereco>
  <Id>sample string 1</Id>
  <Nome>sample string 2</Nome>
  <Sobrenome>sample string 3</Sobrenome>
  <Telefone />
</CompradorRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.