Get import
GEThttps://euwest.api.elasticpath.com/v2/subscriptions/imports/:import_uuid
Retrieves the import job for the specified ID.
Request
Path Parameters
import_uuid UUIDrequired
The unique identifier of the import.
Responses
- 200
- 400
- 404
- 500
Success. The import is returned.
- application/json
- Schema
- Example (from schema)
Schema
data Import
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "subscription_import",
"attributes": {
"external_ref": "abc123",
"status": "pending"
},
"meta": {
"owner": "store",
"timestamps": {
"updated_at": "2017-01-10T11:41:19.244842Z",
"created_at": "2017-01-10T11:41:19.244842Z",
"started_at": "2017-01-10T11:41:19.244842Z",
"finished_at": "2017-01-10T11:41:19.244842Z"
},
"records": {
"uploaded": {
"subscription_product": 50000,
"subscription_plan": 50000,
"subscription_subscriber": 50000,
"subscription_offering": 50000,
"subscription": 50000
},
"imported": {
"subscription_product": 45090,
"subscription_plan": 45090,
"subscription_subscriber": 45090,
"subscription_offering": 45090,
"subscription": 45090
}
}
}
}
}
Bad request. The request failed validation.
- application/json
- Schema
- Example (from schema)
- missing-name
Schema
errors Error[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred.",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Validation Error",
"status": "400",
"detail": "data.attributes.name: \"name\" is required"
}
]
}
Not found. The requested entity does not exist.
- application/json
- Schema
- Example (from schema)
- not-found
Schema
errors Error[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred.",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Not Found",
"status": "404",
"detail": "No plan found"
}
]
}
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
errors Error[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred.",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Internal Server Error",
"status": "500"
}
]
}
Authorization: http
name: BearerTokentype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://euwest.api.elasticpath.com/v2/subscriptions/imports/:import_uuid' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear