Resend by email the XML and/or PDF of a CFDI already stamped by SW, using only its UUID.
View SDKs✓Before you start
- 1Get a Bearer Token using your SW username and password. We recommend using an infinite (non-expiring) token, and send it in the
Authorizationheader. - 2Have at hand the
uuid(fiscal folio) of a CFDI stamped by SW. - 3Set the recipients in
to: up to 5 email addresses separated by commas.
💡 Which PDF service is right for you? See PDF Generation Services – Which is the best option for you?
URLs
Select your active environment. The copy buttons and the code examples below are built with the base URL you choose here.
🛠️ Sandbox:
https://api.test.sw.com.mx
🚀 Production:
https://api.sw.com.mx
🔗 Endpoint
This service sends the XML and PDF (only if the PDF exists in the ADT) of the given CFDI to one or more email addresses.
POST/comprobante/resendemail
Property
Usage
Description
Authorization
REQUIRED
Bearer {token} — your account token.
Content-Type
REQUIRED
application/json — the body is sent as JSON.
Property
Type
Usage
Description
uuid
string
REQUIRED
Fiscal folio (UUID) of the invoice.
to
string
REQUIRED
Email address. Up to 5 addresses separated by ",".
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
Property
Type
Description
status
string
"success" or "error".
data
string | null
Delivery confirmation message when the email was sent successfully.
message
string
Response message.
messageDetail
string
Message detail.
Cause: No CFDI with that UUID was found stamped by your account in SW.
Solution: Check the UUID and the environment: a CFDI stamped in Sandbox doesn’t exist in Production, and vice versa.
Property
Type
Description
statusCode
int
Status code when an error occurs.
status
string
"success" or "error".
message
string
Error message.
messageDetail
string
More descriptive error message, when available.
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.