Commit 031901d
docs(shopline): signature is lowercase hex, not base64 — verified against a live delivery (#150)
SHOPLINE's docs show a base64 digest in the header example and a code sample
showing hex; the brief told readers to assume base64. A live products/create
delivery (api_version v20240601) settles it the other way: the header was 64
lowercase hex characters and matched a recomputed HMAC-SHA256 over the raw
body with the app secret exactly.
Handlers still accept both encodings, since the documented example disagrees
with observed behaviour, but hex is now documented as what to expect.
Also captured from the same delivery: api_version is required in the
webhook-creation body (400 without it) and is echoed back in
X-Shopline-Api-Version.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent d7e6c61 commit 031901d
3 files changed
Lines changed: 28 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1928 | 1928 | | |
1929 | 1929 | | |
1930 | 1930 | | |
1931 | | - | |
1932 | | - | |
1933 | | - | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
1934 | 1937 | | |
1935 | 1938 | | |
1936 | 1939 | | |
1937 | | - | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
1938 | 1943 | | |
1939 | 1944 | | |
1940 | 1945 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
| |||
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
46 | | - | |
47 | | - | |
| 53 | + | |
| 54 | + | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
| |||
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
66 | | - | |
| 73 | + | |
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
0 commit comments