How to use the /order POST endpoint
This endpoint allows you to create a new order. It requires a JSON body with the following fields:
- order_id: The ID of the order.
- client_id: The ID of the client.
- amount: The amount in USD that the client wants to pay.
- currency: The currency in which the payment will be made. This should be a valid FiatCurrency value.
- client_email: The email of the client.
The endpoint will return a JSON response with the following fields:
- order_id: The ID of the order.
- amount: The amount in BTC that the client needs to pay.
- wallet_address: The wallet address to which the payment should be made.
- expires_at: The time at which the order will expire.