Skip to content

Data Sources

Instead of using the FanPoints SDK, you can use one of the following data sources to ingest raw data on purchases into the FanPoints ecosystem. This has the advantage that you can simply upload the data to the Fanpoints platform and don’t have to think about special cases (like undoing purchases or discounts).

Tixevo

If you are using the Tixevo ticketing solution, you can use the following script to upload raw checkout payloads to the FanPoints platform whenever a checkout is created or modified:

import {
createPartnerClient,
RequestError
} from '@fanpoints/server-js';
const client = createLoyaltyProgramClient({
loyaltyProgramId: 'the Loyalty Program id', // can be found in the dashboard
clientId: 'the client id',
secret: 'the client secret',
});
const uploadCheckout = async (payload) => {
await client.fanPoints.registerTixevoCheckout(
JSON.stringify(payload)
)
};
uploadCheckout({checkoutId: '1234'});