testDeliveryPartnerConnection
Requires permission settings:integration:update.
Makes a real call to the delivery provider to check the stored credentials, records the result and returns the provider's exact rejection when it fails. A partner must pass this before it can be enabled. Needs the delivery partners plan feature and permission to update integrations.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation TestDeliveryPartnerConnection($id: ID!) {
testDeliveryPartnerConnection(id: $id) {
keysCheckDetail
keysCheckedAt
keysValid
needsReverification
webhookReachable
webhookRegisteredAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation TestDeliveryPartnerConnection($id: ID!) {\n testDeliveryPartnerConnection(id: $id) {\n keysCheckDetail\n keysCheckedAt\n keysValid\n needsReverification\n webhookReachable\n webhookRegisteredAt\n }\n}",
"variables": {
"id": "id"
}
}
EOF
Variables:
{
"id": "id"
}
Response:
{
"data": {
"testDeliveryPartnerConnection": {
"keysCheckDetail": "string",
"keysCheckedAt": "string",
"keysValid": true,
"needsReverification": true,
"webhookReachable": true,
"webhookRegisteredAt": "string"
}
}
}
testDeliveryPartnerConnection(
id: ID!
): DeliveryPartnerVerification!
Arguments
testDeliveryPartnerConnection.id ● ID! non-null scalar
The ID of the delivery partner configuration.
Type
DeliveryPartnerVerification object
The result of checking a delivery partner's credentials and webhook.