| Field | Type | Required? | Example | Notes |
|---|---|---|---|---|
merchant_external_id | string | Yes | sec_0c3de397-441f-471f-bcd7-b6d948e1c307 | Stable identifier you supply across environments. |
iban | string | Yes | PK62ABPA0010000222380013 | Settlement IBAN for payouts. |
name | string | Yes | Acme Foods Saddar | Display name shown in dashboards and reports. |
enabled | boolean | No | true | Set to true to activate immediately. |
raast_merchant_id | string | Yes | mer_eb2f5757-c0e4-4eb4-ad4b-2f4b671a84e2 | Links to a Safepay Raast merchant. |
rate_card.ratecard_kind | enum | Yes | RateCardKind_fixed | Choose the pricing model. |
rate_card.fixed_rate | integer | Required for fixed | 3000 | Fee in paisa when using a fixed card. |
rate_card.tax_region | string | No | PK | Region where the tax applies. |
rate_card.tax_rate | number | Yes | 0.1 | Tax rate applied to transactions. |
Safepay performs KYC/KYB on every merchant. Payments remain blocked until the merchant status becomes
ENABLED.- One aggregator merchant can link to only one Raast merchant.
- A single Raast merchant can be shared across many aggregators. This lets a business entity use multiple aggregators without re-onboarding.
Create a merchant
Use the Aggregator Merchants API to create and link a merchant. Replace placeholders with your real values. The header name must match the OpenAPI security scheme (X-SFPY-AGGREGATOR-SECRET-KEY).
Keep the returned
data.token in your vault. Safepay refers to it as the aggregator_merchant_identifier when you create payments, QR codes, refunds, and payouts.Merchant lifecycle
- Created - Safepay receives your request and assigns an ID.
- Pending checks - KYC/KYB validations run. Provide documentation if requested.
- Enabled - Payment, QR, and payout endpoints accept this merchant.
- Disabled - Safepay can suspend a merchant; payment requests will fail until re-enabled.
List merchants and Get merchant endpoints to monitor these transitions during onboarding.
Key endpoints
| Endpoint | Purpose |
|---|---|
POST /v1/aggregators/{{aggregator_id}}/merchants | Create an aggregator merchant. |
GET /v1/aggregators/{{aggregator_id}}/merchants | List merchants with filters and pagination. |
GET /v1/aggregators/{{aggregator_id}}/merchants/{{aggregator_merchant_id}} | Read a single merchant. |
PUT /v1/aggregators/{{aggregator_id}}/merchants/{{aggregator_merchant_id}} | Update merchant details. |
DELETE /v1/aggregators/{{aggregator_id}}/merchants/{{aggregator_merchant_id}} | Disable or delete a merchant. |