anchor.diff:  allowed_methods(?GENERATE) ->
       [?HTTP_PUT];
   allowed_methods(_) ->
  -    [?HTTP_GET].
  +    [?HTTP_GET, ?HTTP_DELETE].
   allowed_methods(_,?ATTACHMENT) ->
       [?HTTP_GET].
   
  
positive.code:       ,kz_json:from_list([{<<"message">>, Message}])
        ,Context
       ).
  
  generate_transaction_based_invoice(Context, AccountId, <<Year:4/binary, Month:2/binary, "-", _/binary>> = TransctionId, Timestamp) ->
    try
  
negative.code: validate(Context, ?CURRENCY_SIGN) ->
      validate_currency_sign(Context, cb_context:req_verb(Context));
  validate(Context, ?GENERATE) ->
      validate_generate(Context, cb_context:req_verb(Context));
  validate(Context, DocId) ->
      validate_doc(Context, DocId, cb_context:req_verb(Context)).
  validate(Context, Id, ?ATTACHMENT) ->
      validate_onbill(Context, Id, ?ATTACHMENT, cb_context:req_verb(Context)).
  
  