Upload a File

Action an "Upload File" earn rule. This earn rule is actioned in 2 parts;

  1. POST to this endpoint to create the point activity and register points against a customer. The post request also returns a presigned URL in the response body.
  2. Upload a file to a presigned URL generated from the previous step using a PUT request with the file contents as the body.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
customer
object
string

Your shop key

string

An HMAC digest created by concatenating the Shopify customer ID, customer email and your shop key, using your API secret at the key. If you are using the "Headless" widget, you can access the data-customer-digest property that is automatically generated when a customer logs into your Shopify store.

string
string
string

The content type of the file in the formate of a MIME type as defined by IETF's RFC 6838

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json