Affiliate Links
get
Authorizations
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816Responses
200
OK
application/json
default
Error response
application/json
get
/v1/stores/{storeId}/affiliate-linksGET /v1/stores/{storeId}/affiliate-links HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "411486491630370816",
"store_id": "411486491630370816",
"wallet_id": "text",
"enabled": true,
"code": "text",
"referer_type": "invalid",
"tracking_length_days": 1,
"apply_for_subscriptions": true,
"discount_type": "none",
"discount_amount": 1,
"commission_type": "none",
"commission_amount": 1,
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"created_at": "2025-10-30T01:07:16.935Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2025-10-30T01:07:16.935Z"
}
]post
Authorizations
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816Body
wallet_idstringRequired
enabledbooleanRequired
codestringRequired
referer_typestring · enumRequiredPossible values:
tracking_length_daysinteger · int32Required
apply_for_subscriptionsbooleanRequired
discount_typestring · enumRequiredPossible values:
discount_amountinteger · int64Required
commission_typestring · enumRequiredPossible values:
commission_amountinteger · int64Required
Responses
200
OK
application/json
default
Error response
application/json
post
/v1/stores/{storeId}/affiliate-linksPOST /v1/stores/{storeId}/affiliate-links HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 220
{
"wallet_id": "text",
"enabled": true,
"code": "text",
"referer_type": "invalid",
"tracking_length_days": 1,
"apply_for_subscriptions": true,
"discount_type": "none",
"discount_amount": 1,
"commission_type": "none",
"commission_amount": 1
}{
"id": "411486491630370816",
"store_id": "411486491630370816",
"wallet_id": "text",
"enabled": true,
"code": "text",
"referer_type": "invalid",
"tracking_length_days": 1,
"apply_for_subscriptions": true,
"discount_type": "none",
"discount_amount": 1,
"commission_type": "none",
"commission_amount": 1,
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"created_at": "2025-10-30T01:07:16.935Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2025-10-30T01:07:16.935Z"
}get
Authorizations
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816affiliateLinkIdstring · flake-idRequiredExample:
411486491630370816Responses
200
OK
application/json
default
Error response
application/json
get
/v1/stores/{storeId}/affiliate-links/{affiliateLinkId}GET /v1/stores/{storeId}/affiliate-links/{affiliateLinkId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "411486491630370816",
"store_id": "411486491630370816",
"wallet_id": "text",
"enabled": true,
"code": "text",
"referer_type": "invalid",
"tracking_length_days": 1,
"apply_for_subscriptions": true,
"discount_type": "none",
"discount_amount": 1,
"commission_type": "none",
"commission_amount": 1,
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"created_at": "2025-10-30T01:07:16.935Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2025-10-30T01:07:16.935Z"
}delete
Authorizations
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816affiliateLinkIdstring · flake-idRequiredExample:
411486491630370816Responses
204
No Content
No content
default
Error response
application/json
delete
/v1/stores/{storeId}/affiliate-links/{affiliateLinkId}DELETE /v1/stores/{storeId}/affiliate-links/{affiliateLinkId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
No content
patch
Authorizations
Path parameters
storeIdstring · flake-idRequiredExample:
411486491630370816affiliateLinkIdstring · flake-idRequiredExample:
411486491630370816Body
enabledboolean | nullableOptional
codestring | nullableOptional
referer_typestring · enumOptionalPossible values:
tracking_length_daysinteger · int32 | nullableOptional
apply_for_subscriptionsboolean | nullableOptional
discount_typestring · enumOptionalPossible values:
discount_amountinteger · int64 | nullableOptional
commission_typestring · enumOptionalPossible values:
commission_amountinteger · int64 | nullableOptional
Responses
200
OK
application/json
default
Error response
application/json
patch
/v1/stores/{storeId}/affiliate-links/{affiliateLinkId}PATCH /v1/stores/{storeId}/affiliate-links/{affiliateLinkId} HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 201
{
"enabled": true,
"code": "text",
"referer_type": "invalid",
"tracking_length_days": 1,
"apply_for_subscriptions": true,
"discount_type": "none",
"discount_amount": 1,
"commission_type": "none",
"commission_amount": 1
}{
"id": "411486491630370816",
"store_id": "411486491630370816",
"wallet_id": "text",
"enabled": true,
"code": "text",
"referer_type": "invalid",
"tracking_length_days": 1,
"apply_for_subscriptions": true,
"discount_type": "none",
"discount_amount": 1,
"commission_type": "none",
"commission_amount": 1,
"created_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"created_at": "2025-10-30T01:07:16.935Z",
"updated_by": {
"type": "anonymous",
"id": "411486491630370816"
},
"updated_at": "2025-10-30T01:07:16.935Z"
}Was this helpful?
