Metadata

Prev Next

Metadata is structured JSON data. In e-commerce, the metadata will enable Vijay to communicate all other information, not present in the Frisbii Pay platform, between the site and Frisbii, such as the SIRET.
The SIRET is not an existing field on the Frisbii Pay platform. The metadata enables this value to be transferred from the e-commerce site to the Frisbii Pay platform, and then to Frisbii.

The metadata contains the following data model:

{
 "account": {
   "attributes": {
     "type": "Account"
   },
   "sofactoapp__SIRET__c": "",
   "SIRET__c": ""
 },
 "invoice": {
   "attributes": {
     "type": "sofactoapp__Factures_Client__c"
   },
   "Achat_en_ligne__c": true
 },
 "invoiceLineItems": [
   {
     "Attributes": {
       "type": "sofactoapp__Ligne_de_Facture__c"
     },
     "sofactoapp__Produit__c": ""
   }
 ]
}

How Metadata works

In the Frisbii Pay API, a "Metadata" field can be used to store data in JSON format. This field will enable you to transfer data between the e-commerce site and Salesforce, such as a company's SIRET.

The information must be present on the e-commerce site, which will be sent and stored by Metadata.
The metadata is then sent to Frisbii.
Frisbii expects Metadata to be in a very specific format, so that it can be interpreted.

In the Frisbii Pay platform, the metadata is displayed as follows:

Please note: Fields coming from the Frisbii Pay platform have priority. The information in the metadata will be overwritten by data from the Frisbii Pay platform.
Example: on the e-commerce site, the product designation is "Basket Margo", but in the metadata, the product designation is "Basket Code MGT". This data will be overwritten by the designation "Basket Margo", and in Frisbii you'll find only this designation.

Metadata can be used to cover the following functions:

  • fill in a Frisbii field, other than the fields mentioned above in the articles

  • fill in a custom field

  • create a record according to the record type you want

  • associate the product sold online with your product catalog

Use case: connecting record types

From an online order, you want the buyer to be created in the record type of the Account you want?
With the metadata, you can enter the record type ID on the site and send this information to Frisbii to create the Customer in the record type Account of your choice.

This procedure also applies if you have record types on Contact or Invoice.

Use case: connect the Salesforce product catalog to the product sold online

From your e-commerce site, would you like to associate the products you sell with your Salesforce product catalog?
With metadata, you can enter a Product ID on the site and send this information to Frisbii. On receipt, if the ID matches the external ID present on Product sofactoapp__External_ID__c, Invoice Line items will be created with the look-up to the Product in question.