---
updatedAt: 2026-01-16T14:19:50.000Z
agentTools:
  projectIndex: https://docs.labra.io/llms.txt
---

# Accept Referral

Accept an incoming referral from AWS. Sets acceptance status to 'Accepted' and
triggers synchronization back to AWS Partner Central with action='accept'.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "AWS Engine Service - Referrals API",
    "description": "API endpoints for managing AWS referrals and opportunities. This service handles the creation,\nretrieval, update, and synchronization of referrals between CRM systems and AWS Partner Central.\n",
    "version": "2.0.0",
    "contact": {
      "name": "Labra API Support",
      "email": "support@labra.io"
    }
  },
  "servers": [
    {
      "url": "https://api.labra.io/v1",
      "description": "Production V1 API"
    },
    {
      "url": "https://api.labra.io/v2",
      "description": "Production V2 API"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "node",
      "python",
      "ruby",
      "php",
      "java",
      "go",
      "csharp"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "parameters": {
      "AccountId": {
        "name": "account_id",
        "in": "path",
        "required": true,
        "description": "UUID of the partner account",
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "example": "7ac1ec8c-f1d7-4dd2-9370-7c442c6fbbe3"
      },
      "ReferralId": {
        "name": "referral_id",
        "in": "path",
        "required": true,
        "description": "UUID of the referral object",
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "example": "07227424-dc08-4a6b-872a-298e9de47bf0"
      }
    },
    "schemas": {
      "CloudType": {
        "type": "string",
        "enum": [
          "AWS",
          "AZURE",
          "GCP"
        ],
        "default": "AWS",
        "description": "Cloud provider type"
      },
      "FormStatus": {
        "type": "string",
        "enum": [
          "draft",
          "submitted"
        ],
        "default": "draft",
        "description": "Status of the referral form"
      },
      "ObjectType": {
        "type": "string",
        "enum": [
          "opportunity",
          "lead"
        ],
        "default": "opportunity",
        "description": "Type of referral object"
      },
      "ReferralResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique referral identifier"
          },
          "crm_object_id": {
            "type": "string",
            "nullable": true,
            "description": "ID generated and owned by the CRM system.\n- **Salesforce**: ID of the Labra__Labra_Referral__c custom object\n- **HubSpot**: ID of the Deal object\n"
          },
          "cloud_object_id": {
            "type": "string",
            "nullable": true,
            "description": "ID of the opportunity in the cloud partner portal (AWS Partner Central, Azure, etc.).\nAlso known as ACE ID for AWS partners.\n"
          },
          "form_status": {
            "$ref": "#/components/schemas/FormStatus"
          },
          "referred_by": {
            "type": "string",
            "enum": [
              "partner",
              "aws"
            ],
            "description": "Who created the referral"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "object_type": {
            "$ref": "#/components/schemas/ObjectType"
          },
          "partner_id": {
            "type": "string",
            "format": "uuid"
          },
          "account_id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "last_sync_status": {
            "type": "string",
            "nullable": true,
            "description": "Status of the last sync attempt"
          },
          "last_sync_id": {
            "type": "string",
            "nullable": true
          },
          "parent_object_id": {
            "type": "string",
            "nullable": true,
            "description": "ID of the parent CRM object that contains this referral.\n- **Salesforce**: Opportunity ID\n- **HubSpot**: Deal ID\n"
          },
          "crm_link": {
            "type": "string",
            "nullable": true,
            "description": "Direct link to the CRM record"
          },
          "labra_referral": {
            "type": "object",
            "description": "Complete referral data"
          },
          "cloud_type": {
            "$ref": "#/components/schemas/CloudType"
          }
        }
      }
    }
  },
  "paths": {
    "/partners/{account_id}/referrals/{referral_id}/accept": {
      "patch": {
        "summary": "Accept Referral",
        "description": "Accept an incoming referral from AWS. Sets acceptance status to 'Accepted' and\ntriggers synchronization back to AWS Partner Central with action='accept'.\n",
        "operationId": "acceptReferral",
        "tags": [
          "Referrals V1"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/AccountId"
          },
          {
            "$ref": "#/components/parameters/ReferralId"
          }
        ],
        "responses": {
          "200": {
            "description": "Referral accepted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReferralResponse"
                },
                "examples": {
                  "successfulAcceptance": {
                    "summary": "Referral accepted",
                    "description": "Response when referral is accepted successfully",
                    "value": {
                      "id": "07227424-dc08-4a6b-872a-298e9de47bf0",
                      "form_status": "submitted",
                      "referred_by": "aws",
                      "updated_at": "2026-01-16T16:30:00.000000Z",
                      "labra_referral": {
                        "Labra__Acceptance_Status__c": "Accepted",
                        "Name": "AWS Referred Opportunity",
                        "Labra__Company_Name__c": "Enterprise Customer"
                      },
                      "cloud_type": "AWS"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Referral not found"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Referrals V1",
      "description": "V1 API endpoints for managing referrals under /partners/ path"
    }
  ]
}
```