> For the complete documentation index, see [llms.txt](https://docs.inabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inabit.com/inabit-terminal/api-reference/widget/get-all-widget-purchases.md).

# GET All Widget Purchases

## Get widget's list of purchases

> \# Get widget's list of purchases\
> \
> This endpoint is used to get all purchases by WIDGET\_API\_KEY.\
> \
> \### Request\
> \
> \- Method: GET\
> &#x20;   \
> \- URL: \[<http://localhost:3000/v1/widget/purchase]\\(http://localhost:3000/v1/widget/:widgetUuid/purchase)\\>
> &#x20;   \
> \
> \### Headers\
> \
> \- Authorization: Bearer {{WIDGET\_API\_KEY}}\
> &#x20;   \
> \
> \### Query Params\
> \
> \- limit: number\
> &#x20;   \
> \- offset: number\
> &#x20;   \
> \
> \### Response\
> \
> \- Status: 200 OK\
> &#x20;   \
> \- Content Type: application/json\
> &#x20;   \
> \
> \#### Response Body\
> \
> \`\`\` json\
> {\
> &#x20; "data": \
> &#x20;   "purchases": \[\
> &#x20;     {\
> &#x20;       "id": string,\
> &#x20;       "title": string,\
> &#x20;       "subTitle": string,\
> &#x20;       "siteName": string,\
> &#x20;       "asset": Enum('USDT', 'USDC', 'ETH', 'MATIC','BNB', 'TRX', 'BTC'),\
> &#x20;       "blockchain": Enum('ethereum', 'tron', 'binance-smart-chain', 'MATIC', 'bitcoin'),\
> &#x20;       "address": string,\
> &#x20;       "transaction": string\[],\
> &#x20;       "fiatAmount": number,\
> &#x20;       "fiatCurrency": \[\
> &#x20;           Enum('USD', 'EUR')\
> &#x20;        ],\
> &#x20;       "currentDate": Date,\
> &#x20;       "amount": number,\
> &#x20;       "plannedAmount": number,\
> &#x20;       "baseCurrencyAmount": number,\
> &#x20;       "plannedBaseCurrencyAmount": number,\
> &#x20;       "creationDate": Date,\
> &#x20;       "allocationDate": Date,\
> &#x20;       "expirationDate": Date,\
> &#x20;       "status": ENUM('Allocated', 'Expired', 'Unconfirmed', 'Confirming', 'Completed', 'Overcharge', 'Undercharge', 'Failed', 'GenerateAddressFailed', 'Swept'),\
> &#x20;       "widgetId": string,\
> &#x20;       "redirectUrl": string,\
> &#x20;       "confirmationAmount": number,\
> &#x20;       "acceptPartialPayment": boolean,\
> &#x20;       "widgetName": string,\
> &#x20;       "sweepingStatus": \<TBD>,\
> &#x20;       "sweepingFee": \<TBD>\
> &#x20;       "merchantName": string,\
> &#x20;       "redirectUrl": string,\
> &#x20;       "widgetId": string,\
> &#x20;       "purchaseIdentifier": string,\
> &#x20;     }\
> &#x20;   ],\
> &#x20;  "total": number\
> }\
> \
> &#x20;\`\`\`

````json
{"openapi":"3.0.0","info":{"title":"PSP (Stage)","version":"1.0.0"},"tags":[{"name":"Purchase > Widget"}],"servers":[{"url":"http://{{base_url}}"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/v1/widget/purchase":{"get":{"tags":["Purchase > Widget"],"summary":"Get widget's list of purchases","description":"# Get widget's list of purchases\n\nThis endpoint is used to get all purchases by WIDGET_API_KEY.\n\n### Request\n\n- Method: GET\n    \n- URL: [http://localhost:3000/v1/widget/purchase](http://localhost:3000/v1/widget/:widgetUuid/purchase)\n    \n\n### Headers\n\n- Authorization: Bearer {{WIDGET_API_KEY}}\n    \n\n### Query Params\n\n- limit: number\n    \n- offset: number\n    \n\n### Response\n\n- Status: 200 OK\n    \n- Content Type: application/json\n    \n\n#### Response Body\n\n``` json\n{\n  \"data\": \n    \"purchases\": [\n      {\n        \"id\": string,\n        \"title\": string,\n        \"subTitle\": string,\n        \"siteName\": string,\n        \"asset\": Enum('USDT', 'USDC', 'ETH', 'MATIC','BNB', 'TRX', 'BTC'),\n        \"blockchain\": Enum('ethereum', 'tron', 'binance-smart-chain', 'MATIC', 'bitcoin'),\n        \"address\": string,\n        \"transaction\": string[],\n        \"fiatAmount\": number,\n        \"fiatCurrency\": [\n            Enum('USD', 'EUR')\n         ],\n        \"currentDate\": Date,\n        \"amount\": number,\n        \"plannedAmount\": number,\n        \"baseCurrencyAmount\": number,\n        \"plannedBaseCurrencyAmount\": number,\n        \"creationDate\": Date,\n        \"allocationDate\": Date,\n        \"expirationDate\": Date,\n        \"status\": ENUM('Allocated', 'Expired', 'Unconfirmed', 'Confirming', 'Completed', 'Overcharge', 'Undercharge', 'Failed', 'GenerateAddressFailed', 'Swept'),\n        \"widgetId\": string,\n        \"redirectUrl\": string,\n        \"confirmationAmount\": number,\n        \"acceptPartialPayment\": boolean,\n        \"widgetName\": string,\n        \"sweepingStatus\": <TBD>,\n        \"sweepingFee\": <TBD>\n        \"merchantName\": string,\n        \"redirectUrl\": string,\n        \"widgetId\": string,\n        \"purchaseIdentifier\": string,\n      }\n    ],\n   \"total\": number\n}\n\n ```","parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","headers":{"Date":{"schema":{"type":"string"}},"Content-Type":{"schema":{"type":"string"}},"Transfer-Encoding":{"schema":{"type":"string"}},"Connection":{"schema":{"type":"string"}},"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Strict-Transport-Security":{"schema":{"type":"string"}},"Cf-Cache-Status":{"schema":{"type":"string"}},"Content-Encoding":{"schema":{"type":"string"}},"Server":{"schema":{"type":"string"}},"CF-RAY":{"schema":{"type":"string"}},"alt-svc":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
````


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.inabit.com/inabit-terminal/api-reference/widget/get-all-widget-purchases.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.
