Skip to content
SynupAPI
Get an API key
POSTapi.synup.com/api/v4/connected-accounts/connect-apple/renew

Renew connect link for Apple

Generates a link to re-authorize an Apple Business Connect connection whose OAuth token has expired or been revoked. Provide either a locationId or a connectedAccountId to identify the connection to renew. Redirect the user to the returned url; the link is valid for 1 day.

Apple OAuth link variants:

  • Connect link for Apple — connect a single location.
  • Bulk connect link for Apple — connect multiple locations.
  • Renew connect link for Apple — re-authorize an existing connection (this endpoint).
Requires an API key. Send it as Authorization: API <your-key> — see Getting started.

Parameters

Headers

NameTypeRequiredDescription
Synup-VersionstringrequiredAPI version date (YYYY-MM-DD).

Body

NameTypeRequiredDescription
inputobjectrequired
input.locationIdstringoptionalRelay-encoded location ID of the connection to renew.
input.connectedAccountIdstringoptionalID of the connected Apple account to renew (alternative to locationId).
input.successUrlstringrequiredRedirect URL on successful re-authorization.
input.clientMutationIdstringoptional

Request

Request
curl -X POST 'https://api.synup.com/api/v4/connected-accounts/connect-apple/renew' \
  -H 'Authorization: API YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "input": {
    "locationId": "TG9jYXRpb246MQ==",
    "successUrl": "https://app.synup.com/apple/success"
  }
}'

Responses

StatusDescription
200Successful response
401Unauthorized - Invalid or missing API key
Example response (generated from the schema)
{
  "data": {
    "renewConnectLinkForApple": {
      "success": true,
      "url": "string",
      "errors": [
        {
          "code": "string",
          "message": "string",
          "contextInfo": [
            {}
          ]
        }
      ],
      "clientMutationId": "string"
    }
  }
}

Response body

NameTypeRequiredDescription
dataobjectoptional
data.renewConnectLinkForAppleobjectoptional
data.renewConnectLinkForApple.successbooleanoptional
data.renewConnectLinkForApple.urlstringoptionalOAuth renewal link to redirect the user to (1-day TTL).
data.renewConnectLinkForApple.errorsarray of objectoptional
data.renewConnectLinkForApple.errors[].codestringoptional
data.renewConnectLinkForApple.errors[].messagestringoptional
data.renewConnectLinkForApple.errors[].contextInfoarray of objectoptional
data.renewConnectLinkForApple.clientMutationIdstringoptional