특정 검색 파라미터를 기반으로 트랜잭션 목록을 가져옵니다. API의 응답으로 JSON, CSV 또는 XLS이 반환됩니다.
OK.
curl -i -X GET \ -u <username>:<password> \ 'https://api.xsolla.com/merchant/v2/merchants/{merchant_id}/reports/transactions/search.{format}?datetime_from=string&datetime_to=string&project_id=0&show_dry_run=true&transaction_id=0&phone=string&user_id=string&user_name=string&user_custom=string&email=string&external_id=string&offset=0&limit=0&transaction_type=payment&status=created'
[- {
- "payment_details": {
- "payment": {
- "amount": 7.96,
- "amount_from_ps": 7.96,
- "currency": "RUB"
}, - "sales_tax": {
- "amount": 0,
- "percent": 0
}
}, - "payment_system": {
- "decline_reason": null
}, - "purchase": {
- "pin_codes": {
- "amount": null,
- "content": null,
- "currency": null
}, - "simple_checkout": {
- "amount": 7.96,
- "currency": "RUB"
}, - "subscription": {
- "name": null
}, - "virtual_currency": {
- "amount": 0,
- "name": null
}, - "virtual_items": null
}, - "transaction": {
- "create_date": "2021-10-20",
- "dry_run": 0,
- "external_id": "example-external-id",
- "id": 123456789,
- "is_refund_allowed": 0,
- "payment_method": {
- "id": 1,
- "name": "PayPal"
}, - "project": {
- "id": 123456,
- "name": "Example"
}, - "refund_reason": null,
- "status": "done",
- "transfer_date": "2021-10-20"
}, - "user": {
- "country": "RU",
- "custom": null,
- "email": "email@example.com",
- "id": "example-id",
- "name": "Example",
- "phone": null
}
}
]