Get billing account
Get a billing account by ID.
Path Parameters
org_id string required
id string required
ID of the billing account to get
Query Parameters
with_payment_methods boolean
expand string[]
Responses
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
billing_account object
id string
org_id string
name string
email string
phone string
address object
line1 string
line2 string
city string
state string
postal_code string
country string
provider_id string
provider string
currency string
state string
tax_data object[]
type tax type like "vat", "gst", "sales_tax" or if it's
provider specific us_ein, uk_vat, in_gst, etc
id unique identifier provided by the tax agency
metadata object
created_at date-time
updated_at date-time
organization object
id string
name string
title string
metadata object
created_at date-time
The time the organization was created.
updated_at date-time
The time the organization was last updated.
state string
The state of the organization (enabled or disabled).
avatar string
The base64 encoded image string of the organization avatar. Should be less than 2MB.
payment_methods object[]
id string
customer_id string
provider_id string
type string
card_brand string
card_last4 string
card_expiry_month int64
card_expiry_year int64
metadata object
created_at date-time
{
"billing_account": {
"id": "string",
"org_id": "string",
"name": "string",
"email": "string",
"phone": "string",
"address": {
"line1": "string",
"line2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"country": "string"
},
"provider_id": "string",
"provider": "string",
"currency": "string",
"state": "string",
"tax_data": [
{
"type": "string",
"id": "string"
}
],
"metadata": {},
"created_at": "2024-07-13T09:54:48.251Z",
"updated_at": "2024-07-13T09:54:48.251Z",
"organization": {
"id": "string",
"name": "string",
"title": "string",
"metadata": {},
"created_at": "2023-06-07T05:39:56.961Z",
"updated_at": "2023-06-07T05:39:56.961Z",
"state": "enabled",
"avatar": "string"
}
},
"payment_methods": [
{
"id": "string",
"customer_id": "string",
"provider_id": "string",
"type": "string",
"card_brand": "string",
"card_last4": "string",
"card_expiry_month": "string",
"card_expiry_year": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.251Z"
}
]
}
Bad Request - The request was malformed or contained invalid parameters.
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...