.. _/view-invoice/: /view-invoice ############## .. contents:: :local: .. role:: ex .. role:: code Introduction ^^^^^^^^^^^^ To start Swift transaction use :ref:`/api/v2/auth-cash/` and get :ex:`receipt-id` in :ref:`order status response`. Swift invoice in PDF is initiated through :code:`HTTPS GET` request by using :ref:`URLs` specified below. Use :ref:`HMAC-SHA1` for authentication. See :ref:`statuses`. .. _view-invoice_url: API URLs ^^^^^^^^ .. note:: | The path in API URL should not be hardcoded, as it may be changed in future. .. list-table:: :widths: 50, 50 :header-rows: 1 :class: longtable * - Integration - Production * - :ex:`https://sandbox.payneteasy.com/paynet/view-invoice/ENDPOINTID/RECEIPTID` - :ex:`https://gate.payneteasy.com/paynet/view-invoice/ENDPOINTID/RECEIPTID` Request Example ^^^^^^^^^^^^^^^ .. code-block:: guess POST /paynet/view-invoice/6657/a5e8f278-8936-3286-aabb-c8960a5d04f4 HTTP/1.1 Host: sandbox.payneteasy.com User-Agent: curl/7.83.0 Accept: */* Authorization: OAuth realm="",oauth_version="1.0",oauth_consumer_key="test_merch",oauth_timestamp="1687518156",oauth_nonce="EozU8eCdyBO",oauth_signature_method="HMAC-SHA1",oauth_signature="bNQNq2CLuGoOrf5eji3ffj96bC0%3D" Content-Length: 140 Content-Type: application/x-www-form-urlencoded Connection: close oauth_consumer_key=test_merch &oauth_nonce=EozU8eCdyBO &oauth_signature_method=HMAC-SHA1 &oauth_timestamp=1687518156 &oauth_version=1.0 Success Response Example ^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: none HTTP/1.1 200 Server: server Date: Fri, 23 Jun 2023 11:03:05 GMT Content-Type: application/pdf;charset=utf-8 Connection: close X-XSS-Protection: 1 Strict-Transport-Security: max-age=31536000 Strict-Transport-Security: max-age=31536000 Content-Length: 34929 ... *PDF content* Fail Response Example ^^^^^^^^^^^^^^^^^^^^^ .. code-block:: none HTTP/1.1 200 Server: server Date: Fri, 23 Jun 2023 12:23:15 GMT Content-Type: application/pdf;charset=utf-8 Connection: close X-XSS-Protection: 1 Strict-Transport-Security: max-age=31536000 Strict-Transport-Security: max-age=31536000 Content-Length: 34929 ...

Sorry, that page doesn't exist!

Postman Collection ^^^^^^^^^^^^^^^^^^ .. raw:: html :file: ../_static/Postman/Postman_view-invoice.html Request Builder ^^^^^^^^^^^^^^^ .. raw:: html :file: ../_static/examples/view-invoice.html