API Certificates

Upload, query, and delete the CSDs in your account. The same certificates you manage in the CFDI Stamp Management (ADT), from your code.

View SDKs
✓Before you start
  1. 1Get a Bearer Token using your SW username and password. We recommend using an infinite (non-expiring) token. All five operations require it in the Authorization header.
  2. 2Have the issuer’s .cer and .key files in Base64, plus the private key password, at hand. For testing, use the current test CSDs.
  3. 3Upload the CSD once per issuer. After that you can stamp: the Stamping service uses the CSDs you have uploaded.
💡 Important: To manage your certificates through a graphical interface, you can use the CFDI Stamp Management (ADT).

URLs

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

🛠️ Sandbox:
https://services.test.sw.com.mx
🚀 Production:
https://services.sw.com.mx

🔗 Endpoint

Three actions on the same resource. Pick one and its full reference is built below: endpoint, headers, parameters, example, and response.

Request Example


💡 Note: These examples are based on the SW SDKs, but you can call the REST API directly from any language you prefer.

Response

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

Related Articles