# Merchant API

## GET /merchant-api/v1/purchases/in-app/history/{order\_id}

> Retrieve transaction details by Order ID

```json
{"openapi":"3.0.3","info":{"title":"Onside Purchase Validation API","version":"1.0.0"},"servers":[{"url":"https://onside.io","description":"Production server"},{"url":"https://onside.dev","description":"Staging server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/merchant-api/v1/purchases/in-app/history/{order_id}":{"get":{"tags":["Merchant API"],"summary":"Retrieve transaction details by Order ID","parameters":[{"name":"order_id","in":"path","description":"The unique identifier of the order.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Successfully retrieved transaction history (Signed JWS).","content":{"application/jose":{"schema":{"type":"string","description":"Compact JWS string. Payload matches TransactionHistory schema."}}}},"401":{"description":"Unauthorized (Invalid or missing JWT)"},"403":{"description":"Forbidden (Valid JWT but not allowed)"},"404":{"description":"Order not found"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onside.io/sdk/purchasing-and-restoring-purchases/merchant-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
