Stamp Retenciones CFDI

Service that stamps a previously signed Retenciones CFDI (the Mexican withholding and payments-information tax document) in XML format, accepts complements and is compatible with the current version. In the testing environment, real CSDs are allowed, although we recommend using the test certificates.

✓ Before you start
1 Get a Bearer Token with your SW username and password. We recommend using an infinite token.
💡 Scope: this method only stamps Retenciones CFDI. To stamp invoices, payment or payroll CFDI, use the Stamp CFDI method.
💡 Note: in the testing environment real CSDs are allowed, although we recommend using test certificates.

URLs

Select your active environment. The copy buttons and the code examples below are built with the base URL you choose here.

🔗 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

The service returns the error texts (message, messageDetail) in Spanish, so they are shown here exactly as received.


        

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 12, 2026

Related Articles