Amboss
Search…
⌃K

Seller

Interacting as a seller on Magma

Accept an Order

Authenticated Endpoint: requires an API key
The order has to in status WAITING_FOR_SELLER_APPROVAL
The invoice needs to have an expiry of more than 48 hours.
Accept an order that is open for one of your offers.
mutation AcceptOrder($sellerAcceptOrderId: String!, $request: String!) {
sellerAcceptOrder(id: $sellerAcceptOrderId, request: $request)
}
Variables
{
"sellerAcceptOrderId": "ORDER_ID",
"request": "BOLT11_LIGHTNING_REQUEST"
}

Reject an Order

Authenticated Endpoint: requires an API key
The order has to be in the WAITING_FOR_SELLER_APPROVAL status.
Reject an order that is open for one of your offers.
mutation SellerRejectOrder($sellerRejectOrderId: String!) {
sellerRejectOrder(id: $sellerRejectOrderId)
}
Variables
{
"sellerRejectOrderId": "ORDER_ID"
}

Confirm Channel Opening

Authenticated Endpoint: requires an API key
The order has to be in the WAITING_FOR_CHANNEL_OPEN status.
The transaction has to include the output in this format TRANSACTION_ID:TRANSACTION_OUTPUT
Confirm a channel opening by sending us the opening transaction id.
mutation SellerAddTransaction($sellerAddTransactionId: String!, $transaction: String!) {
sellerAddTransaction(id: $sellerAddTransactionId, transaction: $transaction)
}
Variables
{
"sellerAddTransactionId": "ORDER_ID",
"transaction": "TRANSACTION_ID:TRANSACTION_OUTPUT"
}
Last modified 4mo ago