# GET Widget Purchase by ID

## Get widget's  purchase by Uuid

> \# Get widget's purchase by Uuid\
> \
> This endpoint is using WIDGET\_API\_KEY to get purchase by Uuid\
> \
> \### Request\
> \
> \- Method: GET\
> &#x20;   \
> \- URL: \[<http://localhost:3000/v1/widget/purchase/:purchaseUuid]\\(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;    {\
> &#x20;       "id": string,\
> &#x20;       "title": string,\
> &#x20;       "subTitle": string,\
> &#x20;       "siteName": string,\
> &#x20;       "asset": Enum(\&#x27;USDT\&#x27;, \&#x27;USDC\&#x27;, \&#x27;ETH\&#x27;, \&#x27;MATIC\&#x27;,\&#x27;BNB\&#x27;, \&#x27;TRX\&#x27;, \&#x27;BTC\&#x27;),\
> &#x20;       "blockchain": Enum(\&#x27;ethereum\&#x27;, \&#x27;tron\&#x27;, \&#x27;binance-smart-chain\&#x27;, \&#x27;MATIC\&#x27;, \&#x27;bitcoin\&#x27;),\
> &#x20;       "address": string,\
> &#x20;       "transaction": string\[],\
> &#x20;       "fiatAmount": number,\
> &#x20;       "fiatCurrency": \[\
> &#x20;           Enum(\&#x27;USD\&#x27;, \&#x27;EUR\&#x27;)\
> &#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(\&#x27;Allocated\&#x27;, \&#x27;Expired\&#x27;, \&#x27;Unconfirmed\&#x27;, \&#x27;Confirming\&#x27;, \&#x27;Completed\&#x27;, \&#x27;Overcharge\&#x27;, \&#x27;Undercharge\&#x27;, \&#x27;Failed\&#x27;, \&#x27;GenerateAddressFailed\&#x27;, \&#x27;Swept\&#x27;),\
> &#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;\`\`\`

````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/e36bea7d-5685-4fdc-be66-1db73ce56c7c":{"get":{"tags":["Purchase > Widget"],"summary":"Get widget's  purchase by Uuid","description":"# Get widget's purchase by Uuid\n\nThis endpoint is using WIDGET_API_KEY to get purchase by Uuid\n\n### Request\n\n- Method: GET\n    \n- URL: [http://localhost:3000/v1/widget/purchase/:purchaseUuid](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     {\n        \"id\": string,\n        \"title\": string,\n        \"subTitle\": string,\n        \"siteName\": string,\n        \"asset\": Enum(&#x27;USDT&#x27;, &#x27;USDC&#x27;, &#x27;ETH&#x27;, &#x27;MATIC&#x27;,&#x27;BNB&#x27;, &#x27;TRX&#x27;, &#x27;BTC&#x27;),\n        \"blockchain\": Enum(&#x27;ethereum&#x27;, &#x27;tron&#x27;, &#x27;binance-smart-chain&#x27;, &#x27;MATIC&#x27;, &#x27;bitcoin&#x27;),\n        \"address\": string,\n        \"transaction\": string[],\n        \"fiatAmount\": number,\n        \"fiatCurrency\": [\n            Enum(&#x27;USD&#x27;, &#x27;EUR&#x27;)\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(&#x27;Allocated&#x27;, &#x27;Expired&#x27;, &#x27;Unconfirmed&#x27;, &#x27;Confirming&#x27;, &#x27;Completed&#x27;, &#x27;Overcharge&#x27;, &#x27;Undercharge&#x27;, &#x27;Failed&#x27;, &#x27;GenerateAddressFailed&#x27;, &#x27;Swept&#x27;),\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\n ```","responses":{"200":{"description":"OK","headers":{"access-control-allow-origin":{"schema":{"type":"string"}},"content-type":{"schema":{"type":"string"}},"content-length":{"schema":{"type":"integer"}},"Date":{"schema":{"type":"string"}},"Connection":{"schema":{"type":"string"}},"Keep-Alive":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}}}}}}}
````
