API /
Reference /
Card Transactions
OPTIONS /v1/card-transactions/{transactionId}/receipt
OPTIONS
https://api.light.inc/v1/card-transactions/{transactionId}/receipt
CORS preflight for browsers that download the receipt directly. Answers 200 with the allowed-origin headers and no body, without authentication. API clients never need to call it.
Authorization
Send one of these on every request. See
Authentication for how to get credentials.
API key Basic authentication header of the form Basic <api_key> , where <api_key> is your api key.
Bearer token
Request body
application/json;charset=UTF-8
roles
array of string
name
string
Response
This endpoint returns no content.
cURL
JavaScript
Python
Copy
curl -X OPTIONS "https://api.light.inc/v1/card-transactions/3c90c3cc-0d44-4b50-8888-8dd25736052a/receipt" \
-H "Authorization: Basic YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"roles": [
"string"
],
"name": "string"
}'
Copy
const res = await fetch("https://api.light.inc/v1/card-transactions/3c90c3cc-0d44-4b50-8888-8dd25736052a/receipt", {
method: "OPTIONS",
headers: {
Authorization: `Basic ${process.env.LIGHT_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"roles": [
"string"
],
"name": "string"
}),
});
const data = await res.json();
Copy
import os, requests
res = requests.options(
"https://api.light.inc/v1/card-transactions/3c90c3cc-0d44-4b50-8888-8dd25736052a/receipt",
headers={"Authorization": f"Basic {os.environ['LIGHT_API_KEY']}"},
json={
"roles": [
"string"
],
"name": "string"
},
)
data = res.json()
Example request
Copy
{
"roles": [
"string"
],
"name": "string"
}
Generated from the schema: shapes and types are real, values are placeholders, and fields that exclude each other are all shown. Do not send it unchanged.