This API reference consists of all the APIs provided by Clear Gate. The Clear Gate API can be interacted with using HTTPS requests to obtain certain information from Clear Gate.
Typically a JSON object including the required details will be returned except Widget API and Checkout API, which redirect your customer to Clear Gate for hosted checkout payment experience.
If you have any suggestions or confusion about our reference pages, please create an issue directly on our GitHub repository.
Hosted widget flow for digital goods, virtual products, and package-driven checkout.
GET https://api.cleargatefinance.com/api/subscription| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | yes | Clear Gate project key assigned to the widget. |
| uid | string | yes | Unique end-user identifier in the merchant system. |
| widget | string | yes | Widget code configured for the product or package. |
| string | no | Customer email used for receipts and support lookup. | |
| sign | string | yes | Signature generated from the request parameters and secret key. |
<?php
// Digital Goods
$endpoint = "https://api.cleargatefinance.com/api/subscription";
$payload = {
"key" => "project_1001",
"uid" => "user_10482",
"widget" => "cg_widget_01",
"email" => "buyer@example.com"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-dg",
"title": "Digital Goods",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Package and subscription management endpoints for Tokidoki-based widget products.
<?php
// Tokidoki
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki",
"title": "Tokidoki",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Create a widget URL for a specific package or price configuration.
POST https://api.cleargatefinance.com/developers/tokidoki-api/widget-url| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | yes | Clear Gate project key assigned to the widget. |
| uid | string | yes | Unique end-user identifier in the merchant system. |
| widget | string | yes | Widget code configured for the product or package. |
| string | no | Customer email used for receipts and support lookup. | |
| sign | string | yes | Signature generated from the request parameters and secret key. |
<?php
// Build Widget
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/widget-url";
$payload = {
"uid" => "user_10482",
"package_id" => "pkg_gold",
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-api",
"title": "Build Widget",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Return the packages currently available in the Tokidoki catalog.
GET https://api.cleargatefinance.com/developers/tokidoki-api/packages<?php
// List all current packages
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/packages";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-package",
"title": "List all current packages",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Look up a single package by identifier.
GET https://api.cleargatefinance.com/developers/tokidoki-api/packages?package_id={package_id}| Parameter | Type | Required | Description |
|---|---|---|---|
| package_id | string | yes | Package identifier in the Clear Gate package catalog. |
| project_key | string | yes | Project key passed in the `X-ApiKey` header. |
<?php
// Show details a package
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/packages?package_id={package_id}";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-detail_package",
"title": "Show details a package",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Create a new package entry for a widget-based product.
POST https://api.cleargatefinance.com/developers/tokidoki-api/create-package| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | yes | Clear Gate project key assigned to the widget. |
| uid | string | yes | Unique end-user identifier in the merchant system. |
| widget | string | yes | Widget code configured for the product or package. |
| string | no | Customer email used for receipts and support lookup. | |
| sign | string | yes | Signature generated from the request parameters and secret key. |
<?php
// Create new package
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/create-package";
$payload = {
"package_id" => "pkg_gold",
"amount" => 19.99,
"currency" => "USD",
"name" => "Gold Pack"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-create_new_package",
"title": "Create new package",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Update package pricing, metadata, or availability.
POST https://api.cleargatefinance.com/developers/tokidoki-api/update-package| Parameter | Type | Required | Description |
|---|---|---|---|
| key | string | yes | Clear Gate project key assigned to the widget. |
| uid | string | yes | Unique end-user identifier in the merchant system. |
| widget | string | yes | Widget code configured for the product or package. |
| string | no | Customer email used for receipts and support lookup. | |
| sign | string | yes | Signature generated from the request parameters and secret key. |
<?php
// Update a package
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/update-package";
$payload = {
"package_id" => "pkg_gold",
"amount" => 24.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-update_package",
"title": "Update a package",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Delete or archive a Tokidoki package entry.
POST https://api.cleargatefinance.com/developers/tokidoki-api/remove-package| Parameter | Type | Required | Description |
|---|---|---|---|
| package_id | string | yes | Package identifier in the Clear Gate package catalog. |
| project_key | string | yes | Project key passed in the `X-ApiKey` header. |
<?php
// Remove a package
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/remove-package";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-remove_package",
"title": "Remove a package",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Retrieve the current Tokidoki subscription set for the project.
GET https://api.cleargatefinance.com/developers/tokidoki-api/subscriptionsGET https://api.cleargatefinance.com/developers/tokidoki-api/subscriptions?page={number_page}<?php
// List all current subscriptions
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/subscriptions";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-list_subscriptions",
"title": "List all current subscriptions",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Inspect a single subscription by ID, subscriber email, or package ID.
GET https://api.cleargatefinance.com/developers/tokidoki-api/subscriptions?subscription_id={subscription_id}GET https://api.cleargatefinance.com/developers/tokidoki-api/subscriptions?subscriber_email={email}GET https://api.cleargatefinance.com/developers/tokidoki-api/subscriptions?package_id={package_id}| Parameter | Type | Required | Description |
|---|---|---|---|
| subscription_id | string | yes | Subscription identifier returned by Clear Gate. |
| package_id | string | no | Package identifier used for updates or filtering. |
| subscriber_email | string | no | Subscriber email for direct lookup. |
<?php
// Show details a subscription
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/subscriptions?subscription_id={subscription_id}";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-show_subscription_details",
"title": "Show details a subscription",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Request cancellation for an existing widget subscription.
POST https://api.cleargatefinance.com/developers/tokidoki-api/cancel-subscription| Parameter | Type | Required | Description |
|---|---|---|---|
| subscription_id | string | yes | Subscription identifier returned by Clear Gate. |
| package_id | string | no | Package identifier used for updates or filtering. |
| subscriber_email | string | no | Subscriber email for direct lookup. |
<?php
// Cancel a subscription
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/cancel-subscription";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-cancel_subscription",
"title": "Cancel a subscription",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Move an active subscription to a different package.
POST https://api.cleargatefinance.com/developers/tokidoki-api/request-change-package| Parameter | Type | Required | Description |
|---|---|---|---|
| subscription_id | string | yes | Subscription identifier returned by Clear Gate. |
| package_id | string | no | Package identifier used for updates or filtering. |
| subscriber_email | string | no | Subscriber email for direct lookup. |
<?php
// Change subscription's package
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/request-change-package";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-change_package_subscription",
"title": "Change subscription's package",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Rollback a pending package-change request for a subscription.
POST https://api.cleargatefinance.com/developers/tokidoki-api/remove-change-package| Parameter | Type | Required | Description |
|---|---|---|---|
| subscription_id | string | yes | Subscription identifier returned by Clear Gate. |
| package_id | string | no | Package identifier used for updates or filtering. |
| subscriber_email | string | no | Subscriber email for direct lookup. |
<?php
// Remove change package request
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/remove-change-package";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-remove_change_package",
"title": "Remove change package request",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Undo a pending subscription cancellation request.
POST https://api.cleargatefinance.com/developers/tokidoki-api/remove-pending-cancel| Parameter | Type | Required | Description |
|---|---|---|---|
| subscription_id | string | yes | Subscription identifier returned by Clear Gate. |
| package_id | string | no | Package identifier used for updates or filtering. |
| subscriber_email | string | no | Subscriber email for direct lookup. |
<?php
// Remove pending cancel subscription
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/remove-pending-cancel";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-remove_pending_cancel",
"title": "Remove pending cancel subscription",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Retrieve Tokidoki transaction history.
GET https://api.cleargatefinance.com/developers/tokidoki-api/transactions<?php
// List all current transactions
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/transactions";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-list_transactions",
"title": "List all current transactions",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Inspect a transaction by ID or linked subscription ID.
GET https://api.cleargatefinance.com/developers/tokidoki-api/transactions?transaction_id={transaction_id}GET https://api.cleargatefinance.com/developers/tokidoki-api/transactions?subscription_id={subscription_id}| Field | Description |
|---|---|
| transaction_id | Clear Gate transaction identifier. |
| subscription_id | Linked subscription identifier. |
<?php
// Show details a transaction
$endpoint = "https://api.cleargatefinance.com/developers/tokidoki-api/transactions?transaction_id={transaction_id}";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "widget-tokidoki-show_details_transaction",
"title": "Show details a transaction",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Hosted checkout flow for one-time purchases.
GET https://api.cleargatefinance.com/api/subscription| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | string | yes | Unique user identifier. |
| amount | number | yes | Purchase amount in the requested currency. |
| currency | string | yes | ISO currency code. |
| ag_name | string | yes | Product or subscription plan title shown in checkout. |
| sign | string | yes | Signed checksum for hosted checkout creation. |
<?php
// Onetime payment
$endpoint = "https://api.cleargatefinance.com/api/subscription";
$payload = {
"uid" => "user_10482",
"amount" => 39.99,
"currency" => "USD",
"ag_name" => "Starter Plan"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "checkout-onetime",
"title": "Onetime payment",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Hosted checkout flow for recurring billing plans.
GET https://api.cleargatefinance.com/api/subscription| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | string | yes | Unique user identifier. |
| amount | number | yes | Purchase amount in the requested currency. |
| currency | string | yes | ISO currency code. |
| ag_name | string | yes | Product or subscription plan title shown in checkout. |
| sign | string | yes | Signed checksum for hosted checkout creation. |
<?php
// Subscription
$endpoint = "https://api.cleargatefinance.com/api/subscription";
$payload = {
"uid" => "user_10482",
"amount" => 29.99,
"currency" => "USD",
"ag_name" => "Monthly Plan"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "checkout-subscription",
"title": "Subscription",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Additional end-user data used to strengthen authorization and fraud decisions.
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | recommended | User email used for fraud checks and receipts. | |
| history[registration_date] | integer | recommended | Unix timestamp of end-user registration. |
| history[payments_count] | integer | recommended | Total successful transactions for the user. |
| customer[firstname] | string | no | Customer first name. |
| customer[lastname] | string | no | Customer last name. |
<?php
// User Profile
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "param-user_profile",
"title": "User Profile",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Supplementary fields available across hosted and direct payment requests.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ps | string | no | Preferred payment system code. |
| country_code | string | no | Country override for payment-method filtering. |
| success_url | string | no | Redirect URL after successful payment. |
| failure_url | string | no | Redirect URL after failed payment. |
| pingback_url | string | no | Server callback URL for transaction notifications. |
<?php
// Optional
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "param-optional",
"title": "Optional",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Create a hosted invoice and send it directly to your customer.
POST https://api.cleargatefinance.com/developers/invoice-api/invoice| Parameter | Type | Required | Description |
|---|---|---|---|
| currency | string | yes | Invoice currency. |
| customer[email] | string | yes | Customer billing email. |
| items | array | yes | Invoice line items passed as structured objects. |
| due_date | string | no | Invoice due date in ISO-8601 format. |
| note | string | no | Internal invoice note shown to the payer. |
<?php
// Invoice
$endpoint = "https://api.cleargatefinance.com/developers/invoice-api/invoice";
$payload = {
"currency" => "USD",
"customer[email]" => "billing@example.com",
"due_in_days" => 7
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "invoicing",
"title": "Invoice",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Billing and delivery contact fields for invoice requests.
| Parameter | Type | Required | Description |
|---|---|---|---|
| customer[firstname] | string | no | Invoice recipient first name. |
| customer[lastname] | string | no | Invoice recipient last name. |
| customer[country] | string | no | Billing country code. |
| customer[phone] | string | no | Billing phone number. |
<?php
// Contacts
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "invoicing-contacts",
"title": "Contacts",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Line-item array structure for Clear Gate invoicing.
| Parameter | Type | Required | Description |
|---|---|---|---|
| items[][name] | string | yes | Line-item title. |
| items[][amount] | number | yes | Line-item amount. |
| items[][quantity] | integer | yes | Quantity purchased. |
| items[][currency] | string | yes | Currency for the line item. |
<?php
// Items
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "invoicing-items",
"title": "Items",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Top-level tax and discount fields for the invoice object.
| Parameter | Type | Required | Description |
|---|---|---|---|
| taxes[][name] | string | no | Tax label. |
| taxes[][amount] | number | no | Tax value. |
| discounts[][name] | string | no | Discount label. |
| discounts[][amount] | number | no | Discount value. |
<?php
// Invoice tax/discount
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "invoicing-tax_invoice",
"title": "Invoice tax/discount",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Per-line tax and discount fields for invoice items.
| Parameter | Type | Required | Description |
|---|---|---|---|
| taxes[][name] | string | no | Tax label. |
| taxes[][amount] | number | no | Tax value. |
| discounts[][name] | string | no | Discount label. |
| discounts[][amount] | number | no | Discount value. |
<?php
// Item tax/discount
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "invoicing-tax_item",
"title": "Item tax/discount",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Attributes returned by the Clear Gate invoice create endpoint.
| Name | Description |
|---|---|
| id | Invoice identifier returned after creation. |
| token | Hosted invoice access token. |
| status | Invoice status in the Clear Gate system. |
| url | Hosted invoice URL for the payer. |
<?php
// Invoice response attributes
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "invoicing-response",
"title": "Invoice response attributes",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Create a single-use token from card details collected through Clear Gate brick fields.
POST https://pwgateway.com/api/tokenPOST https://api.cleargatefinance.com/api/brick/token| Parameter | Type | Required | Description |
|---|---|---|---|
| public_key | string | yes | Public key used by the hosted brick fields. |
| number | string | yes | Card number collected through secure fields. |
| cvv | string | yes | Card verification value. |
| exp_month | integer | yes | Card expiry month. |
| exp_year | integer | yes | Card expiry year. |
<?php
// Onetime token
$endpoint = "https://pwgateway.com/api/token";
$payload = {
"number" => "4111111111111111",
"cvv" => "123",
"exp_month" => 12,
"exp_year" => 2028
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-onetime_token",
"title": "Onetime token",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Attributes returned after card tokenization.
| Name | Description |
|---|---|
| id | One-time token identifier. |
| type | Token object type. |
| public_name | Masked card label returned for display. |
| card_type | Detected card brand. |
<?php
// The onetime token object
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-onetime_token-object",
"title": "The onetime token object",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Server-side charge creation for tokenized card payments.
POST https://api.cleargatefinance.com/api/brick/chargePOST https://api.cleargatefinance.com/api/brick/charge/$chargeid/void| Parameter | Type | Required | Description |
|---|---|---|---|
| amount | number | yes | Amount to charge. |
| currency | string | yes | Processing currency. |
| token | string | yes | Brick token from the tokenization step. |
| string | yes | Customer email. | |
| description | string | no | Merchant order descriptor. |
<?php
// Charge
$endpoint = "https://api.cleargatefinance.com/api/brick/charge";
$payload = {
"amount" => 9.99,
"currency" => "USD",
"token" => "tok_10482",
"email" => "buyer@example.com"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-charge",
"title": "Charge",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Response attributes for a Clear Gate brick charge.
| Name | Description |
|---|---|
| id | Charge identifier. |
| amount | Authorized or captured amount. |
| currency | Charge currency. |
| refundable_amount | Amount still eligible for refund. |
| status | Charge state in Clear Gate processing. |
<?php
// The charge object
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-charge-object",
"title": "The charge object",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Retrieve a single brick charge by ID.
GET https://api.cleargatefinance.com/api/brick/charge/$chargeid| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Object identifier passed in the request path. |
| project_key | string | yes | Project or private API key used for authentication. |
<?php
// Obtain charge details
$endpoint = "https://api.cleargatefinance.com/api/brick/charge/$chargeid";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-charge-get",
"title": "Obtain charge details",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Refund a captured brick charge.
POST https://api.cleargatefinance.com/api/brick/charge/$chargeid/refund| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Object identifier passed in the request path. |
| project_key | string | yes | Project or private API key used for authentication. |
<?php
// Refund a charge
$endpoint = "https://api.cleargatefinance.com/api/brick/charge/$chargeid/refund";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-charge-refund",
"title": "Refund a charge",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Capture a previously authorized charge.
POST https://api.cleargatefinance.com/api/brick/charge/$chargeid/capture| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Object identifier passed in the request path. |
| project_key | string | yes | Project or private API key used for authentication. |
<?php
// Capture a charge
$endpoint = "https://api.cleargatefinance.com/api/brick/charge/$chargeid/capture";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-charge-capture",
"title": "Capture a charge",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Void a not-yet-settled charge.
POST https://api.cleargatefinance.com/api/brick/charge/$chargeid/void| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Object identifier passed in the request path. |
| project_key | string | yes | Project or private API key used for authentication. |
<?php
// Void a charge
$endpoint = "https://api.cleargatefinance.com/api/brick/charge/$chargeid/void";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-charge-void",
"title": "Void a charge",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Card-based recurring subscription management through the brick API.
POST https://api.cleargatefinance.com/api/brick/subscriptionPOST https://api.cleargatefinance.com/api/brick/subscription/$id/cancelGET https://api.cleargatefinance.com/api/brick/subscription/$id| Parameter | Type | Required | Description |
|---|---|---|---|
| token | string | yes | Saved brick token. |
| amount | number | yes | Recurring charge amount. |
| currency | string | yes | Recurring billing currency. |
| period | string | yes | Recurring interval, for example `month`. |
| period_duration | integer | yes | Number of periods between charges. |
<?php
// Subscription
$endpoint = "https://api.cleargatefinance.com/api/brick/subscription";
$payload = {
"token" => "tok_10482",
"amount" => 29.99,
"currency" => "USD",
"period" => "month",
"period_duration" => 1
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-subscription",
"title": "Subscription",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Subscription attributes returned by the brick API.
| Name | Description |
|---|---|
| id | Subscription identifier. |
| active | Whether the subscription is active. |
| next_charge_on | Next scheduled billing date. |
| period | Recurring interval label. |
<?php
// The subscription object
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-subscription-object",
"title": "The subscription object",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Retrieve a single brick subscription by ID.
GET https://api.cleargatefinance.com/api/brick/subscription/$id| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Object identifier passed in the request path. |
| project_key | string | yes | Project or private API key used for authentication. |
<?php
// Obtain subscription details
$endpoint = "https://api.cleargatefinance.com/api/brick/subscription/$id";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-subscription-get",
"title": "Obtain subscription details",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Cancel an active brick subscription.
POST https://api.cleargatefinance.com/api/brick/subscription/$id/cancel| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Object identifier passed in the request path. |
| project_key | string | yes | Project or private API key used for authentication. |
<?php
// Cancel a subscription
$endpoint = "https://api.cleargatefinance.com/api/brick/subscription/$id/cancel";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "brick-subscription-cancel",
"title": "Cancel a subscription",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Direct tokenization endpoint for secure payment-method exchange.
POST https://api.cleargatefinance.com/api/brick/tokenize| Header | Description |
|---|---|
| X-ApiKey | Private API key for tokenization requests. |
| Content-Type | Request body content type, usually `application/json`. |
| Parameter | Type | Required | Description |
|---|---|---|---|
| public_key | string | yes | Public key issued for the project. |
| payment_method | string | yes | Payment method object collected on the front end. |
| customer[email] | string | no | Customer email for risk checks. |
<?php
// Tokenization API
$endpoint = "https://api.cleargatefinance.com/api/brick/tokenize";
$payload = {
"public_key" => "pub_live_10482",
"payment_method" => "pm_card_visa",
"customer[email]" => "buyer@example.com"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tokenization-api",
"title": "Tokenization API",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Generate a short-lived mobile payment token.
POST https://api.cleargatefinance.com/api/mobiamo/token| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | string | yes | Merchant user identifier. |
| amount | number | yes | Requested amount. |
| currency | string | yes | Requested currency. |
| country_code | string | yes | Destination market for the mobile flow. |
| sign | string | yes | Signed request hash. |
| Name | Description |
|---|---|
| token | Temporary mobile transaction token. |
| status | Current mobile payment state. |
| redirect_url | Hosted step-up or OTP destination if required. |
<?php
// Get token
$endpoint = "https://api.cleargatefinance.com/api/mobiamo/token";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mobiamo-token",
"title": "Get token",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Start the mobile payment flow for a supported carrier or mobile method.
POST https://api.cleargatefinance.com/api/mobiamo/init-payment| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | string | yes | Merchant user identifier. |
| amount | number | yes | Requested amount. |
| currency | string | yes | Requested currency. |
| country_code | string | yes | Destination market for the mobile flow. |
| sign | string | yes | Signed request hash. |
| Name | Description |
|---|---|
| token | Temporary mobile transaction token. |
| status | Current mobile payment state. |
| redirect_url | Hosted step-up or OTP destination if required. |
<?php
// Initiate payment
$endpoint = "https://api.cleargatefinance.com/api/mobiamo/init-payment";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mobiamo-initiate",
"title": "Initiate payment",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Complete or confirm an in-progress mobile payment.
POST https://api.cleargatefinance.com/api/mobiamo/process-payment| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | string | yes | Merchant user identifier. |
| amount | number | yes | Requested amount. |
| currency | string | yes | Requested currency. |
| country_code | string | yes | Destination market for the mobile flow. |
| sign | string | yes | Signed request hash. |
| Name | Description |
|---|---|
| token | Temporary mobile transaction token. |
| status | Current mobile payment state. |
| redirect_url | Hosted step-up or OTP destination if required. |
<?php
// Process payment
$endpoint = "https://api.cleargatefinance.com/api/mobiamo/process-payment";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mobiamo-process",
"title": "Process payment",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Inspect a mobile payment transaction.
POST https://api.cleargatefinance.com/api/mobiamo/get-payment| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | string | yes | Merchant user identifier. |
| amount | number | yes | Requested amount. |
| currency | string | yes | Requested currency. |
| country_code | string | yes | Destination market for the mobile flow. |
| sign | string | yes | Signed request hash. |
| Name | Description |
|---|---|
| token | Temporary mobile transaction token. |
| status | Current mobile payment state. |
| redirect_url | Hosted step-up or OTP destination if required. |
<?php
// Get transaction details
$endpoint = "https://api.cleargatefinance.com/api/mobiamo/get-payment";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mobiamo-get-transaction",
"title": "Get transaction details",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Fetch available mobile price points for a given market.
GET https://api.cleargatefinance.com/api/price-points/| Parameter | Type | Required | Description |
|---|---|---|---|
| country_code | string | yes | Country used to filter price points. |
| carrier | string | no | Carrier code if already known. |
| currency | string | no | Optional currency filter. |
<?php
// Pricepoint
$endpoint = "https://api.cleargatefinance.com/api/price-points/";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mobiamo-pricepoint",
"title": "Pricepoint",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Response codes returned by the Mobiamo Direct API.
| Code | Description |
|---|---|
| 200 | Request processed successfully. |
| 400 | Request validation failed. |
| 401 | Authentication failed or key is invalid. |
| 500 | Internal processing error. |
<?php
// Response Codes
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mobiamo-codes",
"title": "Response Codes",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Generate a MINT ePIN through the direct MINT integration.
POST https://api.cleargatefinance.com/pwapi/partners-mint| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | string | yes | Merchant user identifier. |
| amount | number | yes | Face value or redemption amount. |
| currency | string | yes | Currency code. |
| sign | string | yes | Signature checksum. |
<?php
// Generate ePIN
$endpoint = "https://api.cleargatefinance.com/pwapi/partners-mint";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mint-generate",
"title": "Generate ePIN",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Error codes for the Generate ePIN endpoint.
| Code | Description |
|---|---|
| 0 | Request completed successfully. |
| 1001 | Invalid signature or unauthorized merchant. |
| 2001 | Insufficient balance or inventory. |
| 3001 | Invalid or already redeemed code. |
<?php
// Error codes
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mint-generate-error_codes",
"title": "Error codes",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Retrieve reseller balance information from Clear Gate MINT.
GET https://api.cleargatefinance.com/pwapi/mint-balances| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | string | yes | Merchant user identifier. |
| amount | number | yes | Face value or redemption amount. |
| currency | string | yes | Currency code. |
| sign | string | yes | Signature checksum. |
<?php
// Get reseller balance
$endpoint = "https://api.cleargatefinance.com/pwapi/mint-balances";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mint-balance",
"title": "Get reseller balance",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Redeem a MINT code through the direct API.
POST https://api.cleargatefinance.com/api/pure-mint/payment| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | string | yes | Merchant user identifier. |
| amount | number | yes | Face value or redemption amount. |
| currency | string | yes | Currency code. |
| sign | string | yes | Signature checksum. |
<?php
// MINT redemption
$endpoint = "https://api.cleargatefinance.com/api/pure-mint/payment";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mint-redemption",
"title": "MINT redemption",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Error codes for the MINT redemption endpoint.
| Code | Description |
|---|---|
| 0 | Request completed successfully. |
| 1001 | Invalid signature or unauthorized merchant. |
| 2001 | Insufficient balance or inventory. |
| 3001 | Invalid or already redeemed code. |
<?php
// Error codes
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "mint-redemption-error_codes",
"title": "Error codes",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Export transaction and settlement data from Clear Gate reporting.
POST https://api.cleargatefinance.com/developers/reports/transactions-export| Parameter | Type | Required | Description |
|---|---|---|---|
| date_start | string | yes | Report start date. |
| date_end | string | yes | Report end date. |
| format | string | yes | Export format such as CSV. |
| timezone | string | no | Reporting timezone identifier. |
| Header | Description |
|---|---|
| X-ApiKey | Private API key used for report exports. |
| Accept | Expected response type. |
<?php
// Reporting API
$endpoint = "https://api.cleargatefinance.com/developers/reports/transactions-export";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-reporting",
"title": "Reporting API",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Create cancellation or reversal requests for supported payments.
POST https://api.cleargatefinance.com/developers/api/ticket| Parameter | Type | Required | Description |
|---|---|---|---|
| ref | string | yes | Original transaction reference. |
| reason | string | yes | Cancellation reason submitted to Clear Gate. |
| amount | number | no | Partial cancellation amount if supported. |
<?php
// Cancellation
$endpoint = "https://api.cleargatefinance.com/developers/api/ticket";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-cancellation",
"title": "Cancellation",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Coupon management overview for Clear Gate promotions.
<?php
// Coupon
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-coupon",
"title": "Coupon",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Create a new coupon object for a hosted flow.
POST https://api.cleargatefinance.com/api/coupon| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | yes | Coupon code. |
| currency | string | no | Currency for validation or creation. |
| amount | number | no | Discount amount or benefit value. |
| expires_at | string | no | Coupon expiration timestamp. |
<?php
// Creating a coupon
$endpoint = "https://api.cleargatefinance.com/api/coupon";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-coupon-create",
"title": "Creating a coupon",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Look up a coupon by code or identifier.
GET https://api.cleargatefinance.com/api/coupon| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | yes | Coupon code. |
| currency | string | no | Currency for validation or creation. |
| amount | number | no | Discount amount or benefit value. |
| expires_at | string | no | Coupon expiration timestamp. |
<?php
// Retrieving information about a coupon
$endpoint = "https://api.cleargatefinance.com/api/coupon";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-coupon-info",
"title": "Retrieving information about a coupon",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Confirm digital or physical fulfillment to reduce disputes and unlock settlement decisions.
POST https://api.cleargatefinance.com/api/delivery<?php
// Delivery Confirmation
$endpoint = "https://api.cleargatefinance.com/api/delivery";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-delivery-confirmation",
"title": "Delivery Confirmation",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Delivery confirmation payload for digital goods and virtual fulfillment.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ref | string | yes | Transaction reference. |
| type | string | yes | Delivery confirmation type set to `digital`. |
| details | string | yes | Digital fulfillment evidence or entitlement data. |
<?php
// Digital
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-delivery-confirmation-digital",
"title": "Digital",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Delivery confirmation payload for shipped physical goods.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ref | string | yes | Transaction reference. |
| type | string | yes | Delivery confirmation type set to `physical`. |
| tracking_number | string | yes | Shipping tracking number. |
| carrier | string | yes | Shipping carrier label. |
<?php
// Physical
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-delivery-confirmation-physical",
"title": "Physical",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Status values returned for delivery-confirmation events.
| Status | Description |
|---|---|
| pending | Confirmation not yet accepted. |
| received | Delivery confirmation accepted by Clear Gate. |
| rejected | Confirmation rejected and requires review. |
<?php
// Status
$endpoint = "/docs/apis";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-delivery-confirmation-status",
"title": "Status",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Retrieve the latest payment state for a hosted or direct transaction.
GET https://api.cleargatefinance.com/api/rest/payment| Parameter | Type | Required | Description |
|---|---|---|---|
| ref | string | yes | Transaction reference. |
| uid | string | yes | Merchant user ID. |
| sign | string | yes | Request signature. |
<?php
// Payment Status
$endpoint = "https://api.cleargatefinance.com/api/rest/payment";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-payment-status",
"title": "Payment Status",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}List the payment methods available for a market or transaction context.
GET https://api.cleargatefinance.com/api/payment-systems/| Parameter | Type | Required | Description |
|---|---|---|---|
| country_code | string | no | Country filter. |
| currency | string | no | Currency filter. |
| type | string | no | Payment-system family filter. |
| Name | Description |
|---|---|
| id | Payment system identifier. |
| name | Human-readable payment method name. |
| logo_url | Asset URL used by hosted checkout. |
| currencies | Supported processing currencies. |
<?php
// Payment Systems
$endpoint = "https://api.cleargatefinance.com/api/payment-systems/";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-payment-systems",
"title": "Payment Systems",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Fetch a hosted product configuration by merchant product ID.
GET https://api.cleargatefinance.com/api/rest/product/| Parameter | Type | Required | Description |
|---|---|---|---|
| goodsid | string | yes | Merchant product identifier. |
| uid | string | yes | User identifier. |
| country_code | string | no | Country code for localized product pricing. |
<?php
// Product Details
$endpoint = "https://api.cleargatefinance.com/api/rest/product/";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-product-details",
"title": "Product Details",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Resolve a country or market from an IP address.
GET https://api.cleargatefinance.com/api/rest/country| Parameter | Type | Required | Description |
|---|---|---|---|
| ip | string | yes | IP address to geolocate. |
| format | string | no | Output format. |
<?php
// Geolocation
$endpoint = "https://api.cleargatefinance.com/api/rest/country";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-geolocation",
"title": "Geolocation",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}Retrieve a payment receipt or hosted receipt metadata.
GET https://api.cleargatefinance.com/api/rest/receipt| Parameter | Type | Required | Description |
|---|---|---|---|
| ref | string | yes | Transaction reference. |
| uid | string | yes | End-user identifier. |
| sign | string | yes | Receipt request signature. |
<?php
// Receipt
$endpoint = "https://api.cleargatefinance.com/api/rest/receipt";
$payload = {
"uid" => "user_10482",
"amount" => 9.99,
"currency" => "USD"
};
// Submit request with your Clear Gate SDK or HTTP client.
{
"object": "tools-receipt",
"title": "Receipt",
"success": true,
"request_id": "cg_req_102948",
"created_at": "2026-06-20T14:47:47Z"
}