Triple REST API
Transactions
Create Transactions in Bulk (Beta)
1min
code examples curl location 'https //api tripleup dev/partner/transactions/ bulk' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "action" "", "transactions" \[ { "amount" "", "card account external id" "", "card bin" "", "card last 4" "", "card program external id" "", "debit" "", "description" "", "external id" "", "timestamp" "", "transaction type" "" } ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "action" "", "transactions" \[ { "amount" "", "card account external id" "", "card bin" "", "card last 4" "", "card program external id" "", "debit" "", "description" "", "external id" "", "timestamp" "", "transaction type" "" } ] }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api tripleup dev/partner/transactions/ bulk", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));import requests import json url = "https //api tripleup dev/partner/transactions/ bulk" payload = json dumps({ "action" "", "transactions" \[ { "amount" "", "card account external id" "", "card bin" "", "card last 4" "", "card program external id" "", "debit" "", "description" "", "external id" "", "timestamp" "", "transaction type" "" } ] }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // transactions bulk result { "failures" \[ { "errors" \[ { "status code" 0, "content" { "details" \[ {} ], "error message" "", "exception" "" } } ], "index" 0 } ], "result summary" {}, "result type" "" }// triplebadrequesterror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// triplenotauthenticatederror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleintegrityerror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleunsupportedmediatype { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleunprocessableentity { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripletoomanyrequests { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleinternalservererror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// triplenotimplementederror { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }// tripleserviceunavailable { "status code" 0, "content" { "details" \[ "" ], "error message" "", "exception" "" } }