API reference

Production access is closed · 37 operations

Retry invoice issuance

POST/api/v1/payments/{id}/invoice/retry

Retries invoice issuance for a paid payment using the saved billing details.

A 200 response may contain accepted or failed. A 202 response means sending. Check the response status before retrying.

Required scope invoices:retry

Jump to the example

Parameters

NameLocationTypeRequiredDescription
idpathstringYesmin. characters 1 · max. characters 120

Request body

Schema object
JSON Schema
{
  "type": "object",
  "additionalProperties": false
}

Responses

200 Invoice accepted or issuance failed.
application/json
Schema InvoiceRetryResult
NameTypeRequiredDescription
status"accepted" | "sending" | "failed"Yes"accepted" | "sending" | "failed"
invoiceNumberstring | nullYes—
ksefNumberstring | nullYes—
downloadPathstring | nullYes—
JSON Schema
{
  "$ref": "#/components/schemas/InvoiceRetryResult"
}
202 Invoice issuance is in progress.
application/json
Schema InvoiceRetryResult
NameTypeRequiredDescription
status"accepted" | "sending" | "failed"Yes"accepted" | "sending" | "failed"
invoiceNumberstring | nullYes—
ksefNumberstring | nullYes—
downloadPathstring | nullYes—
JSON Schema
{
  "$ref": "#/components/schemas/InvoiceRetryResult"
}
403 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
404 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
409 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
429 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
503 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
Other API errors Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
401 A valid API key is required.

Handle errors and rate limits ↗

Related schemas

InvoiceRetryResult
{
  "type": "object",
  "required": [
    "status",
    "invoiceNumber",
    "ksefNumber",
    "downloadPath"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "accepted",
        "sending",
        "failed"
      ]
    },
    "invoiceNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "ksefNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "downloadPath": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}