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.
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:
- Automatically generating API definitions and business payload structures.
- Reducing manual API request configuration.
- Providing consistent data structures based on the Message Type.
- Supporting external systems with CSV, XML, and JSON business payload formats.
- Simplifying API integration and testing.
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
- An existing SKYVVA Integration and Interface API V3 are available.
- The Interface has an assigned Message Type and Message Mapping.
- The Interface is deployed and ready for inbound processing.
- An external API client is available.
- Valid Salesforce API authentication credentials are available.
5. Generate SKYVVA API Metadata for Interface API V3
Step 1: Select the Interface
- Navigate to the Integrations tab in SKYVVA.
- Open the Integration
Generate_SKYVVA_API. - Select the Interfaces tab.
- Select the checkbox next to
AccountMessageType_Inb_V3. - Click Generate MetaData.
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
- Select SKYVVA API.
- Click Next.
Expected Result: The metadata configuration screen is displayed.
Step 3: Configure the Metadata
Select the following configuration:
| Field | Value |
|---|---|
| Choose a format File | OpenAPI 3.0 |
| Choose an API name | V3/Integrate |
Click Generate.
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
- CustomerID
- CustomerName
- CustomerNumber
- City
- Country
Child Object: My_Contact
- ContactName
- FirstName
- LastName
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
- Open Postman.
- Click Import.
- Select the generated OpenAPI 3.0 JSON file.
- Complete the import.
- Open the imported SKYVVA V3 REST API collection.
Expected Result: The API definition is successfully imported into Postman.
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 Payload | Description |
|---|---|
| CSV business payload | Provides a generated CSV request structure based on the Message Type fields. |
| XML business payload | Provides a generated XML request structure based on the Message Type. |
| JSON business payload | Provides a generated JSON request structure based on the Message Type, including parent and child fields. |
Follow these steps:
- Expand V3 → integrate in Postman.
- Open POST /V3/integrate.
- View the generated CSV, XML, and JSON business payload examples.
- Select the required business payload example.
- 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:
- The imported API definition displays the V3/Integrate endpoint.
- CSV, XML, and JSON business payload examples are already generated and available in Postman.
- Each example contains the request structure corresponding to its business payload format.
- The generated business fields are based on the configured SKYVVA Message Type.
- Users only need to enter or replace the sample values before sending the request.
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:
| Setting | Value |
|---|---|
| HTTP Method | POST |
| API Endpoint | /services/apexrest/skyvvasolutions/V3/integrate |
| Authorization | Bearer Token |
| Content-Type | application/json |
| Request Body | raw → 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
- Verify the API endpoint and authentication.
- Verify the business data in the request.
- Click Send.
- Review the API response.
Expected Result: SKYVVA receives and processes the Account and Contact data through the existing inbound Interface and Message Mapping.
9. Verify the Processing Results
Step 11: Verify Messages in SKYVVA
- Open the SKYVVA Integration.
- Navigate to Message Monitoring.
- Locate the inbound messages created by the API request.
- Verify the processing status.
Expected Result: The inbound messages show a completed status after successful processing.
Step 12: Verify Records in Salesforce
- Open the Salesforce Accounts tab.
- Search for
SKYVVA Technology. - Verify the Account fields.
- Open the related Contacts and verify the Contact record.
Expected Account Data:
| Field | Value |
|---|---|
| Account Name | SKYVVA Technology |
| Account Number | 10001 |
| Billing City | Phnom Penh |
| Billing Country | Cambodia |
Expected Contact Data:
| Field | Value |
|---|---|
| First Name | Dara |
| Last Name | Sok |
| dara.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.