.. _/view-invoice-xml/: /view-invoice-xml ################## .. 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 XML is initiated through :code:`HTTPS GET` request by using :ref:`URLs` specified below. Use :ref:`HMAC-SHA1` for authentication. See :ref:`statuses`. .. _view-invoice-xml_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-xml/ENDPOINTID/RECEIPTID` - :ex:`https://gate.payneteasy.com/paynet/view-invoice-xml/ENDPOINTID/RECEIPTID` Request Example ^^^^^^^^^^^^^^^ .. code-block:: guess POST /paynet/view-invoice-xml/6657/6d0442b3-f4f9-3264-8cfd-f811195b693a 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="1687422393",oauth_nonce="I4FlRMNDFfe",oauth_signature_method="HMAC-SHA1",oauth_signature="sW7XXVhkxXAwE61CLnwCpjxJpD0%3D" Content-Length: 140 Content-Type: application/x-www-form-urlencoded Connection: close oauth_consumer_key=test_merch &oauth_nonce=I4FlRMNDFfe &oauth_signature_method=HMAC-SHA1 &oauth_timestamp=1687422393 &oauth_version=1.0 Success Response Example ^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: none HTTP/1.1 200 Server: server Date: Thu, 22 Jun 2023 08:26:51 GMT Content-Type: text/xml;charset=utf-8 Content-Length: 833 Connection: close X-XSS-Protection: 1 Strict-Transport-Security: max-age=31536000 Strict-Transport-Security: max-age=31536000 swift_local.xslt 22.06.2023 TestBank Lima, Peru Company P. Sherman 42 Wallaby way 1122334455 123IAMS123 John Smith
98102, United States, WA, Seattle, 100 Main st
12063582043 19023384543
1 1 EUR 10 Test Order Description 6657-587 902B4FF5 1
Fail Response Example ^^^^^^^^^^^^^^^^^^^^^ .. code-block:: none HTTP/1.1 404 Server: server Date: Thu, 22 Jun 2023 08:30:18 GMT Content-Type: text/xml;charset=utf-8 Content-Length: 750 Connection: close X-XSS-Protection: 1 Strict-Transport-Security: max-age=31536000 ...

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-xml.html