There are 2 ways to generate a payment code for Retail Outlet:
Using XenInvoice (Non Fixed Payment Code)
- When the end customer has received an Invoice and they choose to pay through Retail Outlet, a payment code will be generated automatically.
Using direct API (Fixed Payment Code)
- Send a POST request to https://api.xendit.co/fixed_payment_code
- If you don’t set up a payment code, one will be automatically generated for you
- For more information on our retail outlet API, please refer to api reference docs.