Step 2: Registering Programs
Once you have created your authentication token, the next step is to register your card programs with Triple. A card program refers to a collection of cards or card accounts that are eligible for the reward program. To complete this process, you will need to use specific endpoints, which are provided below along with examples. For more comprehensive information, you can refer to the Triple API documentation for each endpoint.
Prerequisites
Before proceeding with this step, ensure that:
- You possess an active authentication token.
- You have decided on an (external) ID for each card program.
Create a Publisher (optional)
This step is only required if you are a qualified Portfolio Manager
(i.e. manage multiple publishers).
If you are set up as a Portfolio Manager
, you must first create a Publisher
. The external_id
will be required when creating or associating card programs with the publisher.
curl --location 'https://api.tripleup.dev/partner/publishers' \
--header 'Authorization: Bearer MY_TOKEN' \
--header 'Content-Type: application/json' \
--data '
{
"address": {
"city": "PITTSBURGH",
"complete": "7370 BAKER ST, STE 100\nPITTSBURGH, PA 15206",
"country_code": "US",
"country_subdivision_code": "PA",
"latitude": 40.440624,
"longitude": -79.995888,
"postal_code": "15206",
"street_address": "7370 BAKER ST, STE 100\n"
},
"assumed_name": "string",
"external_id": "string",
"revenue_share": 1.125
}'
Create Card programs
Use this endpoint to add your card programs to Triple: POST partner/card-programs
curl --location 'https://api.tripleup.dev/partner/card-programs' \
--header 'Authorization: Bearer MY_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"card_bins": ["123456"],
"external_id": "YOUR_CARD_PROGRAM_EXTERNAL_ID",
"default_country_code": "US",
"default_postal_code": "16046",
"name": "Demo Card Program Demo",
"description": "This is a demo card program created by me",
"program_currency": "USD"
}'
You can find more details in the REST API documentation.
Verify Card Programs
Use this endpoint to verify that card program information was properly added: GET partner/card-programs
.
curl --location 'https://api.tripleup.dev/partner/card-programs' \
--header 'Authorization: Bearer MY_TOKEN'