- Stripe Products

Providers / Products

An example of how to update a Product Provider metadata with our configuration fields:

curl https://api.stripe.com/v1/products/prod_9s7LtoQ83DMvvp \
  -H "content-type:application/x-www-form-urlencoded" \
  -u sk_test_u9dPiozFwSajXkGVdmypPi3x: \
  -d metadata[login_url]=http://matrix.swflamls.com/rets/login.ashx \
  -d metadata[version]=1.8 \
  -d metadata[use_post_method]=false \
  -d metadata[itemUniqueID]=matrix_unique_id \
  -d metadata[timeZoneOffset]=0 \
  -d metadata[secondsOffset]=1 \
  -d metadata[modifiedDateTime]=MatrixModifiedDT \
  -d metadata[PhotoTypeName]=XLargePhoto \
  -d metadata[listedDate]=CreatedDate \
  -d metadata[PhotoCount]=PhotoCount \
  -d metadata[PhotoModificationTimestamp]=PhotoModificationTimestamp \
  -d metadata[listingOfficeField]=ListOfficeMLSID \
  -d metadata[listingAgentField]=ListAgentMLSID \
  -d metadata[dateAvailable]=DateAvail 

The Provider object may look something like:

{
  "object": {
    "id": "prod_9s7LtoQ83DMvvp",
    "object": "product",
    "active": true,
    "attributes": [
      "agents",
      "offices"
    ],
    "caption": "South West Florida",
    "created": 1483568411,
    "deactivate_on": [],
    "description": "Has over 15,000 properties.",
    "images": [],
    "livemode": false,
    "metadata": {
      "login_url": "http://matrix.swflamls.com/rets/login.ashx",
      "version": "1.8",
      "use_post_method": "false",
      "itemUniqueID": "matrix_unique_id",
      "timeZoneOffset": "0",
      "secondsOffset": "1",
      "modifiedDateTime": "MatrixModifiedDT",
      "PhotoTypeName": "XLargePhoto",
      "listedDate": "CreatedDate",
      "PhotoCount": "PhotoCount",
      "PhotoModificationTimestamp": "PhotoModificationTimestamp",
      "listingOfficeField": "ListOfficeMLSID",
      "listingAgentField": "ListAgentMLSID",
      "dateAvailable": "DateAvail"
    },
    "name": "SWFL",
    "package_dimensions": null,
    "shippable": false,
    "skus": {
      "object": "list",
      "data": [],
      "has_more": false,
      "total_count": 0,
      "url": "/v1/skus?product=prod_9s7LtoQ83DMvvp&active=true"
    },
    "updated": 1483569486,
    "url": "http://matrix.swflamls.com"
  }
}

Feedback and Knowledge Base