For the complete documentation index, see llms.txt. This page is also available as Markdown.

Charge Succeeded Event (charge.status.succeeded)

Sample Request Body of Charge Succeeded Event

{
  "id": "evt_sg18c678ba5af0019",
  "ownedBy": "par_sg18c666d73a20000",
  "createdAt": 1702544254.3832697,
  "type": "charge.status.succeeded",
  "dataId": "chg_sg18c678b385e0000",
  "data": {
    "id": "chg_sg18c678b385e0000",
    "ownedBy": "par_sg18c666d73a20000",
    "createdAt": 1702544226.398551,
    "statusCode": "succeeded",
    "finalizedAt": 1702544253.234864189,
    "tokenId": "tkn_sg18c6789db0d0000",
    "token": {
      "id": "tkn_sg18c6789db0d0000",
      "ownedBy": "par_sg18c666d73a20000",
      "createdBy": "par_sg18c666d73a20000",
      "createdAt": 1702544136.974125,
      "statusCode": "authorized",
      "paymentMethodId": "pmt_sg18c673dff7a0000",
      "paymentMethod": {
        "id": "pmt_sg18c673dff7a0000",
        "ownedBy": "par_sg18c666d73a20000",
        "createdBy": "par_sg18c666d73a20000",
        "createdAt": 1702539165.562994,
        "shopperId": "shp_sg18c673ddf000000",
        ""
        "shopper": {
          "id": "shp_sg18c673ddf000000",
          "ownedBy": "par_sg18c666d73a20000",
          "createdBy": "par_sg18c666d73a20000",
          "createdAt": 1702539157.24899,
          "statusCode": "active",
          "partnerShopperId": "partner-shopper-96",
          "phoneNumber": "+62827983742038",
          "email": "abc@abc.com"
        },
        "type": "card",
        "detail": {
          "id": "crd_sg18c673e015b0000",
          "ownedBy": "par_sg18c666d73a20000",
          "createdBy": "par_sg18c666d73a20000",
          "createdAt": 1702539166.043964,
          "paymentMethodId": "pmt_sg18c673dff7a0000",
          "countryNumericCode": 682,
          "last_four": 1234
        }
      },
      "providerId": "pvd_snb"
    },
    "partnerReference": "hello09998876",
    "itemCode": "item-code-176",
    "itemName": "item-name-176",
    "amountValue": "176",
    "amountCurrency": "SAR"
  }
}

Here the sample request and the fields that might be in use are type which describe the authorization of the token, field data_id and data.id shows the token id and the data.status_code is the token status.

Last updated

Was this helpful?