How to validate if a transaction was previously processed or previously captured?
Hello,
I'm trying to validate in my C# code if one transaction was previously captured in order to apply a logic for that specific use case. How can I determine that situation based on BlackBaud response?
Is it safe to say that code 20 is a response for this case (I mean for a transaction that is being retried, however, it was previously "Processed" )?
I'm able to receive this answer from here POST https://api.sky.blackbaud.com/payments/v1/transactions/3c3ba9f4-xxxx-4f51-a8c2-a2b412345dc/capture
{
"message":"A transaction must be in an authorized state to be captured.",
"error_name":"TransactionStateDoesNotSupportCapture",
"error_code":20,
"raw_message":"A transaction must be in an authorized state to be captured."
}
Can you confirm this assumption?
I'm trying to validate in my C# code if one transaction was previously captured in order to apply a logic for that specific use case. How can I determine that situation based on BlackBaud response?
Is it safe to say that code 20 is a response for this case (I mean for a transaction that is being retried, however, it was previously "Processed" )?
I'm able to receive this answer from here POST https://api.sky.blackbaud.com/payments/v1/transactions/3c3ba9f4-xxxx-4f51-a8c2-a2b412345dc/capture
{
"message":"A transaction must be in an authorized state to be captured.",
"error_name":"TransactionStateDoesNotSupportCapture",
"error_code":20,
"raw_message":"A transaction must be in an authorized state to be captured."
}
Can you confirm this assumption?
0
Comments
-
Any update on this?0
-
Hi Dalmiro
You could try using the GET Transaction endpoint to return the status on a previously submitted request. The response will include the state enum shown below:"state": {<br/> "enum": [<br/> "Unknown",<br/> "Processed",<br/> "Failed",<br/> "Refunded",<br/> "Pending",<br/> "Authorized",<br/> "Voided"<br/> ],
Please let me know if you need additional assistance!
Thanks.0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 648 Blackbaud Grantmaking™
- 566 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 247 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 782 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
