Счета

Создание счета

Request

  • Base URL
    https://api.yookassa.ru/v3
  • Auth
    HTTP basic

Headers

Idempotence-Keystring required

Request body

expires_atstring date-time

Срок действия счета.

descriptionstring
metadataMetadata

Любые дополнительные данные, которые нужны вам для работы (например, номер заказа). Передаются в виде набора пар «ключ-значение» и возвращаются в ответе от ЮKassa. Ограничения: максимум 16 ключей, имя ключа не больше 32 символов, значение ключа не больше 512 символов, тип данных — строка в формате UTF-8.

Response

The request has succeeded.

idstring required
status'pending' | 'succeeded' | 'canceled' required
created_atstring date-time required

Время создания счета.

expires_atstring date-time

Срок действия счета.

descriptionstring
metadataMetadata

Любые дополнительные данные, которые нужны вам для работы (например, номер заказа). Передаются в виде набора пар «ключ-значение» и возвращаются в ответе от ЮKassa. Ограничения: максимум 16 ключей, имя ключа не больше 32 символов, значение ключа не больше 512 символов, тип данных — строка в формате UTF-8.

Changes

    • breaking

      added the new required request property

    • breaking

      added to the /////// request property allOf list

    • breaking

      added to the /////// request property allOf list

    • breaking

      added to the request property allOf list

    • breaking

      the request property / became not nullable

    • breaking

      removed the enum value AMD of the request property ///////

    • breaking

      removed the enum value AMD of the request property ///////

    • breaking

      removed the enum value AZN of the request property ///////

    • breaking

      removed the enum value AZN of the request property ///////

    • breaking

      removed the enum value BYN of the request property ///////

    • breaking

      removed the enum value BYN of the request property ///////

    • breaking

      removed the enum value EUR of the request property ///////

    • breaking

      removed the enum value EUR of the request property ///////

    • breaking

      removed the enum value INR of the request property ///////

    • breaking

      removed the enum value INR of the request property ///////

    • breaking

      removed the enum value KZT of the request property ///////

    • breaking

      removed the enum value KZT of the request property ///////

    • breaking

      removed the enum value MDL of the request property ///////

    • breaking

      removed the enum value MDL of the request property ///////

    • breaking

      removed the enum value RUB of the request property ///////

    • breaking

      removed the enum value RUB of the request property ///////

    • breaking

      removed the enum value TRY of the request property ///////

    • breaking

      removed the enum value TRY of the request property ///////

    • breaking

      removed the enum value UAH of the request property ///////

    • breaking

      removed the enum value UAH of the request property ///////

    • breaking

      removed the enum value USD of the request property ///////

    • breaking

      removed the enum value USD of the request property ///////

    • breaking

      removed the enum value UZS of the request property ///////

    • breaking

      removed the enum value UZS of the request property ///////

    • breaking

      the /////// request property type changed from string to no type

    • breaking

      the /////// request property type changed from string to no type

    • breaking

      the // request property type changed from number to integer, and format from no format to int32

    • breaking

      the request property type changed from object to no type

    • breaking

      the //// response property's maxLength was unset from 128 for the response status

    • breaking

      the response property's maxLength was unset from 39 for the response status

    • breaking

      the response property's minLength was decreased from 39 to 0 for the response status

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      the /////// response's property type changed from string to no type for status

    • breaking

      the /////// response's property type changed from string to no type for status

    • breaking

      the response's property type changed from no type to string, and format from no format to date-time for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • warning

      removed subschema #2 from the // request property allOf list

    • warning

      removed subschema #2 from the // request property allOf list

    • warning

      removed subschema #2 from the request property allOf list

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • warning

      removed the request property /

    • info

      api operation id Invoices_create was added

    • info

      the endpoint scheme security BasicAuth was removed from the API

    • info

      removed the pattern [0-9a-zA-Z+-_.]{1,64} from the header request parameter Idempotence-Key

    • info

      the request property became optional

    • info

      the request property became optional

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      added to the /////// response property allOf list for the response status

    • info

      added to the /////// response property allOf list for the response status

    • info

      added to the response property allOf list for the response status

    • info

      added to the response property allOf list for the response status

    • info

      added to the response property allOf list for the response status

    • info

      added to the response property allOf list for the response status

    • info

      removed subschema #2 from the response property allOf list for the response status

    • info

      removed subschema #2 from the // response property allOf list for the response status

    • info

      removed subschema #2 from the // response property allOf list for the response status

    • info

      removed subschema #2 from the response property allOf list for the response status

    • info

      added to the response property anyOf list for the response status

    • info

      removed discriminator from response property for the response status

    • info

      removed the AMD enum value from the /////// response property for the response status

    • info

      removed the AMD enum value from the /////// response property for the response status

    • info

      removed the AZN enum value from the /////// response property for the response status

    • info

      removed the AZN enum value from the /////// response property for the response status

    • info

      removed the BYN enum value from the /////// response property for the response status

    • info

      removed the BYN enum value from the /////// response property for the response status

    • info

      removed the EUR enum value from the /////// response property for the response status

    • info

      removed the EUR enum value from the /////// response property for the response status

    • info

      removed the INR enum value from the /////// response property for the response status

    • info

      removed the INR enum value from the /////// response property for the response status

    • info

      removed the KZT enum value from the /////// response property for the response status

    • info

      removed the KZT enum value from the /////// response property for the response status

    • info

      removed the MDL enum value from the /////// response property for the response status

    • info

      removed the MDL enum value from the /////// response property for the response status

    • info

      removed the RUB enum value from the /////// response property for the response status

    • info

      removed the RUB enum value from the /////// response property for the response status

    • info

      removed the TRY enum value from the /////// response property for the response status

    • info

      removed the TRY enum value from the /////// response property for the response status

    • info

      removed the UAH enum value from the /////// response property for the response status

    • info

      removed the UAH enum value from the /////// response property for the response status

    • info

      removed the USD enum value from the /////// response property for the response status

    • info

      removed the USD enum value from the /////// response property for the response status

    • info

      removed the UZS enum value from the /////// response property for the response status

    • info

      removed the UZS enum value from the /////// response property for the response status

    • info

      removed the canceled enum value from the response property for the response status

    • info

      removed the error enum value from the //// response property for the response status

    • info

      removed the error enum value from the //// response property for the response status

    • info

      removed the error enum value from the //// response property for the response status

    • info

      removed the error enum value from the //// response property for the response status

    • info

      removed the pending enum value from the response property for the response status

    • info

      removed the succeeded enum value from the response property for the response status

    • info

      removed from the response property oneOf list for the response status