core-lightning/doc/schemas/lightning-disableoffer.json
2024-04-04 13:16:27 +10:30

107 lines
2.8 KiB
JSON

{
"$schema": "../rpc-schema-draft.json",
"type": "object",
"additionalProperties": false,
"rpc": "disableoffer",
"title": "Command for removing an offer",
"warning": "experimental-offers only",
"description": [
"The **disableoffer** RPC command disables an offer, so that no further invoices will be given out.",
"",
"We currently don't support deletion of offers, so offers are not forgotten entirely (there may be invoices which refer to this offer)."
],
"request": {
"required": [
"offer_id"
],
"properties": {
"offer_id": {
"type": "hash",
"description": [
"The id we use to identify this offer."
]
}
}
},
"response": {
"required": [
"offer_id",
"active",
"single_use",
"bolt12",
"used"
],
"properties": {
"offer_id": {
"type": "hash",
"description": [
"The merkle hash of the offer."
]
},
"active": {
"type": "boolean",
"enum": [
false
],
"description": [
"Whether the offer can produce invoices/payments."
]
},
"single_use": {
"type": "boolean",
"description": [
"Whether the offer is disabled after first successful use."
]
},
"bolt12": {
"type": "string",
"description": [
"The bolt12 string representing this offer."
]
},
"used": {
"type": "boolean",
"description": [
"Whether the offer has had an invoice paid / payment made."
]
},
"label": {
"type": "string",
"description": [
"The label provided when offer was created."
]
}
},
"pre_return_value_notes": [
"Note: the returned object is the same format as **listoffers**."
]
},
"json_example": [
{
"request": {
"id": "example:disableoffer#1",
"method": "disableoffer",
"params": {
"offer_id": "713a16ccd4eb10438bdcfbc2c8276be301020dd9d489c530773ba64f3b33307d"
}
},
"response": {
"offer_id": "053a5c566fbea2681a5ff9c05a913da23e45b95d09ef5bd25d7d408f23da7084",
"active": false,
"single_use": false,
"bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqvqcdgq2z9pk7enxv4jjqen0wgs8yatnw3ujz83qkc6rvp4j28rt3dtrn32zkvdy7efhnlrpr5rp5geqxs783wtlj550qs8czzku4nk3pqp6m593qxgunzuqcwkmgqkmp6ty0wyvjcqdguv3pnpukedwn6cr87m89t74h3auyaeg89xkvgzpac70z3m9rn5xzu28c",
"used": false
}
}
],
"author": [
"Rusty Russell <<rusty@rustcorp.com.au>> is mainly responsible."
],
"see_also": [
"lightning-offer(7)",
"lightning-listoffers(7)"
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
]
}