curl --request POST \
--url 'https://api.zenoti.com/v1/invoices/products?center_id={{center_id}}&guest_id={{guest_id}}&products={{products}}&created_by_id={{created_by_id}}' \
--header 'Authorization: bearer {{access_token}}' \
--header 'application_name: Name of the application' \
--header 'application_version: The version of the application' \
--header 'Content-Type: application/json' \
--data '{
"RAW_BODY": "string"
}'
const response = await fetch('https://api.zenoti.com/v1/invoices/products', {
method: 'POST',
headers: {
'Authorization': 'bearer {{access_token}}',
'application_name': 'Name of the application',
'application_version': 'The version of the application',
'Content-Type': 'application/json'
},
body: JSON.stringify({ RAW_BODY: 'string' })
});
const data = await response.json();
import requests
response = requests.post(
'https://api.zenoti.com/v1/invoices/products',
headers={
'Authorization': 'bearer {{access_token}}',
'application_name': 'Name of the application',
'application_version': 'The version of the application',
},
json={'RAW_BODY': 'string'}
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
client.DefaultRequestHeaders.Add("application_name", "Name of the application");
client.DefaultRequestHeaders.Add("application_version", "The version of the application");
var content = new StringContent(
JsonSerializer.Serialize(new { RAW_BODY = "string" }),
Encoding.UTF8, "application/json");
var response = await client.PostAsync(
"https://api.zenoti.com/v1/invoices/products", content);
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'
uri = URI('https://api.zenoti.com/v1/invoices/products')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
request['application_name'] = 'Name of the application'
request['application_version'] = 'The version of the application'
request['Content-Type'] = 'application/json'
request.body = { RAW_BODY: 'string' }.to_json
response = http.request(request)
data = JSON.parse(response.body)