---
title: /customers/sync-partner
slug: amberflo-api/customerssync-partner
docTags: 
createdAt: 2024-11-07T15:10:16.978Z
---

{
  "id": "yZVK18Cv4GMhM6uFf6dSt",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://app.amberflo.io/customers/sync-partner",
    "servers": [
      {
        "url": "https://app.amberflo.io/customers/sync-partner"
      }
    ],
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "metadata.customer.SyncPartnerRequest.in",
          "schema": [
            {
              "name": "platformAccountId",
              "kind": "optional",
              "type": "string",
              "example": ""
            }
          ],
          "modelRef": "#/components/schemas/metadata.customer.SyncPartnerRequest.in",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "oNwdKWjCy5cxNe7Cbm86Z",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://app.amberflo.io/customers/sync-partner \\\n     --header 'accept: application/json'"
        },
        {
          "id": "V2YEnpv__k7YiQwng8wT-",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/customers/sync-partner\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "20LSKkALT1Nus3Nd2trE_",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/customers/sync-partner\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "BNCaCQakSJ38fTDyzwqb9",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/customers/sync-partner\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "oNwdKWjCy5cxNe7Cbm86Z"
    },
    "results": {
      "languages": [
        {
          "id": "8bXMQXy51K_PzEqefqZit",
          "language": "200",
          "code": "// Successful request\n"
        }
      ],
      "selectedLanguageId": "8bXMQXy51K_PzEqefqZit"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}