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
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 402 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 940 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.7K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 120 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) 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
- 796 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
