cURL
curl --request DELETE \
--url https://us.api.flexprice.io/v1/integrations/link \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"entity_id": "<string>",
"provider_type": "<string>"
}
'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.integrations.delink_integration_mapping(entity_id="<id>", entity_type="price", provider_type="<value>")
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.integrations.delinkIntegrationMapping({
entityId: "<id>",
entityType: "price",
providerType: "<value>",
});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/types"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Integrations.DelinkIntegrationMapping(ctx, types.DelinkIntegrationMappingRequest{
EntityID: "<id>",
EntityType: types.IntegrationEntityTypePrice,
ProviderType: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.SuccessResponse != nil {
// handle response
}
}{
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Integrations
Delink integration mapping
Soft-delete (archive) the mapping between a FlexPrice entity and a provider entity.
DELETE
/
integrations
/
link
cURL
curl --request DELETE \
--url https://us.api.flexprice.io/v1/integrations/link \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"entity_id": "<string>",
"provider_type": "<string>"
}
'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.integrations.delink_integration_mapping(entity_id="<id>", entity_type="price", provider_type="<value>")
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.integrations.delinkIntegrationMapping({
entityId: "<id>",
entityType: "price",
providerType: "<value>",
});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/types"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Integrations.DelinkIntegrationMapping(ctx, types.DelinkIntegrationMappingRequest{
EntityID: "<id>",
EntityType: types.IntegrationEntityTypePrice,
ProviderType: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.SuccessResponse != nil {
// handle response
}
}{
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
application/json
Delink mapping request
Response
OK

