Skip to main content
POST
/
tokens
/
imports
/
{id}
/
abort
Abort an import
curl --request POST \
  --url https://sandbox.hellgate.io/tokens/imports/{id}/abort \
  --header 'X-API-Key: <api-key>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "finished_at": "2023-11-07T05:31:56Z",
  "provider": "stripe",
  "status": "preparing",
  "stripe": {
    "api_key": "[REDACTED]"
  },
  "attemts": 123,
  "successes": 123,
  "failures": 123
}

Authorizations

X-API-Key
string
header
required

Path Parameters

id
string<uuid>
required

The ID of the import.

Response

Success response

id
string<uuid>

The ID of the import.

created_at
string<date-time>

The timestamp when the import was requested.

finished_at
string<date-time>

The timestamp when the import was finished.

It is only available if the import was successfully finished or was aborted.

provider
enum<string>
Available options:
stripe
status
enum<string>
Available options:
preparing,
running,
finished,
aborted
Example:

"preparing"

stripe
object
attemts
integer

The amount of attempts to import a token.

successes
integer

The amount of successful imports.

failures
integer

The amount of failures while importing a token.