Skip to main content
POST
/
partner
/
schema-mappings
Update Partner Schema Mappings
curl --request POST \
  --url https://api.embedreach.com/partner/schema-mappings \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "combined_schema",
  "transactionsSchema": [
    {
      "type": "transactions_schema",
      "eventType": "<string>",
      "schemaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "id_field": "<string>",
      "userId": "<string>",
      "amount": {
        "field": "<string>",
        "currencyField": "<string>",
        "currency": "USD"
      },
      "dates": {
        "createdDate": "<string>",
        "paidDate": "<string>",
        "dueDate": "<string>",
        "startDate": "<string>",
        "endDate": "<string>"
      },
      "locationId": "<string>",
      "metadata": [
        "<string>"
      ],
      "filter": true,
      "urlPattern": "<string>"
    }
  ],
  "customSchema": [
    {
      "type": "custom_schema",
      "id_field": "<string>",
      "date": "<string>",
      "userId": "<string>",
      "schemaId": "<string>",
      "metadata": [
        "<string>"
      ]
    }
  ],
  "locationsSchema": [
    {
      "type": "locations_schema",
      "schemaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "id_field": "<string>",
      "name": "<string>",
      "address_line_1": "<string>",
      "address_line_2": "<string>",
      "address_line_3": "<string>",
      "locality": "<string>",
      "district": "<string>",
      "postal_code": "<string>",
      "country_code": "<string>",
      "phone": "<string>",
      "email": "<string>",
      "website": "<string>",
      "urlPattern": "<string>"
    }
  ]
}
'
{
  "success": true,
  "message": "<string>"
}

Body

application/json
type
enum<string>
required
Available options:
combined_schema
contactsSchema
object
transactionsSchema
object[]
customSchema
object[]
locationsSchema
object[]

Response

Status 200 response

success
boolean
required
message
string
data
object