SDK reference · Node SDK

prov.authorize.network.accept

prov.authorize.network.accept in Node SDK. Store side: accept the order online (the reservation becomes spend).

Signature

prov.authorize.network.accept(intentToken: string): Promise<NetworkAcceptance>

Parameters

intentTokenstringRequired

Request fields

intent_tokenstringRequired
The Provenance-Intent token the agent presented.

Returns

Promise<NetworkAcceptance> The acceptance.

HTTP operation

POST /v1/authorize/network_orders/confirm: Confirm a network order

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/network_orders/confirm`, {
  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.