Sign and stamps an invoice (CFDI) in JSON format with the SAT in a single call, and returns the stamped XML. It is compatible with the current version and allows including CFDI complements.
✓
Before you start
1
Upload the issuer’s CSDs in the ADT portal or with the Upload Certificates method of the API. In the testing environment you can use the currently valid test CSDs.
2
Get a Bearer Token with your SW username and password. We recommend using an infinite token.
3
Send your JSON with
Sello, Certificado and NoCertificado empty: SW fills them in for you.
💡 Important note: 👉 For compatibility reasons, even though the path of our services says
/cfdi33, this same endpoint accepts the current CFDI version.
URLs
Select your active environment. The copy buttons and the code examples below are built with the base URL you choose here.
🔗 Endpoint
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, which is why your opinion is very important. Please help us by rating this article and leaving your comments