Create commerce integration
Changed onCreate commerce integration metadata to link an external business ID with a Pinterest merchant & ad account. Note: If you're interested in joining the beta, please reach out to your Pinterest account manager.
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesads:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
The request has succeeded.
Example response
{
"id": "7329167449607351372",
"external_business_id": "1238401984",
"connected_merchant_id": "1445572885401",
"connected_user_id": "871939315263957401",
"connected_advertiser_id": "549764738871",
"connected_lba_id": "871939315263957402",
"connected_tag_id": "2412141155151",
"partner_access_token_expiry": 1621350033000,
"partner_refresh_token_expiry": 1621350033000,
"scopes": "accounts:read",
"created_timestamp": 1621350033000,
"updated_timestamp": 1621350033000,
"additional_id_1": "128464",
"partner_metadata": ""
}Changes
- breaking
the
response's property type changed fromstringto no type for status - info
the
request property type was generalized fromintegertonumber - info
the
request property type was generalized fromintegertonumber - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
the response optional property
became not read-only for the status - info
the response optional property
became read-only for the status - info
the response optional property
became read-only for the status - info
the response optional property
became read-only for the status - info
added to the
response propertyallOflist for the response status - info
the
response's property pattern^\d+$was removed for the status - info
added the success response with the status
- breaking
- breaking
request body became required
- breaking