- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Question: I do not see any options to void payments via API. How can I void a payment like in the UI?
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Answer: Voiding a payment will require that you update the status of the payment to "Voided". Please be aware that this will send a void request to your gateway.
Below are examples in REST and SOAP API.
REST:
PUT: https://rest.zuora.com/v1/object/payment/{id}
{
"Status": "Voided"
}
SOAP:
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Answer: Voiding a payment will require that you update the status of the payment to "Voided". Please be aware that this will send a void request to your gateway.
Below are examples in REST and SOAP API.
REST:
PUT: https://rest.zuora.com/v1/object/payment/{id}
{
"Status": "Voided"
}
SOAP:
If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: How can I void a payment via API?
Hi,
I have tested this API on the sandbox.
The response is success but I saw the status still is processed when I check on GUI.
REST PUT: https://rest.sandbox.eu.zuora.com/v1/object/payment/{id}
Body: {
"Status": "Voided"
}
Is there anything wrong here?
Thanks