diff --git a/doc/schemas/invoicerequest.request.json b/doc/schemas/invoicerequest.request.json index 5ba071da9..e94b190ba 100644 --- a/doc/schemas/invoicerequest.request.json +++ b/doc/schemas/invoicerequest.request.json @@ -20,6 +20,10 @@ "type": "string", "description": "" }, + "label": { + "type": "string", + "description": "" + }, "absolute_expiry": { "type": "u64", "description": "" diff --git a/plugins/offers_offer.c b/plugins/offers_offer.c index d4ec501df..e3559b73f 100644 --- a/plugins/offers_offer.c +++ b/plugins/offers_offer.c @@ -467,7 +467,7 @@ struct command_result *json_invoicerequest(struct command *cmd, json_add_bool(req->js, "exposeid", true); json_add_bool(req->js, "single_use", *single_use); if (label) - json_add_string(req->js, "label", label); + json_add_string(req->js, "recurrence_label", label); return send_outreq(cmd->plugin, req); }