Create referral conversion

POST /v1/ReferralConversion
application/json

Body Required

  • referral_account_sid string

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attribute Show response attribute object
    • converted_account_sid string

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

  • 202 application/json

    ACCEPTED

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attribute Show response attribute object
    • converted_account_sid string

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

  • 400 application/json

    NOT_FOUND

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • code integer(int32)
    • message string
    • params object | null
    • more_info string

      Link to Error Code References

    • status integer(int32)

      HTTP response status code

POST /v1/ReferralConversion
curl \
 --request POST 'https://marketplace.twilio.com/v1/ReferralConversion' \
 --user "username:password" \
 --header "Content-Type: application/json" \
 --data '{"referral_account_sid":"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}'
Request example
{
  "referral_account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
Response examples (200)
{
  "converted_account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
Response examples (202)
{
  "converted_account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
Response examples (400)
# Headers
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type, Authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: X-Custom-Header1, X-Custom-Header2

# Payload
{
  "code": 42,
  "message": "string",
  "params": {},
  "more_info": "string",
  "status": 42
}