post https://test.billing.gg/api/v1/orders/create_metered_order
Before you create a metered order
- Create a product in the UI with the
product_type
to match the orderpurchase_type
, which ismetered
. See Create your product catalogue and Create a metered product. - Create a customer in the UI or the API. Use the value of the customer
id
to set thecustomer_id
in the order. See Create your customers and Create customer.
Products in metered orders
- In metered orders, you can only add one product, but you can take multiple payments for different amounts against the same order.
- If the pricing configuration of a product is not locked, you can change the pricing when you create an order. For discounts, fees, and taxes, you can specify an amount in each order, with no discount as percentage.
- To register cards with an initial amount of
0
, charge the pre-authorisation amount for your merchant. You can get this from BillPro customer service.
Order status
- BillPro creates a payment link and sets the pending status for the order, but it does not automatically send an order is ready email with the payment link to the customer.
Taking payments
- You can send the payment link to the customer by email
- You can integrate with BillPro's payment link to redirect the customer to BillPro's secure checkout. See Integrate with payment links.
- When you create the order, you can create a checkout in the payment gateway to use in an iframe integration. See Integrate with custom checkout and payment iframe. If the user doesn't complete their transaction within 25 minutes, the checkout expires, so renew it with the Renew Checkout request
Notifications
- BillPro sends payment reminders for
Pending
orders. To change this configuration, see Payment reminders in Get set up in BillPro and Configure email notifications.
Manage scheduled payments
- You can use the API to manage billing events for scheduled payments, to skip or reschedule them. See Scheduled Payments and for the UI, see Manage billing events.
Delete old pending orders
- Create a process to regularly remove old orders with a
Pending
status in the UI. See Track pending orders.