Class InvoiceResource

    • Constructor Detail

      • InvoiceResource

        @Inject
        public InvoiceResource​(AccountUserApi accountUserApi,
                               InvoiceUserApi invoiceApi,
                               PaymentApi paymentApi,
                               InvoicePaymentApi invoicePaymentApi,
                               org.killbill.clock.Clock clock,
                               JaxrsUriBuilder uriBuilder,
                               org.killbill.billing.util.api.TagUserApi tagUserApi,
                               org.killbill.billing.util.api.CustomFieldUserApi customFieldUserApi,
                               org.killbill.billing.util.api.AuditUserApi auditUserApi,
                               TenantUserApi tenantApi,
                               Context context)
    • Method Detail

      • getInvoice

        @GET
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getInvoice​(@PathParam("invoiceId")
                                                    UUID invoiceId,
                                                    @QueryParam("withChildrenItems") @DefaultValue("false")
                                                    boolean withChildrenItems,
                                                    @QueryParam("audit") @DefaultValue("NONE")
                                                    AuditMode auditMode,
                                                    @Context
                                                    javax.servlet.http.HttpServletRequest request)
                                             throws InvoiceApiException
        Throws:
        InvoiceApiException
      • getInvoicesGroup

        @GET
        @Path("/{groupId:\\w+-\\w+-\\w+-\\w+-\\w+}/group")
        @Produces("application/json")
        public javax.ws.rs.core.Response getInvoicesGroup​(@PathParam("groupId")
                                                          UUID groupId,
                                                          @QueryParam("accountId")
                                                          UUID accountId,
                                                          @QueryParam("withChildrenItems") @DefaultValue("false")
                                                          boolean withChildrenItems,
                                                          @QueryParam("audit") @DefaultValue("NONE")
                                                          AuditMode auditMode,
                                                          @Context
                                                          javax.servlet.http.HttpServletRequest request)
                                                   throws InvoiceApiException
        Throws:
        InvoiceApiException
      • getInvoiceAuditLogsWithHistory

        @GET
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/auditLogsWithHistory")
        @Produces("application/json")
        public javax.ws.rs.core.Response getInvoiceAuditLogsWithHistory​(@PathParam("invoiceId")
                                                                        UUID invoiceId,
                                                                        @Context
                                                                        javax.servlet.http.HttpServletRequest request)
      • getInvoiceByNumber

        @GET
        @Path("/byNumber/{invoiceNumber:[0-9]+}/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getInvoiceByNumber​(@PathParam("invoiceNumber")
                                                            Integer invoiceNumber,
                                                            @QueryParam("withChildrenItems") @DefaultValue("false")
                                                            boolean withChildrenItems,
                                                            @QueryParam("audit") @DefaultValue("NONE")
                                                            AuditMode auditMode,
                                                            @Context
                                                            javax.servlet.http.HttpServletRequest request)
                                                     throws InvoiceApiException
        Throws:
        InvoiceApiException
      • getInvoiceByItemId

        @GET
        @Path("/byItemId/{itemId:\\w+-\\w+-\\w+-\\w+-\\w+}/")
        @Produces("application/json")
        public javax.ws.rs.core.Response getInvoiceByItemId​(@PathParam("itemId")
                                                            UUID invoiceItemId,
                                                            @QueryParam("withChildrenItems") @DefaultValue("false")
                                                            boolean withChildrenItems,
                                                            @QueryParam("audit") @DefaultValue("NONE")
                                                            AuditMode auditMode,
                                                            @Context
                                                            javax.servlet.http.HttpServletRequest request)
                                                     throws InvoiceApiException
        Throws:
        InvoiceApiException
      • getInvoices

        @GET
        @Path("/pagination")
        @Produces("application/json")
        public javax.ws.rs.core.Response getInvoices​(@QueryParam("offset") @DefaultValue("0")
                                                     Long offset,
                                                     @QueryParam("limit") @DefaultValue("100")
                                                     Long limit,
                                                     @QueryParam("audit") @DefaultValue("NONE")
                                                     AuditMode auditMode,
                                                     @Context
                                                     javax.servlet.http.HttpServletRequest request)
                                              throws InvoiceApiException
        Throws:
        InvoiceApiException
      • searchInvoices

        @GET
        @Path("/search/{searchKey:.*}")
        @Produces("application/json")
        public javax.ws.rs.core.Response searchInvoices​(@PathParam("searchKey")
                                                        String searchKey,
                                                        @QueryParam("offset") @DefaultValue("0")
                                                        Long offset,
                                                        @QueryParam("limit") @DefaultValue("100")
                                                        Long limit,
                                                        @QueryParam("audit") @DefaultValue("NONE")
                                                        AuditMode auditMode,
                                                        @Context
                                                        javax.servlet.http.HttpServletRequest request)
                                                 throws SubscriptionApiException
        Throws:
        SubscriptionApiException
      • createFutureInvoice

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createFutureInvoice​(@QueryParam("accountId")
                                                             UUID accountId,
                                                             @QueryParam("targetDate")
                                                             String targetDate,
                                                             @QueryParam("pluginProperty")
                                                             List<String> pluginPropertiesString,
                                                             @HeaderParam("X-Killbill-CreatedBy")
                                                             String createdBy,
                                                             @HeaderParam("X-Killbill-Reason")
                                                             String reason,
                                                             @HeaderParam("X-Killbill-Comment")
                                                             String comment,
                                                             @Context
                                                             javax.servlet.http.HttpServletRequest request,
                                                             @Context
                                                             javax.ws.rs.core.UriInfo uriInfo)
                                                      throws AccountApiException,
                                                             InvoiceApiException
        Throws:
        AccountApiException
        InvoiceApiException
      • createFutureInvoiceGroup

        @POST
        @Path("/group")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createFutureInvoiceGroup​(@QueryParam("accountId")
                                                                  UUID accountId,
                                                                  @QueryParam("targetDate")
                                                                  String targetDate,
                                                                  @QueryParam("pluginProperty")
                                                                  List<String> pluginPropertiesString,
                                                                  @HeaderParam("X-Killbill-CreatedBy")
                                                                  String createdBy,
                                                                  @HeaderParam("X-Killbill-Reason")
                                                                  String reason,
                                                                  @HeaderParam("X-Killbill-Comment")
                                                                  String comment,
                                                                  @Context
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  @Context
                                                                  javax.ws.rs.core.UriInfo uriInfo)
                                                           throws AccountApiException,
                                                                  InvoiceApiException
        Throws:
        AccountApiException
        InvoiceApiException
      • createMigrationInvoice

        @POST
        @Path("/migration/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createMigrationInvoice​(@PathParam("accountId")
                                                                UUID accountId,
                                                                List<InvoiceItemJson> items,
                                                                @Nullable @QueryParam("targetDate")
                                                                String targetDate,
                                                                @HeaderParam("X-Killbill-CreatedBy")
                                                                String createdBy,
                                                                @HeaderParam("X-Killbill-Reason")
                                                                String reason,
                                                                @HeaderParam("X-Killbill-Comment")
                                                                String comment,
                                                                @Context
                                                                javax.servlet.http.HttpServletRequest request,
                                                                @Context
                                                                javax.ws.rs.core.UriInfo uriInfo)
                                                         throws AccountApiException,
                                                                InvoiceApiException
        Throws:
        AccountApiException
        InvoiceApiException
      • generateDryRunInvoice

        @POST
        @Path("/dryRun")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response generateDryRunInvoice​(@Nullable
                                                               InvoiceDryRunJson dryRunSubscriptionSpec,
                                                               @QueryParam("accountId")
                                                               UUID accountId,
                                                               @Nullable @QueryParam("targetDate")
                                                               String targetDate,
                                                               @QueryParam("pluginProperty")
                                                               List<String> pluginPropertiesString,
                                                               @HeaderParam("X-Killbill-CreatedBy")
                                                               String createdBy,
                                                               @HeaderParam("X-Killbill-Reason")
                                                               String reason,
                                                               @HeaderParam("X-Killbill-Comment")
                                                               String comment,
                                                               @Context
                                                               javax.servlet.http.HttpServletRequest request,
                                                               @Context
                                                               javax.ws.rs.core.UriInfo uriInfo)
                                                        throws AccountApiException,
                                                               InvoiceApiException
        Throws:
        AccountApiException
        InvoiceApiException
      • deleteCBA

        @DELETE
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/{invoiceItemId:\\w+-\\w+-\\w+-\\w+-\\w+}/cba")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteCBA​(@PathParam("invoiceId")
                                                   UUID invoiceId,
                                                   @PathParam("invoiceItemId")
                                                   UUID invoiceItemId,
                                                   @QueryParam("accountId")
                                                   UUID accountId,
                                                   @HeaderParam("X-Killbill-CreatedBy")
                                                   String createdBy,
                                                   @HeaderParam("X-Killbill-Reason")
                                                   String reason,
                                                   @HeaderParam("X-Killbill-Comment")
                                                   String comment,
                                                   @Context
                                                   javax.servlet.http.HttpServletRequest request)
                                            throws AccountApiException,
                                                   InvoiceApiException
        Throws:
        AccountApiException
        InvoiceApiException
      • adjustInvoiceItem

        @POST
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response adjustInvoiceItem​(@PathParam("invoiceId")
                                                           UUID invoiceId,
                                                           InvoiceItemJson json,
                                                           @QueryParam("requestedDate")
                                                           String requestedDateTimeString,
                                                           @QueryParam("pluginProperty")
                                                           List<String> pluginPropertiesString,
                                                           @HeaderParam("X-Killbill-CreatedBy")
                                                           String createdBy,
                                                           @HeaderParam("X-Killbill-Reason")
                                                           String reason,
                                                           @HeaderParam("X-Killbill-Comment")
                                                           String comment,
                                                           @Context
                                                           javax.servlet.http.HttpServletRequest request,
                                                           @Context
                                                           javax.ws.rs.core.UriInfo uriInfo)
                                                    throws AccountApiException,
                                                           InvoiceApiException
        Throws:
        AccountApiException
        InvoiceApiException
      • createTaxItems

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        @Path("/taxes/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}")
        public javax.ws.rs.core.Response createTaxItems​(@PathParam("accountId")
                                                        UUID accountId,
                                                        List<InvoiceItemJson> taxItemJson,
                                                        @QueryParam("autoCommit") @DefaultValue("false")
                                                        Boolean autoCommit,
                                                        @QueryParam("requestedDate")
                                                        String requestedDateTimeString,
                                                        @QueryParam("pluginProperty")
                                                        List<String> pluginPropertiesString,
                                                        @HeaderParam("X-Killbill-CreatedBy")
                                                        String createdBy,
                                                        @HeaderParam("X-Killbill-Reason")
                                                        String reason,
                                                        @HeaderParam("X-Killbill-Comment")
                                                        String comment,
                                                        @Context
                                                        javax.servlet.http.HttpServletRequest request,
                                                        @Context
                                                        javax.ws.rs.core.UriInfo uriInfo)
                                                 throws AccountApiException,
                                                        InvoiceApiException
        Throws:
        AccountApiException
        InvoiceApiException
      • getPaymentsForInvoice

        @GET
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/payments")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPaymentsForInvoice​(@PathParam("invoiceId")
                                                               UUID invoiceId,
                                                               @QueryParam("withPluginInfo") @DefaultValue("false")
                                                               Boolean withPluginInfo,
                                                               @QueryParam("withAttempts") @DefaultValue("false")
                                                               Boolean withAttempts,
                                                               @QueryParam("audit") @DefaultValue("NONE")
                                                               AuditMode auditMode,
                                                               @Context
                                                               javax.servlet.http.HttpServletRequest request)
                                                        throws PaymentApiException,
                                                               InvoiceApiException
        Throws:
        PaymentApiException
        InvoiceApiException
      • createInstantPayment

        @POST
        @Produces("application/json")
        @Consumes("application/json")
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/payments")
        public javax.ws.rs.core.Response createInstantPayment​(@PathParam("invoiceId")
                                                              UUID invoiceId,
                                                              InvoicePaymentJson payment,
                                                              @QueryParam("externalPayment") @DefaultValue("false")
                                                              Boolean externalPayment,
                                                              @QueryParam("controlPluginName")
                                                              List<String> paymentControlPluginNames,
                                                              @QueryParam("pluginProperty")
                                                              List<String> pluginPropertiesString,
                                                              @HeaderParam("X-Killbill-CreatedBy")
                                                              String createdBy,
                                                              @HeaderParam("X-Killbill-Reason")
                                                              String reason,
                                                              @HeaderParam("X-Killbill-Comment")
                                                              String comment,
                                                              @Context
                                                              javax.servlet.http.HttpServletRequest request,
                                                              @Context
                                                              javax.ws.rs.core.UriInfo uriInfo)
                                                       throws AccountApiException,
                                                              PaymentApiException
        Throws:
        AccountApiException
        PaymentApiException
      • uploadInvoiceTranslation

        @POST
        @Produces("text/plain")
        @Consumes("text/plain")
        @Path("/translation/{locale:.*}/")
        public javax.ws.rs.core.Response uploadInvoiceTranslation​(@PathParam("locale")
                                                                  String localeStr,
                                                                  String invoiceTranslation,
                                                                  @QueryParam("deleteIfExists") @DefaultValue("false")
                                                                  boolean deleteIfExists,
                                                                  @HeaderParam("X-Killbill-CreatedBy")
                                                                  String createdBy,
                                                                  @HeaderParam("X-Killbill-Reason")
                                                                  String reason,
                                                                  @HeaderParam("X-Killbill-Comment")
                                                                  String comment,
                                                                  @Context
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  @Context
                                                                  javax.ws.rs.core.UriInfo uriInfo)
                                                           throws Exception
        Throws:
        Exception
      • uploadCatalogTranslation

        @POST
        @Produces("text/plain")
        @Consumes("text/plain")
        @Path("/catalogTranslation/{locale:.*}/")
        public javax.ws.rs.core.Response uploadCatalogTranslation​(@PathParam("locale")
                                                                  String localeStr,
                                                                  String catalogTranslation,
                                                                  @QueryParam("deleteIfExists") @DefaultValue("false")
                                                                  boolean deleteIfExists,
                                                                  @HeaderParam("X-Killbill-CreatedBy")
                                                                  String createdBy,
                                                                  @HeaderParam("X-Killbill-Reason")
                                                                  String reason,
                                                                  @HeaderParam("X-Killbill-Comment")
                                                                  String comment,
                                                                  @Context
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  @Context
                                                                  javax.ws.rs.core.UriInfo uriInfo)
                                                           throws Exception
        Throws:
        Exception
      • uploadInvoiceTemplate

        @POST
        @Produces("text/html")
        @Consumes("text/html")
        @Path("/template")
        public javax.ws.rs.core.Response uploadInvoiceTemplate​(String catalogTranslation,
                                                               @QueryParam("deleteIfExists") @DefaultValue("false")
                                                               boolean deleteIfExists,
                                                               @HeaderParam("X-Killbill-CreatedBy")
                                                               String createdBy,
                                                               @HeaderParam("X-Killbill-Reason")
                                                               String reason,
                                                               @HeaderParam("X-Killbill-Comment")
                                                               String comment,
                                                               @Context
                                                               javax.servlet.http.HttpServletRequest request,
                                                               @Context
                                                               javax.ws.rs.core.UriInfo uriInfo)
                                                        throws Exception
        Throws:
        Exception
      • uploadInvoiceMPTemplate

        @POST
        @Produces("text/html")
        @Consumes("text/html")
        @Path("/manualPayTemplate")
        public javax.ws.rs.core.Response uploadInvoiceMPTemplate​(String catalogTranslation,
                                                                 @QueryParam("deleteIfExists") @DefaultValue("false")
                                                                 boolean deleteIfExists,
                                                                 @HeaderParam("X-Killbill-CreatedBy")
                                                                 String createdBy,
                                                                 @HeaderParam("X-Killbill-Reason")
                                                                 String reason,
                                                                 @HeaderParam("X-Killbill-Comment")
                                                                 String comment,
                                                                 @Context
                                                                 javax.servlet.http.HttpServletRequest request,
                                                                 @Context
                                                                 javax.ws.rs.core.UriInfo uriInfo)
                                                          throws Exception
        Throws:
        Exception
      • getCustomFields

        @GET
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Produces("application/json")
        public javax.ws.rs.core.Response getCustomFields​(@PathParam("invoiceId")
                                                         UUID id,
                                                         @QueryParam("audit") @DefaultValue("NONE")
                                                         AuditMode auditMode,
                                                         @Context
                                                         javax.servlet.http.HttpServletRequest request)
      • createInvoiceCustomFields

        @POST
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createInvoiceCustomFields​(@PathParam("invoiceId")
                                                                   UUID id,
                                                                   List<CustomFieldJson> customFields,
                                                                   @HeaderParam("X-Killbill-CreatedBy")
                                                                   String createdBy,
                                                                   @HeaderParam("X-Killbill-Reason")
                                                                   String reason,
                                                                   @HeaderParam("X-Killbill-Comment")
                                                                   String comment,
                                                                   @Context
                                                                   javax.servlet.http.HttpServletRequest request,
                                                                   @Context
                                                                   javax.ws.rs.core.UriInfo uriInfo)
                                                            throws org.killbill.billing.util.api.CustomFieldApiException
        Throws:
        org.killbill.billing.util.api.CustomFieldApiException
      • modifyInvoiceCustomFields

        @PUT
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response modifyInvoiceCustomFields​(@PathParam("invoiceId")
                                                                   UUID id,
                                                                   List<CustomFieldJson> customFields,
                                                                   @HeaderParam("X-Killbill-CreatedBy")
                                                                   String createdBy,
                                                                   @HeaderParam("X-Killbill-Reason")
                                                                   String reason,
                                                                   @HeaderParam("X-Killbill-Comment")
                                                                   String comment,
                                                                   @Context
                                                                   javax.servlet.http.HttpServletRequest request)
                                                            throws org.killbill.billing.util.api.CustomFieldApiException
        Throws:
        org.killbill.billing.util.api.CustomFieldApiException
      • deleteInvoiceCustomFields

        @DELETE
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteInvoiceCustomFields​(@PathParam("invoiceId")
                                                                   UUID id,
                                                                   @QueryParam("customField")
                                                                   List<UUID> customFieldList,
                                                                   @HeaderParam("X-Killbill-CreatedBy")
                                                                   String createdBy,
                                                                   @HeaderParam("X-Killbill-Reason")
                                                                   String reason,
                                                                   @HeaderParam("X-Killbill-Comment")
                                                                   String comment,
                                                                   @Context
                                                                   javax.servlet.http.HttpServletRequest request)
                                                            throws org.killbill.billing.util.api.CustomFieldApiException
        Throws:
        org.killbill.billing.util.api.CustomFieldApiException
      • getTags

        @GET
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/tags")
        @Produces("application/json")
        public javax.ws.rs.core.Response getTags​(@PathParam("invoiceId")
                                                 UUID invoiceId,
                                                 @QueryParam("includedDeleted") @DefaultValue("false")
                                                 Boolean includedDeleted,
                                                 @QueryParam("audit") @DefaultValue("NONE")
                                                 AuditMode auditMode,
                                                 @Context
                                                 javax.servlet.http.HttpServletRequest request)
                                          throws org.killbill.billing.util.api.TagDefinitionApiException,
                                                 InvoiceApiException
        Throws:
        org.killbill.billing.util.api.TagDefinitionApiException
        InvoiceApiException
      • createInvoiceTags

        @POST
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/tags")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createInvoiceTags​(@PathParam("invoiceId")
                                                           UUID id,
                                                           List<UUID> tagList,
                                                           @HeaderParam("X-Killbill-CreatedBy")
                                                           String createdBy,
                                                           @HeaderParam("X-Killbill-Reason")
                                                           String reason,
                                                           @HeaderParam("X-Killbill-Comment")
                                                           String comment,
                                                           @Context
                                                           javax.ws.rs.core.UriInfo uriInfo,
                                                           @Context
                                                           javax.servlet.http.HttpServletRequest request)
                                                    throws org.killbill.billing.util.api.TagApiException
        Throws:
        org.killbill.billing.util.api.TagApiException
      • deleteInvoiceTags

        @DELETE
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/tags")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteInvoiceTags​(@PathParam("invoiceId")
                                                           UUID id,
                                                           @QueryParam("tagDef")
                                                           List<UUID> tagList,
                                                           @HeaderParam("X-Killbill-CreatedBy")
                                                           String createdBy,
                                                           @HeaderParam("X-Killbill-Reason")
                                                           String reason,
                                                           @HeaderParam("X-Killbill-Comment")
                                                           String comment,
                                                           @Context
                                                           javax.servlet.http.HttpServletRequest request)
                                                    throws org.killbill.billing.util.api.TagApiException
        Throws:
        org.killbill.billing.util.api.TagApiException
      • commitInvoice

        @PUT
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/commitInvoice")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response commitInvoice​(@PathParam("invoiceId")
                                                       UUID invoiceId,
                                                       @HeaderParam("X-Killbill-CreatedBy")
                                                       String createdBy,
                                                       @HeaderParam("X-Killbill-Reason")
                                                       String reason,
                                                       @HeaderParam("X-Killbill-Comment")
                                                       String comment,
                                                       @Context
                                                       javax.servlet.http.HttpServletRequest request,
                                                       @Context
                                                       javax.ws.rs.core.UriInfo uriInfo)
                                                throws InvoiceApiException
        Throws:
        InvoiceApiException
      • voidInvoice

        @PUT
        @Path("/{invoiceId:\\w+-\\w+-\\w+-\\w+-\\w+}/voidInvoice")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response voidInvoice​(@PathParam("invoiceId")
                                                     UUID invoiceId,
                                                     @HeaderParam("X-Killbill-CreatedBy")
                                                     String createdBy,
                                                     @HeaderParam("X-Killbill-Reason")
                                                     String reason,
                                                     @HeaderParam("X-Killbill-Comment")
                                                     String comment,
                                                     @Context
                                                     javax.servlet.http.HttpServletRequest request,
                                                     @Context
                                                     javax.ws.rs.core.UriInfo uriInfo)
                                              throws InvoiceApiException
        Throws:
        InvoiceApiException