Contacts

Base URL: /api-pub/v1/contacts

Contacts let you associate payment requests with specific customers or companies. They are entirely optional — you can create payment requests without linking them to any contact. However, using contacts makes it easier to track payment history per customer and to reference them via contactExternalId when creating payment requests from your system.

Create a Contact

curl -X POST https://mailpay.cz/api-pub/v1/contacts \
  -H "Authorization: Bearer mp_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Corp",
    "email": "billing@acme.com",
    "ico": "12345678",
    "externalId": "customer-123"
  }'

Contact Fields

FieldTypeRequiredDescription
namestringYesContact name
emailstringNoEmail address
addressstringNoPostal address
icostringNoCompany ID (Czech)
dicstringNoTax ID (Czech)
externalIdstringNoYour system's ID (unique per org)