Billing App APIs
Payment Management
Upload bulk payments
1 min
code examples curl location globoff 'https //{tenant id} {stack base domain}/tms/api/v1/billing/shipper/bulk/upload/payment' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "data" { "payments" \[ { "paymentid" "pay123456789", "invoicenumber" "inv123456789", "paymenttype" "bank transfer", "totalamount" 5000, "appliedamount" 5000, "paymentdate" 1701388800000 } ] }, "callback" { "url" "https //api example com/callback" } }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "data" { "payments" \[ { "paymentid" "pay123456789", "invoicenumber" "inv123456789", "paymenttype" "bank transfer", "totalamount" 5000, "appliedamount" 5000, "paymentdate" 1701388800000 } ] }, "callback" { "url" "https //api example com/callback" } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //{tenant id} {stack base domain}/tms/api/v1/billing/shipper/bulk/upload/payment", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //{tenant id} {stack base domain}/tms/api/v1/billing/shipper/bulk/upload/payment") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "data" { "payments" \[ { "paymentid" "pay123456789", "invoicenumber" "inv123456789", "paymenttype" "bank transfer", "totalamount" 5000, "appliedamount" 5000, "paymentdate" 1701388800000 } ] }, "callback" { "url" "https //api example com/callback" } }) response = https request(request) puts response read body import requests import json url = "https //{tenant id} {stack base domain}/tms/api/v1/billing/shipper/bulk/upload/payment" payload = json dumps({ "data" { "payments" \[ { "paymentid" "pay123456789", "invoicenumber" "inv123456789", "paymenttype" "bank transfer", "totalamount" 5000, "appliedamount" 5000, "paymentdate" 1701388800000 } ] }, "callback" { "url" "https //api example com/callback" } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // payment upload request submitted successfully { "requestid" "req 123456789", "message" "payment processing request submitted successfully", "status" "success" }// bad request invalid payment data { "message" "invalid charge id provided", "status" "error", "errorcode" "invalid charge id" }// unauthorized invalid authentication { "message" "invalid charge id provided", "status" "error", "errorcode" "invalid charge id" }// internal server error { "message" "invalid charge id provided", "status" "error", "errorcode" "invalid charge id" }
