cURL
curl --request POST \ --url https://api.example.com/api/v1/orders \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "pump_id": 123, "client_bill_choice": "<string>", "amount": 123, "quantity": 123, "ppu": 123, "client_tax_id": "<string>", "client_email": "<string>" } '
{ "id": "<string>", "pump_id": 123, "client_bill_choice": "<string>", "date": "2023-11-07T05:31:56Z", "amount": "<string>", "quantity": "<string>", "ppu": "<string>", "status": "<string>", "created_at": "2023-11-07T05:31:56Z", "user_id": "<string>", "client_tax_id": "<string>", "client_email": "<string>", "updated_at": "2023-11-07T05:31:56Z" }
Create a new order
The access token received from the authorization server in the OAuth 2.0 flow.
Schema for creating a new order.
Successful Response
Schema for order response.