Sites

Read Site

GET
/site.json

Retrieves site data.

For more information, see Sites in the product documentation. Specifically, the Clearing Site Data section is relevant to this endpoint.

Relationship invoicing enabled

If the site has Relationship invoicing enabled, additional properties are returned in the response:

"customer_hierarchy_enabled": true,"whopays_enabled": true,"whopays_default_payer": "self"

For more information, see Who Pays & Customer Hierarchy.

Authorization

BasicAuth
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Response Body

application/json

curl -X GET "https://example.com/site.json"
{  "site": {    "id": 0,    "name": "string",    "subdomain": "string",    "currency": "string",    "seller_id": 0,    "non_primary_currencies": [      "string"    ],    "relationship_invoicing_enabled": true,    "schedule_subscription_cancellation_enabled": true,    "customer_hierarchy_enabled": true,    "whopays_enabled": true,    "whopays_default_payer": "string",    "default_payment_collection_method": "string",    "organization_address": {      "street": null,      "line2": null,      "city": null,      "state": null,      "zip": null,      "country": null,      "name": "string",      "phone": "string"    },    "tax_configuration": {      "kind": "custom",      "fully_configured": true,      "destination_address": "shipping_then_billing"    },    "net_terms": {      "default_net_terms": 0,      "automatic_net_terms": 0,      "remittance_net_terms": 0,      "net_terms_on_remittance_signups_enabled": false,      "custom_net_terms_enabled": false    },    "test": true,    "allocation_settings": {      "upgrade_charge": "prorated",      "downgrade_credit": "none",      "accrue_charge": "true"    }  }}