Stamp V4 – PDF

Service that stamps an invoice (CFDI) with complements and accepts an additional header called extra, which indicates whether the PDF of the stamped CFDI should be generated and automatically stored in the ADT portal.

✓Before you start
1Get a Bearer Token with your SW username and password. Using an infinite token is recommended.
2Choose the endpoint in the Endpoint section: Issue Stamping and Stamping receive an XML; Issue Stamping JSON receives the CFDI as JSON.
3If you use Issue Stamping or Issue Stamping JSON, upload the issuer’s CSDs to the ADT portal or with the Upload certificates method of the API.
4Add the extra header with the value pdf to generate the PDF of the stamped CFDI. You will find it in the ADT portal.
💡 Note: This is the documentation for adding the extra header with the value pdf to the 3 Stamping services: Stamping, Issue Stamping and Issue Stamping JSON.
💡 Note: Real certificates are allowed in the testing environment, but we recommend using the testing CSDs.

URLs

Choose the environment: the URL applies to all the examples on this page.

🔗 Endpoint

This article covers 3 endpoints. Choose the tab of the one you need; all three accept the extra header.

💡 Note: Not sure which PDF generation service to use? See PDF Generation Services – Which is the best option for IT?
💡 Note: Although the path says /cfdi33, the service supports the current CFDI version. The name is kept for compatibility. Segments between braces, such as {version}, are path parameters that you must replace.

Request Example


    
💡 Note: These examples are based on the SW SDKs, but you can build the request directly against the REST API in the language you prefer.

Response

💡 Note: The texts returned by the API (message and messageDetail) are in Spanish; the examples show them exactly as you will receive them.

    
This service only receives version; it has no format parameter.

In SW® we strive to be the best for You, which is why your opinion is very important. Please help us by rating this article and leaving your comments.

How useful was this post?

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Updated on noviembre 27, 2026

Related Articles