Receiver Accept or Reject Service

Service through which the receiver can state the acceptance or rejection of a cancellation request. Choose between four methods: by UUID, CSD, PFX, or signed XML.

✓Before you start
1Get a Bearer Token with your SW username and password. We recommend using an infinite token.
2Choose the method: by UUID (first upload the receiver’s CSDs to your ADT account), by CSD, by PFX (How to create a PFX?) or by signed XML (generate and sign your XML).
3For testing, use the currently valid test CSDs.

How it works

This service applies when an already stamped invoice (CFDI) has a cancellation request and its status is Cancelable with acceptance: the receiver accepts or rejects it with this service.

1
Stamped CFDI
You issue and stamp the CFDI.
→
2
Cancellation request
The issuer submits it and the SAT validates the status: Cancelable with acceptance.
→
3
The receiver decides
Has 3 business days to accept or reject the request.
→
Acceptance → CFDI canceled
The receiver accepts and the CFDI is canceled.
Rejection → CFDI active
The receiver rejects and the CFDI remains active.
💡 Note: the UUID method processes a single UUID and requires the receiver’s CSDs to be uploaded to your account. The CSD and PFX methods receive the certificate in the request and accept one or several UUIDs.

URLs

Select the environment: all the examples on the page update with the chosen URL.

🔗 Endpoint

Choose the method you want to use to accept or reject the request. Each one has its own path and parameters, but all 4 share the same successful response.

POST

XML Example

This is the XML you must sign and send in the xml field.

💡 Check out our tool: Sign XML — it generates and adds the Signature to your XML from a PFX file. The base XML before signing must look like this.

    

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

All 4 methods share the same successful response; the errors indicate which methods they apply to.

The message and messageDetail texts returned by the API are in Spanish. They are shown exactly as you will receive them.


    

📋 Response codes

Codes the service can return when processing the acceptance or rejection.

Code
Message
300
Invalid user
301
Malformed XML
302
Malformed signature
304
Revoked or expired certificate
305
Invalid certificate
309
Invalid folio pattern
310
Invalid CSD
1000
The response to the request was received successfully
1001
There are no cancellation requests awaiting a response for the UUID
1002
A response has already been received for the cancellation request of the UUID
1003
Signature does not match the receiver RFC
1004
There is more than one cancellation request for the same UUID
1005
The UUID is null or does not have the correct format
1006
The maximum number of allowed requests was exceeded
This method does not receive a body: all the information goes in the path.
This method does not receive path parameters: all the information goes in the body.
This method does not receive path parameters: all the information goes in the body.
This method does not receive path parameters: all the information goes in the XML.

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

Related Articles