Pact Swap
SWAPPACTSWAP Market MakerC1 (Bid) Orders APICancel a single C1 (Bid) order POST

Cancel a single C1 (Bid) order


Creates a UI command (QR code string) for canceling a single C1 (Bid) order. The UI command can be used to compose a Coinweb L2 transaction, by means of @coinweb/wallet-lib library or Coinweb Mobile Wallet (by scanning QR generated from the UI command with a camera). The L2 Transaction then can be signed and broadcasted, with the wallet-library or mobile wallet.

POST
/pactswap_cm/ui-commands/c1/cancelOrder
contractIdstring

The L2 contract address where the order exists.

orderIdstring

The unique identifier of the order to cancel.

accessId?string

Optional unique identifier for history tracking. Used to track order cancellation in off-chain history systems.

Response Body

curl -X POST "https://cwap-api.coinhq.store/pactswap_cm/ui-commands/c1/cancelOrder" \
  -H "Content-Type: application/json" \
  -d '{
    "contractId": "0x6f20d1802288c90d2a044d3f7afae73fda261b27d85c0e01fdaaf3199b2c0e85",
    "orderId": "order-123-abc"
  }'
{
  "rawTx": "string"
}

Was this documentation helpful? Any suggestions?