# Send the refund confirmation again (/api/refunds/send-refund-confirmation)

`POST https://api.comecero.com/api/v1/refunds/{refund_id}/notifications`

Makes the refund confirmation new from the refund as it is stored, with your current template, and sends it now, to the customer or to one `destination` you send. Use it for an refund of any age: a sent notification is kept 120 days, so an old one has nothing left to resend. One notification per active refund confirmation subscription, each listed under the refund. Only a completed refund of more than zero that is not a chargeback has one (`422` otherwise). The same refund cannot be sent again within a minute (`429`). `422` when your account sends no refund confirmation, the customer has no email and none is given, or the send failed. Needs read on refunds and notifications; secret and trusted tokens only.

## Request parameters

### refund_id (path, required)

The refund id.

```json
{
  "type": "string"
}
```

## Request body

### application/json

Fields and constraints (JSON Schema):

```json
{
  "type": "object",
  "title": "refund_confirmation_send_request",
  "properties": {
    "destination": {
      "type": "string",
      "format": "email",
      "description": "One email address to send to instead of the customer's. Leave the body out to send it to the customer."
    }
  }
}
```

Example:

```json
{
  "destination": "john@example.com"
}
```

## Response 200

The notifications made and sent.

### application/json

Fields and constraints (JSON Schema):

```json
{
  "type": "object",
  "title": "refund_confirmation_send_result",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "title": "notification",
        "description": "One email Comecero sent, or will send, to a customer because a notification subscription matched. Notifications are kept for 120 days (15 days in test mode).",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "notification"
            ],
            "description": "Always `notification`."
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "readOnly": true,
            "description": "The URL of this notification in the API. `null` on one sent with `POST /notifications`."
          },
          "notification_id": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true,
            "description": "The notification id. `null` on one sent with `POST /notifications`, which is not saved."
          },
          "test": {
            "type": "boolean",
            "readOnly": true,
            "description": "`true` for a test mode notification."
          },
          "account_id": {
            "type": "string",
            "readOnly": true,
            "description": "The account that sent it."
          },
          "type": {
            "description": "The kind of email. `null` on one sent with `POST /notifications`.",
            "oneOf": [
              {
                "$ref": "#/components/schemas/notification_type"
              },
              {
                "type": "null"
              }
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "email"
            ],
            "description": "How it was sent. Only `email` today."
          },
          "from": {
            "type": [
              "string",
              "null"
            ],
            "description": "The sender address. `notification@comecero.com` unless the subscription names one of your verified addresses."
          },
          "from_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The sender name. Defaults to your public company name."
          },
          "reply_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "The reply-to address. When the subscription sets none and the email goes from Comecero's address, your support email is used."
          },
          "bcc": {
            "type": [
              "string",
              "null"
            ],
            "description": "Addresses that got a blind copy, comma-separated."
          },
          "destination": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who it went to: the customer's email, plus the billing address email when that is different (separated by `;`)."
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "The subject line, after placeholders were filled in."
          },
          "notification_subscription": {
            "description": "The notification subscription that sent it: its URL, or the full object with `expand=notification_subscription`. Left out when the token may not read notification subscriptions.",
            "oneOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "$ref": "#/components/schemas/notification_subscription"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "description": "The customer it was sent to: a URL, or the full object with `expand=customer`. Left out when the token may not read customers.",
            "oneOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "$ref": "#/components/schemas/customer"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "readOnly": true,
            "description": "`queued`: not sent yet (an order confirmation waits here until every license key in the order is assigned). `delivered`: sent. `retry`: the last attempt failed and another is planned. `failed`: no more attempts.",
            "enum": [
              "queued",
              "delivered",
              "retry",
              "failed"
            ]
          },
          "date_created": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "description": "When the notification was made."
          },
          "date_modified": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "description": "When it last changed, for example at its last send attempt."
          },
          "data": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true,
            "description": "The data the template was filled with: the order, payment, customer and account the email is about."
          },
          "body": {
            "type": [
              "string",
              "null"
            ],
            "description": "The HTML that was sent. In a list this holds a short note instead; get the notification by id to read the body."
          },
          "retry_count": {
            "type": "integer",
            "readOnly": true,
            "description": "How many automatic retries were made. Only with `debug=true` on a single notification."
          },
          "date_last_delivery_attempt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "readOnly": true,
            "description": "When it was last tried. Only with `debug=true` on a single notification."
          },
          "date_next_delivery_attempt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "readOnly": true,
            "description": "When the next attempt is planned. Only with `debug=true` on a single notification, and only when one is planned."
          },
          "last_failure_meta": {
            "type": [
              "string",
              "null"
            ],
            "readOnly": true,
            "description": "Why the last attempt failed. Only with `debug=true` on a single notification."
          },
          "formatted": {
            "type": "object",
            "readOnly": true,
            "description": "Dates as display text. Only returned with `formatted=true`.",
            "properties": {
              "date_created": {
                "type": "string"
              },
              "date_modified": {
                "type": "string"
              },
              "date_delivered": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "date_last_delivery_attempt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "date_next_delivery_attempt": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        },
        "example": {
          "object": "notification",
          "url": "https://api.comecero.com/api/v1/notifications/1102611073905NOq2Lx7Pv",
          "notification_id": "1102611073905NOq2Lx7Pv",
          "test": true,
          "account_id": "AB1234",
          "type": "order:confirmation",
          "method": "email",
          "from": "notification@comecero.com",
          "from_name": "Example Shop",
          "reply_to": "support@example.com",
          "bcc": null,
          "destination": "john@example.com",
          "subject": "Your Order Confirmation",
          "notification_subscription": "https://api.comecero.com/api/v1/notification_subscriptions/1102500112233NSd4Kw9Tz",
          "customer": "https://api.comecero.com/api/v1/customers/1102611073801CUa8Hn2Lq",
          "status": "delivered",
          "date_created": "2026-11-07T14:32:12Z",
          "date_modified": "2026-11-07T14:32:14Z",
          "data": {
            "order": {
              "order_id": "7393-GMRFY-954",
              "total": 99.95,
              "currency": "USD"
            }
          },
          "body": "<html><body><h1>Thanks for your order</h1></body></html>"
        }
      }
    }
  }
}
```

Example:

```json
{
  "object": "list",
  "data": [
    {
      "object": "notification",
      "url": "https://api.comecero.com/api/v1/notifications/1102611073905NOq2Lx7Pv",
      "notification_id": "1102611073905NOq2Lx7Pv",
      "test": true,
      "account_id": "AB1234",
      "type": "refund:confirmation",
      "method": "email",
      "from": "notification@comecero.com",
      "from_name": "Example Shop",
      "reply_to": "support@example.com",
      "bcc": null,
      "destination": "john@example.com",
      "subject": "Your Refund Confirmation",
      "customer": "https://api.comecero.com/api/v1/customers/1102611073801CUa8Hn2Lq",
      "status": "delivered",
      "date_created": "2026-12-02T14:32:12Z",
      "date_modified": "2026-12-02T14:32:14Z"
    }
  ]
}
```

## Response 400

Invalid input (type `bad_request`, usually code `invalid_input`). The message names the field or query parameter and why it was refused.

### application/json

Fields and constraints (JSON Schema):

```json
{
  "type": "object",
  "title": "error",
  "description": "Every error response has this body, whatever the status code. Use `status` and `type` for the broad case, `code` for the exact one, and show `message` to a person.",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "title": "error_details",
      "description": "The details of an error: `error` in every error response, and a failed row in a license import receipt.",
      "required": [
        "type",
        "code",
        "message",
        "reference",
        "status",
        "meta"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The broad category. It matches `status`.",
          "enum": [
            "bad_request",
            "invalid_request",
            "unauthorized",
            "transaction_error",
            "forbidden",
            "not_found",
            "conflict",
            "unprocessable",
            "too_many_requests",
            "internal_server_error",
            "external_server_error",
            "service_unavailable",
            "external_server_timeout"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The exact error within its type, for example `invalid_input`, `invalid_token`, `payment_declined`, `insufficient_permissions`, `resource_not_found`, `in_use` or `invalid_state`. New codes may be added, so keep a fallback for each status.",
          "examples": [
            "invalid_input"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "What went wrong and, often, how to fix it. Written for people, in the shopper's language where a translation exists. Do not parse it."
        },
        "reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "A 7-character code (some newer ones are longer) that names the exact check in Comecero that refused the request. The same check always gives the same reference, so it is not unique to your request. Quote it when you contact support.",
          "examples": [
            "qh81SPw"
          ]
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status code of the response.",
          "enum": [
            400,
            401,
            402,
            403,
            404,
            409,
            413,
            422,
            429,
            500,
            502,
            503,
            504
          ]
        },
        "meta": {
          "description": "More detail about the error when there is any, such as the payment that was declined. Usually `null`.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        }
      }
    }
  },
  "example": {
    "error": {
      "type": "not_found",
      "code": "resource_not_found",
      "message": "Event not found: 0059847953278fQmIZHpIYdE does not exist.",
      "reference": "qh81SPw",
      "status": 404,
      "meta": null
    }
  }
}
```

Example:

```json
{
  "error": {
    "type": "bad_request",
    "code": "invalid_input",
    "message": "The value supplied for the url query string parameter 'limit' is invalid. The value must be between 1 and 100 or remove the parameter to use the default.",
    "reference": "2mJgF4F",
    "status": 400,
    "meta": null
  }
}
```

## Response 401

The token is missing, expired or not valid (type `unauthorized`, code `invalid_token`).

### application/json

Fields and constraints (JSON Schema):

```json
{
  "type": "object",
  "title": "error",
  "description": "Every error response has this body, whatever the status code. Use `status` and `type` for the broad case, `code` for the exact one, and show `message` to a person.",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "title": "error_details",
      "description": "The details of an error: `error` in every error response, and a failed row in a license import receipt.",
      "required": [
        "type",
        "code",
        "message",
        "reference",
        "status",
        "meta"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The broad category. It matches `status`.",
          "enum": [
            "bad_request",
            "invalid_request",
            "unauthorized",
            "transaction_error",
            "forbidden",
            "not_found",
            "conflict",
            "unprocessable",
            "too_many_requests",
            "internal_server_error",
            "external_server_error",
            "service_unavailable",
            "external_server_timeout"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The exact error within its type, for example `invalid_input`, `invalid_token`, `payment_declined`, `insufficient_permissions`, `resource_not_found`, `in_use` or `invalid_state`. New codes may be added, so keep a fallback for each status.",
          "examples": [
            "invalid_input"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "What went wrong and, often, how to fix it. Written for people, in the shopper's language where a translation exists. Do not parse it."
        },
        "reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "A 7-character code (some newer ones are longer) that names the exact check in Comecero that refused the request. The same check always gives the same reference, so it is not unique to your request. Quote it when you contact support.",
          "examples": [
            "qh81SPw"
          ]
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status code of the response.",
          "enum": [
            400,
            401,
            402,
            403,
            404,
            409,
            413,
            422,
            429,
            500,
            502,
            503,
            504
          ]
        },
        "meta": {
          "description": "More detail about the error when there is any, such as the payment that was declined. Usually `null`.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        }
      }
    }
  },
  "example": {
    "error": {
      "type": "not_found",
      "code": "resource_not_found",
      "message": "Event not found: 0059847953278fQmIZHpIYdE does not exist.",
      "reference": "qh81SPw",
      "status": 404,
      "meta": null
    }
  }
}
```

Example:

```json
{
  "error": {
    "type": "unauthorized",
    "code": "invalid_token",
    "message": "Authentication failed.",
    "reference": "pre3XcJ",
    "status": 401,
    "meta": null
  }
}
```

## Response 403

The token is valid but may not do this (type `forbidden`, code `insufficient_permissions`). For example a limited token on a route only secret and trusted tokens may call, or a token whose role lacks the permission.

### application/json

Fields and constraints (JSON Schema):

```json
{
  "type": "object",
  "title": "error",
  "description": "Every error response has this body, whatever the status code. Use `status` and `type` for the broad case, `code` for the exact one, and show `message` to a person.",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "title": "error_details",
      "description": "The details of an error: `error` in every error response, and a failed row in a license import receipt.",
      "required": [
        "type",
        "code",
        "message",
        "reference",
        "status",
        "meta"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The broad category. It matches `status`.",
          "enum": [
            "bad_request",
            "invalid_request",
            "unauthorized",
            "transaction_error",
            "forbidden",
            "not_found",
            "conflict",
            "unprocessable",
            "too_many_requests",
            "internal_server_error",
            "external_server_error",
            "service_unavailable",
            "external_server_timeout"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The exact error within its type, for example `invalid_input`, `invalid_token`, `payment_declined`, `insufficient_permissions`, `resource_not_found`, `in_use` or `invalid_state`. New codes may be added, so keep a fallback for each status.",
          "examples": [
            "invalid_input"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "What went wrong and, often, how to fix it. Written for people, in the shopper's language where a translation exists. Do not parse it."
        },
        "reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "A 7-character code (some newer ones are longer) that names the exact check in Comecero that refused the request. The same check always gives the same reference, so it is not unique to your request. Quote it when you contact support.",
          "examples": [
            "qh81SPw"
          ]
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status code of the response.",
          "enum": [
            400,
            401,
            402,
            403,
            404,
            409,
            413,
            422,
            429,
            500,
            502,
            503,
            504
          ]
        },
        "meta": {
          "description": "More detail about the error when there is any, such as the payment that was declined. Usually `null`.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        }
      }
    }
  },
  "example": {
    "error": {
      "type": "not_found",
      "code": "resource_not_found",
      "message": "Event not found: 0059847953278fQmIZHpIYdE does not exist.",
      "reference": "qh81SPw",
      "status": 404,
      "meta": null
    }
  }
}
```

Example:

```json
{
  "error": {
    "type": "forbidden",
    "code": "insufficient_permissions",
    "message": "The supplied bearer token does not have permission to execute the provided HTTP method on the given resource.",
    "reference": "AxkklBY",
    "status": 403,
    "meta": null
  }
}
```

## Response 404

No such object (type `not_found`, code `resource_not_found`). It may belong to another account, or to the other mode: a test token cannot see live objects and a live token cannot see test ones. The message says so when the object exists in the other mode.

### application/json

Fields and constraints (JSON Schema):

```json
{
  "type": "object",
  "title": "error",
  "description": "Every error response has this body, whatever the status code. Use `status` and `type` for the broad case, `code` for the exact one, and show `message` to a person.",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "title": "error_details",
      "description": "The details of an error: `error` in every error response, and a failed row in a license import receipt.",
      "required": [
        "type",
        "code",
        "message",
        "reference",
        "status",
        "meta"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The broad category. It matches `status`.",
          "enum": [
            "bad_request",
            "invalid_request",
            "unauthorized",
            "transaction_error",
            "forbidden",
            "not_found",
            "conflict",
            "unprocessable",
            "too_many_requests",
            "internal_server_error",
            "external_server_error",
            "service_unavailable",
            "external_server_timeout"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The exact error within its type, for example `invalid_input`, `invalid_token`, `payment_declined`, `insufficient_permissions`, `resource_not_found`, `in_use` or `invalid_state`. New codes may be added, so keep a fallback for each status.",
          "examples": [
            "invalid_input"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "What went wrong and, often, how to fix it. Written for people, in the shopper's language where a translation exists. Do not parse it."
        },
        "reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "A 7-character code (some newer ones are longer) that names the exact check in Comecero that refused the request. The same check always gives the same reference, so it is not unique to your request. Quote it when you contact support.",
          "examples": [
            "qh81SPw"
          ]
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status code of the response.",
          "enum": [
            400,
            401,
            402,
            403,
            404,
            409,
            413,
            422,
            429,
            500,
            502,
            503,
            504
          ]
        },
        "meta": {
          "description": "More detail about the error when there is any, such as the payment that was declined. Usually `null`.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        }
      }
    }
  },
  "example": {
    "error": {
      "type": "not_found",
      "code": "resource_not_found",
      "message": "Event not found: 0059847953278fQmIZHpIYdE does not exist.",
      "reference": "qh81SPw",
      "status": 404,
      "meta": null
    }
  }
}
```

Example:

```json
{
  "error": {
    "type": "not_found",
    "code": "resource_not_found",
    "message": "Event not found: 0059847953278fQmIZHpIYdE does not exist.",
    "reference": "qh81SPw",
    "status": 404,
    "meta": null
  }
}
```

## Response 422

The request is valid but cannot be done now (type `unprocessable`, code such as `invalid_state` or `account_limit_exceeded`). The message says why.

### application/json

Fields and constraints (JSON Schema):

```json
{
  "type": "object",
  "title": "error",
  "description": "Every error response has this body, whatever the status code. Use `status` and `type` for the broad case, `code` for the exact one, and show `message` to a person.",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "title": "error_details",
      "description": "The details of an error: `error` in every error response, and a failed row in a license import receipt.",
      "required": [
        "type",
        "code",
        "message",
        "reference",
        "status",
        "meta"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The broad category. It matches `status`.",
          "enum": [
            "bad_request",
            "invalid_request",
            "unauthorized",
            "transaction_error",
            "forbidden",
            "not_found",
            "conflict",
            "unprocessable",
            "too_many_requests",
            "internal_server_error",
            "external_server_error",
            "service_unavailable",
            "external_server_timeout"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The exact error within its type, for example `invalid_input`, `invalid_token`, `payment_declined`, `insufficient_permissions`, `resource_not_found`, `in_use` or `invalid_state`. New codes may be added, so keep a fallback for each status.",
          "examples": [
            "invalid_input"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "What went wrong and, often, how to fix it. Written for people, in the shopper's language where a translation exists. Do not parse it."
        },
        "reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "A 7-character code (some newer ones are longer) that names the exact check in Comecero that refused the request. The same check always gives the same reference, so it is not unique to your request. Quote it when you contact support.",
          "examples": [
            "qh81SPw"
          ]
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status code of the response.",
          "enum": [
            400,
            401,
            402,
            403,
            404,
            409,
            413,
            422,
            429,
            500,
            502,
            503,
            504
          ]
        },
        "meta": {
          "description": "More detail about the error when there is any, such as the payment that was declined. Usually `null`.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        }
      }
    }
  },
  "example": {
    "error": {
      "type": "not_found",
      "code": "resource_not_found",
      "message": "Event not found: 0059847953278fQmIZHpIYdE does not exist.",
      "reference": "qh81SPw",
      "status": 404,
      "meta": null
    }
  }
}
```

Example:

```json
{
  "error": {
    "type": "unprocessable",
    "code": "invalid_state",
    "message": "This notification cannot be sent because a product in the order is awaiting a license. It will be automatically sent when the license is obtained.",
    "reference": "ofWoxxY",
    "status": 422,
    "meta": null
  }
}
```

## Response 429

Too soon: the same request was made a moment ago (type `too_many_requests`, code `request_limit_exceeded`). Wait, then try again. The message says how long.

### application/json

Fields and constraints (JSON Schema):

```json
{
  "type": "object",
  "title": "error",
  "description": "Every error response has this body, whatever the status code. Use `status` and `type` for the broad case, `code` for the exact one, and show `message` to a person.",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "title": "error_details",
      "description": "The details of an error: `error` in every error response, and a failed row in a license import receipt.",
      "required": [
        "type",
        "code",
        "message",
        "reference",
        "status",
        "meta"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The broad category. It matches `status`.",
          "enum": [
            "bad_request",
            "invalid_request",
            "unauthorized",
            "transaction_error",
            "forbidden",
            "not_found",
            "conflict",
            "unprocessable",
            "too_many_requests",
            "internal_server_error",
            "external_server_error",
            "service_unavailable",
            "external_server_timeout"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The exact error within its type, for example `invalid_input`, `invalid_token`, `payment_declined`, `insufficient_permissions`, `resource_not_found`, `in_use` or `invalid_state`. New codes may be added, so keep a fallback for each status.",
          "examples": [
            "invalid_input"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "What went wrong and, often, how to fix it. Written for people, in the shopper's language where a translation exists. Do not parse it."
        },
        "reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "A 7-character code (some newer ones are longer) that names the exact check in Comecero that refused the request. The same check always gives the same reference, so it is not unique to your request. Quote it when you contact support.",
          "examples": [
            "qh81SPw"
          ]
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status code of the response.",
          "enum": [
            400,
            401,
            402,
            403,
            404,
            409,
            413,
            422,
            429,
            500,
            502,
            503,
            504
          ]
        },
        "meta": {
          "description": "More detail about the error when there is any, such as the payment that was declined. Usually `null`.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        }
      }
    }
  },
  "example": {
    "error": {
      "type": "not_found",
      "code": "resource_not_found",
      "message": "Event not found: 0059847953278fQmIZHpIYdE does not exist.",
      "reference": "qh81SPw",
      "status": 404,
      "meta": null
    }
  }
}
```

Example:

```json
{
  "error": {
    "type": "too_many_requests",
    "code": "request_limit_exceeded",
    "message": "This confirmation was just sent. Wait a minute before sending it again.",
    "reference": "SAgnWt1",
    "status": 429,
    "meta": null
  }
}
```

## Response 500

Something failed on our side (type `internal_server_error`). Reads are safe to retry. Before you retry a write, get the object to check whether the first attempt took effect.

### application/json

Fields and constraints (JSON Schema):

```json
{
  "type": "object",
  "title": "error",
  "description": "Every error response has this body, whatever the status code. Use `status` and `type` for the broad case, `code` for the exact one, and show `message` to a person.",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "title": "error_details",
      "description": "The details of an error: `error` in every error response, and a failed row in a license import receipt.",
      "required": [
        "type",
        "code",
        "message",
        "reference",
        "status",
        "meta"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The broad category. It matches `status`.",
          "enum": [
            "bad_request",
            "invalid_request",
            "unauthorized",
            "transaction_error",
            "forbidden",
            "not_found",
            "conflict",
            "unprocessable",
            "too_many_requests",
            "internal_server_error",
            "external_server_error",
            "service_unavailable",
            "external_server_timeout"
          ]
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "description": "The exact error within its type, for example `invalid_input`, `invalid_token`, `payment_declined`, `insufficient_permissions`, `resource_not_found`, `in_use` or `invalid_state`. New codes may be added, so keep a fallback for each status.",
          "examples": [
            "invalid_input"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "What went wrong and, often, how to fix it. Written for people, in the shopper's language where a translation exists. Do not parse it."
        },
        "reference": {
          "type": [
            "string",
            "null"
          ],
          "description": "A 7-character code (some newer ones are longer) that names the exact check in Comecero that refused the request. The same check always gives the same reference, so it is not unique to your request. Quote it when you contact support.",
          "examples": [
            "qh81SPw"
          ]
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status code of the response.",
          "enum": [
            400,
            401,
            402,
            403,
            404,
            409,
            413,
            422,
            429,
            500,
            502,
            503,
            504
          ]
        },
        "meta": {
          "description": "More detail about the error when there is any, such as the payment that was declined. Usually `null`.",
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        }
      }
    }
  },
  "example": {
    "error": {
      "type": "not_found",
      "code": "resource_not_found",
      "message": "Event not found: 0059847953278fQmIZHpIYdE does not exist.",
      "reference": "qh81SPw",
      "status": 404,
      "meta": null
    }
  }
}
```

Example:

```json
{
  "error": {
    "type": "internal_server_error",
    "code": "500",
    "message": "An error occured while processing your request. Your request cannot be completed. If the problem persists, please contact support.",
    "reference": "UjXiEpm",
    "status": 500,
    "meta": null
  }
}
```

Resolve remaining `$ref` pointers in /openapi.json.