WP Data Sync uses dot notation to retrieve nested values from arrays and JSON. Example JSON Retrieve the token, abc-123, from the example JSON using dot notation .
Getting Started
Order Mapping – Path
When mapping an order, we must define the path to create the data object to send an order to a remote API. We use a method named Dot Notation. What is Dot Notation? Dot Notation is one way to access a property of an object. To use dot notation, write the name of the object,Read More
Response – Success
Define a successful response. Response Code The response code is a numeric value returned from the remote server to indicate how the server interpreted the request. Generally a 200 response code is associated with a successful request. However, other response codes can also be associated with a successful request. Response Body If a 200 responseRead More
Dynamic Key
A Dynamic Key is an array key used to obtain an array value based on a Dynamic Value. This is very useful when your items have multiple variations. Example Data To obtain the price for the medium size item. Source key: prices Dynamic Key: size Output: 17.99 Notice size has a Dynamic Value. We takeRead More
Request Type
Request, refers to any HTTP request made by the WP Data Sync API. Stage Data Stage Data request is any request made to obtain data from your remote API or file upload. Sync Data Sync Data request is any request made to sync data to your remote website. Accelerated Sync Accelerated Sync request is anyRead More