Skip to content

Query Pending Download Purchases

This endpoint allows querying purchase invoices pending download for B2B.

Call

InvoicingClient client = new InvoicingClient();

...

Solmicro.DigitalHub.Global.Dtos.B2BQueryPendingDownloadPurchasesResult result = client.QueryPendingDownloadPurchases();
curl -X GET https://apitest.solmicrosdh.com/v2.0/Invoicing/QueryPendingDownloadPurchases \
--cert /ruta/al/certificado.pfx \
--cert-type P12 \
--pass mypfxpassword \
-H "CompanyId: guid-unico-empresa" \
-H "InstallationId: guid-unico-instalacion"

Result

The result will be an object of type B2BQueryPendingDownloadPurchasesResult containing a list of objects of type PendingPurchases with the following information:

  • SeriesNumber: Invoice identifier (Series and Number).
  • DateAndTime: Invoice issuance date.
  • SellerTin: Seller's Tax ID (NIF).
  • SellerBusinessName: Seller's business name.
  • BuyerTin: Buyer's Tax ID (NIF).
  • BuyerBusinessName: Buyer's business name.
  • TransactionDate: Transaction date.
  • Total: Invoice total.
  • TotalTaxes: Total invoice taxes.
  • ExternalReference: Invoice external reference.
foreach (var pendingPurchase in result.PendingPurchases)
{
    pendingPurchase.SeriesNumber
    pendingPurchase.DateAndTime
    pendingPurchase.SellerTin
    pendingPurchase.SellerBusinessName
    pendingPurchase.BuyerTin
    pendingPurchase.BuyerBusinessName
    pendingPurchase.TransactionDate
    pendingPurchase.Total
    pendingPurchase.TotalTaxes
    pendingPurchase.ExternalReference
}
{
  "PendingPurchases": [
    {
      "SeriesNumber": "string",
      "DateAndTime": "datetime",
      "SellerTin": "string",
      "SellerBusinessName": "string",
      "BuyerTin": "string",
      "BuyerBusinessName": "string",
      "TransactionDate": "datetime",
      "Total": decimal,
      "TotalTaxes": decimal,
      "ExternalReference": "guid"
    }
    , ...
  ]
}