title: Rest API Design in case of partial failure
body: <p>So I have a ticket booking system.</p>
  
  <p>I have ticket booking request on API, from my application we call payment service.</p>
  
  <p>If failed on the first attempt we proceed by adding the message on the queue for handling payment later. And proceed with issuing the ticket to the customer.</p>
  
  <p>From queue, we retry payment with payment API 10 times in 10 minutes if no success we add some status to that ticket booking record and by offline mean get money from the customer.</p>
  
  <p><strong>Problem</strong>: We are getting many such booking due frauds.</p>
  
  <p><strong>Solution</strong>:</p>
  
  <p>I have a solution in mind, I will not proceed with issuing a ticket in payment fail, instead, I want to return something different HTTP code to the client. like everything else except payment is the success.</p>
  
  <p>And while processing the message from the queue if it fails after 10 attempts I want to inform client this transaction is failed.</p>
  
  <p>If pass let the client know to proceed with issuing the ticket</p>
  
  <p><strong>Question</strong>: Does this solution have technical feasibility?</p>