Partner Data API
Authentication
{
"iss": "partner_id/issuer", // Your partner id provided by Yofi
"sub": "the-service-account-with-permissions", // Provided by Yofi
"aud": ["yofi-public-api"], // Provided by Yofi
"exp": 1716123456, // Expiration Time
"iat": 1716113456, // The time at which the JWT was issued.
"jti": "a1b2c3d4-e5f6-7890-g1h2-i3j4k5l6m7n8", //uuid
"client_id": "backend-service", // Provided by Yofi
}{
"iss": "partner_id", // Partner ID
"exp": 1716123456, // Expiration Time
"iat": 1716113456, // The time at which the JWT was issued.
"aud": "Yofi", // Audience, case-sensitive
"sub": "the-shopify-store.myshopify.com", // Shopify shop url, without https://
"org_id": "the organization id"
}
The additional fields of the Claim to be returned.
id,customer_id,claim_itemsThe RSQL filter of the Claim
supported fields:
- created_at_epoch (Epoch timestamp)
supported operators:
- >=
- <=
- >
- <
- ==
- !=
- =in=
- =out=
created_at_epoch>=1746757960Number of records to return per page
10Example: 10Page number to return
1Example: 1Comma-separated list of fields to sort by (prefix field with - for descending order)
-created_at_epochSuccessful Response
Bad Request
Unauthorized
Forbidden
Internal Server Error
The resources to be returned in included.
customer_predictionsThe fields of the EcommerceCustomer to be returned.
entity_id,customer_id,app_id,organization_idThe fields of the EcommerceCustomerPrediction to be returned.
severity,predicted_value,model_name,prediction_category,justification,prediction_title,is_result_prediction,customer_id,entity_idThe RSQL filter of the EcommerceCustomer
supported fields:
- customer_id
supported operators:
- ==
- !=
email=='[email protected]'Number of records to return per page
10Example: 10Page number to return
1Example: 1Successful Response
Bad Request
Unauthorized
Forbidden
Internal Server Error
The ID of the customer
1234567890The resources to be returned in included.
customer_predictionsThe fields of the EcommerceCustomer to be returned.
entity_id,customer_id,app_id,organization_idThe fields of the EcommerceCustomerPrediction to be returned.
severity,predicted_value,model_name,prediction_category,justification,prediction_title,is_result_prediction,customer_id,entity_idSuccessful Response
Bad Request
Unauthorized
Forbidden
Internal Server Error
The additional fields of the EcommerceUnifiedReturn to be returned.
entity_id,app_id,order_id,customer_id,state,order_name,order_created_at_epoch,order_created_at_epoch,return_created_at_epoch,meta_data,return_total,customer_first_name,customer_last_nameThe RSQL filter of the EcommerceUnifiedReturn
supported fields:
- order_id
- customer_id
- order_number
- order_name
- state
- customer_first_name
- customer_last_name
supported operators:
- >=
- <=
- >
- <
- ==
- !=
- =in=
- =out=
order_id=='test'The resources to be returned in included.
customer,order,return_predictions,return_analytics,appThe RSQL filter of the EcommerceUnifiedReturnPrediction
supported fields:
- prediction_category
- predicted_value
(prediction_category==drop_off_fraud;predicted_value>0.9)The additional fields of the EcommerceOrder to be returned.
id,name,model_predictionsThe additional fields of the EcommerceCustomer to be returned.
customer_id,first_name,last_name,model_predictions,emailNumber of records to return per page
10Example: 10Page number to return
1Example: 1Comma-separated list of fields to sort by (prefix field with - for descending order)
-order_created_at_epochSuccessful Response
Bad Request
Unauthorized
Forbidden
Internal Server Error
The additional fields of the NotificationEvent to be returned.
id,notify_template_id,created_atThe RSQL filter of the NotificationEvent.
supported fields:
- created_at (ISO UTC datetime)
supported operators:
- >=
- <=
- >
- <
- ==
- !=
- =in=
- =out=
created_at>=2025-06-06T11:54:41ZNumber of records to return per page
10Example: 10Page number to return
1Example: 1Comma-separated list of fields to sort by (prefix field with - for descending order)
-created_atSuccessful Response
Bad Request
Unauthorized
Forbidden
Internal Server Error
Last updated
Was this helpful?