Marks an order as confirmed
When the user has pressed a button to finalize their order, the Merchant should call the Confirm Order API. At this stage, Caddi will take a down payment from the user using the card information provided during the Caddi Popup flow. The Confirm Order API endpoint should be called with the following information:
- The
orderTokenprovided in previous steps
Caddi will respond with one of the following payment status results:
- If Caddi is able to successfully charge the customer's payment method for the initial down payment, the
orderTokenand thepaymentStatusAPPROVED will be returned. - If Caddi is unable to charge the customer's payment method or another issue occurs finalizing the order, the
orderTokenand thepaymentStatusDECLINED will be returned with an object elaborating on the error details.
If the APPROVED status is received, the Merchant should show an order confirmation screen to the customer noting that their order has been successful.
If the DECLINED status is received, the Merchant should return the customer to the checkout screen and ask the customer to retry the Caddi process or select an alternative payment method.
In addition the following reference fields will be provided:
- A
referenceNumberthat can be used in a later stage for refund and settlement processing. For those merchants familiar with the FNI loan system, this is the FNI reference number, unique per customer account. - An
accountNumberthat can be used in a later stage for refund and settlement processing. For those merchants familiar with the FNI loan system, this is the FNI account number, unique per customer account. - A
contractNumberthat can be used in a later stage for refund and settlement processing. For those merchants familiar with the FNI loan system, this is the FNI contract number, an automatically incrementing number per-customer loan e.g. 1, 2, 3. - A
loanNumberthat can be displayed to the customer should they wish to contact support. For those merchants familiar with the FNI loan system, this is the FNI account number, combined with an underscore and the FNI contract number. This number is unique per loan. - The
downPaymentamount that has been charged to the customer. This can optionally be used for display on your order confirmation screen. - An
authorizationAmountwith the total order amount processed by Caddipay, inclusive of shipping and taxes.