{
  "schema_version": 1,
  "diagram_type": "architecture",
  "meta": {
    "title": "The shape of the product",
    "quality_profile": "showcase"
  },
  "components": [
    {
      "id": "you",
      "type": "external",
      "label": "Your checkout and back office",
      "sublabel": "your systems, your references",
      "pos": [
        40,
        200
      ],
      "size": [
        200,
        62
      ]
    },
    {
      "id": "pehmen",
      "type": "backend",
      "label": "Pehmen",
      "sublabel": "decides · records · instructs",
      "pos": [
        360,
        200
      ],
      "size": [
        200,
        62
      ],
      "tag": "never holds money"
    },
    {
      "id": "psp",
      "type": "external",
      "label": "Stripe · HitPay · Airwallex",
      "sublabel": "licensed providers",
      "pos": [
        740,
        200
      ],
      "size": [
        200,
        62
      ]
    },
    {
      "id": "funds",
      "type": "database",
      "label": "Your money",
      "sublabel": "held by the provider",
      "pos": [
        740,
        380
      ],
      "size": [
        200,
        62
      ]
    }
  ],
  "connections": [
    {
      "from": "you",
      "to": "pehmen",
      "label": "API or dashboard",
      "variant": "emphasis"
    },
    {
      "from": "pehmen",
      "to": "psp",
      "label": "routing · payout instructions",
      "variant": "emphasis"
    },
    {
      "from": "psp",
      "to": "pehmen",
      "label": "provider webhooks",
      "fromSide": "top",
      "toSide": "top"
    },
    {
      "from": "pehmen",
      "to": "you",
      "label": "signed webhooks",
      "variant": "security",
      "fromSide": "bottom",
      "toSide": "bottom"
    },
    {
      "from": "psp",
      "to": "funds",
      "label": "holds and moves",
      "variant": "default",
      "labelAt": [
        850,
        321
      ]
    },
    {
      "from": "pehmen",
      "to": "funds",
      "label": "never",
      "variant": "dashed",
      "fromSide": "bottom",
      "toSide": "left"
    }
  ],
  "cards": [
    {
      "dot": "cyan",
      "title": "Three records",
      "items": [
        "Who is being paid: sellers, verification, tokenized destinations",
        "A decision on every movement: six words and a reason code",
        "A file when something goes wrong: cases, evidence, appeals"
      ]
    },
    {
      "dot": "rose",
      "title": "The boundary",
      "items": [
        "Money stays with the licensed provider at every phase",
        "Pehmen sends instructions after its checks pass",
        "Not a merchant of record, not a payment facilitator"
      ]
    }
  ]
}