Skip to main content
POST
/
mcp
/
get_customer_subscription
curl --request POST \
  --url https://api.splitz.co.il/mcp/get_customer_subscription \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subscription_uid": "sub_1234567890abcdef"
}
'
{
"success": true,
"subscription": {
"uid": "sub_1234567890abcdef",
"status": "active",
"subscriber_email": "[email protected]",
"subscriber_name": "יוחנן כהן",
"order_uid": "ord_abcdef123456",
"product_uid": "prod_premium_monthly"
}
}

Authorizations

Authorization
string
header
required

אימות באמצעות Bearer Token. יש לשלוח כותרת Authorization עם הערך Bearer <SHOP_API_KEY>.

דוגמה:

Authorization: Bearer sk_live_1234567890abcdef

המפתח הוא מפתח ה-API של החנות (Shop Model: api_key) שניתן למצוא בפאנל הניהול של Splitz.

Body

application/json

ניתן לחפש מנוי בשתי דרכים: לפי subscription_uid או לפי customer_email + shop_uid

חיפוש לפי מזהה מנוי ישיר

subscription_uid
string
required

מזהה ייחודי (UID) של המנוי במערכת Splitz

Minimum string length: 1
Example:

"sub_1234567890abcdef"

Response

פרטי המנוי הוחזרו בהצלחה

success
boolean
required

מצב ההצלחה של הפעולה

Example:

true

subscription
object
required

אובייקט מנוי מלא עם כל הפרטים הרלוונטיים