API Reference

User Info Webhook

This webhook is used to validate a user who has selected a game/product in the shop.

Used in Shop Integration

Overview

This webhook is used to validate a user who has selected a product in the shop. They will be asked to provide their user ID, and the Carry1st Platform will call this webhook to validate it. Once the Pay1st Partner has implemented the webhook, it needs to be configured as part of the Product Settings.

API Description

URL Format

GET: https://<webhook_url>?playerId=<GAME_ID>

List of URL Query Parameters

ParameterFormatMandatoryDescription
playerIdStringYThe user identifier. This should be a unique identifier used to identify a user in the Pay1st Partner's system.
productBundleIdStringThe identifier for the product bundle selected by the customer from Carry1st.
productBundleExternalIdStringThe SKU of the product bundle selected by the customer from the partner's side.
externalReferenceStringAny reference that is supplied by the merchant.
amountDecimalThe amount to be purchased by the customer.
currencyCodeStringThe currency code for the amount provided.
countryCodeStringThe country code for the user.
quantityIntegerThe quantity selected by the customer for a product bundle.

Response

Example Successful Response

The Partner should send the following HTTP response JSON payload:

{
  "userId": "TEST123",
  "externalReference": "EXT_REF",
  "amount": 1000,
  "currencyCode": "NGN"
}

HTTP Response Codes

These are the HTTP response codes that should be returned by the partner:

HTTP Status CodeNameDescription
200SuccessThis indicates that User Validation is successful
400Bad RequestThis indicates that an error occurred in the request. See Handling Error Codes

Error Handling

See Handling Error Codes for more details on handling error responses.