# GET All Org Purchases

## Get merchant's list of purchases

> \# Get merchant's list of purchases\
> \
> This endpoint is used to get all merchant's purchases by its ORGANIZATION\_API\_KEY.\
> \
> \### Request\
> \
> \- Method: GET\
> &#x20;   \
> \- URL: \[<http://localhost:3000/v1/purchase/search]\\(http://localhost:3000/v1/organization/:organizationId)\\>
> &#x20;   \
> \
> \### Headers\
> \
> \- Authorization: Bearer {{ORGANIZATION\_API\_KEY}}\
> &#x20;   \
> \
> \### Query Params\
> \
> \- limit: number\
> &#x20;   \
> \- offset: number\
> &#x20;   \
> \
> \### Body\
> \
> \`\`\` json\
> {\
> &#x20; "searchText?": string,\
> &#x20; "statuses": string\[],\
> &#x20; "widgetUuids": string\[],\
> &#x20; "merchants": string\[],\
> &#x20; "createdAt": Date;\
> }\
> \
> &#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 > Merchant"}],"servers":[{"url":"http://{{base_url}}"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/v1/merchant/purchase/search":{"post":{"tags":["Purchase > Merchant"],"summary":"Get merchant's list of purchases","description":"# Get merchant's list of purchases\n\nThis endpoint is used to get all merchant's purchases by its ORGANIZATION_API_KEY.\n\n### Request\n\n- Method: GET\n    \n- URL: [http://localhost:3000/v1/purchase/search](http://localhost:3000/v1/organization/:organizationId)\n    \n\n### Headers\n\n- Authorization: Bearer {{ORGANIZATION_API_KEY}}\n    \n\n### Query Params\n\n- limit: number\n    \n- offset: number\n    \n\n### Body\n\n``` json\n{\n  \"searchText?\": string,\n  \"statuses\": string[],\n  \"widgetUuids\": string[],\n  \"merchants\": string[],\n  \"createdAt\": Date;\n}\n\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 ```","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"parameters":[{"name":"limit","in":"query","schema":{"type":"integer"}},{"name":"offset","in":"query","schema":{"type":"integer"}}],"responses":{"201":{"description":"Created","headers":{"Date":{"schema":{"type":"string"}},"Content-Type":{"schema":{"type":"string"}},"Content-Length":{"schema":{"type":"integer"}},"Connection":{"schema":{"type":"string"}},"Access-Control-Allow-Origin":{"schema":{"type":"string"}},"Strict-Transport-Security":{"schema":{"type":"string"}},"Cf-Cache-Status":{"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: 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/organization/get-all-org-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.
