anchor.diff:  
   load_carrier_attachment(Context, DocId, AName) ->
       crossbar_doc:load_attachment(DocId, AName, [], cb_context:set_account_db(Context, <<"onbill">>)).
  +
  +save_carrier_attachment(Context, DocId, AName) ->
  +    case cb_context:req_files(Context) of
  +        [{_FileName, FileJObj}] ->
  +            Contents = kz_json:get_value(<<"contents">>, FileJObj),
  +            CT = kz_json:get_value([<<"headers">>, <<"content_type">>], FileJObj),
  +            crossbar_doc:save_attachment(
  +              DocId
  +              ,AName
  +              ,Contents
  +              ,cb_context:set_account_db(Context, <<"onbill">>)
  +              ,[{'content_type', kz_util:to_list(CT)}]
  +             );
  +        _ ->
  +            lager:debug("No file uploaded"),
  +            cb_context:add_system_error('no file uploaded', Context)
  +    end.
  +
  
positive.code: 
  validate_onbill(Context,?CARRIERS, Id, AttachmentId, ?HTTP_GET) ->
      load_carrier_attachment(Context, build_carrier_doc_id(Id, Context), <<Id/binary, "_", AttachmentId/binary, ".tpl">>);
  validate_onbill(Context,?MODB, Id, ?ATTACHMENT, ?HTTP_GET) ->
      load_modb_attachment(Context, Id).
  
  
negative.code: -define(CARRIERS, <<"carriers">>).
  -define(MODB, <<"onbills_modb">>).
  -define(RESELLER_VARIABLES, <<"onbill_reseller_variables">>).
  -define(NOTIFICATION_MIME_TYPES, [{<<"text">>, <<"html">>}
                                 %   ,{<<"text">>, <<"plain">>}
                                   ]).
  
  -spec init() -> 'ok'.
  init() ->
      _ = crossbar_bindings:bind(<<"*.allowed_methods.onbills">>, ?MODULE, 'allowed_methods'),
      _ = crossbar_bindings:bind(<<"*.resource_exists.onbills">>, ?MODULE, 'resource_exists'),
      _ = crossbar_bindings:bind(<<"*.content_types_provided.onbills">>, ?MODULE, 'content_types_provided'),
      _ = crossbar_bindings:bind(<<"*.content_types_accepted.onbills">>, ?MODULE, 'content_types_accepted'),
      _ = crossbar_bindings:bind(<<"*.validate.onbills">>, ?MODULE, 'validate').
  
  -spec allowed_methods() -> http_methods().
  