GET Get My Prop Challenges¶
Endpoint¶
GET /prop/challenges
Description¶
Returns prop purchases and challenges for the authenticated customer.
At the current implementation stage, purchases can exist before a challenge is created. The terminal should read both arrays.
Authorization¶
Available for authenticated customer sessions.
Request Example¶
GET /prop/challenges
Authorization: Bearer <JWT_TOKEN>
Response Example¶
{
"purchases": [
{
"id": 10,
"program_id": 1,
"customer_id": 5,
"payer_login": 100001,
"account_login": 0,
"status": 0,
"amount": 499.0,
"currency": "USD",
"conversion_rate": 1.0,
"amount_account_currency": 499.0,
"comment": "PROP_CHALLENGE_PURCHASE_PENDING",
"created_time": 1778160000,
"updated_time": 1778160000
}
],
"challenges": [
{
"id": 1,
"purchase_id": 10,
"program_id": 1,
"customer_id": 5,
"account_login": 200001,
"current_phase_index": 1,
"status": 1,
"start_time": 1778160000,
"end_time": 1780752000,
"created_time": 1778160000,
"updated_time": 1778160000
}
]
}