API reference / Operations by tag
igaming
iGaming brands, players, activities, plans, deals, affiliate tree, promo codes and revshare runs.
72 operations. Base URL https://api.metrixed.com/v1; see authentication, errors and pagination.
Operations
| Method | Path | Summary |
|---|---|---|
| GET | /igaming/activities | Raw activities |
| GET | /igaming/affiliate-tree | Sub-affiliate parent links |
| PUT | /igaming/affiliate-tree/{partner_id} | Set or clear a partner's parent affiliate |
| GET | /igaming/brands | List IgamingBrands |
| POST | /igaming/brands | Create IgamingBrand |
| GET | /igaming/brands/{id} | Get IgamingBrand |
| PATCH | /igaming/brands/{id} | Update IgamingBrand |
| DELETE | /igaming/brands/{id} | Delete IgamingBrand |
| POST | /igaming/brands/{id}/rebuild | Rebuild player/day metrics after an NGR formula change |
| POST | /igaming/brands/{id}/s2s-token | Rotate the brand S2S postback token (returned once) |
| POST | /igaming/brands/bulk/apply | Bulk edit apply |
| POST | /igaming/brands/bulk/preview | Bulk edit preview |
| POST | /igaming/brands/search | Search IgamingBrands (advanced) |
| GET | /igaming/creative-approvals | List IgamingCreativeApprovals |
| POST | /igaming/creative-approvals | Create IgamingCreativeApproval |
| GET | /igaming/creative-approvals/{id} | Get IgamingCreativeApproval |
| PATCH | /igaming/creative-approvals/{id} | Update IgamingCreativeApproval |
| DELETE | /igaming/creative-approvals/{id} | Delete IgamingCreativeApproval |
| POST | /igaming/creative-approvals/bulk/apply | Bulk edit apply |
| POST | /igaming/creative-approvals/bulk/preview | Bulk edit preview |
| POST | /igaming/creative-approvals/search | Search IgamingCreativeApprovals (advanced) |
| GET | /igaming/deals | List IgamingDeals |
| POST | /igaming/deals | Create IgamingDeal |
| GET | /igaming/deals/{id} | Get IgamingDeal |
| PATCH | /igaming/deals/{id} | Update IgamingDeal |
| DELETE | /igaming/deals/{id} | Delete IgamingDeal |
| POST | /igaming/deals/bulk/apply | Bulk edit apply |
| POST | /igaming/deals/bulk/preview | Bulk edit preview |
| POST | /igaming/deals/search | Search IgamingDeals (advanced) |
| POST | /igaming/ingest | Bulk JSON ingestion of players and activities |
| GET | /igaming/plans | List IgamingPlans |
| POST | /igaming/plans | Create IgamingPlan |
| GET | /igaming/plans/{id} | Get IgamingPlan |
| PATCH | /igaming/plans/{id} | Update IgamingPlan |
| DELETE | /igaming/plans/{id} | Delete IgamingPlan |
| POST | /igaming/plans/bulk/apply | Bulk edit apply |
| POST | /igaming/plans/bulk/preview | Bulk edit preview |
| POST | /igaming/plans/search | Search IgamingPlans (advanced) |
| GET | /igaming/players | List players |
| GET | /igaming/players/{id} | Get player |
| PATCH | /igaming/players/{id} | Update player (partner, status, KYC) |
| DELETE | /igaming/players/{id} | Delete player |
| POST | /igaming/players/search | Search players |
| GET | /igaming/promo-codes | List IgamingPromoCodes |
| POST | /igaming/promo-codes | Create IgamingPromoCode |
| GET | /igaming/promo-codes/{id} | Get IgamingPromoCode |
| PATCH | /igaming/promo-codes/{id} | Update IgamingPromoCode |
| DELETE | /igaming/promo-codes/{id} | Delete IgamingPromoCode |
| POST | /igaming/promo-codes/bulk/apply | Bulk edit apply |
| POST | /igaming/promo-codes/bulk/preview | Bulk edit preview |
| POST | /igaming/promo-codes/search | Search IgamingPromoCodes (advanced) |
| GET | /igaming/reports/players | Player report |
| GET | /igaming/reports/promo-codes | Promo / tracking code attribution report |
| GET | /igaming/runs | List commission runs |
| POST | /igaming/runs | Preview (or re-preview) the commission run for a brand and month |
| GET | /igaming/runs/{id} | Get commission run |
| POST | /igaming/runs/{id}/approve | Approve a preview: post per-affiliate deltas to the ledger (idempotent) |
| POST | /igaming/runs/{id}/discard | Discard an unposted preview |
| GET | /igaming/runs/{id}/lines | Per-affiliate lines of a run (metrics, carryover, KYC hold, delta) |
| POST | /igaming/runs/search | Search commission runs |
| GET | /igaming/s2s/{tenant}/{brand} | S2S postback (brand token; signup or one activity) |
| POST | /igaming/s2s/{tenant}/{brand} | S2S postback (JSON or form body) |
| GET | /igaming/statements | Affiliate month statement from posted runs |
| GET | /igaming/uploads | Upload history |
| POST | /igaming/uploads | CSV upload of players or activities (multipart: brand_id, kind, file) |
| GET | /partner/igaming/brands | Brands and plans assigned to the affiliate |
| GET | /partner/igaming/creatives | Approved creatives per brand |
| GET | /partner/igaming/players | Own players with GGR/NGR |
| GET | /partner/igaming/promo-codes | Own promo and tracking codes |
| GET | /partner/igaming/statements | Month statement |
| GET | /partner/igaming/sub-affiliates | Sub-affiliates and override commission |
| GET | /partner/igaming/summary | Monthly NGR and commission |
GET /igaming/activities
Raw activities
Operation getIgamingActivities. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
player_id | query | string | no | |
type | query | string | no | |
from | query | string | no | |
to | query | string | no | |
page | query | integer | no | |
page_size | query | integer | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/activities?page=1&page_size=50' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /igaming/affiliate-tree
Sub-affiliate parent links
Operation getIgamingAffiliateTree. Auth: API key (Bearer) or session cookie.
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/affiliate-tree' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
PUT /igaming/affiliate-tree/{partner_id}
Set or clear a partner's parent affiliate
Operation putIgamingAffiliateTreePartnerId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
partner_id | path | string | yes |
Request body (application/json, required): IgamingResult
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl -X PUT 'https://api.metrixed.com/v1/igaming/affiliate-tree/<partner_id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{}'
Example 200 response:
{}
GET /igaming/brands
List IgamingBrands
Operation getIgamingBrands. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | no | |
page_size | query | integer | no | |
sort | query | string | no | field or -field |
include | query | string | no | comma-separated relationships |
filter | query | object (free-form) | no | |
q | query | string | no | free-text search |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingBrandList |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/brands?page=1&page_size=50' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
POST /igaming/brands
Create IgamingBrand
Operation postIgamingBrands. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): IgamingBrandCreate
| Field | Type | Flags | Description |
|---|---|---|---|
name | string | required | |
advertiser_id | string | ||
offer_id | string | ||
currency | string | ||
ngr_formula | object (free-form) | admin_fee_pct, tax_pct, deduct_bonuses, deduct_chargebacks, deduct_fees: NGR = GGR - bonuses - admin% x GGR - tax% x GGR - chargebacks - fees | |
negative_carryover | boolean | ||
blocked_countries | array of string | ||
geo_list_id | string | ||
require_kyc | boolean | ||
status | enum: active, paused, archived | ||
description | string |
| Status | Description | Body |
|---|---|---|
| 201 | ok | application/json IgamingBrand |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/brands' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"name":""}'
Example 201 response:
{
"external_ref": ""
}
GET /igaming/brands/{id}
Get IgamingBrand
Operation getIgamingBrandsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingBrand |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/brands/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"external_ref": ""
}
PATCH /igaming/brands/{id}
Update IgamingBrand
Operation patchIgamingBrandsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (application/json, required): IgamingBrandUpdate
| Field | Type | Flags | Description |
|---|---|---|---|
name | string | ||
advertiser_id | string | ||
offer_id | string | ||
currency | string | ||
ngr_formula | object (free-form) | admin_fee_pct, tax_pct, deduct_bonuses, deduct_chargebacks, deduct_fees: NGR = GGR - bonuses - admin% x GGR - tax% x GGR - chargebacks - fees | |
negative_carryover | boolean | ||
blocked_countries | array of string | ||
geo_list_id | string | ||
require_kyc | boolean | ||
status | enum: active, paused, archived | ||
description | string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingBrand |
| default | error | application/json Error |
curl -X PATCH 'https://api.metrixed.com/v1/igaming/brands/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"name":"","advertiser_id":"","offer_id":"","currency":""}'
Example 200 response:
{
"external_ref": ""
}
DELETE /igaming/brands/{id}
Delete IgamingBrand
Operation deleteIgamingBrandsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
curl -X DELETE 'https://api.metrixed.com/v1/igaming/brands/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 204 response:
{
"ok": false
}
POST /igaming/brands/{id}/rebuild
Rebuild player/day metrics after an NGR formula change
Operation postIgamingBrandsIdRebuild. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/brands/<id>/rebuild' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
POST /igaming/brands/{id}/s2s-token
Rotate the brand S2S postback token (returned once)
Operation postIgamingBrandsIdS2sToken. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/brands/<id>/s2s-token' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
POST /igaming/brands/bulk/apply
Bulk edit apply
Operation postIgamingBrandsBulkApply. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/brands/bulk/apply' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/brands/bulk/preview
Bulk edit preview
Operation postIgamingBrandsBulkPreview. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/brands/bulk/preview' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/brands/search
Search IgamingBrands (advanced)
Operation postIgamingBrandsSearch. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): SearchRequest
| Field | Type | Flags | Description |
|---|---|---|---|
filters | array of object | ||
search | string | ||
sort | array of object (free-form) | ||
page | integer | ||
page_size | integer | ||
include | array of string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingBrandList |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/brands/search' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"filters":[{}],"search":"","sort":[{}],"page":0}'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
GET /igaming/creative-approvals
List IgamingCreativeApprovals
Operation getIgamingCreativeApprovals. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | no | |
page_size | query | integer | no | |
sort | query | string | no | field or -field |
include | query | string | no | comma-separated relationships |
filter | query | object (free-form) | no | |
q | query | string | no | free-text search |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingCreativeApprovalList |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/creative-approvals?page=1&page_size=50' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
POST /igaming/creative-approvals
Create IgamingCreativeApproval
Operation postIgamingCreativeApprovals. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): IgamingCreativeApprovalCreate
| Field | Type | Flags | Description |
|---|---|---|---|
brand_id | string | required | |
creative_id | string | required | |
status | enum: pending, approved, rejected | ||
note | string |
| Status | Description | Body |
|---|---|---|
| 201 | ok | application/json IgamingCreativeApproval |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/creative-approvals' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"brand_id":"","creative_id":""}'
Example 201 response:
{
"external_ref": ""
}
GET /igaming/creative-approvals/{id}
Get IgamingCreativeApproval
Operation getIgamingCreativeApprovalsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingCreativeApproval |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/creative-approvals/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"external_ref": ""
}
PATCH /igaming/creative-approvals/{id}
Update IgamingCreativeApproval
Operation patchIgamingCreativeApprovalsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (application/json, required): IgamingCreativeApprovalUpdate
| Field | Type | Flags | Description |
|---|---|---|---|
brand_id | string | ||
creative_id | string | ||
status | enum: pending, approved, rejected | ||
note | string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingCreativeApproval |
| default | error | application/json Error |
curl -X PATCH 'https://api.metrixed.com/v1/igaming/creative-approvals/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"brand_id":"","creative_id":"","status":"pending","note":""}'
Example 200 response:
{
"external_ref": ""
}
DELETE /igaming/creative-approvals/{id}
Delete IgamingCreativeApproval
Operation deleteIgamingCreativeApprovalsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
curl -X DELETE 'https://api.metrixed.com/v1/igaming/creative-approvals/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 204 response:
{
"ok": false
}
POST /igaming/creative-approvals/bulk/apply
Bulk edit apply
Operation postIgamingCreativeApprovalsBulkApply. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/creative-approvals/bulk/apply' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/creative-approvals/bulk/preview
Bulk edit preview
Operation postIgamingCreativeApprovalsBulkPreview. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/creative-approvals/bulk/preview' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/creative-approvals/search
Search IgamingCreativeApprovals (advanced)
Operation postIgamingCreativeApprovalsSearch. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): SearchRequest
| Field | Type | Flags | Description |
|---|---|---|---|
filters | array of object | ||
search | string | ||
sort | array of object (free-form) | ||
page | integer | ||
page_size | integer | ||
include | array of string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingCreativeApprovalList |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/creative-approvals/search' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"filters":[{}],"search":"","sort":[{}],"page":0}'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
GET /igaming/deals
List IgamingDeals
Operation getIgamingDeals. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | no | |
page_size | query | integer | no | |
sort | query | string | no | field or -field |
include | query | string | no | comma-separated relationships |
filter | query | object (free-form) | no | |
q | query | string | no | free-text search |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingDealList |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/deals?page=1&page_size=50' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
POST /igaming/deals
Create IgamingDeal
Operation postIgamingDeals. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): IgamingDealCreate
| Field | Type | Flags | Description |
|---|---|---|---|
partner_id | string | required | |
brand_id | string | required | |
plan_id | string | required | |
valid_from | string (date) | required | |
valid_to | string (date) | ||
status | enum: active, paused, ended | ||
description | string |
| Status | Description | Body |
|---|---|---|
| 201 | ok | application/json IgamingDeal |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/deals' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"partner_id":"","brand_id":"","plan_id":"","valid_from":""}'
Example 201 response:
{
"external_ref": ""
}
GET /igaming/deals/{id}
Get IgamingDeal
Operation getIgamingDealsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingDeal |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/deals/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"external_ref": ""
}
PATCH /igaming/deals/{id}
Update IgamingDeal
Operation patchIgamingDealsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (application/json, required): IgamingDealUpdate
| Field | Type | Flags | Description |
|---|---|---|---|
partner_id | string | ||
brand_id | string | ||
plan_id | string | ||
valid_from | string (date) | ||
valid_to | string (date) | ||
status | enum: active, paused, ended | ||
description | string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingDeal |
| default | error | application/json Error |
curl -X PATCH 'https://api.metrixed.com/v1/igaming/deals/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"partner_id":"","brand_id":"","plan_id":"","valid_from":""}'
Example 200 response:
{
"external_ref": ""
}
DELETE /igaming/deals/{id}
Delete IgamingDeal
Operation deleteIgamingDealsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
curl -X DELETE 'https://api.metrixed.com/v1/igaming/deals/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 204 response:
{
"ok": false
}
POST /igaming/deals/bulk/apply
Bulk edit apply
Operation postIgamingDealsBulkApply. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/deals/bulk/apply' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/deals/bulk/preview
Bulk edit preview
Operation postIgamingDealsBulkPreview. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/deals/bulk/preview' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/deals/search
Search IgamingDeals (advanced)
Operation postIgamingDealsSearch. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): SearchRequest
| Field | Type | Flags | Description |
|---|---|---|---|
filters | array of object | ||
search | string | ||
sort | array of object (free-form) | ||
page | integer | ||
page_size | integer | ||
include | array of string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingDealList |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/deals/search' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"filters":[{}],"search":"","sort":[{}],"page":0}'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
POST /igaming/ingest
Bulk JSON ingestion of players and activities
Operation postIgamingIngest. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): IgamingResult
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/ingest' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{}'
Example 200 response:
{}
GET /igaming/plans
List IgamingPlans
Operation getIgamingPlans. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | no | |
page_size | query | integer | no | |
sort | query | string | no | field or -field |
include | query | string | no | comma-separated relationships |
filter | query | object (free-form) | no | |
q | query | string | no | free-text search |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPlanList |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/plans?page=1&page_size=50' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
POST /igaming/plans
Create IgamingPlan
Operation postIgamingPlans. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): IgamingPlanCreate
| Field | Type | Flags | Description |
|---|---|---|---|
name | string | required | |
type | enum: cpa, revshare, hybrid | required | |
brand_id | string | ||
config | object (free-form) | cpa{amount,min_deposit,min_wager,within_days,countries[],require_kyc}, revshare{metric ngr|players, tier_mode highest|marginal, tiers[{from,percent}]}, sub_affiliate_percents[] | |
status | string | ||
description | string |
| Status | Description | Body |
|---|---|---|
| 201 | ok | application/json IgamingPlan |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/plans' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"name":"","type":"cpa"}'
Example 201 response:
{
"external_ref": ""
}
GET /igaming/plans/{id}
Get IgamingPlan
Operation getIgamingPlansId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPlan |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/plans/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"external_ref": ""
}
PATCH /igaming/plans/{id}
Update IgamingPlan
Operation patchIgamingPlansId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (application/json, required): IgamingPlanUpdate
| Field | Type | Flags | Description |
|---|---|---|---|
name | string | ||
type | enum: cpa, revshare, hybrid | ||
brand_id | string | ||
config | object (free-form) | cpa{amount,min_deposit,min_wager,within_days,countries[],require_kyc}, revshare{metric ngr|players, tier_mode highest|marginal, tiers[{from,percent}]}, sub_affiliate_percents[] | |
status | string | ||
description | string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPlan |
| default | error | application/json Error |
curl -X PATCH 'https://api.metrixed.com/v1/igaming/plans/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"name":"","type":"cpa","brand_id":"","config":{}}'
Example 200 response:
{
"external_ref": ""
}
DELETE /igaming/plans/{id}
Delete IgamingPlan
Operation deleteIgamingPlansId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
curl -X DELETE 'https://api.metrixed.com/v1/igaming/plans/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 204 response:
{
"ok": false
}
POST /igaming/plans/bulk/apply
Bulk edit apply
Operation postIgamingPlansBulkApply. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/plans/bulk/apply' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/plans/bulk/preview
Bulk edit preview
Operation postIgamingPlansBulkPreview. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/plans/bulk/preview' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/plans/search
Search IgamingPlans (advanced)
Operation postIgamingPlansSearch. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): SearchRequest
| Field | Type | Flags | Description |
|---|---|---|---|
filters | array of object | ||
search | string | ||
sort | array of object (free-form) | ||
page | integer | ||
page_size | integer | ||
include | array of string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPlanList |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/plans/search' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"filters":[{}],"search":"","sort":[{}],"page":0}'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
GET /igaming/players
List players
Operation getIgamingPlayers. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | no | |
page_size | query | integer | no | |
sort | query | string | no | field or -field |
include | query | string | no | comma-separated relationships |
filter | query | object (free-form) | no | |
q | query | string | no | free-text search |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPlayerList |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/players?page=1&page_size=50' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
GET /igaming/players/{id}
Get player
Operation getIgamingPlayersId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPlayer |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/players/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"external_ref": ""
}
PATCH /igaming/players/{id}
Update player (partner, status, KYC)
Operation patchIgamingPlayersId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (application/json, required): IgamingPlayerUpdate
| Field | Type | Flags | Description |
|---|---|---|---|
partner_id | string | ||
click_id | string | ||
tracking_code | string | ||
promo_code | string | ||
country | string | ||
signup_at | string (date-time) | ||
status | enum: active, blocked, closed | ||
kyc_status | enum: pending, verified, rejected |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPlayer |
| default | error | application/json Error |
curl -X PATCH 'https://api.metrixed.com/v1/igaming/players/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"partner_id":"","click_id":"","tracking_code":"","promo_code":""}'
Example 200 response:
{
"external_ref": ""
}
DELETE /igaming/players/{id}
Delete player
Operation deleteIgamingPlayersId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
curl -X DELETE 'https://api.metrixed.com/v1/igaming/players/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 204 response:
{
"ok": false
}
POST /igaming/players/search
Search players
Operation postIgamingPlayersSearch. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): SearchRequest
| Field | Type | Flags | Description |
|---|---|---|---|
filters | array of object | ||
search | string | ||
sort | array of object (free-form) | ||
page | integer | ||
page_size | integer | ||
include | array of string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPlayerList |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/players/search' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"filters":[{}],"search":"","sort":[{}],"page":0}'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
GET /igaming/promo-codes
List IgamingPromoCodes
Operation getIgamingPromoCodes. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | no | |
page_size | query | integer | no | |
sort | query | string | no | field or -field |
include | query | string | no | comma-separated relationships |
filter | query | object (free-form) | no | |
q | query | string | no | free-text search |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPromoCodeList |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/promo-codes?page=1&page_size=50' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
POST /igaming/promo-codes
Create IgamingPromoCode
Operation postIgamingPromoCodes. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): IgamingPromoCodeCreate
| Field | Type | Flags | Description |
|---|---|---|---|
brand_id | string | required | |
code | string | required | |
kind | enum: promo, tracking | ||
partner_id | string | required | |
bonus_description | string | ||
valid_from | string (date-time) | ||
valid_to | string (date-time) | ||
status | enum: active, paused, expired |
| Status | Description | Body |
|---|---|---|
| 201 | ok | application/json IgamingPromoCode |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/promo-codes' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"brand_id":"","code":"","partner_id":""}'
Example 201 response:
{
"external_ref": ""
}
GET /igaming/promo-codes/{id}
Get IgamingPromoCode
Operation getIgamingPromoCodesId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPromoCode |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/promo-codes/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"external_ref": ""
}
PATCH /igaming/promo-codes/{id}
Update IgamingPromoCode
Operation patchIgamingPromoCodesId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body (application/json, required): IgamingPromoCodeUpdate
| Field | Type | Flags | Description |
|---|---|---|---|
brand_id | string | ||
code | string | ||
kind | enum: promo, tracking | ||
partner_id | string | ||
bonus_description | string | ||
valid_from | string (date-time) | ||
valid_to | string (date-time) | ||
status | enum: active, paused, expired |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPromoCode |
| default | error | application/json Error |
curl -X PATCH 'https://api.metrixed.com/v1/igaming/promo-codes/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"brand_id":"","code":"","kind":"promo","partner_id":""}'
Example 200 response:
{
"external_ref": ""
}
DELETE /igaming/promo-codes/{id}
Delete IgamingPromoCode
Operation deleteIgamingPromoCodesId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
curl -X DELETE 'https://api.metrixed.com/v1/igaming/promo-codes/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 204 response:
{
"ok": false
}
POST /igaming/promo-codes/bulk/apply
Bulk edit apply
Operation postIgamingPromoCodesBulkApply. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/promo-codes/bulk/apply' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/promo-codes/bulk/preview
Bulk edit preview
Operation postIgamingPromoCodesBulkPreview. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): BulkPatch
| Field | Type | Flags | Description |
|---|---|---|---|
ids | array of string | required | |
patches | array of object | required |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json BulkPreview |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/promo-codes/bulk/preview' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"ids":[""],"patches":[{"field":"","value":{}}]}'
Example 200 response:
{
"affected": 0,
"changes": [
{}
],
"warnings": [
""
],
"token": ""
}
POST /igaming/promo-codes/search
Search IgamingPromoCodes (advanced)
Operation postIgamingPromoCodesSearch. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): SearchRequest
| Field | Type | Flags | Description |
|---|---|---|---|
filters | array of object | ||
search | string | ||
sort | array of object (free-form) | ||
page | integer | ||
page_size | integer | ||
include | array of string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingPromoCodeList |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/promo-codes/search' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"filters":[{}],"search":"","sort":[{}],"page":0}'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
GET /igaming/reports/players
Player report
Operation getIgamingReportsPlayers. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
partner_id | query | string | no | |
country | query | string | no | |
promo_code | query | string | no | |
from | query | string | no | |
to | query | string | no | |
page | query | integer | no | |
page_size | query | integer | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/reports/players?page=1&page_size=50' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /igaming/reports/promo-codes
Promo / tracking code attribution report
Operation getIgamingReportsPromoCodes. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
partner_id | query | string | no | |
from | query | string | no | |
to | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/reports/promo-codes' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /igaming/runs
List commission runs
Operation getIgamingRuns. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | no | |
page_size | query | integer | no | |
sort | query | string | no | field or -field |
include | query | string | no | comma-separated relationships |
filter | query | object (free-form) | no | |
q | query | string | no | free-text search |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingRunList |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/runs?page=1&page_size=50' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
POST /igaming/runs
Preview (or re-preview) the commission run for a brand and month
Operation postIgamingRuns. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): IgamingResult
| Status | Description | Body |
|---|---|---|
| 201 | ok | application/json IgamingRun |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/runs' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{}'
Example 201 response:
{
"external_ref": ""
}
GET /igaming/runs/{id}
Get commission run
Operation getIgamingRunsId. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingRun |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/runs/<id>' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"external_ref": ""
}
POST /igaming/runs/{id}/approve
Approve a preview: post per-affiliate deltas to the ledger (idempotent)
Operation postIgamingRunsIdApprove. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingRun |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/runs/<id>/approve' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"external_ref": ""
}
POST /igaming/runs/{id}/discard
Discard an unposted preview
Operation postIgamingRunsIdDiscard. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingRun |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/runs/<id>/discard' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{
"external_ref": ""
}
GET /igaming/runs/{id}/lines
Per-affiliate lines of a run (metrics, carryover, KYC hold, delta)
Operation getIgamingRunsIdLines. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/runs/<id>/lines' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
POST /igaming/runs/search
Search commission runs
Operation postIgamingRunsSearch. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): SearchRequest
| Field | Type | Flags | Description |
|---|---|---|---|
filters | array of object | ||
search | string | ||
sort | array of object (free-form) | ||
page | integer | ||
page_size | integer | ||
include | array of string |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingRunList |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/runs/search' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{"filters":[{}],"search":"","sort":[{}],"page":0}'
Example 200 response:
{
"data": [
{}
],
"page": {}
}
GET /igaming/s2s/{tenant}/{brand}
S2S postback (brand token; signup or one activity)
Operation getIgamingS2sTenantBrand. Auth: none (public endpoint).
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
tenant | path | string | yes | |
brand | path | string | yes | |
token | query | string | no | |
type | query | string | no | |
player_id | query | string | no | |
amount | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/s2s/<tenant>/<brand>' \
-H 'Accept: application/json'
Example 200 response:
{}
POST /igaming/s2s/{tenant}/{brand}
S2S postback (JSON or form body)
Operation postIgamingS2sTenantBrand. Auth: none (public endpoint).
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
tenant | path | string | yes | |
brand | path | string | yes | |
token | query | string | no |
Request body (application/json, required): IgamingResult
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/s2s/<tenant>/<brand>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-raw '{}'
Example 200 response:
{}
GET /igaming/statements
Affiliate month statement from posted runs
Operation getIgamingStatements. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
partner_id | query | string | yes | |
month | query | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/statements' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /igaming/uploads
Upload history
Operation getIgamingUploads. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/igaming/uploads' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
POST /igaming/uploads
CSV upload of players or activities (multipart: brand_id, kind, file)
Operation postIgamingUploads. Auth: API key (Bearer) or session cookie.
Request body (application/json, required): any
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl -X POST 'https://api.metrixed.com/v1/igaming/uploads' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /partner/igaming/brands
Brands and plans assigned to the affiliate
Operation getPartnerIgamingBrands. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
month | query | string | no | |
from | query | string | no | |
to | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/partner/igaming/brands' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /partner/igaming/creatives
Approved creatives per brand
Operation getPartnerIgamingCreatives. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
month | query | string | no | |
from | query | string | no | |
to | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/partner/igaming/creatives' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /partner/igaming/players
Own players with GGR/NGR
Operation getPartnerIgamingPlayers. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
month | query | string | no | |
from | query | string | no | |
to | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/partner/igaming/players' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /partner/igaming/promo-codes
Own promo and tracking codes
Operation getPartnerIgamingPromoCodes. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
month | query | string | no | |
from | query | string | no | |
to | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/partner/igaming/promo-codes' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /partner/igaming/statements
Month statement
Operation getPartnerIgamingStatements. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
month | query | string | no | |
from | query | string | no | |
to | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/partner/igaming/statements' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /partner/igaming/sub-affiliates
Sub-affiliates and override commission
Operation getPartnerIgamingSubAffiliates. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
month | query | string | no | |
from | query | string | no | |
to | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/partner/igaming/sub-affiliates' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}
GET /partner/igaming/summary
Monthly NGR and commission
Operation getPartnerIgamingSummary. Auth: API key (Bearer) or session cookie.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string | no | |
month | query | string | no | |
from | query | string | no | |
to | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | ok | application/json IgamingResult |
| default | error | application/json Error |
curl 'https://api.metrixed.com/v1/partner/igaming/summary' \
-H "Authorization: Bearer $DT_API_KEY" \
-H 'Accept: application/json'
Example 200 response:
{}