Getting Attachment Files Associated with a Supplier Profile Using the Ariba Network Supplier Profile API

Use this procedure to get attachment files associated with a supplier profile using the Ariba Network Supplier Profile API.

Context

A buyer can get profile and attachment files information for any SAP Business Network registered public suppliers.

Procedure

  1. Call the GET /profiles/{anid} endpoint to request supplier profile information. For information about how to do this, see Retrieving a Supplier Profile Using the Ariba Network Supplier Profile API.
    If the query is successful, the response includes information from the specified supplier profile, which can include certificate or other attachment URLs in the following format:
    "certDataFile": {
    	"description": "Sample Cert File ABC",
    	"certFileUrl": "AN0200208****/certificates?certType=TS_16949_Certified"
    }
    "attachments": [
    	{
    		"name": "sampleMarketingAttachment.png",
    		"desc": "Marketing Brochure",
    		"url": "AN0200208****/attachments/a5602304-a40e-49d8-8e19-fafb9694a0e7"
    	}
    The swagger documentation for this API, available on the SAP Ariba Developer Portal discovery page, lists all possible response fields.
  2. Use the received relative URL path for the file that you want to get with the GET /profiles/ request.
    GET {{runtime_url}}/profiles/{...}
                   

    For example, for a certificate file attachment:

    GET {{runtime_url}}/profiles/AN0200208****/certificates?certType=TS_16949_Certified