Create a money transaction
curl --request POST \
--url https://api.spacebring.com/transactions/money/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customItem": {
"currencyCode": "<string>",
"unitAmount": 1,
"unitQuantity": 4503599627370495,
"description": "<string>"
},
"payment": {
"method": {
"external": {}
}
},
"customerAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"customerName": "<string>",
"customerTaxId": "<string>"
}
'import requests
url = "https://api.spacebring.com/transactions/money/v1"
payload = {
"customerRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customItem": {
"currencyCode": "<string>",
"unitAmount": 1,
"unitQuantity": 4503599627370495,
"description": "<string>"
},
"payment": { "method": { "external": {} } },
"customerAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"customerName": "<string>",
"customerTaxId": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customerRef: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
customItem: {
currencyCode: '<string>',
unitAmount: 1,
unitQuantity: 4503599627370495,
description: '<string>'
},
payment: {method: {external: {}}},
customerAddress: {
city: '<string>',
countryCode: '<string>',
line1: '<string>',
line2: '<string>',
postalCode: '<string>',
state: '<string>'
},
customerName: '<string>',
customerTaxId: '<string>'
})
};
fetch('https://api.spacebring.com/transactions/money/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spacebring.com/transactions/money/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customerRef' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'customItem' => [
'currencyCode' => '<string>',
'unitAmount' => 1,
'unitQuantity' => 4503599627370495,
'description' => '<string>'
],
'payment' => [
'method' => [
'external' => [
]
]
],
'customerAddress' => [
'city' => '<string>',
'countryCode' => '<string>',
'line1' => '<string>',
'line2' => '<string>',
'postalCode' => '<string>',
'state' => '<string>'
],
'customerName' => '<string>',
'customerTaxId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.spacebring.com/transactions/money/v1"
payload := strings.NewReader("{\n \"customerRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customItem\": {\n \"currencyCode\": \"<string>\",\n \"unitAmount\": 1,\n \"unitQuantity\": 4503599627370495,\n \"description\": \"<string>\"\n },\n \"payment\": {\n \"method\": {\n \"external\": {}\n }\n },\n \"customerAddress\": {\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"state\": \"<string>\"\n },\n \"customerName\": \"<string>\",\n \"customerTaxId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.spacebring.com/transactions/money/v1")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"customerRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customItem\": {\n \"currencyCode\": \"<string>\",\n \"unitAmount\": 1,\n \"unitQuantity\": 4503599627370495,\n \"description\": \"<string>\"\n },\n \"payment\": {\n \"method\": {\n \"external\": {}\n }\n },\n \"customerAddress\": {\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"state\": \"<string>\"\n },\n \"customerName\": \"<string>\",\n \"customerTaxId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spacebring.com/transactions/money/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customerRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customItem\": {\n \"currencyCode\": \"<string>\",\n \"unitAmount\": 1,\n \"unitQuantity\": 4503599627370495,\n \"description\": \"<string>\"\n },\n \"payment\": {\n \"method\": {\n \"external\": {}\n }\n },\n \"customerAddress\": {\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"state\": \"<string>\"\n },\n \"customerName\": \"<string>\",\n \"customerTaxId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"transaction": {
"amount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"networkRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment": {
"method": {
"type": "external",
"external": {},
"paymentGateway": {
"gateway": "<string>",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"price": {
"money": {
"currencyCode": "<string>",
"grossAmount": 123
},
"type": "money"
},
"refundable": true,
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"refunds": {
"money": [
{
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"grossAmount": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerRefCreatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"initiator": "<string>",
"userCreatedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"type": "money"
},
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
}
},
"paymentMethod": {
"type": "<string>",
"label": "<string>"
},
"status": "canceled",
"type": "booking",
"billingAddressBy": "<string>",
"billingAddressTo": "<string>",
"booking": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": {
"netAmount": 123,
"taxAmount": 123
},
"resource": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"deleteDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"membershipRefDeletedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"userDeletedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"company": {
"createDate": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"metadata": {},
"notes": "<string>"
},
"companyRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creditPackage": {
"amount": 123,
"price": {
"netAmount": 123,
"taxAmount": 123
},
"creditsAmount": 123,
"dayPassesAmount": 123
},
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "company",
"logo": {
"key": "<string>",
"url": "<string>"
},
"publicLogoUrl": "<string>",
"title": "<string>",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"customerRefCreatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"customerName": "<string>",
"customerTaxId": "<string>",
"customItem": {
"currencyCode": "<string>",
"description": "<string>",
"tax": {
"enabled": true,
"rate": 1
},
"unitAmount": 123,
"unitQuantity": 123
},
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiration": {
"enabled": true,
"date": "2023-11-07T05:31:56Z"
},
"limitByFirstPurchase": true
},
"subscriptionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"errorDescription": "<string>",
"invoice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"locationAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"locationName": "<string>",
"locationTaxId": "<string>",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"option": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
},
"quantity": 123
}
]
},
"plan": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"product": {
"type": "booking",
"bookingRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventTicketRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"receiptPdfUrl": "<string>",
"refund": {
"amount": 123,
"createDate": "2023-11-07T05:31:56Z"
},
"refunds": [
{
"amount": 123,
"createDate": "2023-11-07T05:31:56Z",
"organizationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currencyCode": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"initiator": "<string>",
"membershipRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userCreator": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"ticket": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": {
"netAmount": 123,
"taxAmount": 123
},
"quantity": 123,
"createDate": "2023-11-07T05:31:56Z",
"deleteDate": "2023-11-07T05:31:56Z",
"event": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"startDate": "2023-11-07T05:31:56Z"
},
"membershipRefDeletedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userDeletedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userCreatedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userOwner": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"message": "<string>",
"type": "<string>"
}Transactions
Create a money transaction
Create a money transaction by charging a customer for a custom item.
OAuth
Required scopes:transactionsPOST
/
transactions
/
money
/
v1
Create a money transaction
curl --request POST \
--url https://api.spacebring.com/transactions/money/v1 \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"customerRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customItem": {
"currencyCode": "<string>",
"unitAmount": 1,
"unitQuantity": 4503599627370495,
"description": "<string>"
},
"payment": {
"method": {
"external": {}
}
},
"customerAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"customerName": "<string>",
"customerTaxId": "<string>"
}
'import requests
url = "https://api.spacebring.com/transactions/money/v1"
payload = {
"customerRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customItem": {
"currencyCode": "<string>",
"unitAmount": 1,
"unitQuantity": 4503599627370495,
"description": "<string>"
},
"payment": { "method": { "external": {} } },
"customerAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"customerName": "<string>",
"customerTaxId": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
customerRef: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
customItem: {
currencyCode: '<string>',
unitAmount: 1,
unitQuantity: 4503599627370495,
description: '<string>'
},
payment: {method: {external: {}}},
customerAddress: {
city: '<string>',
countryCode: '<string>',
line1: '<string>',
line2: '<string>',
postalCode: '<string>',
state: '<string>'
},
customerName: '<string>',
customerTaxId: '<string>'
})
};
fetch('https://api.spacebring.com/transactions/money/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spacebring.com/transactions/money/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'customerRef' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'customItem' => [
'currencyCode' => '<string>',
'unitAmount' => 1,
'unitQuantity' => 4503599627370495,
'description' => '<string>'
],
'payment' => [
'method' => [
'external' => [
]
]
],
'customerAddress' => [
'city' => '<string>',
'countryCode' => '<string>',
'line1' => '<string>',
'line2' => '<string>',
'postalCode' => '<string>',
'state' => '<string>'
],
'customerName' => '<string>',
'customerTaxId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.spacebring.com/transactions/money/v1"
payload := strings.NewReader("{\n \"customerRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customItem\": {\n \"currencyCode\": \"<string>\",\n \"unitAmount\": 1,\n \"unitQuantity\": 4503599627370495,\n \"description\": \"<string>\"\n },\n \"payment\": {\n \"method\": {\n \"external\": {}\n }\n },\n \"customerAddress\": {\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"state\": \"<string>\"\n },\n \"customerName\": \"<string>\",\n \"customerTaxId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.spacebring.com/transactions/money/v1")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"customerRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customItem\": {\n \"currencyCode\": \"<string>\",\n \"unitAmount\": 1,\n \"unitQuantity\": 4503599627370495,\n \"description\": \"<string>\"\n },\n \"payment\": {\n \"method\": {\n \"external\": {}\n }\n },\n \"customerAddress\": {\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"state\": \"<string>\"\n },\n \"customerName\": \"<string>\",\n \"customerTaxId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spacebring.com/transactions/money/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"customerRef\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"customItem\": {\n \"currencyCode\": \"<string>\",\n \"unitAmount\": 1,\n \"unitQuantity\": 4503599627370495,\n \"description\": \"<string>\"\n },\n \"payment\": {\n \"method\": {\n \"external\": {}\n }\n },\n \"customerAddress\": {\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"state\": \"<string>\"\n },\n \"customerName\": \"<string>\",\n \"customerTaxId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"transaction": {
"amount": 123,
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"networkRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment": {
"method": {
"type": "external",
"external": {},
"paymentGateway": {
"gateway": "<string>",
"label": "<string>",
"mask": "<string>",
"title": "<string>"
}
},
"price": {
"money": {
"currencyCode": "<string>",
"grossAmount": 123
},
"type": "money"
},
"refundable": true,
"dispute": {
"createDate": "2023-11-07T05:31:56Z"
},
"refunds": {
"money": [
{
"createDate": "2023-11-07T05:31:56Z",
"currencyCode": "<string>",
"grossAmount": 123,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerRefCreatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"initiator": "<string>",
"userCreatedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
}
],
"type": "money"
},
"surcharge": {
"money": {
"amount": 123,
"currencyCode": "<string>",
"percentage": 123,
"rate": 123
},
"type": "money"
}
},
"paymentMethod": {
"type": "<string>",
"label": "<string>"
},
"status": "canceled",
"type": "booking",
"billingAddressBy": "<string>",
"billingAddressTo": "<string>",
"booking": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": {
"netAmount": 123,
"taxAmount": 123
},
"resource": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"deleteDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"membershipRefDeletedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startDate": "2023-11-07T05:31:56Z",
"userDeletedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"company": {
"createDate": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"metadata": {},
"notes": "<string>"
},
"companyRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creditPackage": {
"amount": 123,
"price": {
"netAmount": 123,
"taxAmount": 123
},
"creditsAmount": 123,
"dayPassesAmount": 123
},
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "company",
"logo": {
"key": "<string>",
"url": "<string>"
},
"publicLogoUrl": "<string>",
"title": "<string>",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"customerRefCreatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"customerName": "<string>",
"customerTaxId": "<string>",
"customItem": {
"currencyCode": "<string>",
"description": "<string>",
"tax": {
"enabled": true,
"rate": 1
},
"unitAmount": 123,
"unitQuantity": 123
},
"discounts": [
{
"coupon": {
"amountOff": 123,
"currencyCode": "<string>",
"id": "<string>",
"percentOff": 123,
"productTypes": [
"<string>"
],
"type": "<string>"
},
"promocode": {
"code": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiration": {
"enabled": true,
"date": "2023-11-07T05:31:56Z"
},
"limitByFirstPurchase": true
},
"subscriptionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"errorDescription": "<string>",
"invoice": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"locationAddress": {
"city": "<string>",
"countryCode": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"state": "<string>"
},
"locationName": "<string>",
"locationTaxId": "<string>",
"membershipRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"membershipRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"option": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
},
"quantity": 123
}
]
},
"plan": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"product": {
"type": "booking",
"bookingRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventTicketRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subscriptionRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
},
"receiptPdfUrl": "<string>",
"refund": {
"amount": 123,
"createDate": "2023-11-07T05:31:56Z"
},
"refunds": [
{
"amount": 123,
"createDate": "2023-11-07T05:31:56Z",
"organizationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currencyCode": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"initiator": "<string>",
"membershipRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userCreator": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"ticket": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": {
"netAmount": 123,
"taxAmount": 123
},
"quantity": 123,
"createDate": "2023-11-07T05:31:56Z",
"deleteDate": "2023-11-07T05:31:56Z",
"event": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"startDate": "2023-11-07T05:31:56Z"
},
"membershipRefDeletedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userDeletedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
}
},
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userCreatedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userOwner": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"about": "<string>",
"email": "<string>",
"name": "<string>",
"phoneNumber": "<string>",
"photoUrl": "<string>",
"surname": "<string>"
},
"userRefCreator": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userRefOwner": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"message": "<string>",
"type": "<string>"
}Authorizations
BasicAuthOAuth2
See our authentication documentation for how to authorize your requests
Headers
The id of the network. Required when using bearer token authentication
Body
application/json
ID of the company or user to charge.
Custom item to charge for.
Show child attributes
Show child attributes
Payment details.
Show child attributes
Show child attributes
Customer billing address.
Show child attributes
Show child attributes
Customer legal name.
Customer tax ID.
Response
Created
The created money transaction.
Show child attributes
Show child attributes
Was this page helpful?