Online cash registers

Introduction

On July 1, 2017, the requirements under the new edition of Law 54-FZ on the mandatory use of online cash registers for online stores came into force. Amendments to the law oblige online stores to use special cash register equipment to send fiscal data to the Federal Tax Service (FTS). To ensure compliance with 54-FZ, we offer you the following eCommerce solutions (online cash registers) that are already supported by Payment gateway and can be enabled on Payment gateway:

Online cash registers interact with OFDs (operators of fiscal data), who connect online cash registers to their data processing centers, encrypt this data, systematize it and pass it to the tax authorities in the format they require. Concluding a contract with the OFD is mandatory for entrepreneurs using cash register equipment.

To enable an online cash register, contact your bank manager.

Fiscalization scenario

Interaction scheme for fiscalization.

sequenceDiagram participant OS as Online store participant B as Bank participant OC as Online Cash Register participant OFD as OFD participant FNS as Federal Tax Service participant C as Customer autonumber OS->>+B: Request with receipt data B->>+OC: Data for receipt OC->>+OFD: Data about the sale OFD->>+C: Receipt and receipt verification OFD->>+FNS: Data about payment OFD-->>-OC: Receipt registration OC-->>-B: Confirmation of
receipt generation B-->>-OS: Confirmation of
successful payment
  1. After a successful sale, the online store sends a request to the Bank with the data for the receipt.
  2. The bank passes the receipt data to the online cash register.
  3. The online cash register passes data about the sale to OFD.
  4. OFD generates a receipt, transfers it to the Federal Tax Service, and also sends it to the Customer.
  5. OFD registers the receipt in the online cash register.
  6. The online cash register sends confirmation of the receipt generation to the Bank.
  7. The bank sends confirmation of successful payment to the online store.

Second receipt registration

Starting from July 1, 2019, online cash register owners must generate receipts to offset and refund prepayments. Thus, if the customer has received goods or services not at the moment of payment, it is necessary to form two receipts: the first receipt - at the moment of payment, the second one - at the moment of shipping.

Payment gateway allows you to register the second receipt (closing receipt) without creating a new order using the closeOfdReceipt request. With that, the following conditions should be met:

Conditions for using the functionality

For using this functionality, the following conditions must be met:

Scenario of second receipt registration via API

sequenceDiagram participant OS as Online Store participant PG as Payment gateway participant OFD as OFD autonumber OS->>PG: Order registration request PG-->>OS: Response PG-> OFD: Data exchange OS->>PG: Closing receipt request PG-> OFD: Data exchange PG-->>OS: Confirmation
  1. Merchant sends order registration request register.do to Payment gateway, passing the data of the first receipt (on registration, Merchant should pass the paymentMethod = 1 attribute in orderBundle.cartItems.items[].itemAttributes.attributes["name" == "paymentMethod" ] ).
  2. Payment gateway sends the response for the order registration request to Merchant.
  3. Payment gateway exchanges data with OFD.
  4. Merchant sends the closing receipt request closeOfdReceipt. It is necessary to duplicate the fields used on the order registration and pass the paymentMethod = 1 attribute in orderBundle.cartItems.items[].itemAttributes.attributes["name" == "paymentMethod"] on registration.
  5. Payment gateway exchanges data with OFD.
  6. Payment gateway sends the confirmation of receiving the information (the response for closing receipt request) to Merchant.

Version of the fiscal document format

Some specific request parameters of the API are supported depending on the used version of the format of fiscal documents (FFD).

The format of fiscal documents is a set of details established by law for the exchange of data on fiscal transactions. The FFD determines the composition, format and order of details that must be displayed in all fiscal documents.

Until recently, version 1.05 was used, currently version 1.2 is used In requests where the set of used parameters has changed due to the change in FFD version, it is clearly indicated with which version this or that parameter is compatible. No indications means the parameter is supported by all FFD versions.

You can change the FFD version in personal account settings.

Categories:
eCommerce
Categories
Search results