# Basic Flow Guide


# Basic Flow Guide
:::warning[Payment Channel Flows]
Some payment channels might require a complex flow due to their different approaches in finalising payment. Therefore please refer payment channel specific documentation for better understanding of such flows.
:::

:::tip[Debugging & Traceability]
All responses from ConfirmaPay Payment Platform will have a header "x-request-id" which will contain a GUID to help debug and trace issues. Ensure you store it to troubleshoot any issues in production on request basis.
:::

<Accordion title="Initialise Payment" defaultOpen>
<Steps>
  <Step title="">
    [Create a new payment request](https://docs.confirmapay.com/api-10817084.md)
    Invoke a new payment request
  </Step>
  <Step>
    [Get the transaction status](https://docs.confirmapay.com/api-10817086.md)
    Check the status using the transactionId return from the previous request
    </Step>
</Steps>
</Accordion>


<Accordion title="Cancel a transaction">
:::info
Before the payment is collected.
:::
<Steps>
  <Step title="">
    [Cancel a transaction](https://docs.confirmapay.com/api-10817087.md)
    Invoke transaction cancel process
  </Step>
  <Step>
    [Get the transaction status](https://docs.confirmapay.com/api-10817086.md)
    Check the status of the cancel request
    </Step>
</Steps>
</Accordion>

<Accordion title="Refund a transaction">
<Steps>
  <Step title="">
    [Refund a transaction](https://docs.confirmapay.com/api-10817088.md)
    Invoke transaction refund process
  </Step>
  <Step>
    [Get the transaction status](https://docs.confirmapay.com/api-10817086.md)
    Check the status of the refund request
    </Step>
</Steps>
</Accordion>
