SK SKYVVA Documentation

How to Generate SKYVVA API Metadata for Interface API V3

1. Overview

The Generate Metadata feature in SKYVVA allows users to generate API metadata files for external systems based on an existing SKYVVA Interface configuration.

The generated metadata defines the API endpoints, request parameters, and business data structures required for external systems to communicate with SKYVVA and exchange data with Salesforce.

For Interface API V3, SKYVVA supports JSON Schema, Swagger 2.0, and OpenAPI 3.0 metadata formats.

In this guide, Postman is used as an example external API client to demonstrate how to import generated metadata and send Account and Contact data to Salesforce.

image

2. Why Generate SKYVVA API Metadata?

The purpose of generating SKYVVA API metadata is to provide external systems with the API definitions required to communicate with SKYVVA.

The metadata is generated based on the existing Interface and its configured Message Type.

Benefits include:

Note: Metadata generation creates an API definition file. Business data is processed only when an external system sends a request to the SKYVVA API.

3. Integration Processing Flow

Metadata Generation:

SKYVVA Interface API V3 → Generate API Metadata → External System

Data Processing:

External System (Postman in this example) → SKYVVA V3 REST API → SKYVVA Inbound Interface → Salesforce

4. Prerequisites

5. Generate SKYVVA API Metadata for Interface API V3

Step 1: Select the Interface

  1. Navigate to the Integrations tab in SKYVVA.
  2. Open the Integration Generate_SKYVVA_API.
  3. Select the Interfaces tab.
  4. Select the checkbox next to AccountMessageType_Inb_V3.
  5. Click Generate MetaData.
image

Expected Result: The Generate Metadata wizard opens for the selected Interface.

Figure 1: Select the Interface API V3 and click Generate MetaData.

Step 2: Choose the Application Type

  1. Select SKYVVA API.
  2. Click Next.

Expected Result: The metadata configuration screen is displayed.

Step 3: Configure the Metadata

Select the following configuration:

FieldValue
Choose a format FileOpenAPI 3.0
Choose an API nameV3/Integrate

Click Generate.

image

Expected Result: SKYVVA generates the OpenAPI 3.0 metadata for the selected Interface.

Figure 2: Configure the metadata format and API endpoint.

Step 4: Download the Generated Metadata File

The metadata file is automatically downloaded through the browser.

Example file:

AccountMessageType_Inb_V3_OpenAPI 3.0.json

Expected Result: The generated metadata file is available for use by compatible external systems.

Figure 3: Download the generated metadata file.

6. Understand the Generated Metadata Structure

The generated business payload structures are based on the Message Type assigned to the selected Interface.

Users can view the source structure in the SKYVVA Mapping Tool.

Parent Object: My_Account

Child Object: My_Contact

image

Expected Result: The generated metadata reflects the configured Message Type fields and parent-child structure.

Figure 4: View the Message Type structure in the Mapping Tool.

7. Import and View the Generated API Structure in Postman

Step 5: Import the Metadata into Postman

  1. Open Postman.
  2. Click Import.
  3. Select the generated OpenAPI 3.0 JSON file.
  4. Complete the import.
  5. Open the imported SKYVVA V3 REST API collection.

Expected Result: The API definition is successfully imported into Postman.

image

Step 6: View the Automatically Generated Business Payloads

After importing the generated OpenAPI 3.0 metadata into Postman, users can view the CSV, XML, and JSON business payload examples that SKYVVA has already generated based on the configured Message Type.

The imported API structure contains the following request examples:

SKYVVA V3 REST API
└── V3
    └── integrate
        └── POST /V3/integrate
            ├── CSV business payload
            ├── XML business payload
            └── JSON business payload

Each business payload example is automatically generated and available in Postman. Users do not need to create the payload structure manually.

Generated Business PayloadDescription
CSV business payloadProvides a generated CSV request structure based on the Message Type fields.
XML business payloadProvides a generated XML request structure based on the Message Type.
JSON business payloadProvides a generated JSON request structure based on the Message Type, including parent and child fields.

Follow these steps:

  1. Expand V3 → integrate in Postman.
  2. Open POST /V3/integrate.
  3. View the generated CSV, XML, and JSON business payload examples.
  4. Select the required business payload example.
  5. Open Body to review the generated request structure.

1. CSV Business Payload

Select CSV business payload in Postman to view the generated CSV request structure.

{
  "dtoRequestBody": {
    "csvHasNoHeader": false,
    "csvSeparator": "comma",
    "responsePayloadFormat": "json",
    "payloadFormat": "csv",
    "mode": "Synchronous",
    "iinterface": "AccountMessageType_Inb_V3",
    "integration": "a0c9M00000G9qhbQAB",
    "payload": "City,Country,CustomerID,CustomerName,CustomerNumber,ContactName,Email,FirstName,LastName\n,,,,,,,,"
  }
}

The payload field contains the CSV column headers based on the configured Message Type.

Note: The \n represents a new line separating the CSV header from the data row. The CSV example contains only the root fields.

Here is example Payload for testing

{
  "dtoRequestBody": {
    "csvHasNoHeader": false,
    "csvSeparator": "comma",
    "responsePayloadFormat": "json",
    "payloadFormat": "csv",
    "mode": "Synchronous",
    "iinterface": "AccountMessageType_Inb_V3",
    "integration": "a0c9M00000G9qhbQAB",
    "payload": "City,Country,CustomerID,CustomerName,CustomerNumber,ContactName,Email,FirstName,LastName\nPhnom Penh,Cambodia,C001,SKYVVA Technology,10001,Sok Dara,sok.dara@example.com,Sok,Dara\nSiem Reap,Cambodia,C002,ABC Company,10002,Chan Vanna,chan.vanna@example.com,Chan,Vanna"
  }
}

Figure 6: Automatically generated CSV business payload in Postman.

2. XML Business Payload

Select XML business payload in Postman to view the generated XML request structure.

{
  "dtoRequestBody": {
    "responsePayloadFormat": "json",
    "payloadFormat": "xml",
    "mode": "Synchronous",
    "iinterface": "AccountMessageType_Inb_V3",
    "integration": "a0c9M00000G9qhbQAB",
    "payload": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><My_Account><City></City><Country></Country><CustomerID></CustomerID><CustomerName></CustomerName><CustomerNumber></CustomerNumber><My_Contact><ContactName></ContactName><Email></Email><FirstName></FirstName><LastName></LastName></My_Contact></My_Account>"
  }
}

The payload field contains the XML structure with the parent object My_Account and nested child object My_Contact.

Here is example Payload for testing

{
  "dtoRequestBody": {
    "responsePayloadFormat": "json",
    "payloadFormat": "xml",
    "mode": "Synchronous",
    "iinterface": "AccountMessageType_Inb_V3",
    "integration": "a0c9M00000G9qhbQAB",
    "payload": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><My_Account><City>Phnom Penh</City><Country>Cambodia</Country><CustomerID>C001</CustomerID><CustomerName>SKYVVA Technology</CustomerName><CustomerNumber>10001</CustomerNumber><My_Contact><ContactName>Sok Dara</ContactName><Email>sok.dara@example.com</Email><FirstName>Sok</FirstName><LastName>Dara</LastName></My_Contact></My_Account>"
  }
}

Figure 7: Automatically generated XML business payload in Postman.

3. JSON Business Payload

Select JSON business payload in Postman to view the generated JSON request structure.

{
  "dtoRequestBody": {
    "responsePayloadFormat": "json",
    "payloadFormat": "json",
    "mode": "Synchronous",
    "iinterface": "AccountMessageType_Inb_V3",
    "integration": "a0c9M00000G9qhbQAB",
    "payload": "{\"CustomerNumber\":\"\",\"CustomerName\":\"\",\"CustomerID\":\"\",\"Country\":\"\",\"City\":\"\",\"My_Contact\":{\"LastName\":\"\",\"FirstName\":\"\",\"Email\":\"\",\"ContactName\":\"\"}}"
  }
}

The payload field contains the generated JSON structure, including the Account fields and nested My_Contact object.

Expected Result:

For this demonstration, the JSON business payload is selected to send Account and Contact data to Salesforce.

Figure 5: View the automatically generated CSV, XML, and JSON business payload examples in Postman.

Step 7: View the Generated JSON Request Structure

Select the generated JSON business payload example.

Example:

{
  "dtoRequestBody": {
    "responsePayloadFormat": "json",
    "payloadFormat": "json",
    "mode": "Synchronous",
    "iinterface": "AccountMessageType_Inb_V3",
    "integration": "a0c9M00000G9qhbQAB",
    "payload": "{\"CustomerNumber\":\"\",\"CustomerName\":\"\",\"CustomerID\":\"\",\"Country\":\"\",\"City\":\"\",\"My_Contact\":{\"LastName\":\"\",\"FirstName\":\"\",\"Email\":\"\",\"ContactName\":\"\"}}"
  }
}

Expected Result: The generated JSON request displays the SKYVVA API parameters and the Account and Contact fields defined in the Message Type.

8. Send Data from Postman to Salesforce

Step 8: Configure the API Request

In Postman, open the generated JSON business payload request and verify:

SettingValue
HTTP MethodPOST
API Endpoint/services/apexrest/skyvvasolutions/V3/integrate
AuthorizationBearer Token
Content-Typeapplication/json
Request Bodyraw → JSON

Use the correct Salesforce org URL and valid OAuth access token.

Step 9: Enter Business Data

Replace the empty values in the automatically generated JSON payload with actual business data.

Example:

{
  "dtoRequestBody": {
    "responsePayloadFormat": "json",
    "payloadFormat": "json",
    "mode": "Synchronous",
    "iinterface": "AccountMessageType_Inb_V3",
    "integration": "a0c9M00000G9qhbQAB",
    "payload": "{\"CustomerNumber\":\"10001\",\"CustomerName\":\"SKYVVA Technology\",\"CustomerID\":\"C001\",\"Country\":\"Cambodia\",\"City\":\"Phnom Penh\",\"My_Contact\":{\"LastName\":\"Sok\",\"FirstName\":\"Dara\",\"Email\":\"dara.sok@example.com\",\"ContactName\":\"Dara Sok\"}}"
  }
}

Note: The payload parameter contains an escaped JSON string because it is embedded inside the outer JSON request body.

Step 10: Send the API Request

  1. Verify the API endpoint and authentication.
  2. Verify the business data in the request.
  3. Click Send.
  4. Review the API response.

Expected Result: SKYVVA receives and processes the Account and Contact data through the existing inbound Interface and Message Mapping.

image

9. Verify the Processing Results

Step 11: Verify Messages in SKYVVA

  1. Open the SKYVVA Integration.
  2. Navigate to Message Monitoring.
  3. Locate the inbound messages created by the API request.
  4. Verify the processing status.

Expected Result: The inbound messages show a completed status after successful processing.

image

Step 12: Verify Records in Salesforce

  1. Open the Salesforce Accounts tab.
  2. Search for SKYVVA Technology.
  3. Verify the Account fields.
  4. Open the related Contacts and verify the Contact record.

Expected Account Data:

FieldValue
Account NameSKYVVA Technology
Account Number10001
Billing CityPhnom Penh
Billing CountryCambodia

Expected Contact Data:

FieldValue
First NameDara
Last NameSok
Emaildara.sok@example.com

Expected Result: The Account and related Contact records are successfully created or updated in Salesforce according to the existing inbound processing configuration.

10. Conclusion

The Generate SKYVVA API Metadata feature provides external systems with automatically generated API definitions and business payload structures based on an existing Interface API V3 configuration.

When the generated OpenAPI 3.0 metadata is imported into Postman, the CSV, XML, and JSON business payload examples are already available under the V3/Integrate endpoint.

Users can select the appropriate generated business payload, enter the required values, and send data to Salesforce through SKYVVA without manually creating the API request structure.


Open this article in the interactive viewer →