PDF Generation Service

Generate the PDF of your CFDI from the stamped XML and a template, with support for up to 4,000 line items per invoice and the option to send your logo in base64. With custom templates, you can send extra data such as remarks, address, phone number or email.

✓Before you start
1Get a Bearer Token with your SW username and password. We recommend using an infinite token.
2Review the general templates available in PDF Templates.
3If you need a custom template with extra properties, contact your sales advisor.
💡 Note: Not sure which PDF service to use? Check PDF Generation Services – Which Is the Best Option?

URLs

Choose your environment: the examples below update with the selected URL.

🔗 Endpoint

POST

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 of your choice.

Response


        
💡 Note: 400 errors from this service do not return JSON: the message arrives as plain text.
💡 Note: the messages returned by the API (such as message and the plain-text errors) are in Spanish, exactly as you will receive them.
This method does not receive path parameters: all the information goes in the body.

In SW® we strive to be the best for You, wich 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 octubre 22, 2026

Related Articles