- Merchant API
- Start Here 🚀
- Overview to Zid Apps
- Authorization
- Responses
- Webhooks
- Rate Limiting
- APIs
- Orders
- Reverse Orders
- Carts
- Products
- Inventories
- Shipping
- Marketing
- Gift Cards
- Coupons
- Bundle Offers
- Loyalty Program
- Customer Wallet
- Customer Points
- Loyalty Program Points per Order
- Store Loyalty Status
- Redemption Methods
- Cashback Rules
- Add Redemption to Cart
- Remove Redemption from Cart
- Info Page
- Loyalty Program Activation
- Loyalty Status
- Set Points Expiration
- Cashback Rule Method Update
- Cashback Rule Method Update Status
- Add Points Redemption Method
- Update Points Redemption Method
- Delete Points Redemption Method
- Toggle Redemption Method Status
- Show Loyalty Points Info for Specific Customer
- Customer Profile
- List Data
- Customer Points History
- Info Page - Managers
- Update Info Page
- Adjust Customer Points
- Customers
- Store Settings
- Countries and Cities
- Webhook
- Store Events
- Payment API
- Apps
- Themes
- 🚨 Important Update: Zid Themes
- Adding Video URL Feature to Third-Party Themes
- Landing Page Development
- Getting Started with Zid Themes
- Templates
- Settings Schema
- Code Snippets
- Zid Themes Library: API Integration
- Data Reference
- Themes CLI
Link Merchant Event
POST
https://api.zid.sa/v1/api/webhook/v1/thirdpartywebhook
Authorization: No authentication required for this event (as it’s webhook-based and triggered by the provider).
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zid.sa/v1/api/webhook/v1/thirdpartywebhook' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "merchant_linked",
"thirdPartyId": 1, // assigned to payment provider by ZidPay
"merchantId": "45cb5978-c6cd-4e34-bd93-de6bee9b3cae"
"data": {
"storeId": "123",
"thirdPartyApiKeys": {
"Publishable_Key": "pk_test_9a6Z61CUnM6nX4bStnNnZLnrKrbj2QK6xxscScDe",
"Secret_Key": "sk_test_aLdogZnphPpoqcka4Qf5hRPFdffGL4p8dwB1Scsa"
}
}
}'
Response Response Example
{}
Request
Body Params application/json
Payload for linking a merchant to ZidPay OpenAPIs.
type
stringÂ
required
Example:
merchant_linked
thirdPartyId
integerÂ
required
Example:
1
merchantId
stringÂ
required
Example:
45cb5978-c6cd-4e34-bd93-de6bee9b3cae
data
objectÂ
required
storeId
string