• Organization
  • Customer
  • Product
  • Entitlement
Cloud
Customer Service Management / Reference / REST API

Customer

Postman Collection
OpenAPI
GET

Get customer detail fields

Returns all customer detail fields, including their configuration. You can use the get customer API to get details for a particular customer.

Permissions required: Administer Jira global permission.

read:customer.detail-field:jira-service-management

Request

This request has no parameters.

Responses

Returns list of detail fields.

application/json

DetailFieldsWithConfiguration
GET/api/v1/customer/details
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/api/v1/customer/details' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 { "results": [ { "name": "Region", "type": { "name": "SELECT", "options": [ "AU", "EU", "US" ] }, "configuration": { "position": 1 } } ] }
POST

Create customer detail field

Creates a customer detail field. You can create up to 50 detail fields.

Permissions required: Administer Jira global permission.

write:customer.detail-field:jira-service-management

Request

Request bodyapplication/json

The structure of the detail field to create.

name

string

Required
type

DetailFieldType

Required

Responses

Returns the newly created detail field.

application/json

CreateDetailFieldResponse
POST/api/v1/customer/details
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 curl --request POST \ --url 'https://your-domain.atlassian.net/api/v1/customer/details' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "Region", "type": { "name": "SELECT", "options": [ "AU", "EU", "US" ] } }'
200Response
1 2 3 4 5 6 7 8 9 10 11 { "name": "Region", "type": { "name": "SELECT", "options": [ "AU", "EU", "US" ] } }
PUT

Edit customer detail field

Renames a customer detail field and/or changes the available options for SELECT or MULTISELECT fields.

Permissions required: Administer Jira global permission.

write:customer.detail-field:jira-service-management

Request

Path parameters

fieldName

string

Required

Request bodyapplication/json

name

string

Required
options

array<string>

Responses

Returns the edited customer detail field.

application/json

EditDetailFieldResponse
PUT/api/v1/customer/details/{fieldName}
1 2 3 4 5 6 7 8 9 10 11 12 13 curl --request PUT \ --url 'https://your-domain.atlassian.net/api/v1/customer/details/{fieldName}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "Region", "options": [ "AU", "EU", "US" ] }'
200Response
1 2 3 4 5 6 7 8 9 10 11 { "name": "Region", "type": { "name": "SELECT", "options": [ "AU", "EU", "US" ] } }
DEL

Delete customer detail field

Deletes a customer detail field and all values stored for it for all customers. You cannot restore a detail field once it has been deleted.

Permissions required: Administer Jira global permission.

delete:customer.detail-field:jira-service-management

Request

Path parameters

fieldName

string

Required

Responses

Returns no response if the customer detail field is deleted.

DEL/api/v1/customer/details/{fieldName}
1 2 3 curl --request DELETE \ --url 'https://your-domain.atlassian.net/api/v1/customer/details/{fieldName}' \ --header 'Authorization: Bearer <access_token>'
GET

Get customer

Returns a customer, including their details. You can get entitlements for a customer using the get customer entitlements API.

Permissions required: Jira Service Management agent.

read:customer:jira-service-management
,
read:customer.detail:jira-service-management

Request

Path parameters

customerId

string

Required

Responses

Returns the requested customer.

application/json

Customer
GET/api/v1/customer/{customerId}
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/api/v1/customer/{customerId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 { "id": "2a927c94-363f-4977-a0d6-9477d535f329", "name": "John Doe", "details": [ { "id": "321", "name": "Region", "type": { "name": "SELECT", "options": [ "AU", "EU", "US" ] }, "values": [ "EU" ], "configuration": { "position": 1 } } ], "organizations": [ { "id": "123", "name": "Atlassian" } ] }
PUT

Set customer detail

Permissions required: Jira Service Management agent.

write:customer.detail:jira-service-management

Request

Path parameters

customerId

string

Required

Query parameters

fieldName

string

Required

Request bodyapplication/json

values

array<string>

Responses

Returns the updated field.

application/json

UpdateDetailFieldResponse
PUT/api/v1/customer/{customerId}/details
1 2 3 4 5 6 7 8 9 10 curl --request PUT \ --url 'https://your-domain.atlassian.net/api/v1/customer/{customerId}/details?fieldName=Region' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "values": [ "EU" ] }'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 { "id": "321", "name": "Region", "type": { "name": "SELECT", "options": [ "AU", "EU", "US" ] }, "values": [ "EU" ] }
GET

Get customer entitlements

Returns a list of the customer's entitlements, including entitlements inherited by any organizations the customer is in, along with their details.

Permissions required: Jira Service Management agent.

read:customer:entitlement:jira-service-management

Request

Path parameters

customerId

string

Required

Query parameters

product

string

Responses

Returns a list of entitlements.

application/json

array<Entitlement>

GET/api/v1/customer/{customerId}/entitlement
1 2 3 4 curl --request GET \ --url 'https://your-domain.atlassian.net/api/v1/customer/{customerId}/entitlement' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [ { "id": "3858a61a-d337-42e6-993e-e13e1c366d4f", "product": { "id": "3858a61a-d337-42e6-993e-e13e1c366d4f", "name": "Acme Widget" }, "entitledEntity": { "id": "123", "type": "CUSTOMER" }, "details": [ { "id": "321", "name": "Region", "type": { "name": "SELECT" }, "values": [ "EU" ], "configuration": {} } ] } ]
POST

Create customer entitlement

Permissions required: Jira Service Management agent.

write:customer:entitlement:jira-service-management

Request

Path parameters

customerId

string

Required

Request bodyapplication/json

The ID of the associated product.

productId

string

Required

Responses

Returns the created entitlement.

application/json

Entitlement
POST/api/v1/customer/{customerId}/entitlement
1 2 3 4 5 6 7 8 curl --request POST \ --url 'https://your-domain.atlassian.net/api/v1/customer/{customerId}/entitlement' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "productId": "3858a61a-d337-42e6-993e-e13e1c366d4f" }'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 { "id": "3858a61a-d337-42e6-993e-e13e1c366d4f", "product": { "id": "3858a61a-d337-42e6-993e-e13e1c366d4f", "name": "Acme Widget" }, "entitledEntity": { "id": "123", "type": "CUSTOMER" }, "details": [ { "id": "321", "name": "Region", "type": { "name": "SELECT", "options": [ "AU", "EU", "US" ] }, "values": [ "EU" ], "configuration": { "position": 1 } } ] }

Rate this page: