https://api.devsmartgift.co.uk (development)
https://api.smart-gift.co.uk (production)
Only requests made using HTTPS will be accepted.
Smart Gift uses API Keys to authenticate requests. You can view and edit your API Keys in the developer section of your Dashboard. These API keys must be kept secret and safe, only those within your organisation with the developer role will be able to see and manage API keys.
You can create API keys for each application that connects to your account, this means that you can terminate any applications access at any time.
Authentication is achieved by supplying the secret key as a header called Smart-Auth in your requests to the Smart Gift API endpoints.
In the header you must pass the following arguments:
Please see the below examples for how to include these headers.
curl -i -H "Smart-Auth: sk_xxxxxxxxxxxxxx" "Accept: application/json" -H "Content-Type: application/json" https://api.smart-gift.co.uk/
$client = new Client();
$response = $client->post(env('API_URL', 'https://api.smart-gift.co.uk/')', [
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Smart-Auth' => 'sk_xxxxxxxxxxxxxx'
]
]);
If you would like access to the Development environment for testing processing of sales etc. please contact support.