Skip to main content

Get invoice checkout details

Get invoice checkout details by invoice id.

Endpoint

GET /integration/invoice/{id}/checkout

HTTP Request

GET /integration/invoice/{id}/checkout

Query parameters

NameDescriptionRequiredType
idIdentifier for the invoice to getYesstring

Successful response, checkout details object

HTTP 200

{
"checkOutUrl": "https://www.bluetape.com/i/r?account=7aec7f522d88&id=2eb1acd98a86"
}

Response parameters

Checkout Details Object

NameDescriptionType
checkOutUrlThe checkout url dedicated to invoice.string

Erroneous response

HTTP 404

{
"code": "404",
"reason": "Invoice not found."
}

Responses

CodeDescription
200Successful operation
400Invalid request
401Unauthorized
404Not found
500Unexpected error

Examples

curl https://api.bluetape.com/genericBthubService/integration/invoice/<invoiceId>/checkout \
-H "X-BlueTape-Key: <your-key>" \
-H "X-Integration-AccountId: <your-account-id>" \
import fetch from 'node-fetch';

const companyId = 'dc506b22c7fa';
const url = `https://api.bluetape.com/genericBthubService/integration/invoice/${invoiceId}/checkout`;
const options = {
method: 'GET',
headers: {
'X-BlueTape-Key': '<your-key>',
'X-Integration-AccountId': '<your-account-id>',
'Content-Type': 'application/json'
}
};

fetch(url, options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
using Flurl.Http;

var companyId = "dc506b22c7fa";

var url = $"https://api.bluetape.com/genericBthubService/integration/invoice/{invoiceId}/checkout";

var result = await url
.WithHeader("X-BlueTape-Key", "<your-key>")
.WithHeader("X-Integration-AccountId", "<your-account-id>")
.WithHeader("Content-Type", "application/json")
.GetJsonAsync<SignUpDetails>();
import requests

companyId = "dc506b22c7fa"
url = f'https://api.bluetape.com/genericBthubService/integration/invoice/{invoiceId}/checkout'

headers = {
"X-BlueTape-Key": "<your-key>",
"X-Integration-AccountId": "<your-account-id>",
"Content-Type": "application/json"
}

response = requests.get(url, headers=headers)

print(response.text)