SDK reference · Python SDK

prov.mandate.network.cancel

prov.mandate.network.cancel in Python SDK.

Signature

prov.mandate.network.cancel(intent_token: str) -> Any

Parameters

intent_tokenstrRequired

Request fields

intent_tokenstringRequired
The order's token (an expired one is fine).

Returns

Any The cancellation.

HTTP operation

POST /v1/authorize/network_orders/cancel: Cancel a network order

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/network_orders/cancel`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "intent_token": "eyJhbGciOiJFUzI1NiJ9.eyJuZXR3b3JrIjp0cnVlfQ.sig" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.