You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Steps

  1. Application for connection
    All information required for connection — in one application
  2. Access to the test environment
    Get access to the test environment and integrate under the supervision of S7 technicians
  3. Hello world!
    Set your software and make your first request!
  4. Running your tests
    Test the S7 Agent API to prevent future problems
  5. Signing of the contract of EDS
    Sign the contract electronically
  6. Access to production environment
    Get access to the production environment and complete integration
  7. Maintenance
    Use the all of capabilities of the S7 Agent API and stay tuned for a new features!

Roles

RoleDescriptionTarget period
Integratora developer, who creates a solution for agents and proceed integration with the S7 Agent API7 working days

Step 1: Application for connection (responsibility of the Agent)

  1. Contact to manager of your region and request for an application form at vm@s7.ru

  2. Fill in the application form with a link to your portal and send it to S7 manager. In the contact data of a technical specialist, an integrator representative must be specified.
    In the contact data of a technical specialist must be specified:

    -Technical specialist\Integrator representative (In one person)
    -Agent representative

  3. S7 checks your form and initiates registration in our systems, including JIRA for communication with our technical support.
  4. To register in jira, you must provide the contact information of the representative Agent. Receive JIRA account credentials from S7 and follow steps for connection to JIRA.
  5. Proceed by the link provided in email to set password and log in to Jira
  6. Go to Projects and find Agent API Support (AAS)

Step 2: Access to the test environment

Integrator

Agent with Integrator's solution

1. Check your environment for OpenSSL and install additional software (required to create a request for SSL certificate):

For Windows/Solaris

Download the last binary version of OpenSSL at https://www.openssl.org/community/binaries.html and install software

For GNU/Linux
sudo apt install openssl
For MacOS

No action is required — already included in OS


2. Use command line (as administrator) to create private key:


openssl genrsa -out ${clientkey}.pem 2048

You have to replace ${clientkey} into understandable name using your local naming policies

3. Create request for SSL certificate:

openssl req -new -key ${clientkey}.pem -out ${clientcsr}.pem

Replace ${clientcsr} to the name used on previous step

You have to replace ${clientkey} and ${clientcsr} into understandable name using your local naming policies

4. Fill in the details of the request for SSL certificate:

Mandatory:

  • Country Name (2 letter code)
  • State or Province Name
  • Locality Name (eg, city)
  • Organization Name (eg, company)
  • Organizational Unit Name (eg, section)
  • Common Name (your name or server's hostname)

No need to specify:

  • A challenge password
  • An optional company name

5. Create a new task with the request of SSL certificate (request_csr) by JIRA

Attach to the task created request for SSL certificate (request_csr)
Check “Bin” (OpenSSL) folder for those files.

6. Receive credentials for test environment from our technical support:

  • a SSL certificate (*.crt file)
  • personal credentials for basic authentication (login and password)
  • test access parameters for requests (XML block Party)
  • test Client ID and Agent ID for testing shopping with 3D agreement

7. Import SSL certificate and create key store file:

openssl pkcs12 -export -in ${clientcert}.pem -inkey ${clientkey}.pem -out ${client}.p12 -name "${name}"

Export Password – password for key store file which will be requested while importing into test software

Responsibility of Integrator

Agent do not issue a certificate for the test environment

Step 3: Hello world! 

Integrator

Agent with Integrator's solution

1. If you are using test software build in browser you have to import keys (or check your software's documentation):

For Mozilla Firefox

Menu Preferences Advanced ViewCertificates Your Certificates Import Choose created key store file (*.p12) on previous step

For Google Chrome

Settings → Advanced Settings → HTTPS/SSL → Import → Choose created key store file (*.p12) on previous step

2. For a better experience, we prefer to use SoapUI for testing:

Download the last binary version of SoapUI at https://www.soapui.org/downloads/soapui.html and install software

3. Open SoapUI and create a new SOAP project

  1. SoapUI → File → Preferences → New SOAP project
  2. Check available versions at test environment at the top of the page
  3. Copy relevant WSDL URL
  4. Past in form, fill a project name and press OK

4. Assign created key store file to the project

  1. Project Show project view WS-Security Configurations Keystores;
  2. Click on "+" (Adds a new Keystore to this configuration)
  3. Set a path to p12-file and input the password

(warning) Do not use global settings (SoapUI File Preferences SSL Setting) to save ability of using both environments without any additional setting changes

5. Create new request and set basic authentication

  1. Open tab "Auth" under request textarea
  2. Select "Authorization" = "Basic"
  3. Input Username and Password (your received them from our technical support on previous step)

You have to set it for all your requests

6. Set assigned keystore

  1. Go to tab "TestRequest Properties" under the projects tree
  2. Select imported p12-file in "SSL Keystore" parameter

You have to set it for all your requests

7. Set the endpoint of test environment at the top of request window

8. Fill in the request textarea by an example described below and send it!

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.


9. If you have no results, try to check your connection to exclude the case of incorrect credentials before you contact to our technical support by JIRA.

  1. Import key store file into the browser (see steps to set up browser above)
  2. Go to any URL from Environment section via browser

Responsibility of Integrator

All tests executes by a personal certificate of integrator

Step 4: Running your tests

Integrator

Agent with Integrator's solution

1. Choose one of available versions at test environment at the top of the page

2. Use header's parameters for selected version (If the parameter is not defined, the oldest version will be used by default):

3. Read the API's documentation

4. Try to execute the user story with the simplest flow and then other scenarios that you are interested in

  • We are using actual schedule for flights but you may feel free to create bookings and issue tickets (please, note that some minor discrepancies between test and production results are still exist)
  • No time limits for testing

5. Give us a feedback through your manager or our technical support by JIRA

6. Ready to production environment?

6.1. Check available scenarios and choose which you're going to use at production environment

6.2. Notify our technical support by JIRA for final testing under the supervision of our technologists

Issue template
  • Summary: Execution of test scenarios // API01-17-000000-0
    • You can find the application number in received email at the first step
  • Description:
    • Agent code: agent
    • Agent name: OOO «Агент»
    • Website: www.site.ru
    • Application: https://requests.s7.ru/api01/17-000000-0
    • Version: v0.45
    • Scenarios:
      • Basic scenario
        • User Story: OW + 1xADT + Transit + S7 flight
        • User Story: RT + 1xADT 1xCHD 1xINF + Transfer + Business Mix + S7 flight
        • User Story: RT + 1xADT + 1CHD + Transfer + Codeshare + BusinessCabin (S7 + CodeShare)
        • User Story: OW + 2xADT 1xCHD 1xINF + Transfer + SPA
      • 3D agreement scenario
        • User Story: OW + 1xADT + Direct + S7 flight

6.3. Proceed test scenarios and attach all created PNRs and ETK numbers as a comment at the issue

6.4. Assign the issue to the "tech_s7" and keep

(warning) Keep all conversation with our technical support and technologists only in comments at the issue
(warning) If you faced any problems, create a new issue in JIRA and link with the issue for final testing

6.5. Once all tests will be passed you can proceed to signing of the contract of EDS

Responsibility of Integrator

Because Agent is going to use an Integrator's solution, we immediately proceed to signing of the contract of EDS and skip final testing under the supervision of our technologists to grant access to production environment

Step 5: Signing of the contract of EDS

Integrator

Agent with Integrator's solution

Responsibility of Agent

Agent will notify you once all the documents have been completed and he will be granted access to the production environment 

1. Contact with your account manager to sign a contract

2. Create a new validator (without transactions history) for our GDS to have ability to execute all basic shopping scenarios

3. If you are interesting in discounts for corporate client you have to enter into 3D agreement between Agent, S7 and corporate client

As a result Agent ID and Client ID will be defined in 3D agreement. They are required to execute scenarios with 3D Agreement

4. Once all the documents have been completed, your account manager will notify you when you can proceed to the production environment

Step 6: Access to production environment

Integrator

Agent with Integrator's solution

The integrator is not allowed access to the prod environment.
An integrator prepares an implementation for a specific agent.

Responsibility of Integrator

Notify Integrator once all the documents have been completed and you will be granted access to the production environment 

Attention!

If at the time of ticket issue in the production environment, you get the error:

<ns2:Errors>
         <Error Type="Host Error Response" Code="101" Tag="FETA">TKT092 TICKET ALLOCATION STOPPED-CTC CARRIER</Error>
</ns2:Errors>

It is necessary to ask your manager to increase the validator's stoc.

Caution!

The issued reference is canceled if it has not been used for 60 days.
You will receive the following error:

<ns3:Errors>
          <ns3:Error Type="101" ShortText="032 - SI" Code="101"/>
</ns3:Errors>

In this case, сontact to S7 API support with used Agent credentials in Party tag

Step 7: Maintenance

Integrator

Agent with Integrator's solution

1. Choose one of available and tested versions at production environment at the top of the page

2. Use header's parameters for tested selected version (If the parameter is not defined, the default version will be executed):

3. Try to use read operations to check the correctness of your first bookings (read operation) and issued tickets (retrieveTicket operation)

Avoid making mistakes in the production environment due to the penalties specified in the signed contract!
If you are still not sure, don't hesitate to reach our technical support by JIRA

4. Don't forget to check our updates!

  • Release Notes for new versions of S7 Agent API
  • FAQ for most common issues you can be faced with

Despite the fact that the integrator was developing solution, you are responsible for all mistakes at the production environment

Check the correctness of your first bookings and issued tickets to avoid making mistakes due to the penalties specified in the signed contract!

If you still have any questions, try to find an answer using our FAQ and documentation or ask for technical support by JIRA or email at api.support@s7.ru

  • No labels