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
- Type:
- SELLER API KEY
- Type:
UUID
- Example Value:
f81d4fae-7dec-11d0-a765-00a0c91e6bf6
- Type:
- PURCHASE CODE
- Type:
UUID
- Example Value:
51686d70-cce4-4be7-9316-59c90a140b1b
- Type:
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.
Comments