POST api/profile/client/insta-charge

Request Information

URI Parameters

None.

Body Parameters

CustomerInstaChargeViewModel
NameDescriptionTypeAdditional information
Nome

string

None.

CPF

string

None.

WhatsAppNumber

string

None.

Email

string

None.

Amount

integer

None.

CpfType

integer

None.

PaymentType

integer

None.

SelectedPlans

string

None.

ShipmentType

integer

None.

Comment

string

None.

Vencimento

string

None.

Vigencia

string

None.

ShipmentAddress

UserAddress

None.

IsChargeReq

boolean

None.

Parent

PersonParentModel

None.

Bonus

boolean

None.

Esim

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Nome": "sample string 1",
  "CPF": "sample string 2",
  "WhatsAppNumber": "sample string 3",
  "Email": "sample string 4",
  "Amount": 5,
  "CpfType": 6,
  "PaymentType": 7,
  "SelectedPlans": "sample string 8",
  "ShipmentType": 9,
  "Comment": "sample string 10",
  "Vencimento": "sample string 11",
  "Vigencia": "sample string 12",
  "ShipmentAddress": {
    "Bairro": "sample string 1",
    "CEP": "sample string 2",
    "Cidade": "sample string 3",
    "Estado": "sample string 4",
    "Numero": "sample string 5",
    "Rua": "sample string 6",
    "complemento": "sample string 7"
  },
  "IsChargeReq": true,
  "Parent": {
    "ParentId": 1,
    "Name": "sample string 2",
    "WhatsAppNumber": "sample string 3",
    "CPF": "sample string 4"
  },
  "Bonus": true,
  "Esim": true
}

text/html

Sample:
{"Nome":"sample string 1","CPF":"sample string 2","WhatsAppNumber":"sample string 3","Email":"sample string 4","Amount":5,"CpfType":6,"PaymentType":7,"SelectedPlans":"sample string 8","ShipmentType":9,"Comment":"sample string 10","Vencimento":"sample string 11","Vigencia":"sample string 12","ShipmentAddress":{"Bairro":"sample string 1","CEP":"sample string 2","Cidade":"sample string 3","Estado":"sample string 4","Numero":"sample string 5","Rua":"sample string 6","complemento":"sample string 7"},"IsChargeReq":true,"Parent":{"ParentId":1,"Name":"sample string 2","WhatsAppNumber":"sample string 3","CPF":"sample string 4"},"Bonus":true,"Esim":true}

application/xml, text/xml

Sample:
<CustomerInstaChargeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.ViewModel">
  <Amount>5</Amount>
  <Bonus>true</Bonus>
  <CPF>sample string 2</CPF>
  <Comment>sample string 10</Comment>
  <CpfType>6</CpfType>
  <Email>sample string 4</Email>
  <Esim>true</Esim>
  <IsChargeReq>true</IsChargeReq>
  <Nome>sample string 1</Nome>
  <Parent xmlns:d2p1="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities">
    <d2p1:CPF>sample string 4</d2p1:CPF>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:ParentId>1</d2p1:ParentId>
    <d2p1:WhatsAppNumber>sample string 3</d2p1:WhatsAppNumber>
  </Parent>
  <PaymentType>7</PaymentType>
  <SelectedPlans>sample string 8</SelectedPlans>
  <ShipmentAddress>
    <Bairro>sample string 1</Bairro>
    <CEP>sample string 2</CEP>
    <Cidade>sample string 3</Cidade>
    <Estado>sample string 4</Estado>
    <Numero>sample string 5</Numero>
    <Rua>sample string 6</Rua>
    <complemento>sample string 7</complemento>
  </ShipmentAddress>
  <ShipmentType>9</ShipmentType>
  <Vencimento>sample string 11</Vencimento>
  <Vigencia>sample string 12</Vigencia>
  <WhatsAppNumber>sample string 3</WhatsAppNumber>
</CustomerInstaChargeViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CustomerInstaChargeViewModel'.

Response Information

Resource Description

InstaChargeResponse
NameDescriptionTypeAdditional information
Status

HttpStatusCode

None.

IdCliente

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 100,
  "IdCliente": 1,
  "Message": "sample string 2"
}

text/html

Sample:
{"Status":100,"IdCliente":1,"Message":"sample string 2"}

application/xml, text/xml

Sample:
<ProfileAccess.InstaChargeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.DataAccess">
  <IdCliente>1</IdCliente>
  <Message>sample string 2</Message>
  <Status>Continue</Status>
</ProfileAccess.InstaChargeResponse>