Skip to content
LogoLogo

default

The buyer’s current spending policy, so purchases can be planned within it.

GET/muse/v1/policy

Responses

200Policy summary with guidance.

Check a proposed basket against the buyer’s policy. Call before checkout and after every basket change.

POST/muse/v1/assessments

Request Body

application/json
merchant
string

Store or merchant name.

merchant_domain
string

Bare merchant domain, e.g. walmart.com. Required to evaluate a merchant allowlist. Matched exactly after trimming, lowercasing and removing a leading www.; other subdomains are distinct. Connector-reported and unverified.

currency
string

ISO 4217 code, e.g. USD.

items
object[]

costs
object

Responses

409No Commerce policy is configured yet; the buyer must set one in Nava.

Retrieve a prior assessment by id, with its findings.

GET/muse/v1/assessments/{id}

Path Parameters

idRequired
string

Responses

200The stored assessment.
404Unknown assessment id.

The buyer’s purchase history through this connector, newest first — like a card statement. All rows are agent-reported and unverified.

GET/muse/v1/purchases

Query Parameters

limit
integer·max 200·default 50
since
string <date-time>

Only purchases executed after this time.

Responses

200Statement rows plus per-currency totals for the returned set.

Report an executed transaction immediately after checkout completes. Include the assessment_id from the pre-purchase check and the final charged total. Reporting never authorizes or blocks anything; it records what happened.

POST/muse/v1/purchases

Request Body

application/json
assessment_id
string

The id returned by assess_purchase for this basket. Always include it when the purchase was assessed first; omit only if no assessment exists.

merchant
string

Store or merchant name.

merchant_domain
string

Bare merchant domain, e.g. walmart.com. When valid, the purchase record stores it as a domain identifier; otherwise the merchant name is kept.

currencyRequired
string

ISO 4217 code of the charged amount, e.g. USD.

items
object[]

The purchased line items, as in assess_purchase.

costsRequired
object

order_reference
string

The merchant’s order or confirmation number, if one was issued.

executed_at
string <date-time>

When the purchase completed. Defaults to the report time.

Responses

400The report is missing the charged amount (costs.total and currency are required).
404Unknown assessment_id for this connector.

A single recorded purchase by id.

GET/muse/v1/purchases/{id}

Path Parameters

idRequired
string

Responses

200The purchase record.
404Unknown purchase id.