Skip to content

Authentication

API Access

Spoynt API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Public API

Address: https://api.spoynt.com/public-api

Public API queries use live or test Public Keys. Find them in the Account setting → Integration

Private API

Address: https://api.spoynt.com

Use the Account ID as Login (Username) and API key as Password. You can also find them in the commerce Account settings → Integration

BasicAuth Standard: Authorization = Basic base64(username:password)

  curl -X POST \
    https://api.spoynt.com/payment-invoices \
    -H 'Accept: */*' \
    -H 'Authorization: Basic Y29tYV92VDZMRFUwVHhPeG1iT290OkJlTlZRQ2hLcFV2RUxac3gwVmVpbnRaUmNlSmFWSWdrZVY2N1NvOVB0Wnc=' \
    -d '{...}'