Чеки

Exchange

Створення чека обміну валют, доступно тільки для ПРРО відповідного типу.

post/api/v1/receipts/currency-exchange

Request

  • Base URL: https://api.checkbox.ua (the document declares no server; this is the origin it was published from)
  • URL: https://api.checkbox.ua/api/v1/receipts/currency-exchange
  • Auth: HTTP bearer

Headers

X-Client-Namestring

Назва клієнту або сервісу що інтегрується з API, наприклад 'My Custom SDK'

X-Client-Versionstring

Номер версії клієнту що інтегрується з API, наприклад 'v1.2.5'

Request body

idstring uuid
type'BUY' | 'SELL' | 'CONVERT' required

An enumeration.

reversal_receipt_idstring uuid
reversalboolean
client_infostring
headerstring
footerstring
commissionnumber
fiscal_codestring
fiscal_datestring date-time
rounding_mode'ROUND_10' | 'ROUND_50'

An enumeration.

Response

Successful Response

idstring uuid required
serialinteger required
status'CREATED' | 'DONE' | 'ERROR' | 'CANCELLATION' | 'CANCELLED' required

An enumeration.

total_suminteger required

Застаріле поле, використовуйте 'total_sum'

total_paymentinteger required
total_restinteger required

Застаріле поле, використовуйте 'total_rest'

round_suminteger
fiscal_codestring
fiscal_datestring date-time
delivered_atstring date-time
created_atstring date-time required
updated_atstring date-time
is_created_offlineboolean
is_sent_dpsboolean
fiscal_api_type'FSCO_EC' | 'EVPEZ' | 'EVPEZ_EXTERNAL'

An enumeration.

type'SELL' | 'RETURN' | 'SERVICE_IN' | 'SERVICE_OUT' | 'SERVICE_CURRENCY' | 'CURRENCY_EXCHANGE' | 'PAWNSHOP' | 'CASH_WITHDRAWAL' required

An enumeration.

order_idstring uuid
headerstring
footerstring
barcodestring
contextobject
sent_dps_atstring date-time
tax_urlstring
related_receipt_idstring uuid
technical_returnboolean
stock_codestring
pre_payment_relation_idstring
rounding_mode'ROUND_10' | 'ROUND_50'

An enumeration.

is_testboolean
shift_idstring uuid required
transaction_idstring uuid
control_numberstring
cashier_idstring uuid
cash_register_idstring uuid
deliveryobject
processed_counterinteger
organization_idstring uuid

Example response

{
  "payments": [
    {
      "type": "CASH",
      "value": 4242
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.