POST api/v3/mobypay/pedido/v2/{registroPedido}/pagamento

Request Information

URI Parameters

NameDescriptionTypeAdditional information
registroPedido

string

Required

Body Parameters

PagamentoInputNovo
NameDescriptionTypeAdditional information
ValorDesconto

decimal number

None.

ValorLiquido

decimal number

None.

ValorSubTotal

decimal number

None.

ValorDescontoAdicional

decimal number

None.

ValorAdicional

decimal number

None.

TipoRetiradaPedido

integer

None.

MetodoEnvio

string

None.

CodigoCupom

string

None.

Itens

Collection of ItemPedidoInputNovo

None.

TenantId

string

None.

PedidoId

integer

None.

CanalId

integer

None.

FormaDePagamento

integer

None.

QtdParcelas

integer

None.

ValorParcela

decimal number

None.

ValorMdr

decimal number

None.

ValorFee

decimal number

None.

TaxaAntiFraude

decimal number

None.

ValorTotal

decimal number

None.

PagSeguroSenderHash

string

None.

PagSeguroCreditCardToken

string

None.

FingerPrintId

string

None.

IpClient

string

None.

clientePagto

ClientePagto

None.

dadosCliente

DadosCliente

None.

endereco

EnderecoPagto

None.

cartaoCredito

CartaoCreditoPagto

None.

Request Formats

application/json, text/json

Sample:
{
  "ValorDesconto": 1.0,
  "ValorLiquido": 2.0,
  "ValorSubTotal": 3.0,
  "ValorDescontoAdicional": 1.0,
  "ValorAdicional": 1.0,
  "TipoRetiradaPedido": 4,
  "MetodoEnvio": "sample string 5",
  "CodigoCupom": "sample string 6",
  "Itens": [
    {
      "ItemId": 1,
      "Descricao": "sample string 1",
      "Quantidade": 2,
      "PrecoTotal": 3.1,
      "ValorDesconto": 4.1,
      "ValorLiquido": 5.1,
      "PrecoUnitario": 6.0,
      "Alterado": true,
      "Deletado": true
    },
    {
      "ItemId": 1,
      "Descricao": "sample string 1",
      "Quantidade": 2,
      "PrecoTotal": 3.1,
      "ValorDesconto": 4.1,
      "ValorLiquido": 5.1,
      "PrecoUnitario": 6.0,
      "Alterado": true,
      "Deletado": true
    }
  ],
  "TenantId": "sample string 7",
  "PedidoId": 8,
  "CanalId": 9,
  "FormaDePagamento": 10,
  "QtdParcelas": 11,
  "ValorParcela": 12.1,
  "ValorMdr": 13.1,
  "ValorFee": 14.1,
  "TaxaAntiFraude": 15.1,
  "ValorTotal": 16.1,
  "PagSeguroSenderHash": "sample string 17",
  "PagSeguroCreditCardToken": "sample string 18",
  "FingerPrintId": "sample string 19",
  "IpClient": "sample string 20",
  "clientePagto": {
    "cpf": "sample string 1",
    "phone": "sample string 2",
    "name": "sample string 3",
    "email": "sample string 4"
  },
  "dadosCliente": {
    "cpf": "sample string 1",
    "phone": "sample string 2",
    "name": "sample string 3",
    "email": "sample string 4",
    "Cliente_Id": 1
  },
  "endereco": {
    "Id": 1,
    "code": "sample string 1",
    "address": "sample string 2",
    "number": "sample string 3",
    "description": "sample string 4",
    "district": "sample string 5",
    "city": "sample string 6",
    "state": "sample string 7"
  },
  "cartaoCredito": {
    "cardCode": 1,
    "cardToken": "sample string 2",
    "cardType": "sample string 3",
    "cardNumber": "sample string 4",
    "expireDate": "sample string 5",
    "cvc": "sample string 6",
    "cardOwner": "sample string 7",
    "cpf": "sample string 8",
    "birthDay": "sample string 9",
    "CreditCardEncrypted": "sample string 10"
  }
}

application/xml, text/xml

Sample:
<PagamentoInputNovo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Common.Input.MobyPay">
  <CanalId>9</CanalId>
  <FingerPrintId>sample string 19</FingerPrintId>
  <FormaDePagamento>10</FormaDePagamento>
  <IpClient>sample string 20</IpClient>
  <PagSeguroCreditCardToken>sample string 18</PagSeguroCreditCardToken>
  <PagSeguroSenderHash>sample string 17</PagSeguroSenderHash>
  <PedidoId>8</PedidoId>
  <QtdParcelas>11</QtdParcelas>
  <TaxaAntiFraude>15.1</TaxaAntiFraude>
  <TenantId>sample string 7</TenantId>
  <ValorFee>14.1</ValorFee>
  <ValorMdr>13.1</ValorMdr>
  <ValorParcela>12.1</ValorParcela>
  <ValorTotal>16.1</ValorTotal>
  <cartaoCredito>
    <CreditCardEncrypted>sample string 10</CreditCardEncrypted>
    <birthDay>sample string 9</birthDay>
    <cardCode>1</cardCode>
    <cardNumber>sample string 4</cardNumber>
    <cardOwner>sample string 7</cardOwner>
    <cardToken>sample string 2</cardToken>
    <cardType>sample string 3</cardType>
    <cpf>sample string 8</cpf>
    <cvc>sample string 6</cvc>
    <expireDate>sample string 5</expireDate>
  </cartaoCredito>
  <clientePagto>
    <cpf>sample string 1</cpf>
    <email>sample string 4</email>
    <name>sample string 3</name>
    <phone>sample string 2</phone>
  </clientePagto>
  <dadosCliente>
    <Cliente_Id>1</Cliente_Id>
    <cpf>sample string 1</cpf>
    <email>sample string 4</email>
    <name>sample string 3</name>
    <phone>sample string 2</phone>
  </dadosCliente>
  <endereco>
    <Id>1</Id>
    <address>sample string 2</address>
    <city>sample string 6</city>
    <code>sample string 1</code>
    <description>sample string 4</description>
    <district>sample string 5</district>
    <number>sample string 3</number>
    <state>sample string 7</state>
  </endereco>
  <CodigoCupom>sample string 6</CodigoCupom>
  <Itens>
    <ItemPedidoInputNovo>
      <Alterado>true</Alterado>
      <Deletado>true</Deletado>
      <Descricao>sample string 1</Descricao>
      <ItemId>1</ItemId>
      <PrecoTotal>3.1</PrecoTotal>
      <PrecoUnitario>6</PrecoUnitario>
      <Quantidade>2</Quantidade>
      <ValorDesconto>4.1</ValorDesconto>
      <ValorLiquido>5.1</ValorLiquido>
    </ItemPedidoInputNovo>
    <ItemPedidoInputNovo>
      <Alterado>true</Alterado>
      <Deletado>true</Deletado>
      <Descricao>sample string 1</Descricao>
      <ItemId>1</ItemId>
      <PrecoTotal>3.1</PrecoTotal>
      <PrecoUnitario>6</PrecoUnitario>
      <Quantidade>2</Quantidade>
      <ValorDesconto>4.1</ValorDesconto>
      <ValorLiquido>5.1</ValorLiquido>
    </ItemPedidoInputNovo>
  </Itens>
  <MetodoEnvio>sample string 5</MetodoEnvio>
  <TipoRetiradaPedido>4</TipoRetiradaPedido>
  <ValorAdicional>1</ValorAdicional>
  <ValorDesconto>1</ValorDesconto>
  <ValorDescontoAdicional>1</ValorDescontoAdicional>
  <ValorLiquido>2</ValorLiquido>
  <ValorSubTotal>3</ValorSubTotal>
</PagamentoInputNovo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.