[有一个Square v2端点,可以按照链接https://developer.squareup.com/docs/api/connect/v2#endpoint-customers-createcustomercard中的描述为客户创建卡
我将无法对v1版本的应用程序使用相同的API。我尝试并遇到了以下错误,
{
"errors": [{
"category": "INVALID_REQUEST_ERROR",
"code": "V1_APPLICATION",
"detail": "This application does not support accessing Connect API v2 endpoints. To access these endpoints, register a new application with Square at connect.squareup.com."
}]
}
如果需要像向v2 API提到的那样向客户添加卡,我应该依靠v1的哪个端点?
V1中没有允许将卡添加到客户资料的端点。此功能仅在V2中存在。如果收到该错误,那么很遗憾,您的应用程序是在V2之前创建的,并且使用V2端点的唯一方法是创建一个新应用程序(这仅意味着适当地更新您的访问令牌和机密)。