Enable a provider
To make providers available for customers, you need authentication data. The exact requirements differ based on the provider.
For example, a provider might need a merchant API key, a merchant tracking API key, a customer ID and a client ID. You can configure these with the updateProviderConfigurations mutation.
GraphQL mutation
mutation {
updateProviderConfigurations(
input: [
{
provider: BestProv,
key: API_KEY,
value: "12315789-abcdefg",
},
{
provider: BestProv,
key: TRACKING_API_KEY,
value: "12315789-abcdefg",
},
{
provider: BestProv,
key: CUSTOMER_ID,
value: "abc123"
},
{
provider: BestProv,
key: CLIENT_ID,
value: "abc123"
},]
)
{
provider
key
value
}
}
Check out the required data for each provider: Required credentials.
In addition, you must set the provider to available:
GraphQL mutation
mutation {
updateProviderConfigurations(
input: [{
provider: BEST_PROV,
key: AVAILABLE,
value: "true",
},]
) {
key
value
}
}