Create Manual Billing Charge
curl --request POST \
--url https://api.anchorage-staging.com/v2/subaccounts/billing/charges \
--header 'Api-Access-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"charges": [
{
"amount": "1000.00",
"subaccountId": "ec761b5e-fd2c-497a-a9a0-f8738ac97bdf"
}
],
"idempotentId": "<string>"
}
'import requests
url = "https://api.anchorage-staging.com/v2/subaccounts/billing/charges"
payload = {
"charges": [
{
"amount": "1000.00",
"subaccountId": "ec761b5e-fd2c-497a-a9a0-f8738ac97bdf"
}
],
"idempotentId": "<string>"
}
headers = {
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
charges: [{amount: '1000.00', subaccountId: 'ec761b5e-fd2c-497a-a9a0-f8738ac97bdf'}],
idempotentId: '<string>'
})
};
fetch('https://api.anchorage-staging.com/v2/subaccounts/billing/charges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"ids": [
"<string>"
]
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Create Manual Billing Charge
Permissions required: Subaccount
Create Manual Billing Charge
POST
/
subaccounts
/
billing
/
charges
Create Manual Billing Charge
curl --request POST \
--url https://api.anchorage-staging.com/v2/subaccounts/billing/charges \
--header 'Api-Access-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"charges": [
{
"amount": "1000.00",
"subaccountId": "ec761b5e-fd2c-497a-a9a0-f8738ac97bdf"
}
],
"idempotentId": "<string>"
}
'import requests
url = "https://api.anchorage-staging.com/v2/subaccounts/billing/charges"
payload = {
"charges": [
{
"amount": "1000.00",
"subaccountId": "ec761b5e-fd2c-497a-a9a0-f8738ac97bdf"
}
],
"idempotentId": "<string>"
}
headers = {
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
charges: [{amount: '1000.00', subaccountId: 'ec761b5e-fd2c-497a-a9a0-f8738ac97bdf'}],
idempotentId: '<string>'
})
};
fetch('https://api.anchorage-staging.com/v2/subaccounts/billing/charges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"ids": [
"<string>"
]
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Authorizations
An API key associated with a security role
Body
application/json
Response
Ids of the created billing charges
Show child attributes
Show child attributes
Was this page helpful?
⌘I