Stamp V4 – CustomID

Service that stamps an invoice (CFDI) with complements and requires a header called customid, which acts as an additional filter to prevent logical duplicates if a failure occurs during submission.

✓Before you start
1Get a Bearer Token with your SW username and password. Using an infinite token is recommended.
2Choose the endpoint in the Endpoint section: Issue Stamping and Stamping receive an XML; Issue Stamping JSON receives the CFDI as JSON.
3If you use Issue Stamping or Issue Stamping JSON, upload the issuer’s CSDs to the ADT portal or with the Upload certificates method of the API.
4Define the value of your customid header: maximum 100 characters, no format restrictions, and valid for 72 hours from its first use. We recommend collapsing white space.
💡 Note: This is the documentation for adding the customid header to the 3 Stamping services: Stamping, Issue Stamping and Issue Stamping JSON. Real certificates are allowed in the testing environment, but we recommend using the testing CSDs.
💡 Note: Without customid, the service already validates that the same XML is not sent twice through seal validation. The customid is an extra layer of security against logical duplicates.

URLs

Choose the environment: the URL applies to all the examples on this page.

🔗 Endpoint

This article covers 3 endpoints. Choose the tab of the one you need; all three use the customid header.

💡 Note: Although the path says /cfdi33, the service supports the current CFDI version. The name is kept for compatibility. Segments between braces, such as {version}, are path parameters that you must replace.

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 you prefer.

Response

💡 Note: The texts returned by the API (message and messageDetail) are in Spanish; the examples show them exactly as you will receive them.

    

📋 Responses when duplicating CustomID or seal

If an error occurs when sending the same CustomId or the same XML in the request, the service provides special response versions. Depending on the response version you use, the information returned will be as follows:

Version
Same CustomID
Same XML/JSON (seal)
v1
Timbre Fiscal Digital (TFD).
Timbre Fiscal Digital (TFD) and stamped CFDI.
v2
Timbre Fiscal Digital (TFD).
Timbre Fiscal Digital (TFD) and stamped CFDI.
v3
Timbre Fiscal Digital (TFD).
Timbre Fiscal Digital (TFD) and stamped CFDI.
v4
Returns the UUID and the message “Timbre duplicado. El customId proporcionado está duplicado.”
Returns all the relevant information of the CFDI.
This service only receives version; it has no format parameter.

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.

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 noviembre 27, 2026

Related Articles