curl --request GET \
--url https://api-staging.withbenji.com/partnerships/{id} \
--header 'x-api-key: <api-key>'{
"code": "ok",
"data": {
"partnership": {
"uuid_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Test Partnership",
"description": "A partnership between merchant and loyalty partner",
"img": "https://example.com/partnership-logo.png",
"merchant_id": 1,
"related_partner_id": null,
"partner_id": 3,
"is_active": 1,
"is_deleted": 0,
"owner_id": 5,
"total_rewards_earned": 15000,
"total_rewards_redeemed": 3200,
"num_of_transactions": 142,
"is_demo": 0,
"created_date": "2024-11-20T00:30:57.256493+00:00",
"campaigns": null
}
}
}
Get a single partnership by ID
curl --request GET \
--url https://api-staging.withbenji.com/partnerships/{id} \
--header 'x-api-key: <api-key>'{
"code": "ok",
"data": {
"partnership": {
"uuid_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Test Partnership",
"description": "A partnership between merchant and loyalty partner",
"img": "https://example.com/partnership-logo.png",
"merchant_id": 1,
"related_partner_id": null,
"partner_id": 3,
"is_active": 1,
"is_deleted": 0,
"owner_id": 5,
"total_rewards_earned": 15000,
"total_rewards_redeemed": 3200,
"num_of_transactions": 142,
"is_demo": 0,
"created_date": "2024-11-20T00:30:57.256493+00:00",
"campaigns": null
}
}
}
x-api-key header value to be used on this API is your partner API key, which can be generated through the dashboard.Hide properties
{
"code": "ok",
"data": {
"partnership": {
"uuid_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Test Partnership",
"description": "A partnership between merchant and loyalty partner",
"img": "https://example.com/partnership-logo.png",
"merchant_id": 1,
"related_partner_id": null,
"partner_id": 3,
"is_active": 1,
"is_deleted": 0,
"owner_id": 5,
"total_rewards_earned": 15000,
"total_rewards_redeemed": 3200,
"num_of_transactions": 142,
"is_demo": 0,
"created_date": "2024-11-20T00:30:57.256493+00:00",
"campaigns": null
}
}
}
Was this page helpful?