Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting of X-AIFI-LocationId and X-AIFI-Store in headers #5

Open
tayzlor opened this issue Jan 25, 2022 · 0 comments
Open

Support setting of X-AIFI-LocationId and X-AIFI-Store in headers #5

tayzlor opened this issue Jan 25, 2022 · 0 comments

Comments

@tayzlor
Copy link
Contributor

tayzlor commented Jan 25, 2022

Example request below

TOKEN=token
BODY=`cat <<EOM
{
    "customer": {
        "sessionId": "$SESSION_ID",
        "trackId": "12345",
        "transactionId": 1,
        "role": "customer"
    }
}
EOM
`
curl \
    -X POST \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $TOKEN" \
    -H 'X-AIFI-LocationId: 1' \
    -H 'X-AIFI-Store: public-sandbox' \
    -d "$BODY" \
    https://oasis-api.public-sandbox.client.aifi.io/api/aifi/customers/entered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant