createInvoice abstract method
- @Headers(<String, dynamic>{"Accept" : "application/json"})
- @POST("/api/invoice")
- @Header("X-Authorization") dynamic apiKey,
- Invoice invoice
Implementation
@Headers(<String, dynamic>{"Accept": "application/json"})
@POST("/api/invoice")
Future<ChargilyResponse> createInvoice(
@Header("X-Authorization") apiKey, Invoice invoice);