Skip to Content

An import failed

Request Body

application/json
  1. body
id*string

The event's id, also its webhook-id header: deduplicate by it.

Formatuuid
type*"import.failed"
Value in"import.failed"
timestamp*string
Formatdate-time
backfill?true

Present, and true, only on a delivery a backfill replayed (POST /v1/webhook-endpoints/{id}/backfill).

Value intrue
data*

Response Body

Any 2xx within 15 seconds acknowledges it; anything else is retried.

Example Requests
POST/import.failed
Request Body
application/json
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "type": "import.failed",
  "timestamp": "2019-08-24T14:15:22Z",
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "object": "import",
    "country": "ec",
    "environment": "sandbox",
    "business_id": "f59fcbb7-848d-4242-af07-a8bb7e3ab37c",
    "status": "queued",
    "status_transitions": {},
    "files": [
      {
        "name": "string",
        "kind": "xml",
        "size": 0,
        "sha256": "string",
        "ignored_entries": 0
      }
    ],
    "counts": {
      "found": 0,
      "pending": 0,
      "imported": 0,
      "duplicate": 0,
      "received": 0,
      "skipped": 0,
      "failed": 0
    },
    "verification": {
      "sri": 0,
      "listed": 0,
      "signature": 0,
      "unconfirmed": 0
    },
    "currency": "string",
    "sales_total": "string",
    "upgraded": {
      "signature": 0,
      "unconfirmed": 0
    },
    "numbering": [
      {
        "series_id": "0f6582ac-1e7e-41dc-a63a-24fccd074d0c",
        "type": "invoice",
        "establishment": "string",
        "emission_point": "string",
        "highest_imported": 0,
        "highest_reserved": 0,
        "next_number": 0,
        "active": true,
        "created": true
      }
    ],
    "failure": {
      "code": "unreadable_archive",
      "message": "string"
    },
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}