Skip to content

GSK Vendor API

The GSK Vendor API lets DASH deliver a released certificate directly to GSK’s supplier Certificate of Analysis (CoA) upload service, with no manual upload. You set it up as an API submission channel on the Material whose certificates go to GSK. When the Quality Person (QP) submits a certificate, DASH puts the released XML into the JSON request GSK expects and posts it to GSK’s endpoint.

  1. Open the Material, select Data channels, then Submission Data Channels.
  2. Select Add Channel. The Add Data Channel dialog opens.
  3. Enter a Name, for example GSK Vendor API.
  4. Set Channel Type to API.
  5. Leave Signature Algorithm on DSA-SHA1 (ASTM E3077) unless GSK asks for RSA-SHA256.
  6. Paste GSK’s upload address into API Endpoint.
  7. Set the Success check (see below).
  8. Under Headers, select Add Header. Enter the header name GSK gave you as the Key and your API key as the Value, and tick Secret.
  9. Under Body, paste GSK’s sample request into Request Body (JSON) and replace the live values with tags (see below).
  10. Select Add Channel, then select the Test Connection icon on the new row.
An API channel being added, with a secret API-key header and the JSON request body using tags
An API channel being added, with a secret API-key header and the JSON request body using tags

DASH fills in these tags when each certificate is sent:

Tag Replaced with
[coa] The released certificate XML, encoded as GSK expects (Base64)
[id] The certificate’s number in DASH
[org.fieldName] The receiving Organisation’s metadata field fieldName
[proj.fieldName] The Material’s metadata field fieldName

A body in GSK’s shape looks like this (your field names come from GSK’s sample):

{
"UploadType": "REUPLOAD",
"MaterialID": "[proj.MaterialID]",
"FileName": "[org.OrganizationName]",
"UniqueID": "[id]",
"FileContent": "[coa]",
"COACOALinkages": [{ "FileName": "", "UniqueID": "", "FileContent": "" }],
"SupportingDocuments": [{ "FileName": "", "UniqueID": "", "FileContent": "" }]
}
  • Keep every tag inside quotes, including "[id]". An unquoted tag makes the body invalid JSON.
  • Don’t leave the linkage lists empty. GSK rejects "COACOALinkages": [] and "SupportingDocuments": [] with a misleading message about the linkage file needing to be a PDF. Send one blank entry in each, as above. DASH doesn’t send PDFs on this channel.
  • Check the spelling of each metadata field. A tag that doesn’t match a field isn’t filled in.

GSK’s service can answer HTTP 200 even when it rejects the upload, with the outcome in the reply. So rather than the default HTTP status code (2xx = success), set Success check to Field in JSON response, then:

  • Success field path: where GSK’s success flag sits in the reply, for example response.Success;
  • Expected value for success: the value that means accepted, for example true.

Confirm the exact field with your GSK contact. With this set, a rejected upload is recorded as a failure, never as delivered. See Submission channels.

Test Connection only checks that GSK’s address answers: “Endpoint reachable (HTTP n).” It doesn’t prove GSK will accept a certificate. The real check is the first delivery: after the QP submits, open the certificate and read the Transmission Status. If it failed, GSK’s reply is under Raw API Response.

  • Rejected with a message about the linkage file needing to be a PDF: the linkage lists are empty. Add one blank entry to each.
  • Rejected for a missing or wrong API key: check the header name matches GSK’s exactly. To change the key, edit the channel and type the new value over the masked one.
  • A value arrives empty: the metadata field named in the tag is missing or misspelled on the Material or Organisation.
  • Delivered according to DASH, but GSK says it wasn’t accepted: the Success check is still on HTTP status. Switch it to Field in JSON response.
  • Reachable, but every delivery fails: compare your body with GSK’s latest sample; GSK can tighten its validation. Then ask the QP to retry. See Retry a failed transmission.