> For the complete documentation index, see [llms.txt](https://pivot-payment.gitbook.io/pivot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pivot-payment.gitbook.io/pivot-docs/api-references/api-lists/payments/payment-session/retrieve-payment-session-details.md).

# Retrieve Payment Session Details

## Retrieve Payment Session by ID

### Method and URL

<mark style="color:green;">`GET`</mark> \[<mark style="color:orange;">BASE\_URL</mark>]/v2/payments/{id}

<mark style="color:orange;">`id`</mark> from the Payment Session ID whenever you create Payment Session

### Response

**Response Body**

```json
{
  "code": "00",
  "message": "Success",
  "data": {
    "id": "bca0b57a-391e-4f6f-bfef-8cd37492ee5b",
    "clientReferenceId": "1750758552",
    "amount": {
      "value": 10001,
      "currency": "IDR"
    },
    "autoConfirm": true,
    "mode": "REDIRECT",
    "redirectUrl": {
      "successReturnUrl": "https://merchan.com/success",
      "failureReturnUrl": "https://merchant.com/failed",
      "expirationReturnUrl": "https://merchant.com/expired"
    },
    "paymentType": "SINGLE",
    "paymentMethod": {
      "type": "CARD"
    },
    "statementDescriptor": "Reforza Pivot",
    "saveForFutureUse": false,
    "showSavedPayment": false,
    "expirationMode": "LOOSE",
    "status": "PAID",
    "investigationStatus": null,
    "createdAt": "2025-06-24T09:49:13Z",
    "updatedAt": "2025-06-24T09:56:40Z",
    "expiryAt": "2025-12-30T23:59:00Z",
    "paymentUrl": "https://pay-stg.pivot-payment.com/detail?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiYmNhMGI1N2EtMzkxZS00ZjZmLWJmZWYtOGNkMzc0OTJlZTViIiwiaXNzIjoiYmFja2VuZC1wb3J0YWwiLCJleHAiOjE3NjcxMzkxNDB9.yvVXKEgcbJucCACggQLaFZQmnqkzvDAfK56kcNY625o",
    "chargeDetails": [
      {
        "id": "cf2842f4-e263-4643-8bc9-af682a5060cd",
        "paymentSessionId": "bca0b57a-391e-4f6f-bfef-8cd37492ee5b",
        "paymentSessionClientReferenceId": "1750758552",
        "amount": {
          "value": 10001,
          "currency": "IDR"
        },
        "statementDescriptor": "Reforza Pivot",
        "status": "SUCCESS",
        "authorizedAmount": {
          "value": 10001,
          "currency": "IDR"
        },
        "capturedAmount": {
          "value": 10001,
          "currency": "IDR"
        },
        "isCaptured": true,
        "createdAt": "2025-06-24T09:49:12.861006Z",
        "updatedAt": "2025-06-24T09:56:40.020691Z",
        "paidAt": "2025-06-24T09:56:39Z",
        "fdsRiskAssessment": {
          "score": "0",
          "level": "very low",
          "recommendation": "Approve",
          "status": "PASSED",
          "evaluatedAt": "2025-06-24T09:56:39.411921983Z"
        },
        "card": {
          "first6": "999999",
          "first8": "99999966",
          "last4": "0001",
          "expMonth": "01",
          "expYear": "39",
          "fingerprint": "03765362-4f67-41c6-a6c7-4a7520dcbc36",
          "binInformations": {
            "type": "DEBIT",
            "issuingBank": "BRI",
            "brand": "VISA",
            "country": "ID"
          },
          "authenticationResult": {
            "threeDsVersion": "2.2.0",
            "threeDsResult": "AUTHENTICATION_SUCCESSFUL",
            "threeDsMethod": "",
            "eciCode": "02"
          },
          "authorizationResult": {
            "networkTransactionId": "",
            "acquirerReferenceNumber": "123456789",
            "retrievalReferenceNumber": "TRXCC7c364322b98717507589132",
            "stan": "104539",
            "avsResult": "",
            "cvvResult": "",
            "authorizedAmount": {
              "value": 10001,
              "currency": "IDR"
            },
            "issuerAuthorizationCode": "00",
            "merchantAdviceCode": "01"
          },
          "approvalCode": "869016",
          "isNetworkToken": false
        },
        "captureHistories": null
      }
    ],
    "customerId": "0197e3f5-1a17-7d43-b2f9-1b51479fb8a9",
    "customer": {
      "givenName": "Reforza Jordan",
      "surname": "Geotama",
      "email": "reforza@pivot-payment.com",
      "phoneNumber": {
        "countryCode": "+62",
        "number": "89699990003"
      },
      "refundPreference": {
        "method": "AUTO",
        "transferDestination": {
          "channelCode": "014",
          "channelInformation": {
            "accountNumber": "17677665415",
            "accountName": "Reforza Jordan Geotama"
          }
        }
      },
      "storePaymentMethods": null
    },
    "metadata": {
      "invoiceNo": "INV001"
    },
    "bypassStatusPage": false
  }
}
```

**Detail Parameter Response**

<table><thead><tr><th width="216.8359375">Parameter</th><th width="108.55859375">Data Type</th><th width="123.18359375">Requirement</th><th>Description</th></tr></thead><tbody><tr><td>Payment Session</td><td>Object</td><td>M</td><td><a data-mention href="/pages/mqeyX8IibhoTYbcrM9PI">/pages/mqeyX8IibhoTYbcrM9PI</a></td></tr></tbody></table>

## Retrieve Payment Session by Client Reference ID

### Method and URL

<mark style="color:green;">`GET`</mark> \[<mark style="color:orange;">BASE\_URL</mark>]/v2/payments?clientReferenceId={clientReferenceId}

<mark style="color:orange;">`clientReferenceId`</mark> from the Request body you send whenever you create Payment Session

### Response

**Response Body**

```json
{
  "code": "00",
  "message": "Success",
  "data": [
    {
      "id": "bca0b57a-391e-4f6f-bfef-8cd37492ee5b",
      "clientReferenceId": "1750758552",
      "amount": {
        "value": 10001,
        "currency": "IDR"
      },
      "autoConfirm": true,
      "mode": "REDIRECT",
      "redirectUrl": {
        "successReturnUrl": "https://merchan.com/success",
        "failureReturnUrl": "https://merchant.com/failed",
        "expirationReturnUrl": "https://merchant.com/expired"
      },
      "paymentType": "SINGLE",
      "paymentMethod": {
        "type": "CARD"
      },
      "statementDescriptor": "Reforza Pivot",
      "saveForFutureUse": false,
      "showSavedPayment": false,
      "expirationMode": "LOOSE",
      "status": "PAID",
      "investigationStatus": null,
      "createdAt": "2025-06-24T09:49:13Z",
      "updatedAt": "2025-06-24T09:56:40Z",
      "expiryAt": "2025-12-30T23:59:00Z",
      "paymentUrl": "https://pay-stg.pivot-payment.com/detail?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiYmNhMGI1N2EtMzkxZS00ZjZmLWJmZWYtOGNkMzc0OTJlZTViIiwiaXNzIjoiYmFja2VuZC1wb3J0YWwiLCJleHAiOjE3NjcxMzkxNDB9.yvVXKEgcbJucCACggQLaFZQmnqkzvDAfK56kcNY625o",
      "chargeDetails": [
        {
          "id": "cf2842f4-e263-4643-8bc9-af682a5060cd",
          "paymentSessionId": "bca0b57a-391e-4f6f-bfef-8cd37492ee5b",
          "paymentSessionClientReferenceId": "1750758552",
          "amount": {
            "value": 10001,
            "currency": "IDR"
          },
          "statementDescriptor": "Reforza Pivot",
          "status": "SUCCESS",
          "authorizedAmount": {
            "value": 10001,
            "currency": "IDR"
          },
          "capturedAmount": {
            "value": 10001,
            "currency": "IDR"
          },
          "isCaptured": true,
          "createdAt": "2025-06-24T09:49:12.861006Z",
          "updatedAt": "2025-06-24T09:56:40.020691Z",
          "paidAt": "2025-06-24T09:56:39Z",
          "fdsRiskAssessment": {
            "score": "0",
            "level": "very low",
            "recommendation": "Approve",
            "status": "PASSED",
            "evaluatedAt": "2025-06-24T09:56:39.411921983Z"
          },
          "card": {
            "first6": "999999",
            "first8": "99999966",
            "last4": "0001",
            "expMonth": "01",
            "expYear": "39",
            "fingerprint": "03765362-4f67-41c6-a6c7-4a7520dcbc36",
            "binInformations": {
              "type": "DEBIT",
              "issuingBank": "BRI",
              "brand": "VISA",
              "country": "ID"
            },
            "authenticationResult": {
              "threeDsVersion": "2.2.0",
              "threeDsResult": "AUTHENTICATION_SUCCESSFUL",
              "threeDsMethod": "",
              "eciCode": "02"
            },
            "authorizationResult": {
              "networkTransactionId": "",
              "acquirerReferenceNumber": "123456789",
              "retrievalReferenceNumber": "TRXCC7c364322b98717507589132",
              "stan": "104539",
              "avsResult": "",
              "cvvResult": "",
              "authorizedAmount": {
                "value": 10001,
                "currency": "IDR"
              },
              "issuerAuthorizationCode": "00",
              "merchantAdviceCode": "01"
            },
            "approvalCode": "869016",
            "isNetworkToken": false
          },
          "captureHistories": null
        }
      ],
      "customerId": "0197e3f5-1a17-7d43-b2f9-1b51479fb8a9",
      "customer": {
        "givenName": "Reforza Jordan",
        "surname": "Geotama",
        "email": "reforza@pivot-payment.com",
        "phoneNumber": {
          "countryCode": "+62",
          "number": "89699990003"
        },
        "refundPreference": {
          "method": "AUTO",
          "transferDestination": {
            "channelCode": "014",
            "channelInformation": {
              "accountNumber": "17677665415",
              "accountName": "Reforza Jordan Geotama"
            }
          }
        },
        "storePaymentMethods": null
      },
      "metadata": {
        "invoiceNo": "INV001"
      },
      "bypassStatusPage": false
    }
  ],
  "pagination": {
    "page": 1,
    "perPage": 10,
    "totalItems": 1,
    "totalPages": 1
  }
}
```

**Detail Parameter Response**

<table><thead><tr><th width="196.46875">Parameter</th><th width="112.859375">Data Type</th><th width="130.65625">Requirement</th><th>Description</th></tr></thead><tbody><tr><td>Payment Session</td><td>Object</td><td>M</td><td><a data-mention href="/pages/mqeyX8IibhoTYbcrM9PI">/pages/mqeyX8IibhoTYbcrM9PI</a></td></tr><tr><td>pagination</td><td>Object</td><td>M</td><td><a data-mention href="/pages/26jTesCmqwwSXkJaVf9X">/pages/26jTesCmqwwSXkJaVf9X</a></td></tr></tbody></table>
