Caution
- The Partner API is available only to partners who manage customers.
- It is not available for regular tenants.
- The Partner API (to be deprecated) will be phased out in the future.
- For information on the API operations to be deprecated and where to migrate them, see the description for each operation.
The Partner API helps you manage tenant information for your customers in the Partner Console.
To use the Partner API, you need an access token that you can get by authenticating with a user account or a service account.
The API scopes are partner and partner.read.
You can add the following two types of customers.
Adds a new customer that has recently contracted with the partner to use the LINE WORKS platform.
To verify whether you can use a domain or group name, use the following API operation.
| HTTP request | Description |
|---|---|
| POST /partners/customers/verify-domain | Verify a domain name |
Adds a customer.
You can add new customer information using the following API operation.
| HTTP request | Description |
|---|---|
| POST /partners/customers | Add a customer |
For domains other that .by-works.com, you need to verify DNS registration information and then domain ownership (activate the customer) after DNS settings. Use the following API operations.
| HTTP request | Description |
|---|---|
| GET /partners/customers/{domainId}/upgrade-domain | Get a domain to upgrade |
| POST /partners/customers/{domainId}/activate | Activate a customer |
Caution
- If the customer uses the Mail service on the LINE WORKS Advanced plan, verify the MX record settings in the customer's LINE WORKS Admin.
Transfers Online Direct customers already using the LINE WORKS platform to the partner.
You can transfer Online Direct customers using the following API operations.
| HTTP request | Description |
|---|---|
| GET /partners/potential-customers/{domain} | Get an Online Direct customer |
| POST /partners/potential-customers/{domain}/transfer | Transfer an Online Direct customer to the partner |
You can manage customer information using the following API operations.
| HTTP request | Description |
|---|---|
| GET /partners/customers | Get customers |
| GET /partners/customers/{domainId} | Get a customer |
| PUT /partners/customers/{domainId} | Update a customer |
| PATCH /partners/customers/{domainId} | Update part of a customer |
You can get customer usage information, set the maximum number of users, and schedule a cancellation, using the following API operations.
| HTTP Request | Description |
|---|---|
| GET /partners/customers/{domainId}/usage-status | Get usage status |
| PATCH /partners/customers/{domainId}/usage-status | Update part of usage status |
You can manage a scheduled task to set the maximum number of users for the customer, using the following API operations.
| HTTP Request | Description |
|---|---|
| POST /partners/customers/{domainId}/usage-status/renewal | Add a scheduled task to change usage status |
| PATCH /partners/customers/{domainId}/usage-status/renewal | Update a scheduled task to change usage status |
| DELETE /partners/customers/{domainId}/usage-status/renewal | Delete a scheduled task to change usage status |
Caution
- You can check the scheduled task to set the maximum number of users for the customer, using Get usage status.
Changes a group name to a domain name.
For customers using the LINE WORKS Advanced plan (including the Trial version), their group name must be changed to a domain name.
Verify whether a domain name is available, using the following API operation.
| HTTP request | Description |
|---|---|
| POST /partners/customers/verify-domain | Verify a domain name |
For domains other than .by-works.com, you need to add a domain for upgrade in advance.
You can add a domain using the following API operations.
| HTTP Request | Description |
|---|---|
| POST /partners/customers/{domainId}/upgrade-domain | Add a domain for upgrade |
| GET /partners/customers/{domainId}/upgrade-domain | Get a domain to upgrade |
| DELETE /partners/customers/{domainId}/upgrade-domain | Delete a domain to upgrade |
After adding a domain, set up DNS.
To change a group name to a domain name, use the following API operation.
| HTTP Request | Description |
|---|---|
| POST /partners/customers/ {domainId} /change-domain | Change a group name to a domain name |
Caution
- If the customer uses the Mail service on the LINE WORKS Advanced plan, verify the MX record settings in the customer's LINE WORKS Admin.
You can check customer subscriptions using the following API operations.
| HTTP Request | Description |
|---|---|
| GET /partners/customers/{domainId}/subscriptions | Get subscriptions |
| GET /partners/customers/{domainId}/subscriptions/{subscriptionId} | Get a subscription |
You can update subscriptions.
There are 4 types to apply updated subscriptions.
You can apply subscription updates immediately.What you can apply immediately is as follows:
You can find more details including available API operations in the following sections.
You can schedule an application for a paid subscription by specifying the start date of use.
You need to apply for a Free or Trial subscription immediately.
| HTTP request | Description |
|---|---|
| POST /partners/customers/{domainId}/subscriptions/pre-orders | Add a scheduled task to apply for a subscription |
| GET /partners/customers/{domainId}/subscriptions/pre-orders | Get scheduled tasks to apply for a subscription |
| PATCH /partners/customers/{domainId}/subscriptions/pre-orders/{preOrderId} | Update a scheduled task to apply for a subscription |
| DELETE /partners/customers/{domainId}/subscriptions/pre-orders/{preOrderId} | Delete a scheduled task to apply for a subscription |
You can schedule an update for the following by specifying the scheduled date.
Use the following API operations.
| HTTP Request | Description |
|---|---|
| POST /partners/customers/{domainId}/subscriptions/{subscriptionId}/reservation | Add a scheduled task for a subscription |
| GET /partners/customers/{domainId}/subscriptions/{subscriptionId}/reservation | Get a scheduled task for a subscription |
| PATCH /partners/customers/{domainId}/subscriptions/{subscriptionId}/reservation | Update a scheduled task for a subscription |
| DELETE /partners/customers/{domainId}/subscriptions/{subscriptionId}/reservation | Delete a scheduled task for a subscription |
※ For the API operations used to update a scheduled task for an option, see ■ Manage options.
You can apply changes at the next renewal of a subscription.
What you can apply at subscription renewal is as follows:
Use the following API operations.
| HTTP request | Description |
|---|---|
| PATCH /partners/customers/{domainId}/subscriptions/{subscriptionId}/renewal | Update subscription renewal |
| GET /partners/customers/{domainId}/subscriptions/{subscriptionId}/renewal | Get subscription renewal |
You can update a subscription in the following three ways:
You can add a subscription using the following API operation. | HTTP Request | Description | |---|---| |POST /partners/customers/{domainId}/subscriptions| Add a subscription |
To schedule its application, see Schedule an application.
To convert a Free or Trial subscription to a paid one (apply immediately), use the following API operation.
| HTTP request | Description |
|---|---|
| POST /partners/customers/{domainId}/subscriptions/{subscriptionId}/paid-service | Convert a subscription to paid |
To schedule its application, see Schedule an update.
You can upgrade a subscription (apply immediately) using the following API operation.
| HTTP request | Description |
|---|---|
| POST /partners/customers/{domainId}/subscriptions/{subscriptionId}/upgrade | Upgrade a subscription |
To upgrade a subscription at renewal, see Apply at renewal.
You can change the number of licenses for a subscription.
Caution
To change the maximum number of users, you need to check the customer usage status.
You can add licenses (apply immediately) using the following API operation.
| HTTP request | Description |
|---|---|
| POST /partners/customers/{domainId}/subscriptions/{subscriptionId}/add-license-count | Add licenses |
To schedule adding licenses, see Schedule an update.
To apply changing the number of licenses at renewal, see Apply at renewal.
You can cancel a subscription (apply immediately) using the following API operation.
| HTTP request | Description |
|---|---|
| DELETE /partners/customers/{domainId}/subscriptions/{subscriptionId} | Cancel a subscription |
You can manage options.
You can get, add, delete (apply immediately), upgrade options, or increase the quantity of options using the following API operations.
| HTTP request | Description |
|---|---|
| POST /partners/customers/{domainId}/option-products | Add an option |
| GET /partners/customers/{domainId}/option-products | Get options |
| DELETE /partners/customers/{domainId}/option-products/{optionProductId} | Cancel an option |
| POST /partners/customers/{domainId}/option-products/{optionProductId}/upgrade | Upgrade an option |
| PATCH /partners/customers/{domainId}/option-products/{optionProductId}/add-quantity | Add option quantity |
To schedule its application, use the following API operations.
| HTTP request | Description |
|---|---|
| POST /partners/customers/{domainId}/option-product-orders | Add scheduled tasks for options |
| GET /partners/customers/{domainId}/option-product-orders | Get scheduled tasks for options |
| GET /partners/customers/{domainId}/option-product-orders/{optionProductId} | Get the scheduled task for an option |
| PATCH /partners/customers/{domainId}/option-product-orders/{optionProductId} | Update a scheduled task for an option |
| DELETE /partners/customers/{domainId}/option-product-orders/{optionProductId} | Delete a scheduled task for an option |
To downgrade an option or reduce option quantity, use the following API operations.
| HTTP request | Description |
|---|---|
| GET /partners/customers/{domainId}/option-products/{optionProductId}/renewal | Get option renewal |
| PATCH /partners/customers/{domainId}/option-products/{optionProductId}/renewal | Update option renewal |
You can get the usage status of options using the following API operation.
| HTTP request | Description |
|---|---|
| GET /partners/customers/{domainId}/option-product-usages | Get option usage list |
You can cancel a customer’s membership for LINE WORKS.
You can cancel a customer’s membership using the following API operation.
| HTTP request | Description |
|---|---|
| DELETE /partners/customers/{domainId} | Delete a customer |
NAVER WORKS platform cancellation reservations use partial updates of usage information.
You can check customer usage and invoices.
Use the following API operations.
| HTTP request | Description |
|---|---|
| GET /partners/customers/{domainId}/usages | Get customer usage information |
| GET /partners/invoices | Get invoices |
| GET /partners/invoice-details | Get invoice details |