This commit is contained in:
2026-06-06 21:21:52 +03:30
parent eaec696a1b
commit ac3444a431
7 changed files with 61 additions and 6 deletions
+30
View File
@@ -0,0 +1,30 @@
info:
name: Fulfill Referral Reward
type: http
seq: 12
http:
method: POST
url: "{{baseUrl}}/admin/referral-rewards/:user/fulfill"
params:
- name: user
value: "1"
type: path
body:
type: json
data: |-
{
"product_id": 1
}
auth: inherit
docs: |-
Admin only. Grants the free month to the user (path param = user id) and
marks it granted so it only happens once. product_id is optional: omit it to
auto-grant the meditation package's monthly product.
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
+21
View File
@@ -0,0 +1,21 @@
info:
name: Pending Referral Rewards
type: http
seq: 11
http:
method: GET
url: "{{baseUrl}}/admin/referral-rewards"
body:
type: none
auth: inherit
docs: |-
Admin only. Lists users (کد معرف) who reached the successful-invite target
and have not yet been granted their free-month subscription.
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
+1 -1
View File
@@ -14,7 +14,7 @@ http:
value: admin@gmail.com value: admin@gmail.com
- name: password - name: password
type: text type: text
value: "96969" value: "969699"
- name: package_name - name: package_name
type: text type: text
value: com.approagency.meditation value: com.approagency.meditation
+4
View File
@@ -43,6 +43,10 @@ http:
type: text type: text
value: "" value: ""
disabled: true disabled: true
- name: referrer_code
type: text
value: ""
disabled: true
runtime: runtime:
scripts: scripts:
+2 -2
View File
@@ -5,10 +5,10 @@ info:
http: http:
method: GET method: GET
url: "{{baseUrl}}/status?package_name=com.approagency.ai" url: "{{baseUrl}}/status?package_name=com.approagency.meditation"
params: params:
- name: package_name - name: package_name
value: com.approagency.ai value: com.approagency.meditation
type: query type: query
auth: inherit auth: inherit
+1 -1
View File
@@ -8,7 +8,7 @@ http:
url: "{{baseUrl}}/package-names/:name/products" url: "{{baseUrl}}/package-names/:name/products"
params: params:
- name: name - name: name
value: com.approagency.meditation value: com.approagency.toolbox
type: path type: path
auth: inherit auth: inherit
+2 -2
View File
@@ -21,14 +21,14 @@ request:
variables: variables:
- name: baseUrl - name: baseUrl
value: http://localhost:8000/api value: http://localhost:8000/api
disabled: true
- name: token - name: token
value: https://api.approagency.ir value: https://api.approagency.ir
disabled: true disabled: true
- name: baseUrl - name: baseUrl
value: https://api.approagency.ir/api value: https://api.approagency.ir/api
disabled: true
- name: token - name: token
value: "" value: 8|REv3lOtv8xTiL5Z6BoWiqfsWpc4daSpNfQrhYTEe261e6f9a
- name: baseUrl - name: baseUrl
value: "" value: ""
disabled: true disabled: true