Get purchase details
Changed onReturns detailed information about specific purchase including verification data if available.
Security. Verification data is only visible to the purchase owner.
Request
- Base URLhttps://api.getmytg.com
- URLhttps://api.getmytg.com/v1/purchases/{purchase_id}
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
Unique purchase identifier.
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
- breaking
the response property
/became nullable for the status - warning
added the new
EXPIREDenum value to theresponse property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking