# Payment Callback

## Method and URL

<mark style="color:green;">`POST`</mark> [www.yourcompany.com/payment\\\_callback\\\_url](http://www.yourcompany.com/payment\\_callback\\_url)

## Request

**Header Request**

<table><thead><tr><th>Parameter </th><th width="117">Data Type</th><th width="131">Requirement</th><th>Description</th></tr></thead><tbody><tr><td>X-API-Key</td><td>String</td><td>M</td><td>Callback API Key, an additional API Key used specifically for receiving callbacks</td></tr><tr><td>Content-Type</td><td>String</td><td>M</td><td>application/JSON</td></tr><tr><td>Accept</td><td>String</td><td>M</td><td>application/JSON</td></tr></tbody></table>

**Request Body**

```json
{
  "event": "PAYMENT.PAID",
  "data": {
    "id": "bca0b57a-391e-4f6f-bfef-8cd37492ee5b",
    "clientReferenceId": "1750758552",
    "amount": {
      "value": 10001,
      "currency": "IDR"
    },
    "autoConfirm": true,
    "mode": "REDIRECT",
    "redirectUrl": {
      "successReturnUrl": "https://merchant.com/success",
      "failureReturnUrl": "https://merchant.com/failed",
      "expirationReturnUrl": "https://merchant.com/expired"
    },
    "paymentType": "SINGLE",
    "paymentMethod": {
      "type": "CARD"
    },
    "statementDescriptor": "Reforza Pivot",
    "saveForFutureUse": false,
    "showSavedPayment": false,
    "status": "PAID",
    "investigationStatus": null,
    "createdAt": "2025-06-24T09:49:13Z",
    "updatedAt": "2025-06-24T09:56:40.020691396Z",
    "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:39Z"
        },
        "card": {
          "first6": "444000",
          "first8": "44400001",
          "last4": "0002",
          "expMonth": "01",
          "expYear": "39",
          "binInformations": {
            "type": "DEBIT",
            "issuingBank": "UNKNOWN",
            "brand": "VISA",
            "country": "ID"
          },
          "authenticationResult": {
            "threeDsVersion": "2.2.0",
            "threeDsResult": "AUTHENTICATION_SUCCESSFUL",
            "threeDsMethod": "",
            "eciCode": "00"
          },
          "authorizationResult": {
            "acquirerReferenceNumber": "123456789",
            "retrievalReferenceNumber": "TRXCCfd7d4b1877e117696670881",
            "stan": "104539",
            "avsResult": "",
            "cvvResult": "",
            "authorizedAmount": {
              "value": 100000,
              "currency": "IDR"
            },
            "issuerAuthorizationCode": "00"
          }
        },
        "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 Request**

<table><thead><tr><th width="196.24609375">Parameter</th><th width="120">Data Type</th><th width="128">Requirement</th><th>Description</th></tr></thead><tbody><tr><td>event</td><td>String</td><td>M</td><td><p>List of Event Names:</p><ol><li>PAYMENT.PROCESSING</li><li>PAYMENT.PAID </li><li>CHARGE.SUCCESS</li><li>PAYMENT.CANCELLED</li></ol><p><br>Explanation:</p><ul><li><mark style="color:orange;"><code>PAYMENT.PAID</code></mark> will be sent once the Customer successfully charges the Payment with the Payment Type = <mark style="color:orange;"><code>SINGLE</code></mark></li><li><mark style="color:orange;"><code>CHARGE.SUCCESS</code></mark> will be sent once the Customer successfully charges the Payment with the Payment Type = <mark style="color:orange;"><code>MULTIPLE</code></mark></li></ul></td></tr><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>


---

# 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://pivot-payment.gitbook.io/pivot-docs/api-references/api-lists/payments/payment-callback.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.
