POST api/AsaasPix/Post

Request Information

URI Parameters

None.

Body Parameters

PixWebhookDto
NameDescriptionTypeAdditional information
body

PixPaymentEventResponse

None.

key

integer

None.

id

integer

None.

isNew

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "body": {
    "pixTransaction": "sample string 1",
    "pixQrCodeId": "sample string 2",
    "discount": {
      "value": 1.0,
      "limitDate": "2025-12-22T05:43:20.4861995-03:00",
      "dueDateLimitDays": 2,
      "type": "sample string 3"
    },
    "fine": {
      "value": 1.0,
      "type": "sample string 2"
    },
    "interest": {
      "value": 1.0,
      "type": "sample string 2"
    },
    "id": "sample string 3",
    "event": "sample string 4",
    "dateCreated": "2025-12-22T05:43:20.4908875-03:00",
    "payment": {
      "object": "sample string 1",
      "id": "sample string 2",
      "dateCreated": "2025-12-22T05:43:20.4920287-03:00",
      "checkoutSession": "sample string 4",
      "paymentLink": "sample string 5",
      "netValue": 6.1,
      "originalValue": 1.1,
      "interestValue": 1.1,
      "pixTransaction": "sample string 7",
      "status": "sample string 8",
      "originalDueDate": "2025-12-22T05:43:20.494876-03:00",
      "paymentDate": "2025-12-22T05:43:20.494876-03:00",
      "clientPaymentDate": "2025-12-22T05:43:20.4959695-03:00",
      "installmentNumber": 1,
      "invoiceUrl": "sample string 10",
      "invoiceNumber": "sample string 11",
      "deleted": true,
      "anticipated": true,
      "anticipable": true,
      "creditDate": "2025-12-22T05:43:20.4970824-03:00",
      "estimatedCreditDate": "2025-12-22T05:43:20.4970824-03:00",
      "transactionReceiptUrl": "sample string 15",
      "nossoNumero": "sample string 16",
      "bankSlipUrl": "sample string 17",
      "lastInvoiceViewedDate": "2025-12-22T05:43:20.4976957-03:00",
      "lastBankSlipViewedDate": "2025-12-22T05:43:20.4976957-03:00",
      "postalService": true,
      "escrow": "sample string 19",
      "refunds": "sample string 20",
      "customer": "sample string 21",
      "billingType": "sample string 22",
      "value": 23.1,
      "dueDate": "2025-12-22T05:43:20.4988137-03:00",
      "description": "sample string 25",
      "externalReference": "sample string 26"
    }
  },
  "key": 1,
  "id": 1,
  "isNew": true
}

application/xml, text/xml

Sample:
<PixWebhookDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffDriver.Webapi.Models.Payment">
  <isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
  <key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">1</key>
  <body xmlns:d2p1="http://schemas.datacontract.org/2004/07/OffDriver.Entities.Asaas.Model.Event">
    <d2p1:dateCreated>2025-12-22T05:43:20.4908875-03:00</d2p1:dateCreated>
    <d2p1:event>sample string 4</d2p1:event>
    <d2p1:id>sample string 3</d2p1:id>
    <d2p1:payment xmlns:d3p1="http://schemas.datacontract.org/2004/07/OffDriver.Entities.Asaas.Model.Payment">
      <d3p1:billingType>sample string 22</d3p1:billingType>
      <d3p1:customer>sample string 21</d3p1:customer>
      <d3p1:description>sample string 25</d3p1:description>
      <d3p1:dueDate>2025-12-22T05:43:20.4988137-03:00</d3p1:dueDate>
      <d3p1:externalReference>sample string 26</d3p1:externalReference>
      <d3p1:value>23.1</d3p1:value>
      <d3p1:anticipable>true</d3p1:anticipable>
      <d3p1:anticipated>true</d3p1:anticipated>
      <d3p1:bankSlipUrl>sample string 17</d3p1:bankSlipUrl>
      <d3p1:checkoutSession>sample string 4</d3p1:checkoutSession>
      <d3p1:clientPaymentDate>2025-12-22T05:43:20.4959695-03:00</d3p1:clientPaymentDate>
      <d3p1:creditDate>2025-12-22T05:43:20.4970824-03:00</d3p1:creditDate>
      <d3p1:dateCreated>2025-12-22T05:43:20.4920287-03:00</d3p1:dateCreated>
      <d3p1:deleted>true</d3p1:deleted>
      <d3p1:escrow>sample string 19</d3p1:escrow>
      <d3p1:estimatedCreditDate>2025-12-22T05:43:20.4970824-03:00</d3p1:estimatedCreditDate>
      <d3p1:id>sample string 2</d3p1:id>
      <d3p1:installmentNumber>1</d3p1:installmentNumber>
      <d3p1:interestValue>1.1</d3p1:interestValue>
      <d3p1:invoiceNumber>sample string 11</d3p1:invoiceNumber>
      <d3p1:invoiceUrl>sample string 10</d3p1:invoiceUrl>
      <d3p1:lastBankSlipViewedDate>2025-12-22T05:43:20.4976957-03:00</d3p1:lastBankSlipViewedDate>
      <d3p1:lastInvoiceViewedDate>2025-12-22T05:43:20.4976957-03:00</d3p1:lastInvoiceViewedDate>
      <d3p1:netValue>6.1</d3p1:netValue>
      <d3p1:nossoNumero>sample string 16</d3p1:nossoNumero>
      <d3p1:object>sample string 1</d3p1:object>
      <d3p1:originalDueDate>2025-12-22T05:43:20.494876-03:00</d3p1:originalDueDate>
      <d3p1:originalValue>1.1</d3p1:originalValue>
      <d3p1:paymentDate>2025-12-22T05:43:20.494876-03:00</d3p1:paymentDate>
      <d3p1:paymentLink>sample string 5</d3p1:paymentLink>
      <d3p1:pixTransaction>sample string 7</d3p1:pixTransaction>
      <d3p1:postalService>true</d3p1:postalService>
      <d3p1:refunds>sample string 20</d3p1:refunds>
      <d3p1:status>sample string 8</d3p1:status>
      <d3p1:transactionReceiptUrl>sample string 15</d3p1:transactionReceiptUrl>
    </d2p1:payment>
    <d2p1:discount xmlns:d3p1="http://schemas.datacontract.org/2004/07/OffDriver.Entities.Asaas.Model.Payment">
      <d3p1:dueDateLimitDays>2</d3p1:dueDateLimitDays>
      <d3p1:limitDate>2025-12-22T05:43:20.4861995-03:00</d3p1:limitDate>
      <d3p1:type>sample string 3</d3p1:type>
      <d3p1:value>1</d3p1:value>
    </d2p1:discount>
    <d2p1:fine xmlns:d3p1="http://schemas.datacontract.org/2004/07/OffDriver.Entities.Asaas.Model.Payment">
      <d3p1:type>sample string 2</d3p1:type>
      <d3p1:value>1</d3p1:value>
    </d2p1:fine>
    <d2p1:interest xmlns:d3p1="http://schemas.datacontract.org/2004/07/OffDriver.Entities.Asaas.Model.Payment">
      <d3p1:type>sample string 2</d3p1:type>
      <d3p1:value>1</d3p1:value>
    </d2p1:interest>
    <d2p1:pixQrCodeId>sample string 2</d2p1:pixQrCodeId>
    <d2p1:pixTransaction>sample string 1</d2p1:pixTransaction>
  </body>
</PixWebhookDto>

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 'PixWebhookDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.