Follow

Purchase Verification API for Sellers

Purchase Verification API 

The purchase verification API gives Sellers the ability to easily confirm that a buyer has purchased their product on the Marketplace.

Use Case

Many sellers like to provide item support on their own website. Using the Purchase Verification API, Sellers can require buyers to input their Purchase Code in order to receive support. This way the Seller can be confident that the buyer actually purchased their product.

Step 1

The first step to using the purchase verification API is to generate an API Key. To generate the API key, log into your MOJO Marketplace account and go to the API settings tab.

Inside the API settings tab, you will see where you can either generate an API key for your account or view your current key.

Step 2

The second step is to take your API key and implement the code on your site that will handle the API request. Take a look below at the technical details for this API.

Technical Details

Method: GET
Request URL
http://www.mojomarketplace.com/api/v1/{MOJOSELLERUSERNAME}/{SELLERAPIKEY}/verify-purchase/{PURCHASE-CODE}.json
*PLEASE NOTE: {MOJO Seller Username} could be case sensitive. 
Fields
  • MOJO SELLER USERNAME
    • Type: String 128
    • Example Value: username
  • SELLER API KEY
    • Type: UUID
    • Example Value: f81d4fae-7dec-11d0-a765-00a0c91e6bf6
  • PURCHASE CODE
    • Type: UUID
    • Example Value: 51686d70-cce4-4be7-9316-59c90a140b1b

Responses

Success:

{"success":{"order_id":"UUID","item_id":"UUID","name":"PRODUCT-NAME","purchase_date":"TIMESTAMP" "payment_dates": {"date":"TIMESTAMP"}}

Error:

{"error":{"message":"ERROR MESSAGE"}}

Have Questions?

If you have questions as to how to use this API, please contact us at support.mojomarketplace.com.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments