Сделки

Создание сделки

Request

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

Headers

Idempotence-Keystring required

Request body

type'safe_deal' required
fee_moment'payment_succeeded' | 'deal_closed' required
metadataMetadata

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

descriptionstring

Response

The request has succeeded.

type'safe_deal' required

Changes

    • 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 deal_closed of the request property

    • breaking

      removed the enum value payment_succeeded of the request property

    • breaking

      removed the enum value safe_deal 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 response's body type changed from no type to object for status

    • breaking

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

    • warning

      removed subschema #2 from the request property allOf list

    • info

      api operation id Deals_create was added

    • info

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

    • info

      the request property default value payment_succeeded was removed

    • 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

      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 the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

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

    • info

      removed discriminator from /// 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 error enum value from the //// response property for the response status

    • info

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

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status