Follow

Buyer Verification API

Buyer Verification API

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

Use Case

Many sellers like to provide item support on their own website. Using the Buyer 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.

api-settings

Step 1

The first step to using the buyer 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/{USERNAME}/{APIKEY}/verify-purchase/{PURCHASE-CODE}.json
Fields
  • USERNAME
    • Type: String 128
    • Example Value: username
  • 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"}}

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

Powered by Zendesk