Authentication
API authentication is performed using the HMAC request signature sent in the Authorization header.
1
curl -X POST \
2
https://business-sandbox.cryptopay.me/api/invoices \
3
-H 'Authorization: HMAC DjlHuWlApznJ7vrhPBL0fA:N2eEvkJQ07EpFau90pL5xMpBO3g=' \
4
-H 'Content-Type: application/json' \
5
-H 'Date: Tue, 25 Sep 2018 17:41:40 GMT' \
6
-d '{"price_amount":"100","price_currency":"EUR","pay_currency":"BTC"}'
Copied!
HMAC-SHA1 is an algorithm defined by RFC 2104 — Keyed-Hashing for Message Authentication. The algorithm takes as input two byte-strings, a key and a message.
Copy link