API

Create or update billing info for customer

Creates or updates the billing information for this customer

POST/v1/hq/companies/{company_id}/subscriptions/billing_info

Authorization

BearerTokenAuth

AuthorizationBearer <token>

The Noona HQ API uses Bearer token for authentication.

Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.

Authorization: Bearer your-token

In: header

Path Parameters

company_id*string

Company ID

Example"dwawd8awudawd"

Query Parameters

select?array<string>
expand?array<string>

Request Body

application/json

first_name?string
Example"John"
last_name?string
Example"Smith"
email?string
Formatemail
phone?string
company?string
Example"Best Company"
business_registration_id?string
Example"1234567890"
vat_number?string
Example"1234567890"
billing_method?string

The billing method. "card" for regular card-based subscriptions (default), "invoice" for invoice-based subscriptions (only available for Icelandic companies).

Default"card"
Formatenum
Value in"card" | "invoice"
payment_intent_id?string
billing_address?

Response Body

application/json

curl -X POST "https://api.noona.is/v1/hq/companies/dwawd8awudawd/subscriptions/billing_info" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "7awdXwZoedakjad37a",
  "first_name": "John",
  "last_name": "Smith",
  "email": "[email protected]",
  "phone": "string",
  "company": "Best Company",
  "business_registration_id": "1234567890",
  "vat_number": "1234567890",
  "vat_number_status": "valid",
  "billing_method": "card",
  "payment_intent_id": "string",
  "primary_payment_source_id": "string",
  "card": {
    "first_name": "string",
    "last_name": "string",
    "status": "valid",
    "last4": "string",
    "card_type": "visa",
    "expiry_month": 1,
    "expiry_year": 0
  },
  "billing_address": {
    "first_name": "John",
    "last_name": "Smith",
    "email": "[email protected]",
    "phone": "string",
    "company": "Best Company",
    "street": "1600 Pennsylvania Avenue NW",
    "city": "Washington D.C.",
    "country": "US",
    "postal_code": "20500"
  }
}
Empty
Empty