Create order intent
POST/v1/order_intent
The endpoint enables the merchant to check in advance whether invoice payment is applicable as a payment method for the Buyer. Two will perform a risk assessment and credit check using the data provided in the OrderIntent before a boolean is returned as a result. If line_items are provided Two will be able to do a more accurate assessment and the approval rate will in general increase. A tax code on line_items is only checked to exist in the tax code registry here, and an unknown code is refused with a 400. The full tax rules (rate, country, exemption reason and mandatory codes) are applied when the order is created: buyer details may still be partial when the intent is raised, and the merchant may not be able to choose the right tax code until the buyer's VAT number and address are known.
Request
Responses
- 201
- 400
- default
Create order intent
Invalid request, e.g. an unknown tax code
Error response