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

Token Authorization Event (token.status.authorized)

Partner would be able to listen asynchronously for the token authentication once action is completed on the shopper’s side

Sample Request Body for Token Authorization Event

{
  "id": "evt_sg18c7b59081e0012",
  "ownedBy": "par_sg18c666d73a20000",
  "createdAt": 1702876481.566167748,
  "type": "token.status.authorized",
  "dataId": "tkn_sg18c7b57c8010000",
  "data": {
    "id": "tkn_sg18c7b57c8010000",
    "ownedBy": "par_sg18c666d73a20000",
    "createdBy": "par_sg18c666d73a20000",
    "createdAt": 1702876399.61747,
    "statusCode": "authorized",
    "paymentMethodId": "pmt_sg18c7b5799f60000",
    "paymentMethod": {
      "id": "pmt_sg18c7b5799f60000",
      "ownedBy": "par_sg18c666d73a20000",
      "createdBy": "par_sg18c666d73a20000",
      "createdAt": 1702876387.830388,
      "shopperId": "shp_sg18c7b0cd78d0000",
      "shopper": {
        "id": "shp_sg18c7b0cd78d0000",
        "ownedBy": "par_sg18c666d73a20000",
        "createdBy": "par_sg18c666d73a20000",
        "createdAt": 1702871488.398154,
        "statusCode": "active",
        "partnerShopperId": "partner-shopper-298",
        "phoneNumber": "+62859641328729",
        "email": "abc@abc.com"
      },
      "type": "card",
      "detail": {
        "id": "crd_sg18c7b579d210000",
        "ownedBy": "par_sg18c666d73a20000",
        "createdBy": "par_sg18c666d73a20000",
        "createdAt": 1702876388.642001,
        "paymentMethodId": "pmt_sg18c7b5799f60000",
        "countryNumericCode": 682,
        "lastFour": "0008"
      }
    },
    "providerId": "pvd_snb",
    "tokenShopperAction": {
      "id": "tsa_sg18c7b57d8db0000",
      "createdBy": "sys_CreateCheckoutSessionHttpRequestMapper",
      "createdAt": 1702876403.932088,
      "tokenId": "tkn_sg18c7b57c8010000",
      "type": "redirection",
      "tokenShopperActionRedirection": {
        "id": "tar_sg18c7b57dc7d0000",
        "createdBy": "sys_CreateCheckoutSessionHttpRequestMapper",
        "createdAt": 1702876404.861845,
        "tokenShopperActionId": "tsa_sg18c7b57d8db0000",
        "method": "GET",
        "url": "https://cdn1.codapayments.com/W/pub/tc/mada/alahligatway-checkout.html?session_id=SESSION0002588588376G02447440K0&error_return_url=https://cdn1.codapayments.com/W/pub/tc/mada/back-to-merchant.html&cancel_return_url=https://cdn1.codapayments.com/W/pub/tc/mada/back-to-merchant.html&token_shopper_action_redirection_id=unused"
      }
    }
  }
}

Last updated

Was this helpful?