# 1.4 Query Payment

**Request**

| Method | URL                            |
| ------ | ------------------------------ |
| GET    | /payment/v1/card-payments/{id} |

**Response**

| Status | Response                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 200    | <p>{</p><p>    "data": {</p><p>        "price": 333.0,</p><p>        "payment\_channel": "PAY\_WITH\_3D",</p><p>        "items": \[],</p><p>        "card\_user\_key": null,</p><p>        "masterpass\_gsm\_number": null,</p><p>        "recurring": null,</p><p>        "paid\_price": 333.0,</p><p>        "callback\_url": "<https://sandbox.magicpay.ai/success>",</p><p>        "additional\_params": null,</p><p>        "enable\_installments": null,</p><p>        "masterpass\_user\_id": null,</p><p>        "createdDate": "2023-12-15T10:38:51.862163",</p><p>        "wallet\_price": 0,</p><p>        "bank\_order\_id": "1086",</p><p>        "fraud\_params": null,</p><p>        "allow\_only\_credit\_card": false,</p><p>        "apm\_user\_identity": null,</p><p>        "deletedDate": null,</p><p>        "installment": 1,</p><p>        "client\_ip": "2241219f1ff21ea2",</p><p>        "is\_three\_ds": true,</p><p>        "allow\_only\_stored\_cards": false,</p><p>        "enabled\_payment\_methods": null,</p><p>        "updatedDate": "2023-12-18 11:24:17.004334+00",</p><p>        "buyer\_member\_id": 16,</p><p>        "card": {</p><p>            "cardType": null,</p><p>            "cardAssociation": "",</p><p>            "cardBrand": "",</p><p>            "cardHolderName": "Test karti",</p><p>            "bankCardHolderName": "",</p><p>            "cardIssuerBankName": ""</p><p>        },</p><p>        "payment\_source": "PAY\_WITH\_3D",</p><p>        "always\_store\_card\_after\_payment": false,</p><p>        "to\_wallet": true,</p><p>        "conversation\_id": null,</p><p>        "currency": "TRY",</p><p>        "pos\_alias": "sipay",</p><p>        "payment\_status": "WAITING",</p><p>        "allow\_installment\_only\_commercial\_cards": false,</p><p>        "refundable\_price": 333.0,</p><p>        "id": 1086,</p><p>        "payment\_group": "",</p><p>        "retry": false,</p><p>        "merchant\_id": 1,</p><p>        "force\_auth\_only\_non\_credit\_cards": false,</p><p>        "refund\_status": "NOT\_REFUNDED",</p><p>        "external\_id": null,</p><p>        "payment\_phase": "AUTH",</p><p>        "force\_3ds": null,</p><p>        "ttl": null,</p><p>        "mobile\_link": false</p><p>    }</p><p>}</p><p><br></p><p><br><br><br></p> |
| 403    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| 400    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| 400    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| 401    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| 401    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| 500    | <p><br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

\ <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hilals-organization.gitbook.io/magicpay-documentation/1.payments-and-wallet/1.4-query-payment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
