Your first Merchant API request

Make your first request to the Merchant API.

This section will guide you through the process of constructing a request and handling the API response.

Making a Request to the API

To make a request, you'll need to obtain an access token. Head back to our authentication section if you've not done this yet.

For each request, you will pass the access token in Authorization header. The token you'll have will be a Bearer token, so you should prefix it with Bearer <token> (note the space).

Here's an example in curl:

curl -XPOST https://mention-me.com/api/merchant/v2/customers \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <your-authentication-token>' \
    --data '{}'

Replace the URL with your chosen API endpoint, and the token with the one you obtained previously.

Handling the Response

Ensure that your application is prepared to handle different HTTP status codes and response payloads.

Each API will declare the error responses it has, and you can learn more about errors under errors.

Next Steps

Now that you've successfully made your first API request, continue exploring the API documentation for additional endpoints, functionalities, and best practices. If you encounter any challenges or have questions, refer to the Errors Guide or reach out to our support team for assistance.


What’s Next

Ready to call our API? Visit our API reference to learn about endpoints available.