Body
Required
-
About
-
Address line one
-
Address line two
-
Authentication secret
-
Authentication token
-
City
-
Commission rate
-
Country
-
Email
-
Iso
-
Logo
-
Name
-
Order endpoint url
-
Phone
-
Platform
Values are
wooCommerce
orshopify
. -
Referral code
-
Returns policy
-
Shopify store
-
Source type
Values are
channel
orcustom
. -
State
-
Stripe
-
Welcome message
-
Woo commerce store
-
Zip
POST
/referrals.json
curl \
--request POST 'http://api.example.com/v1/referrals.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"about":"string","addressLineOne":"string","addressLineTwo":"string","authenticationSecret":"string","authenticationToken":"string","city":"string","commissionRate":42.0,"country":"string","email":"string","iso":"string","logo":"string","name":"string","orderEndpointUrl":"string","phone":"string","platform":"wooCommerce","referralCode":"string","returnsPolicy":"string","shopifyStoreId":42,"sourceType":"channel","state":"string","stripeId":"string","welcomeMessage":"string","wooCommerceStoreId":42,"zip":"string"}'
Request examples
{
"about": "string",
"addressLineOne": "string",
"addressLineTwo": "string",
"authenticationSecret": "string",
"authenticationToken": "string",
"city": "string",
"commissionRate": 42.0,
"country": "string",
"email": "string",
"iso": "string",
"logo": "string",
"name": "string",
"orderEndpointUrl": "string",
"phone": "string",
"platform": "wooCommerce",
"referralCode": "string",
"returnsPolicy": "string",
"shopifyStoreId": 42,
"sourceType": "channel",
"state": "string",
"stripeId": "string",
"welcomeMessage": "string",
"wooCommerceStoreId": 42,
"zip": "string"
}
Response examples (200)
{
"about": "string",
"addressLineOne": "string",
"addressLineTwo": "string",
"authenticationSecret": "string",
"authenticationToken": "string",
"city": "string",
"commissionRate": 42.0,
"country": "string",
"createdAt": "2025-05-04T09:42:00Z",
"email": "string",
"id": 42,
"iso": "string",
"logo": "string",
"name": "string",
"orderEndpointUrl": "string",
"phone": "string",
"platform": "wooCommerce",
"referralCode": "string",
"returnsPolicy": "string",
"shopifyStoreId": 42,
"sourceType": "channel",
"state": "string",
"stripeId": "string",
"updatedAt": "2025-05-04T09:42:00Z",
"welcomeMessage": "string",
"wooCommerceStoreId": 42,
"zip": "string"
}