Purchases by Hash
Get purchase details by hash
Changed onReturns detailed information about specific purchase by its hash code including verification data if available.
No authentication required. The hash code serves as the access token.
Path parameter hash. If it is missing or empty in the URL (e.g. /v1/purchases-by-hash/ or /v1/purchases-by-hash//), the API returns 400 with fieldViolations on hash.
get/v1/purchases-by-hash/{hash}
Request
- Base URLhttps://api.getmytg.com
- URLhttps://api.getmytg.com/v1/purchases-by-hash/{hash}
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
hashstring required
Unique hash code of the purchase
Example:abc-def-1234567890
Response
Response for status 200
Example response
{
"id": 12345,
"country_code": "US",
"emoji": "🇺🇸",
"display_name": {
"ru": "США",
"en": "United States"
},
"phone_number": "+12025550123",
"price": {
"amount": "1.50",
"currency_code": "USD"
},
"status": "SUCCESS",
"purchase_type": "SINGLE",
"purchase_source": "BOT",
"verification": {
"code": "12345",
"password": "secret123",
"received_at": "2024-11-19T07:52:00.000Z"
},
"created_at": "2024-11-19T07:50:00.000Z"
}Changes
- info
endpoint added
- info