Order from Schema.org to AFAS Profit

type: route-configuration

identifier: order-from-schemaorg-to-afas-profit

incoming: schemaorg-sample-order

outgoing: afas-profit-sales-order


Schema.org - Sample Order

type: incoming-configuration

identifier: schemaorg-sample-order

prototype: http-subscriber

payloadType: data

prototype: data

prototype: list-mapper

prototype: list-inherit-from

ACME

streetAddress: Sample Street 100

addressCountry: NL

addressLocality: Groningen

prototype: list-intersect-keys

prototype: key


AFAS Profit - Sales Order

type: outgoing-configuration

identifier: afas-profit-sales-order

prototype: http-publisher

client: afas-profit

method: post


AFAS Profit

type: http-client

identifier: afas-profit

prototype: base-uri

prototype: header-set

Content-Type: application/json

Authorization: AfasToken ${AFAS_TOKEN}

prototype: logger

formatter: long


type: list-transformer

name: AFAS Profit - Sales Order - Transform from Schema

prototype: chain

prototype: value-setter

@Action: insert

Element: &{orderedItem}

prototype: node

prototype: pattern

BiUn: stk

ItCd: &{sku}

QuUn: &{orderQuantity}

prototype: key-filter

keys: sku orderQuantity


Schema - sample order

type: transformer-test


name: AFAS Profit - Sales Order - Create Customer If Not Exists on AFAS

prototype: merger

prototype: http-transformer

filterfieldids: Email

name: Check whether the result is empty (doesn't exist on AFAS)

prototype: conditional

prototype: empty

name: Prepare the payload to create the customer and submit

CuId: EUR

InPv: E