POST Referral code check

​

Check Referral code

Path Parameters

  • Customer Account ID

Headers

  • Unique request identifier

  • Application key

  • Accept header

  • Api version

  • Authorization header

Body

application/json

Responses

  • application/json
Request Example for post/customer-accounts/{customer_account_id}/referral-code-check
curl 'https://api-public-demo.menu.app/api/customer-accounts/{customer_account_id}/referral-code-check' \
  --request POST \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
  --header 'Application: ' \
  --header 'Accept: application/json' \
  --header 'API-version: 5.0.0' \
  --header 'Authorization: ' \
  --header 'Content-Type: application/json' \
  --data '{
  "referral_code": "87ZLPP"
}'
{
  "status": "OK",
  "code": 200,
  "data": {
    "customer_account_referral": {
      "id": "127ef8ee-b30d-45f7-a836-62bae9cd5123",
      "referral_program_id": "c234d0c2-98a6-471f-bf7a-a16d84ff37c7",
      "referrer_id": "8d217634-3f23-11ed-936c-1a67b454859d",
      "referrer_name": "Marcelo",
      "referee_id": "901ebe32-3f23-11ed-936c-1a67b454859d",
      "referee_name": "Litzi",
      "status": "Created",
      "created_at": "2023-06-15 07:54:39",
      "updated_at": "2023-06-15 07:54:39"
    }
  }
}